function mydia(title,url,w,h){
if (!info) var info='Thank';
if (!title) var title="Note";
var p=document.createElement("DIV"); 
p.id="p";
p.style.position="absolute";
p.style.width=document.body.scrollWidth;
p.style.height=(document.body.offsetHeight>document.body.scrollHeight)?'100%':document.body.scrollHeight;
p.style.zIndex='998';
p.style.top='0px';
p.style.left='0%';
p.style.backgroundColor="gray";
p.style.opacity='0.5';
p.style.filter="alpha(opacity=50)";
document.body.appendChild(p);
var p1=document.createElement("DIV");
var top=parseInt(parseInt(document.body.scrollHeight)*0.25)+document.body.scrollTop;
p1.style.position="absolute";
p1.style.width=w;
p1.id="p1";
var left=Math.ceil(((document.body.scrollWidth)-parseInt(p1.style.width.replace('px','')))/2)+document.body.scrollLeft;
p1.style.height=h;
p1.style.zIndex='999'; 
p1.style.top='10px';
p1.style.left=left+'px';
p1.style.border="0px solid #cccccc";
this.cancel=function(){
document.body.removeChild(document.getElementById('p'));
document.body.removeChild(document.getElementById('p1'));
var arr=document.getElementsByTagName("select");
   var i=0;
   while(i<arr.length){
   arr[i].style.visibility='visible';
   i++;
   }
}
var html="";
html+="<center>"
html+="<div class='p3' style='height:1px;overflow:hidden;background:#cccccc;width:"+(w-6)+";border-left:1px solid #cccccc;border-right:1px solid #cccccc;'></div>"
html+="<div class='p2' style='height:1px;overflow:hidden;background:#cccccc;width:"+(w-4)+";border-left:1px solid #cccccc;border-right:1px solid #cccccc;'></div>"
html+="<div class='p2' style='height:1px;overflow:hidden;background:#cccccc;width:"+(w-2)+";border-left:1px solid #cccccc;border-right:1px solid #cccccc;'></div>"
html+="<div class='p1' style='height:20px;overflow:hidden;background:#cccccc;width:"+w+";border-left:1px solid #cccccc;border-right:1px solid #cccccc;color:#fff;font-size:9pt;font-weight:bold;text-align:left;'> "+title;
html+="<a href='javascript:this.cancel();'><img style='margin-left:"+(w-90)+"px;'   src='/images/closewindow.gif' border=0></a></div><div></div>";
html+="<div id='c' style='height:"+(h-10)+";width:"+w+";background-color:#cccccc;overflow:hidden;border-left:1px solid #cccccc;border-right:1px solid #cccccc;padding-top:0px;font-size:9pt;'>"
html+="<iframe src='"+url+"' style='height:"+(h-10)+";width:"+w+";' scrolling='yes'></iframe>";
html+="</div>"
html+="<div class='p1' style='height:1px;overflow:hidden;background:#cccccc;width:"+(w-2)+";border-left:1px solid #cccccc;border-right:1px solid #cccccc;'></div>"
html+="<div class='p2' style='height:1px;overflow:hidden;background:#cccccc;width:"+(w-4)+";border-left:1px solid #cccccc;border-right:1px solid #cccccc;'></div>"
html+="<div class='p3' style='height:1px;overflow:hidden;background:#cccccc;width:"+(w-6)+";border-left:1px solid #cccccc;border-right:1px solid #cccccc'></div>"
html+="</center>"
document.body.appendChild(p1);
p1.innerHTML=html;
var arr=document.getElementsByTagName("select");
var i=0;
while(i<arr.length){
   arr[i].style.visibility='hidden';
   i++;
}
}


