

function zkopen(str){ 
   var msgw,msgh;
   msgw="476";
   msgh="297";
  
   var sWidth,sHeight; 
   sWidth=document.body.offsetWidth; 
   sHeight=document.body.offsetHeight; 
   var bgObj=document.createElement("div"); 
   bgObj.setAttribute('id','bgDiv'); 
   bgObj.style.position="absolute"; 
   bgObj.style.top="0"; 
   bgObj.style.background="#777"; 
   bgObj.style.filter="progid:DXImageTransform.Microsoft.Alpha(style=3,opacity=25,finishOpacity=75"; 
   bgObj.style.opacity="0.6"; 
   bgObj.style.left="0"; 
   bgObj.style.width=sWidth + "px"; 
   bgObj.style.height=sHeight + "px"; 
   bgObj.style.zIndex = "10000"; 
   document.body.appendChild(bgObj); 
   
   var msgObj=document.getElementById(str);
   if (msgObj==null){
	  msgObj=document.getElementById("msgDiv");
	  
   }
   //create newId 
   msgObj.setAttribute("id","msgDiv");
   msgObj.style.background="white"; 
   msgObj.style.position = "absolute"; 
   msgObj.style.left = "50%"; 
   msgObj.style.top = "50%"; 
   msgObj.style.marginLeft = "-225px" ; 
   msgObj.style.marginTop = -75+document.documentElement.scrollTop+"px"; 
   msgObj.style.width = msgw + "px"; 
   msgObj.style.height =msgh + "px"; 
   msgObj.style.zIndex = "10001";
   msgObj.style.display="block";
   document.body.appendChild(msgObj); 
   
} 


 
function zkclose(){
	var msgObj=document.getElementById("msgDiv");
    var bgObj=document.getElementById("bgDiv");
	document.body.removeChild(bgObj); 
	msgObj.style.display="none";
	
} 

