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=800,height=600,left=100,top=20,screenX=100,screenY=75,scrollbars,location,menubar,status,toolbar,resizable=1");
	
				} else {
	
					// window has been defined
	
					if (!popupWindow.closed) {
	
	
						popupWindow.focus();
	
						popupWindow.location.href = destUrl;
	
					} else {
						popupWindow = window.open(destUrl,"","width=800,height=600,left=100,top=20,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=800,height=600,left=100,top=20,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=800,height=600,left=100,top=20,screenX=100,screenY=75,scrollbars,location,menubar,status,toolbar,resizable=1");
	
				}
	
			}
	
	
	
		}
	
	}
	  
		function doFormSubmit(frm,partialURL)
		{
		    frm.action = getBaseURL()+partialURL;
		    frm.submit();
		}
	
	
	function getBaseURL()
	{ 
	   return "https://warrencat.cat.com/DSFUnbundled/";
	 //	 return "https://qawarrencat.rd.cat.com/DSFUnbundled/";
	}
	
	
	function goToURL(externalURL)
	{

	     location.href=getBaseURL()+externalURL;
	}
	  
	
	function setLocation(endOfURL) {
			window.open(getBaseURL() + endOfURL,"","width=800,height=600,left=100,top=20,screenX=100,screenY=75,scrollbars,location,menubar,status,toolbar,resizable=1");
		}
	
	function getURLBasedOnAppName(appName)
	{
	    if (appName == 'Ind/Petro Spec S...')
			return 'http://industrialwizard.catmms.com/catwizards/industrialWizard/jsp/dealerStoreFront.jsp';
		else if (appName == 'Marine Spec Shee...' )	
		    return 'http://marinewizard.catmms.com/catwizards/marineWizard/jsp/dealerStoreFront.jsp';
		else if (appName == 'Engine Power Wiz...')
		    return 'http://vidswizard.catmms.com/catwizards/vidswizard/jsp/dealerStoreFront.jsp';   
		else if (appName == 'Blanchard')    
			return "http://dsfunbundledt3.ecorp.cat.com/blanchard";
		else if (appName == 'Portal Lite' )	
			return "http://dsfunbundledt3.ecorp.cat.com/portal-lite";
		else if (appName == 'SáOáS Services Web')
                  return "https://infotrak.cat.com/ItrkProd/OilAnalyse_Pilot.aspx";
           else if (appName == 'newbuildnquote')
                  return "http://buildnquote-rp.cat.com";
           else
              return ' ';    
		    
	}
	
	
	function setValueInFrame(selectBox){
	   
		var selValue;
		var tmpValue;
		var partialURL;
		var endOfUrl;
		var selIndex = selectBox.selectedIndex;
	
		if (selIndex != -1) {
	
			selValue = selectBox.options[selIndex].value;
	        tmpValue = getURLBasedOnAppName(selValue);
		  selectBox.selectedIndex = 0;
	        if (tmpValue != ' ')
	        {
	        //  alert(tmpValue);
			  window.frames["mainFrame"].location.href =tmpValue;
		    }
			else{  	           
					partialURL = selValue.substring(0, selValue.indexOf('=')+1);
					endOfUrl = selValue.substr(selValue.indexOf('=')+1);
					selValue = partialURL + endOfUrl;
					//alert(selValue);
					window.frames["mainFrame"].location.href =getBaseURL()+selValue;
			 	}
		 }
	}
	
	function setIframeSrc(pageName) {
	 // leftnavFrame   = document.frames[0].document.getElementById("insideFrame1");
	 // leftnavFrame.setAttribute("src", "leftnavigation.html");
	 // unbundledFrame = document.frames[0].document.getElementById("insideFrame2");
	 // unbundledFrame.setAttribute("src", getBaseURL()+pageName);
	  top.frames[0].frames[0].location.href="leftnavigation.html";
	  top.frames[0].frames[1].location.href=getBaseURL()+pageName;
	}
	  
	
	
	function setExternalURLToIframe(externalURL){
	 // unbundledFrame = document.getElementById("mainFrame");
	  //unbundledFrame.setAttribute("src", externalURL);				
	  window.frames["mainFrame"].location.href=externalURL;
	}
	
	
	
		function loadSelectBoxChanges(selectBox)
		{
					var selValue;
					var tmpValue;
					var partialURL;
					var endOfUrl;
					var selIndex = selectBox.selectedIndex;

					if (selIndex != -1) {
	
							selValue = selectBox.options[selIndex].value;
			
						    if (selValue.length ==  0 )
						      return;
			      
	        				tmpValue = getURLBasedOnAppName(selValue);
					        if (tmpValue != ' ')
							  selValue = tmpValue;
							else{  	           
									partialURL = selValue.substring(0, selValue.indexOf('=')+1);
									endOfUrl = selValue.substr(selValue.indexOf('=')+1);
									selValue = getBaseURL()+partialURL + endOfUrl;
			 					}
		 			}
					selectBox.selectedIndex = 0;
					if (selValue != "") {
						parent.frames[1].location.href=selValue;
					}
		}
	
	
	
	
	
	
	
	 	function getSelectedValue(selectBox) {
		var selValue;
		var tmpValue;
		var partialURL;
		var endOfUrl;
		var selIndex = selectBox.selectedIndex;
	
		if (selIndex != -1) {
	
			selValue = selectBox.options[selIndex].value;
			
		    if (selValue.length ==  0 )
			      return;
			      
	        tmpValue = getURLBasedOnAppName(selValue);
	        if (tmpValue != ' ')
			  selValue = tmpValue;
			else{  	           
					partialURL = selValue.substring(0, selValue.indexOf('=')+1);
					endOfUrl = selValue.substr(selValue.indexOf('=')+1);
					selValue = getBaseURL()+partialURL + endOfUrl;
			 	}
		 }
		selectBox.selectedIndex = 0;
		if (selValue != "") {
	
			performJump(selValue);
	
		}
	
	}