// ÍøÒ³¼ÓÔØÌáÊ¾
function LoadingHint()
{
	var str;
	str='<DIV ID="divLoading" STYLE="BACKGROUND-COLOR:#F9F8F8; FILTER: alpha(opacity=30); LEFT: 0px; POSITION:absolute; TOP: 0px; Z-INDEX: 19999" onclick="window.event.cancelBubble=true; window.event.returnValue=false;"></DIV>';
	str=str+'<div id="loading" style="position:absolute; z-index:20000;width:220px;left:expression((this.parentElement.offsetWidth-this.offsetWidth)/2);top:160px;">';
	str=str+'<img src="templates/images/progress2.gif" width="220" height="70" /></div>';	
	document.write(str);
	document.all.divLoading.style.width = document.body.scrollWidth;
   	document.all.divLoading.style.height = document.body.clientHeight;	
	//alert(document.all.divLoading.style.height);
	var box = document.getElementById('loading');    
	box.style.top = document.body.scrollTop + (document.body.clientHeight - parseInt(box.offsetHeight)) / 2;
    box.style.left = document.body.scrollLeft + (document.body.clientWidth - parseInt(box.style.width)) / 2;
}
function OpenLoadingHint()
{
	document.all.loading.style.display="block";
	var box = document.getElementById('loading');    
	box.style.top = document.body.scrollTop + (document.body.clientHeight - parseInt(box.offsetHeight)) / 2;
    box.style.left = document.body.scrollLeft + (document.body.clientWidth - parseInt(box.style.width)) / 2; 
	document.all.divLoading.style.width = document.body.scrollWidth;
   	document.all.divLoading.style.height = document.body.clientHeight;	
}
function CloseLoadingHint()
{
	document.all.loading.style.display="none";
	document.all.divLoading.style.width = "0px";
    document.all.divLoading.style.height = "0px";
}
LoadingHint();