//------------------ open.js -----------------------
var NewWindow = null;
function openWindow(url,name,width,height,scroll,resizable)
{
if (scroll)
scroll='yes';
else
scroll='no';
NewWindow = window.open("", name, "width="+width+",height="+height+",toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars="+scroll+",resizable="+resizable);
if (NewWindow != null)
{
if (NewWindow.opener == null)
NewWindow.opener = self;
NewWindow.location.href=url;
}
}
function CloseWindow(time)
{
try
{
var flag=false;
if (NewWindow)
{
try
{ NewWindow.document.title="本窗口将于"+((time>9)?time:"0"+time)+"秒钟后自动关闭!"; }
catch(e) {}
if (time<0)
{
flag=true;
NewWindow.close();
}
else
time--;
if (!flag)
window.setTimeout("CloseWindow("+time+")",1000);
}
}
catch(e)
{ return; }
}