function disablebutton(thebutton) {	
	document.getElementById(thebutton).disabled = true;
}	

function disableForm(theform)
{		
	if (document.all || document.getElementById)
	{		
		for (i = 0; i < theform.length; i++)
		{
			var tempobj = theform.elements[i];
						
			if (tempobj.type.toLowerCase() == "submit" || tempobj.type.toLowerCase() == "reset")
			{				
				tempobj.disabled = true;
				if(tempobj.id == "send") {
					tempobj.value = " Sending email... ";
				} else if(tempobj.id == "apply") {
					tempobj.value = " Sending application... ";
				}
			}
		}
		return true;
	}
}