Errg. There's a pretty big difference between Javascript and Java. What you're asking for here is most definitely Javascript, which is used on the internet to make dynamic web pages. Java is a whole different matter entirely--it doesn't have to be used on the internet and is quite versatile in terms of uses. (Servlets, applets, so on and so forth)
As for what you're looking for, I'd suggest you search Google. I just searched for "disable enable button javascript" and this script came up. Perhaps something like this will help:
CODE
<script language="javascript">
function enableField()
{
document.form1.address2.disabled=false;
}
</script>
<a href="java script:enableField()">Click here to enable the element<a/>
Basically the form element address2 is disabled from the start and when you click on the link that leads to java script:enableField(), javascript will change document.form1.address2.disabled to false which enables the form field. As for your pop-up, you could just make the href part direct to a popup as well as have the javascript function called.
Comment/Reply (w/o sign-up)