var win= null;

function NewWindow(mypage,myname,w,h,scroll)
{
   var winl = (screen.width-w)/2;
   var wint = (screen.height-h)/2;
   winl = winl-12;
   wint = wint+42;
   var settings ='height='+h+',';
   settings +='width='+w+',';
   settings +='top='+wint+',';
   settings +='left='+winl+',';
   settings +='scrollbars='+scroll+',';
   settings +='resizable=no';
   win=window.open(mypage,myname,settings);
   if(parseInt(navigator.appVersion) >= 4)
   {
      win.window.focus();
   }
}

function NewWindow2(mypage,myname,w,h,scroll)
{
   var winl = (screen.width-w)/2;
   var wint = (screen.height-h)/2;
   winl = winl;
   wint = wint;
   var settings ='height='+h+',';
   settings +='width='+w+',';
   settings +='top='+wint+',';
   settings +='left='+winl+',';
   settings +='scrollbars='+scroll+',';
   settings +='resizable=no';
   win=window.open(mypage,myname,settings);
   if(parseInt(navigator.appVersion) >= 4)
   {
      win.window.focus();
   }
}

function MM_openBrWindow(theURL,winName,features) 
{ 
   window.open(theURL,winName,features);
}



function ExWindowOpen()
{
   window.open("http://time5.nrc.ca/webclock_e.shtml","","top=5,left=5,directories=yes,location=yes,menubar=yes,resizable=yes,scrollbars=yes,status=yes,toolbar=yes");
}
function ExWindowOpen1()
{
   window.open("http://www.time.gov/timezone.cgi?Pacific/d/-8","","top=50,left=50,width=550,height=600,directories=no,location=no,menubar=no,resizable=yes,scrollbars=No,status=yes,toolbar=No");
}
function ExWindowOpen2()
{
   window.open("http://www.time.gov/timezone.cgi?Mountain/d/-7","","top=50,left=50,width=550,height=600,directories=no,location=no,menubar=no,resizable=yes,scrollbars=No,status=yes,toolbar=No");
}

function openWindow2a(page)
{
   //This js will open the page in the SAME WINDOW or same page!
   testwindow = window.open(page, '_self', 'samepage');
   testwindow.focus(); 
}

function openwindow2b(page)
{
   newpage2 = window.open(page, 'script2', config='top=247,left=370,width=416,height=240,directories=no,location=no,menubar=no,resizable=no,scrollbars=no,status=no,toolbar=no');
   newpage2.focus(); 
}
function ExWindowOpen3()
{
   window.open("http://www.time.gov/timezone.cgi?Central/d/-6","","top=50,left=50,width=550,height=600,directories=no,location=no,menubar=no,resizable=yes,scrollbars=No,status=yes,toolbar=No");
}
function ExWindowOpen4()
{
   window.open("http://www.time.gov/timezone.cgi?Eastern/d/-5","","top=50,left=50,width=550,height=600,directories=no,location=no,menubar=no,resizable=yes,scrollbars=No,status=yes,toolbar=No");
}

