function disableButton(sender){	sender.style.cursor = 'wait';  	document.documentElement.style.cursor='wait';	var alltags = document.getElementsByTagName('input');  	for (i=0; i< alltags.length; i++) 	{  		if (alltags[i].type == 'text')		{			alltags[i].style.cursor = 'wait';		} 		else if(alltags[i].type == 'submit' || alltags[i].type == 'button')		{			alltags[i].disabled = true;			}	}		//sender.value= 'Please wait...';	sender.disabled = true; }