function PopUp(url) {
remote=window.open(url,'PopUpWindow','height=400,width=640,alwaysLowered=0,alwaysRaised=0,channelmode=0,dependent=1,directories=0,fullscreen=0,hotkeys=1,location=0,menubar=1,resizable=0,scrollbars=yes,status=0,titlebar=0,toolbar=0,z-lock=33');
     if (!remote.opener) 
                        remote.opener = self;
         if (window.focus)
                remote.focus();  
}

function printWindow(){
   bV = parseInt(navigator.appVersion)
   if (bV >= 4) window.print()
}


/*
Submit Once form validation-
© Dynamic Drive (www.dynamicdrive.com)
For full source code, usage terms, and 100's more DHTML scripts, visit http://dynamicdrive.com
*/
function submitonce(theform){
//if IE 4+ or NS 6+
if (document.all||document.getElementById){
//screen thru every element in the form, and hunt down "submit" and "reset"
	for (i=0;i<theform.length;i++){
		var tempobj=theform.elements[i]
		if(tempobj.type.toLowerCase()=="submit"||tempobj.type.toLowerCase()=="reset")
//disable em
			tempobj.disabled=true
		}
	}
}

// special javascript for client SkiWest national banner
function submitFrmSearch2() {
var frmThisForm = window.document.frmSearch2;
var dDate = new Date();
var nStartMonth = frmThisForm.selStartMonth.options[frmThisForm.selStartMonth.selectedIndex].value;
var nStartDay = frmThisForm.selStartDay.options[frmThisForm.selStartDay.selectedIndex].value;
var nStartYear = dDate.getYear();
if(nStartYear<1900) { nStartYear+=1900 } //*Workaround: Netscape treats 2002 at 102	
var sStartDate = nStartMonth + '/' + nStartDay + '/' + nStartYear;	
frmThisForm.hdnStartDate.value = sStartDate;
frmThisForm.hdnNights.value=frmThisForm.selNumNights.options[frmThisForm.selNumNights.selectedIndex].value;
frmThisForm.submit();
}