var iObj = document.createElement("img");
var cObj = document.createElement("div");
var L=document.createElement("iframe"); 


function zC(zhi){
	
	if(zhi != null && zhi != "exist"){
		var cWidth,cHeight;
		cWidth = screen.width;
		cHeight = screen.height;
		
		cObj.setAttribute("id","cdiv");
		cObj.style.position = "absolute";
		cObj.style.top = 0;
		cObj.style.left = 0;
		cObj.style.backgroundColor = "#72757c";
		cObj.style.filter="progid:DXImageTransform.Microsoft.Alpha(style=3,opacity=75,finishOpacity=75";
		cObj.style.width = cWidth +"px";
		cObj.style.height = cHeight + "px";
		cObj.style.zIndex = "10000000000";
		
		L.name="completionFrame"; 
		L.setAttribute("frameborder", "0", 0);
		L.width=cObj.style.width; 
		L.height=cObj.style.height; 
		cObj.appendChild(L); 

		document.body.appendChild(cObj);
		
		//iObj.setAttribute("id","cimg");
		//iObj.style.position = "absolute";
		//iObj.style.top = "70%";
		//iObj.style.left = "70%"; 
		//iObj.style.width = "0px";
		//iObj.style.height ="0px";
		//iObj.style.marginLeft = "-220px" ;
		//iObj.style.marginTop = -155+"px";
		//iObj.style.textAlign = "center";
		
		//iObj.src = "../Images/wait.gif";
		//iObj.style.zIndex = "1001";
		//iObj.style.cursor = "hand";
	}else if(zhi != null && zhi == "exist"){
		
		cObj.style.visibility='visible';
		//iObj.style.visibility='visible';
	}else{
		cObj.style.visibility='hidden';
		//iObj.style.visibility='hidden';
	}
	
	//document.body.appendChild(iObj);
}
