Hi,
I have this really simple function and for the life of me i cant remember how to pass the fieldname which is passed in the function.

Code JavaScript:
function Change(fieldName)
	{
		if(document.mainDetails.enable.checked == true) 
  			{ 
				document.mainDetails.fieldName.disabled = false; 
			}
		else
  			{
				document.mainDetails.fieldName.disabled = true;
			}
	}

put me out of my misery please.

Thanks
CHris