// @id: isis.js # 13-Jun-2005

var printWin=null;
var NewWin=null;
var DetailWin=null;

function closeNewWin()
{
 if(NewWin && !NewWin.closed){NewWin.close();}
}
function openNewWin(url)
{
 closeNewWin();
 var options='width=800,height=600,top=0,left=0,resizable=1,scrollbars=1,status=0';
 NewWin=window.open(url, 'NewWin', options);
}

function closeDetailWin()
{
 if(DetailWin && !DetailWin.closed){DetailWin.close();}
}
function openDetailWin(url)
{
 closeDetailWin();
 var options='width=800,height=600,top=0,left=0,resizable=1,scrollbars=1,status=0';
 DetailWin=window.open(url, 'DetailWin', options);
}

function HeaderClick(n)
{
 document.cookie="sortorder="+n;
 window.location.reload();
}

function printPage()
{
 var iWidth=600;
 var iHeight=400;
 var iLeft=(screen.width/2)-(iWidth/2);
 var iTop=(screen.height/2)-(iHeight/2);
 var options='width='+iWidth+',height='+iHeight+',left='+iLeft+',top='+iTop+',scrollbars=1,resizable=0,toolbar=0,statusbar=0';
 if(printWin != null){printWin.close();}
 printWin=window.open('/isis/print.htm', 'PrintPopup', options);
 if(!printWin.opener){printWin.opener=self;}
 printWin.focus();
 if(printWin.print){printWin.print();}
}

function resize()
{
 left=((document.body.clientWidth-770)/2);
 if(left>0){document.getElementById('links').style.width=left+'px';}
}
