
<!--
//***************************************
//this is for "back" buttons throughout the website.
function goback() {   
	history.back(1)
	}
	

//***************************************	
//This is for the inquiry/quote/survey pages to prevent duplicate submissions when visitor presses "enter."
function generic_submit (form) {        
	form.submit ();
}


//***************************************	
// This is for popup windows throughout the website.        
function openAWindow( pageToLoad, winName, width, height,          
center) 
{ 

xposition=0; yposition=0;
if ((parseInt(navigator.appVersion) >= 4 ) &&
(center)){
xposition = (screen.width - width) / 0;
yposition = (screen.height - height) / 0; 

} 

args = "width=" + width + "," 
+ "height=" + height + "," 
+ "location=0," 
+ "menubar=0,"
+ "resizable=1,"
+ "scrollbars=0,"
+ "status=0," 
+ "titlebar=0,"
+ "toolbar=0,"
+ "hotkeys=0,"
+ "screenx=" + xposition + "100," //NN Only
+ "screeny=" + yposition + "100," //NN Only
+ "left=" + xposition + "100," //IE Only
+ "top=" + yposition + "100,"//IE Only 

window.open( pageToLoad,winName,args ); 


} 

function openNewWindow( pageToLoad, winName, width, height,          
center) 
{ 

xposition=0; yposition=0;
if ((parseInt(navigator.appVersion) >= 4 ) &&
(center)){
xposition = (screen.width - width) / 0;
yposition = (screen.height - height) / 0; 

} 

args = "width=" + width + "," 
+ "height=" + height + "," 
+ "location=0," 
+ "menubar=0,"
+ "resizable=1,"
+ "scrollbars=1,"
+ "status=0," 
+ "titlebar=0,"
+ "toolbar=0,"
+ "hotkeys=0,"
+ "screenx=" + xposition + "100," //NN Only
+ "screeny=" + yposition + "100," //NN Only
+ "left=" + xposition + "100," //IE Only
+ "top=" + yposition + "100,"//IE Only 

window.open( pageToLoad,winName,args ); 


} 


//***************************************	
// This is for validation on the Inquiry/Quote pages throughout the website.        

	function fillMe() {
		
		if(document.forms[0].Name != null) {
			var name = document.forms[0].Name.value
			var phone = document.forms[0].Phone.value

			if (name == "") {
				alert("Please type your name in the NAME field.")
				document.forms[0].Name.focus()
				return false
			} else if (phone == "") {
				alert("Please type in your telephone number, including area code.")
				document.forms[0].Phone.focus()
				return false
			}
		}
		return true
		document.forms[0].submit()
		
	}


//***************************************	
// This is for validation on the Inquiry page on the Landmark website.        

	function fillMe2() {
		
		if(document.forms[0].Name != null) {
			var name = document.forms[0].Name.value
			var phone = document.forms[0].Phone.value
			var email = document.forms[0].email.value

			if (name == "") {
				alert("Please type your name in the NAME field.")
				document.forms[0].Name.focus()
				return false
			} else if (phone == "") {
				alert("Please type in your telephone number, including area code.")
				document.forms[0].Phone.focus()
				return false
			} else if (email == "") {
				alert("Please type in your email address.")
				document.forms[0].email.focus()
				return false
			}
		}
		return true
		document.forms[0].submit()
		
	}

//***************************************	
// This is for validation on the Company Survey  page on the Marketing website.        

	function fillMe3() {
		
		if(document.forms[0].Name != null) {
			var name = document.forms[0].Name.value
			var phone = document.forms[0].Phone.value
			var email = document.forms[0].email.value

			if (name == "") {
				alert("Please type your name in the NAME field.")
				document.forms[0].Name.focus()
				return false
			} else if (email == "") {
				alert("Please type in your email address.")
				document.forms[0].email.focus()
				return false
			}
		}
		return true
		document.forms[0].submit()
		
	}


//***************************************	
// This is for validation on the Recruiting Inquiry page.        

	function checkMe() {
		
		if(document.forms[0].Name != null) {
			var name = document.forms[0].Name.value
			var address1 = document.forms[0].Address1.value
			var city = document.forms[0].City.value
			var state = document.forms[0].State.value
			var zip = document.forms[0].Zip.value

			if (name == "") {
				alert("Please type your name in the NAME field.")
				document.forms[0].Name.focus()
				return false
			} else if (address1 == "") {
				alert("Please type in your complete mailing address.")
				document.forms[0].Address1.focus()
				return false
			} else if (city == "") {
				alert("Please type in your complete mailing address.")
				document.forms[0].City.focus()
				return false
			} else if (state == "") {
				alert("Please select your state of residence.")
				document.forms[0].State.focus()
				return false
			} else if (zip == "") {
				alert("Please type in your zipcode.")
				document.forms[0].Zip.focus()
				return false
			}
		}
		return true
		document.forms[0].submit()
	}

//=================
//This is the hidden text "Switch Content" script.

/***********************************************
* Contractible Headers script- © Dynamic Drive (www.dynamicdrive.com)
* This notice must stay intact for use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

var enablepersist="on" //Enable saving state of content structure? (on/off)

if (document.getElementById){
document.write('<style type="text/css">')
document.write('.switchcontent{display:none; background-color : #eaeaea; padding : 7px; border : double #d2d2d2 #ababab medium; width : 500px;}')
document.write('</style>')
}

function getElementbyClass(classname){
ccollect=new Array()
var inc=0
var alltags=document.all? document.all : document.getElementsByTagName("*")
for (i=0; i<alltags.length; i++){
if (alltags[i].className==classname)
ccollect[inc++]=alltags[i]
}
}

function contractcontent(omit){
var inc=0
while (ccollect[inc]){
if (ccollect[inc].id!=omit)
ccollect[inc].style.display="none"
inc++
}
}

function expandcontent(cid){
if (typeof ccollect!="undefined"){
contractcontent(cid)
document.getElementById(cid).style.display=(document.getElementById(cid).style.display!="block")? "block" : "none"
selectedItem=cid+"|"+document.getElementById(cid).style.display
}
}

function revivecontent(){
selectedItem=getselectedItem()
selectedComponents=selectedItem.split("|")
contractcontent(selectedComponents[0])
document.getElementById(selectedComponents[0]).style.display=selectedComponents[1]
}

function get_cookie(Name) { 
var search = Name + "="
var returnvalue = "";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
if (offset != -1) { 
offset += search.length
end = document.cookie.indexOf(";", offset);
if (end == -1) end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset, end))
}
}
return returnvalue;
}

function getselectedItem(){
if (get_cookie(window.location.pathname) != ""){
selectedItem=get_cookie(window.location.pathname)
return selectedItem
}
else
return ""
}

function saveswitchstate(){
if (typeof selectedItem!="undefined")
document.cookie=window.location.pathname+"="+selectedItem
}

function do_onload(){
getElementbyClass("switchcontent")
if (enablepersist=="on" && getselectedItem()!="")
revivecontent()
}


if (window.addEventListener)
window.addEventListener("load", do_onload, false)
else if (window.attachEvent)
window.attachEvent("onload", do_onload)
else if (document.getElementById)
window.onload=do_onload

if (enablepersist=="on" && document.getElementById)
window.onunload=saveswitchstate


//-->

