Code:
<script>
function Affiliate()
{
if (document.form1.affiliate.value=='1') {
	document.form1.url.disabled=false;
	}
	else 
		{document.form1.url.disabled=true;
		}
}
</script>
I wrote the above script to toggle a textfield named "url" between enabled and disabled. The toggle is controlled by two radio buttons named "affiliate" one with value="0" the other with value="1" and onchange handlers calling the above function.

Yet I run the script, nothing happens, no errors no actions...