var newWin;

function openNewWindow(page) {
    if (null != newWin && !newWin.closed) closeNewWindow();
    newWin=window.open(page,'','width=300,height=300,scrollbars=yes,resizable=yes,screenX=0,screenY=0,top=0,left=0,status=yes,menubar=yes,directories=yes,location=yes,toolbar=yes');
    newWin.focus();
}

function openNewWindowFullControl(page,width,height,scrollbars,resizable,screenX,screenY,top,left,status,menubar,directories,location,toolbar) {
    if (null != newWin && !newWin.closed) closeNewWindow();

    var props = 'width=' +width +',height=' +height +',scrollbars=' +scrollbars +',resizable=' +resizable  +',screenX=' +screenX +',screenY=' +screenY +',top=' +top +',left=' +left +',status=' +status +',menubar=' +menubar +',directories=' +directories +',location=' +location +'toolbar=' +toolbar;
    newWin=window.open(page,'',props);
    newWin.focus();
}

function openNewWindowSize(page, width, height)
{
   if (null != newWin  && !newWin.closed)  closeNewWindow();

   var props = 'width=' +width +',height=' +height +',scrollbars=yes,resizable=yes,screenX=0,screenY=0,top=0,left=0,status=yes,menubar=yes,directories=yes,location=yes,toolbar=yes';
   newWin=window.open(page,'',props);
   newWin.focus();
}

function closeNewWindow() {
   newWin.close();
   this.focus();
}

function NewWindow(mypage, myname, w, h, scroll) {
		var winl = (screen.width - w) / 2;
		var wint = (screen.height - h) / 2;
		winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
		win = window.open(mypage, myname, winprops)
		if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function openpopupSE(){
var popurl="http://www.SelectEnergy.com"
winpops=window.open(popurl,"","width=808,height=800,toolbar=yes,location=yes,directories=yes,status=yes,scrollbars=yes,menubar=yes,resizable=yes,")
}

function openpopupNU(){
var popurl="http://www.nu.com"
winpops=window.open(popurl,"","width=790,height=730,toolbar=yes,location=yes,directories=yes,status=yes,scrollbars=yes,menubar=yes,resizable=yes,")
}

function openpopupNUEI(){
var popurl="http://nueiwebapp"
winpops=window.open(popurl,"","width=790,height=730,toolbar=yes,location=yes,directories=yes,status=yes,scrollbars=yes,menubar=yes,resizable=yes,")
}

function openpopupNUnet(){
var popurl="http://NUnet.NU.com"
winpops=window.open(popurl,"","width=808,height=902,toolbar=yes,location=yes,directories=yes,status=yes,scrollbars=yes,menubar=yes,resizable=yes,")
}

function openpopupNGS(){
var popurl="http://www.NGS-NU.com"
winpops=window.open(popurl,"","width=768,height=700,toolbar=yes,location=yes,directories=yes,status=yes,scrollbars=yes,menubar=yes,resizable=yes,")
}

function openpopupESB(){
var popurl="http://www.ESBoulos.com/intro.asp"
winpops=window.open(popurl,"","width=769,height=775,toolbar=yes,location=yes,directories=yes,status=yes,scrollbars=yes,menubar=yes,resizable=yes,")
}

function openpopupWOODS(){
var popurl="http://www.WOODSnet.com"
winpops=window.open(popurl,"","width=809,height=709,toolbar=yes,location=yes,directories=yes,status=yes,scrollbars=yes,menubar=yes,resizable=yes,")
}

function openpopupNUpartners(){
var popurl="partners.aspx"
winpops=window.open(popurl,"","width=530,height=800,toolbar=yes,location=yes,directories=yes,status=yes,scrollbars=yes,menubar=yes,resizable=yes,")
}

function openpopupSENYmap(){
var popurl="http://www.weather.com/weather/local/13204?lswe=13204&lwsa=WeatherLocalUndeclared"
winpops=window.open(popurl,"","width=798,height=650,toolbar=yes,location=yes,directories=yes,status=yes,scrollbars=yes,menubar=yes,resizable=yes,")
}

function openpopupSECTmap(){
var popurl="http://www.weather.com/weather/local/06037?lswe=06037&lwsa=WeatherLocalUndeclared"
winpops=window.open(popurl,"","width=798,height=650,toolbar=yes,location=yes,directories=yes,status=yes,scrollbars=yes,menubar=yes,resizable=yes,")
}

