// JavaScript Document

function NewWindow(mypage,myname,w,h,scroll){
var win = null;
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)
}

function openWin(wName,w,h,scroll) 
{ 
var winl = (screen.width-w)/2; 
var wint = (screen.height-h)/2; 
var settings  ='height='+h+','; 
     settings +='width='+w+','; 
     settings +='top='+wint+','; 
     settings +='left='+winl+','; 
     settings +='scrollbars='+scroll+','; 
     settings +='resizable=yes'; 

popWin = window.open('', wName, settings); 
if(popWin.focus) { popWin.focus(); } 
return true; 
} 
   
function popUp(url){
	window.open(url,"pop","width=500,height=450,toolbars=0,scrollbars=1")
}

function openWinNew( winHeight, winWidth, picSrc ){
    newWin = window.open('', '', 'height='+ winHeight + ',width='+ winWidth + 'toolbars=no, scrollbars=yes' );
    newWin.document.write("<head><title>"+ picSrc +"</title></head>");
    newWin.document.write("<p align=center>");
    newWin.document.write("<img src=" + picSrc + ">");            newWin.document.write("<br><br><center><form><input type='button' value='Close' onclick='JavaScript:window.close()'></center>");
    newWin.document.write("</form></p>");
}


function NewWindowTB(mypage,myname,w,h,scroll){
var win = null;
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable,toolbar'
win = window.open(mypage,myname,settings)
}



