// 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 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";		}	}}//---- Old GA tracking//_uacct = "UA-508343-4";//urchinTracker();function flipshow(column,linkID){		//this value can be fixed based on the max no.of specs returned for the given model		leng = 150;		if (column==0)			otherColumn=1;		else 			otherColumn=0;		for (i = 0; i < leng; i++) {						theId = "column_" + column + "_" + i;			theOtherId = "column_" + otherColumn + "_" + i;						show(theId);			hide(theOtherId);		}		otherLinkID="none";		if (linkID=="metricLink") otherLinkID="usLink";		if (linkID=="usLink") otherLinkID="metricLink";		link1=document.getElementById(linkID);		link2=document.getElementById(otherLinkID);				toggleLink(link1,link2);	}			function flip(column,linkID){		leng = 50;		if (column==1){			column2=2;			column3=3;			otherColumn=4;			otherColumn2=5;			otherColumn3=6;		}		else {			column=4;			column2=5;			column3=6;			otherColumn=1;			otherColumn2=2;			otherColumn3=3;		}		for (i = 0; i < leng; i++) {			theId = "column_" + column + "_" + i;			theId2 = "column_" + column2 + "_" + i;			theId3 = "column_" + column3 + "_" + i;			theOtherId = "column_" + otherColumn + "_" + i;			theOtherId2 = "column_" + otherColumn2 + "_" + i;			theOtherId3 = "column_" + otherColumn3 + "_" + i;			show(theId);			show(theId2);			show(theId3);			hide(theOtherId);			hide(theOtherId2);			hide(theOtherId3);		}		otherLinkID="none";		if (linkID=="metricLink") {			otherLinkID="usLink";		}		if (linkID=="usLink") {			otherLinkID="metricLink";		}				link1=document.getElementById(linkID);		link2=document.getElementById(otherLinkID);		toggleLink(link1,link2);	}	function hide(theId){		if (document.getElementById(theId)!=null)			document.getElementById(theId).style.display = 'none'; 	}	function show(theId){		if (document.getElementById(theId)!=null)			document.getElementById(theId).style.display = '';	}	function toggleLink (link1,link2) {		//enableLink (link2)		link2.disabled = false;		link1.disabled = true;	}	function enableLink (link) {  		link.onclick = link.oldOnClick ? link.oldOnClick : null;		if(link.style)    		link.style.cursor = document.all ? 'hand' : 'pointer';	}		function openPopupPrint(url,param,action) {		window.open('http://imagetrend.com/CMSZiegler/@resource/CATProducts/printFriendly.cfm?pid=1.10.1&menu=17204'+param, "win",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=650,height=600');	}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;}

