function showWindow(width,height){
   var windowstr=document.getElementById("infoDiv").innerHTML;
	   windowstr+="<span style='event:expression(autoResize("+width+","+height+"))'></span>";
   document.getElementById("infoDiv").innerHTML=windowstr;
   document.getElementById("infoDiv").style.left=((document.body.clientWidth-width)>0?(document.body.clientWidth-width):0)/2+"px";
   document.getElementById("infoDiv").style.top=((document.body.clientHeight-height)>0?(document.body.clientHeight-height):0)/2+"px";
   document.getElementById("infoDiv").style.width=width;
   document.getElementById("infoDiv").style.height=height;
   document.getElementById("tranDiv").style.height=document.body.clientHeight+ "px";
   document.getElementById("tranDiv").style.width=document.body.clientWidth+ "px";
   document.getElementById("tranDiv").style.display="";
   document.getElementById("tranDivBack").style.display="";
   document.getElementById("infoDiv").style.display="";
}
function closeWindow(){
   document.getElementById("tranDiv").style.display="none";
}
autoResize= function(width,height){
    document.getElementById("tranDivBack").style.width=document.body.clientWidth>document.body.scrollWidth?document.body.clientWidth:document.body.scrollWidth;
    document.getElementById("tranDivBack").style.height=document.body.clientHeight>document.body.scrollHeight?document.body.clientHeight:document.body.scrollHeight;
    document.getElementById("tranDiv").style.width=document.body.clientWidth;
    document.getElementById("tranDiv").style.height=document.body.clientHeight;
    document.getElementById("infoDiv").style.left=((document.body.clientWidth-width)>0?(document.body.clientWidth-width):0)/2+"px";
    document.getElementById("infoDiv").style.top=((document.body.clientHeight-height)>0?(document.body.clientHeight-height):0)/2+"px";
    document.getElementById("infoDiv").style.width=width<document.body.clientWidth?width:document.body.clientWidth;
    document.getElementById("infoDiv").style.height=height<document.body.clientHeight?height:document.body.clientHeight;
    
}
