//<!-- 

// browser = (((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 3 )) || ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4 )));

function goPage(PageName) {
	top.location = "./?pg=" + PageName ;
}

function GoSection(section) {
	parent.orderform.GoBookmark(section)		
}

function SendOrder() {
	parent.orderform.document.mainForm.btnSubmit.click()
}

function IsStyleAware() {
	if(navigator.appName=="Netscape") {
		if (parseInt(navigator.appVersion) > 4 ) { return true }
		else { return false }
	}
	else {
		if(parseInt(navigator.appVersion) > 3 ) { return true }
		else { return false }
	}
}

function View(pageName) {
	// Open either the Privacy or Terms page in Popup Window 
	// Default Window Options for old browsers 
	winWidth = 550 ;
	winHeight = 350 ;
	winTop = "" ;        // will be skipped if not a ver 4 browser 
	winLeft = "" ;       // will be skipped if not a ver 4 browser 
	winName = "" ;
	winMenubar = "" ;
	
	if (pageName=="Privacy Policy") {
		if (pageName=="Privacy Policy"){pageURL="/library/privacy.htm";winName="Privacy"}
		else{pageURL="/library/OTHER.htm";winName="OTHER"}
		if (document.all || document.layers || document.getElementById)	{
			if (screen.availWidth < 550) { winWidth = screen.availWidth ;	winLeft = 0 } 
				else { winLeft = (screen.availWidth - 550) / 2 }
			if (screen.availHeight < 385) { winHeight = screen.availHeight ; winTop = 0 }
				else { winHeight = screen.availHeight * 0.8 ; winTop = screen.availHeight * 0.1 }
		}
		// Allow for 'window chrome' (ie: titlebar, scrollbar, etc.) 
		winWidth = Math.round(winWidth) - 10 ; 
		winHeight = Math.round(winHeight) - 35 ; 
		}

	else if (pageName == "Rental Terms"||pageName=="Damage Waiver") {
		if (pageName=="Rental Terms"){pageURL="/library/terms.htm";winName="Terms"}
		else{pageURL="/library/waiver.htm";winName="Waiver"}
		if (document.all || document.layers || document.getElementById)	{
			if (screen.availWidth < 550) { winWidth = screen.availWidth ;	winLeft = 0 } 
				else if ( screen.availWidth > 920 ) { winWidth = screen.availWidth * 0.6 ; winLeft = screen.availWidth * 0.2 } 
					else { winLeft = (screen.availWidth - 550) / 2 }
			if (screen.availHeight < 385) { winHeight = screen.availHeight ; winTop = 0 }
				else { winHeight = screen.availHeight * 0.9 ; winTop = screen.availHeight * 0.05 }
		}
		// Allow for 'window chrome' (ie: titlebar, scrollbar, etc.) 
		winWidth = Math.round(winWidth) - 10 ; 
		winHeight = Math.round(winHeight) - 35 ; 
	}
	
	else if (pageName == "Printable Orderform") {
		pageURL = "print/"	;
		winName = "Orderform" ;
		winMenubar = ",menubar=1"
		if (document.all || document.layers || document.getElementById)	{
			if (screen.availWidth < 550) { winWidth = screen.availWidth ;	winLeft = 0 } 
				else { winWidth = screen.availWidth * 0.8 ; winLeft = screen.availWidth * 0.1 }
			if (screen.availHeight < 385) { winHeight = screen.availHeight ; winTop = 0 }
				else { winHeight = screen.availHeight * 0.9 ; winTop = screen.availHeight * 0.05 }
		}
		// Allow for 'window chrome' (ie: titlebar, menubar, scrollbar, etc.) 
		winWidth = Math.round(winWidth) - 10 ; 
		winHeight = Math.round(winHeight * 0.85 ) ; 
	}

	winWidth = "width=" + winWidth ;
	winHeight = ",height=" + winHeight ;
	if (winLeft >= 0 ) {
		winLeft = Math.round(winLeft) ; winTop = Math.round(winTop) ;
		winLeft = ",screenX=" + winLeft + ",left=" + winLeft ;
		winTop = ",screenY=" + winTop + ",top=" + winTop ;
	}
	winScroll = ",scrollbars=1" ;		  // default for all 
	winSizable = ",resizable=1" ;		// default for all 
	
	winOptions = winWidth + winHeight + winLeft + winTop + winScroll + winSizable + winMenubar;

	newWin = window.open(pageURL, winName, winOptions) ;
	if (document.all || document.layers || document.getElementById)	{ newWin.focus() } 
	
	// alert(winOptions) ; // FOR TESTING ONLY
}
	
// -->
