function drawRectangle(left, top, width, height) {
 if (document.createElement) {
   if (document.getElementById("newdiv")==null){
   	newdiv=document.createElement("div");
   	newdiv.style.position="absolute";
   	newdiv.style.left = left+"px";
   	newdiv.style.top  = top+"px";
   	newdiv.style.width = width+"px";
   	newdiv.style.height = height+"px";
   	newdiv.style.backgroundColor = 'white';
   	newdiv.style.visibility = 'visible';
   	newdiv.style.border="1px solid black";
   	newdiv.id = 'newdiv';
   	newdiv.innerHTML = "";
   	document.body.appendChild(newdiv);
   	}else{
   		newdiv.style.visibility = 'visible';
   		newdiv.innerHTML="";
   	}
   	
   }
 }
function drawWindow(left,top,width,height,action){
 drawRectangle(left,top,width,height);
 myFrame = document.getElementById("newdiv");
 divClose = '<div align="right"><a href="" onClick="newdiv.style.visibility=\'hidden\';return false;"><img src="images/close.jpg" border="0"></a></div>';
 ifFrame = '<iframe src="'+action+'" width="500" height="370" frameborder="0">No frame in your web browser</iframe>';
 myFrame.innerHTML = myFrame.innerHTML + divClose + ifFrame;
 }
