// ###############################################
// Clear input box script
// ###############################################

function needClear(level, obj)
{
	if(level==1&&obj.value=="Search Cougar.ca") { obj.value=""; }
	if(level==0&&obj.value=="") { obj.value="Search Cougar.ca"; }
}

// ###############################################
// Web Login Pop-up script
// ###############################################
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=no'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}


// ###############################################
// Photo Gallery Pop-up script
// ###############################################

function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=788,height=532,left = 260,top = 289.5');");
}


// ###############################################
// Immersion Suit Pop-up script
// ###############################################

function ISpopUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=600,height=406,left = 280,top = 180');");
}

// ###############################################
// Fleet Pop-up script
// ###############################################

function fullscreen(theURL) { 
window.open(theURL, '', 'fullwindow=yes, scrollbars=0'); 
} 

// ###############################################
// Flight Information Pop-up script
// ###############################################
  
function fullwin(targeturl)
{        
window.open(targeturl,"","fullscreen,scrollbars,statusbar")
// window.open(targeturl, '', 'fullscreen=yes, scrollbars=auto');
//window.open(targeturl,"",'menubar=no,toolbar=no,directories=no,resizable=no,scrollbars=no,location=no,status=yes');
//window.status="";
}