var posting = false;
function dopost()
{
	//提交表表单，先判断验证再判断重复提交
//	if (Page_ValidationActive && !Page_IsValid){
//		return;
//	}

	posting=true;
	dispProcessing();
	document.body.style.cursor='wait';
}

function dispProcessing()
{
		var div = document.createElement("div");
		div.innerHTML = "<br><img src=\"pic/processing.gif\"><br><font color=\"white\">正在提交数据，请等待！</font>";
		div.style.background = "666666";
		div.style.filter = "alpha(Opacity=100)";
		div.style.width = 300;
		div.style.height = 60;
		div.style.lineHeight = "30px";
		div.style.position = "absolute";
		div.style.top = document.body.clientHeight/2-30;
		div.style.left = document.body.clientWidth/2-100;
		div.style.zIndex = 101;
		document.body.appendChild(div);
		
		var div1 = document.createElement("div");
		var w, h;
		with(document.body){
			if (scrollWidth<clientWidth){
				w = clientWidth;
			}else{
				w = scrollWidth;
			}
			if (scrollHeight<clientHeight){
				h = clientHeight;
			}else{
				h = scrollHeight;
			}
		}
		div1.style.background = "black";
		div1.style.filter = "alpha(Opacity=30)";
		div1.style.position = "absolute";
		div1.style.top = "0";
		div1.style.left = "0";
		div1.style.width = w;
		div1.style.height = h;
		div1.style.zIndex = 100;
		document.body.appendChild(div1);
		
		div1.focus();
		
		var sels = document.getElementsByTagName("SELECT");
		for(var i=0; i<sels.length; i++){
			sels[i].style.visibility = "hidden";
		}
}
 


