// DIV functionsfunction popUpWindow(url) {    playerW=screen.availWidth;    playerH=screen.availHeight;    prop='width='+playerW+',height='+playerH+',scrollbars=no,toolbar=yes,location=yes,menubar=yes,resizable=yes,left=0,top=0';   day = new Date();   id = day.getTime();	    if(url == 'http://www.zieglercat.com/default.cfm?PID=1.5.17' || url == 'http://www.zieglercat.com/default.cfm?PID=1.5')		{			document.location.href=url;		}    else {				eval("page" + id + " = window.open(url, '" + id + "','"+ prop+"');");					}}function hOutDIV(strArea) {	document.getElementById(strArea).style.background = '#CC9900';}function hOverDIV(strArea) {	document.getElementById(strArea).style.background = '#000000';}function hOverSubmenuDIV(strArea) {	document.getElementById(strArea).style.background = '#FFCC00';}function hOutSubmenuDIV(strArea) {	document.getElementById(strArea).style.background = '#999999';}// LAYER functionsfunction hOverLAYER(strArea) {	document.layers[strArea].bgColor = '#000000';}function hOutLAYER(strArea) {	document.layers[strArea].bgColor = '#CC9900';}function hOverSubmenuLAYER(strArea) {	document.layers[strArea].bgColor = '#FFCC00';}function hOutSubmenuLAYER(strArea) {	document.layers[strArea].bgColor = '#999999';}function performJump (destUrl){	// if the url begins with 'www', 'http://', or 'https://' we need to open a popUp window	if ((destUrl.indexOf("www") == 0) || (destUrl.indexOf("http://") == 0) || (destUrl.indexOf("https://") == 0)) {		// if the url begins with www, we need to add 'http://' to the beginning		if (destUrl.indexOf("www") == 0) {			destUrl = "http://" + destUrl;		}		// check if the url contains the current hostname		if (destUrl.indexOf(location.hostname) != -1) {			// contains hostname, don't open a popup			if (name == "topContent") {				parent.location.href = destUrl;			} else {				location.href = destUrl;			}		} else {			if (!window.popupWindow) {				// window hasn't been defined				popupWindow = window.open(destUrl,"","width=600,height=450,left=100,top=75,screenX=100,screenY=75,scrollbars,location,menubar,status,toolbar,resizable=1");			} else {				// window has been defined				if (!popupWindow.closed) {					// still open					popupWindow.focus();					popupWindow.location.href = destUrl;				} else {					popupWindow = window.open(destUrl,"","width=600,height=450,left=100,top=75,screenX=100,screenY=75,scrollbars,location,menubar,status,toolbar,resizable=1");				}			}		}	} else if (destUrl.charAt(0) == "/") {		if (name == "topContent") {			parent.location.href = destUrl;		} else {			location.href = destUrl;		}	} else if (destUrl.indexOf(".cat.com") != -1) {		window.location.href = destUrl;	} else if (destUrl.charAt(0) == "#") {		window.location.href = destUrl;	} else {		if (destUrl.indexOf("://") == -1) {			destUrl = 'http://' + destUrl;		}		if (!window.popupWindow) {			// window hasn't been defined			popupWindow = window.open(destUrl,"","width=600,height=450,left=100,top=75,screenX=100,screenY=75,scrollbars,location,menubar,status,toolbar,resizable=1");		} else {			// window has been defined			if (!popupWindow.closed) {				// still open				popupWindow.focus();				popupWindow.location.href = destUrl;			} else {				popupWindow = window.open(destUrl,"","width=600,height=450,left=100,top=75,screenX=100,screenY=75,scrollbars,location,menubar,status,toolbar,resizable=1");			}		}	}}function getSelectedValue(selectBox) {	var selValue;	var selIndex = selectBox.selectedIndex;	if(selIndex != -1) {		selValue = selectBox.options[selIndex].value;	}	if (selValue != "") {		performJump(selValue);	}}function unloadBody() {	if (window.popupWindow) {		popupWindow.close();	}}function changeLanguage() {    // alter the action and submit the form    document.dsf.action = "/dsf/language";    document.dsf.submit();}if (self == top) {	if (self.name != "dsfFrame") {		self.name = "dsfFrame";	}} else {	if (self.name == "topContent") {		// on the application page self.name = topContent, parent.name = dsfFrame		if (parent.name != "dsfFrame") {			parent.name = "dsfFrame";		}	} else {		// framed by outside application		if (self.name != "dsfFrame" && self.name != "main_category") {			self.name = "dsfFrame";		}	}}function ValidateSurvey(aForm){	if (IsFieldEmpty(aForm.Q5303)){       alert('Email Address has not been answered.');		window.location="#Q1";		return false;	}	if (IsFieldEmpty(aForm.Q5304)){       alert('First Name has not been answered.');		window.location="#Q2";		return false;	}	if (IsFieldEmpty(aForm.Q5305)){       alert('Last Name has not been answered.');		window.location="#Q3";		return false;	}	if (IsFieldEmpty(aForm.Q5306)){       alert('Company Name has not been answered.');		window.location="#Q4";		return false;	}	if (aForm.Q5307.selectedIndex == 0){       alert('Primary Industry must have at least one option selected.');		window.location="#Q5";		return false;	}	if (IsFieldEmpty(aForm.Q5308)){       alert('Zip Code has not been answered.');		window.location="#Q6";		return false;	}return true;}function ValidateSurvey(aForm){	if (IsFieldEmpty(aForm.Q7698)){       alert('Email Address has not been answered.');		window.location="http://www.zieglercat.com/TechCenter/gps/default.cfm?pid=1.13.1#Q1";		return false;	}	if (IsFieldEmpty(aForm.Q7699)){       alert('First Name has not been answered.');		window.location="http://www.zieglercat.com/TechCenter/gps/default.cfm?pid=1.13.1#Q2";		return false;	}	if (IsFieldEmpty(aForm.Q7700)){       alert('Last Name has not been answered.');		window.location="http://www.zieglercat.com/TechCenter/gps/default.cfm?pid=1.13.1#Q3";		return false;	}	if (IsFieldEmpty(aForm.Q7701)){       alert('Company Name has not been answered.');		window.location="http://www.zieglercat.com/TechCenter/gps/default.cfm?pid=1.13.1#Q4";		return false;	}	if (aForm.Q7702.selectedIndex == 0){       alert('Primary Industry must have at least one option selected.');		window.location="http://www.zieglercat.com/TechCenter/gps/default.cfm?pid=1.13.1#Q5";		return false;	}	if (IsFieldEmpty(aForm.Q7703)){       alert('Zip Code has not been answered.');		window.location="http://www.zieglercat.com/TechCenter/gps/default.cfm?pid=1.13.1#Q6";		return false;	}return true;}_uacct = "UA-508343-8";urchinTracker();
