		var imgList;
		var imgCount;
		var iens6 = true;
		var xmlHttp = null;
		var curEVT = 'Y';
		var newOPT;
		var sc=0; 
		var wOpen = false;
		var wH;
		ie = true;
		var arrGrpSet = '';
		arrGrpSet.length = 10;
		var configured ='<img border="0" src="http://www.colfax-intl.com/images/checksmallblack.gif" title="Configured!">&nbsp;<font class="stdLabel">this component is configured...</font>';
		var not_configured ='<img border="0" src="http://www.colfax-intl.com/images/dotred.gif" title="NOT Configured!">&nbsp;<font class="stdLabel">this component has not been configured...</font>';
		function GetXmlHttp(verb,url){
			var request = null;
	       //Create XmlHttpxmlHttp object
	       var ua = navigator.userAgent.toLowerCase();
	       if (window.XMLHttpRequest) //IE7, Safari, Mozilla
	       {
	           request = new XMLHttpRequest();
	       }
	       else //IE5, IE6
	       {
	           if (ua.indexOf('msie 5') == -1)
	             request = new ActiveXObject("Msxml2.XMLHTTP");
	           else
	             request = new ActiveXObject("Microsoft.XMLHTTP");
	       }
	       request.open(verb.toUpperCase(),url,true);
	       if (verb.toUpperCase() == "POST") 
	           request.setRequestHeader("Content-type","application/x-www-form-urlencoded");
	       return request;
	    }
		
		function confString_3(frmNDX)
		{
			var selPID = '0'
			var selItem = 0;
			var selValue = '0';
			var selEl = eval('document.Configurator_0.elements.length');
			var isSelected = false;
			var selString = parseInt(eval('document.Configurator_0.sysQTY.value'))+'-'+parseInt(eval('document.Configurator_0.SysID.value'))+';';
			for (i = 0 ; i < (selEl); i++)
			{
				if (eval('document.Configurator_0.elements['+i+'].type.substring(0,6)') == "select"){
					if (eval('document.Configurator_0.elements['+i+'].name.substring(0,3)')!='sel'){
						isSelected = true;								
					}	
				}
				if (isSelected){
					selItem = eval('document.Configurator_0.elements['+i+'].selectedIndex');
					selValue = eval('document.Configurator_0.elements['+i+'].options['+selItem+'].value');
					if(parseFloat(selValue) < 0){
						return("Configuration contains invalid component")
					}
					selString += selValue+';'
				}	
				isSelected = false;	
			}
			return(selString)
		}
		
		function confString_4(){
				var selPID = '0'
				var selItem = 0;
				var selValue = '0';
				var selCat = '0';
				var selEl = '';
				var isSelected = false;
				var selString = '';
				for (frmNDX = 0 ; frmNDX < (frmCount); frmNDX++)
				{
					selEl = eval('document.Configurator_0.elements.length');
					//alert('SysID '+parseInt(eval('document.'+frmList[frmNDX]+'.SysID.value')));
					if(parseInt(eval('document.Configurator_0.SysID.value'))>500)
					{
						//alert('Form '+parseInt(frmNDX)+' SysID '+parseInt(eval('document.'+frmList[frmNDX]+'.SysID.value')));
						selString += parseInt(eval('document.Configurator_0.sysQTY.value'))+'-'+parseInt(eval('document.Configurator_0.SysID.value'))+'-'+parseInt(eval('document.Configurator_0.QID.value'))+';';
						for (i = 0 ; i < (selEl); i++)
						{
							
							if (eval('document.Configurator_0.elements['+i+'].type.substring(0,6)') == "select"){
								if (eval('document.Configurator_0.elements['+i+'].name.substring(0,3)')!='sel'){
								isSelected = true;								
								}								
							}
							if (isSelected){
									
								selItem = eval('document.Configurator_0.elements['+i+'].selectedIndex');
								selValue = eval('document.Configurator_0.elements['+i+'].options['+selItem+'].value');
								selCat = eval('document.Configurator_0.elements['+i+'].name');
								if(parseFloat(selValue) < 0){
									return("Configuration contains invalid component")
								}
								selString += selCat+'-'+selValue+';'
							}	
							isSelected = false;	
							if(selEl-i==1){
								selString +='|';
							}
						}						
					}					
				}				
				return(selString)
			}
	
		function get_ConfCost(frmNDX){
	    	var thisSel;
			var SelVal;
			var thisSID = 'SID=' + parseInt(eval('document.Configurator_0.SysID.value'));
			thisSID += '&fNDX='+parseInt(frmNDX);
			thisSel = confString_3(frmNDX);			
			var params  = encodeURI(thisSID + "&Conf=" + thisSel );
			xmlHttp = GetXmlHttp("GET","AJAX_Conf_getConfigurationCost.asp?"+params);
			xmlHttp.onreadystatechange = osc_ConfCost_2;
			xmlHttp.send(null);
    	}
    
	
		function osc_ConfCost_2(){
			if (xmlHttp.readyState == 4)
			{   
				if (xmlHttp.status == 200)
				{
	           		var msg;
					var subMsg;
					var thisRow;
					var partRow;
					var thisCost = 0;
					var frmNDX = 0;
					var thisCostBox;
					var thisCostDisplay;
					msg = xmlHttp.responseText;
					subMsg = msg.substring(0,7);
					if(subMsg=='Nothing')
					{
						alert('Cost of System could not be calculated');
					}else{	
						subMsg = parser(msg, '|');
						thisCost = subMsg[2];
						thisCostBox = eval('document.Configurator_0.sysCOST')
						thisCostDisplay = eval('document.Configurator_0.sysCOSTDisp')
						thisCostBox.value = thisCost;
						thisCostDisplay.value = formatCurrency(thisCost);
						//Tip('Cost as Configured is '+thisCostDisplay.value );
						//calc_ProjectCost();
					}	
				}else{
					alert(xmlHttp.responseText);
				}
			}
			
		}	
		
		function sel_BladeBase(selNDX)
		{
			var bladeDDL = eval('document.Configurator_0.selBladeBase_0');
			bladeDDL.selectedIndex = 0;
			for (Count=0; Count < bladeDDL.length; Count++)  {
				if (parseInt(bladeDDL.options[Count].value)==parseInt(selNDX)){		
					bladeDDL.selectedIndex = Count;			
					break;
				}	
			}			
			set_BladeBase(0);
		}
		
		
		function set_BladeBase(frmNDX)
		{
			var selPID = '0'
			var selItem = 0;
			var selValue = '0';
			var thisSIDBox = eval('document.Configurator_0.SysID');
			var thisQTYBox = eval('document.Configurator_0.sysQTY');
			//var thisCDispBox = eval('document.Configurator_0.sysCOSTDisp');
			var thisCBox = eval('document.Configurator_0.sysCOST');
			var bladeDDL = eval('document.Configurator_0.selBladeBase_0');
			selItem = bladeDDL.selectedIndex;
			selValue = bladeDDL.options[selItem].value;
			document.getElementById('cpBlade_0').innerHTML = '';
			if(parseFloat(selValue) < 100){
				document.getElementById('selBlade_0').innerHTML = '';
				document.getElementById('confBlade_0').innerHTML = '';
				
				//document.getElementById('stat_0').innerHTML = not_configured;
				thisSIDBox.value = '-1';
				thisQTYBox.value = '0';
				//thisCDispBox.value = formatCurrency('0');
				thisCBox = '0';		
				//calc_ProjectCost();	
			}else{				
				get_thisBladeDefaults(frmNDX,selValue);
			}
		}
		
		function get_thisBladeDefaults(frmNDX,SID){
	    	var thisSel;
			var SelVal;
			var thisSIDBox = eval('document.Configurator_0.SysID');
			var thisQTYBox = eval('document.Configurator_0.sysQTY');
			var thisSID = 'SID=' + parseInt(SID);
			document.getElementById('loadBlade_0').innerHTML = '<img border="0" src="http://www.colfax-intl.com/Images/ProgressBar_ANI.gif">';
			thisSIDBox.value = parseInt(SID);
			thisQTYBox.value = '1';
			thisSID += '&fNDX=1';
			var params  = encodeURI(thisSID);
			xmlHttp = GetXmlHttp("GET","AJAX_Conf_getCXDefault.asp?"+params);
			xmlHttp.onreadystatechange = osc_BladeDefault;
			xmlHttp.send(null);
    	}
		
		function osc_BladeDefault(){
			if (xmlHttp.readyState == 4)
			{   
				if (xmlHttp.status == 200)
				{
	           		var msg;
					var subMsg;
					var arList;
					var arGroup;
					var thisRow;
					var partRow;
					var frmNDX = 0;
					var thisIMG;
					var gScript;
					var thisCONF;
					var thisCopy;
					var replThis = 'copy_2All(1)';
					var replWith = '';
					msg = xmlHttp.responseText;
					subMsg = msg.substring(0,7);
					if(subMsg=='Nothing')
					{
						alert('Blade information could not be loaded');
					}else{	
						subMsg = parser(msg, '|');
						thisCONF = subMsg[1];
						frmNDX = subMsg[2];
						thisIMG = subMsg[4];
						document.getElementById('cpBlade_0').innerHTML = '<font class="stdLabel">Current Cost </font><input type="text" id="sysCOSTDisp" size="16" style="background-color: #FFFFFF; border: 0; font-weight: bold; font-style: normal; font: bold 18px Verdana;" value="please customize">';
						document.getElementById('selBlade_0').innerHTML = thisIMG;
						document.getElementById('confBlade_0').innerHTML = thisCONF;
						get_ConfCost(frmNDX);
						document.getElementById('loadBlade_0').innerHTML = '';
						//document.getElementById('stat_0').innerHTML = configured;
						show_SelSID();
						var allGroups = subMsg[6];
						arList = parser(allGroups,';');
						arrGrpSet = new makeArray(arList.length-1);									
						for(var i=1;i <= arList.length;i++)
						{											
							arGroup = parser(arList[i],',');
							arrGrpSet[i-1] = new makeArray(arGroup.length-1);
							for(var y=1;y <= arGroup.length;y++)
							{
								arrGrpSet[i-1][y-1] = arGroup[y];
							}						
						}						
					}	
				}else{
					alert(xmlHttp.responseText);
				}
			}
			
		}	
		
		
		
		function calc_ProjectCost(){
			var thisQTY = 0;
			var thisCost = 0;
			var thisSTot = 0;
			var totCount = 0;
			var totCost = 0;
			/*
			if (parseInt(eval('document.Configurator_0.sysQTY.value')) > 0){
				thisQTY = parseInt(eval('document.Configurator_0.sysQTY.value'));
				thisCost = parseFloat(eval('document.Configurator_0.sysCOST.value'));
				thisSTot = thisQTY * thisCost;
				totCount += parseInt(eval('document.Configurator_0.sysQTY.value'));
				totCost +=  thisSTot;
			}	
			*/
		}	
	
		function displayPopup(url, height, width, wTitle) {
			lt = (screen.width) ? (screen.width-width)/2 : 0;
			ht = (screen.height) ? (screen.height-height)/2 : 0;
			properties = "toolbar=0,location=0,resizable,scrollbars=1,height="+height;
			properties = properties + ",width=" + width;
			properties = properties + ",left="+lt+",top="+ht;
			popupHandle = open(url, wTitle, properties);
			return(popupHandle);
		}
		
				
		function grpSet(thisGroup,pGroup){
			var selItemNDX = 0;
			var isSelected = false;
			var selEl = document.Configurator_0.elements.length;
			var howMany = '';
			var elCount = 0;
			
			for (i = 0 ; i < (selEl); i++)
			{	
				isSelected = false;

				if(!iens6){
					if (document.Configurator_0.elements[i].type == "select-one"){
						isSelected = true;
					}else{
						isSelected = false;
					}
				}else{
					var selNDX, selResult;
					selNDX = "" + document.Configurator_0.elements[i].selectedIndex;
					(selNDX == "undefined" || selNDX == "null" ) ? selResult = "noselect" : selResult = "select";
					if (selResult == "select"){
						isSelected = true;
					}else{
						isSelected = false;
					}	
				}
				var bgColor = '#F1F3C3';
				if (isSelected){
					if(document.Configurator_0.elements[i].name == pGroup){
						selItemNDX = document.Configurator_0.elements[i].selectedIndex;
						document.Configurator_0.elements[i].style.backgroundColor= bgColor;
					}else{
						for (var x = 0; x <= arrGrpSet[thisGroup-1].length; x++)
						{
							if(document.Configurator_0.elements[i].name == arrGrpSet[thisGroup-1][x]){
								document.Configurator_0.elements[i].style.backgroundColor= bgColor;
								document.Configurator_0.elements[i].selectedIndex = selItemNDX;
								x = arrGrpSet[thisGroup-1].length;
							}	
						}
					}
				}
			}
			get_ConfCost(0);
			
		}
		
		function isNumberString (InString)  {
			if(InString.length==0) return (false);
				RefString="1234567890";
				for (Count=0; Count < InString.length; Count++)  {
					TempChar= InString.substring (Count, Count+1);
					if (RefString.indexOf (TempChar, 0)==-1)  return (false);
				}
				return (true);
			}
			
		function formatCurrency(num) {
			num = num.toString().replace(/\$|\,/g,'');
			if(isNaN(num))	num = "0";
			sign = (num == (num = Math.abs(num)));
			num = Math.floor(num*100+0.50000000001);
			cents = num%100;
			num = Math.floor(num/100).toString();
			if(cents<10) cents = "0" + cents;
			for (var i = 0; i < Math.floor((num.length-(1+i))/3); i++)
			num = num.substring(0,num.length-(4*i+3))+','+
			num.substring(num.length-(4*i+3));
			return (((sign)?'':'-') + '$' + num + '.' + cents);
		}

			
		function parser(InString, Sep){
			NumSeps=1;
			for (Count=1; Count < InString.length; Count++)  {
				if (InString.charAt(Count)==Sep)
				NumSeps++;
			}
			parse = new makeArray (NumSeps);
			Start=0; Count=1; ParseMark=0;
			LoopCtrl=1;
			while (LoopCtrl==1)  {
				ParseMark = InString.indexOf(Sep, ParseMark);
				TestMark=ParseMark+0;
				if ((TestMark==0) || (TestMark==-1)){
					parse[Count]= InString.substring (Start, InString.length);
					LoopCtrl=0;
					break;
				}
				parse[Count] = InString.substring (Start, ParseMark);
				Start=ParseMark+1;
				ParseMark=Start;
				Count++;
			}
			parse[0]=Count;
			return (parse);
		}

		function logon(){
			var cpWin=dhtmlwindow.open("LogonRegister", "iframe", "RQIDcommon.asp", "Colfax International Logon or Register", "width=650px,height=600px,resize=1,scrolling=1,center=1", "logon");
              
        }	
		
	
		function get_PConfSummary(){
	    	var thisSel;
			var SelVal;
			var thisPConf = confString_4();
			var thisCV = document.Configurator_0.CID.value;
			document.Configurator_0.ProConf.value = thisPConf;		
			var params  = encodeURI("CV="+thisCV + "&Conf=" + thisPConf+"&PT=");
			xmlHttp = GetXmlHttp("GET","AJAX_confirmCXConfiguration.asp?"+params);
			xmlHttp.onreadystatechange = osc_PConfSum;
			xmlHttp.send(null);
    	}		
			
		function submit_PConf(PQTY){
	    	var thisSel;
			var SelVal;
			var thisPConf = confString_4();
			var thisCV = document.Configurator_0.CID.value;
			document.Configurator_0.ProConf.value = thisPConf;
			var thisNotes = document.getElementById("txtNotes").value;		
			var thiseMail =	document.getElementById("chkEM").checked;	
			var thisCC = document.getElementById("chkEMCC").checked;	
			var thiseMailCC = document.getElementById("emCC").value;	
			var thisRFQ = document.getElementById("chkRFQ").checked;	
			var params  = encodeURI("CV="+thisCV + "&Conf=" + thisPConf+"&PT=n&PQTY=1&N="+thisNotes+"&EM="+thiseMail+"&CC="+thisCC+"&EMCC="+thiseMailCC+"&RFQ="+thisRFQ);
			xmlHttp = GetXmlHttp("GET","AJAX_Conf_saveCXConfiguration.asp?"+params);
			xmlHttp.onreadystatechange = osc_PConfSum;
			xmlHttp.send(null);
    	}		
			
		function osc_PConfSum(){
			if (xmlHttp.readyState == 4)
			{   
				if (xmlHttp.status == 200)
				{
	           		var msg;
					msg = xmlHttp.responseText;
					document.getElementById("custData").innerHTML='';
					if(msg=='Nothing')
					{
						alert('System configuration could not be submitted');
					}else{	
						document.getElementById("custData").innerHTML=msg;
						document.getElementById("confBlade_0").innerHTML='';
						document.Configurator_0.selBladeBase_0.length = 0;
						window.scroll(0,0);
					}	
				}else{
					alert(xmlHttp.responseText);
				}
			}
			
		}	
		
		function processForm(what)
		{
			var goodData = false;
			var mySysName = '';
			var thisConf = '';
			var thisForm = document.Configurator_0;
			switch (what)
			{
				
				case 0: //submit quote reuest
					var bladeDDL = eval('document.Configurator_0.selBladeBase_0');
					if(bladeDDL.selectedIndex >= 1)
					{
						document.getElementById('sysMSG').innerHTML = '';
						thisForm.SystemName.value = 'CX Solution';
						thisForm.PrintStatus.value = 'Submit';
						submit_PConf('1');	
					}else{
						alert("Please select a system from the 'Selected Model' dropdown box on top first, then customize and then click this button again.\n Thank you.");
						bladeDDL.focus();
					}	
					break;	
				case 1:
					if (thisForm.FName.value.length < 1 || thisForm.FName.value.indexOf ('n/a', 0) != -1 )
					{
						alert ('Please enter a First Name')
						thisForm.FName.focus()
						return(false);
					}
					if (thisForm.LName.value.length < 1 || thisForm.LName.value.indexOf ('n/a', 0) != -1 ){
						alert ('Please enter a Last Name')
						thisForm.LName.focus()
						return(false);
					}
					if (thisForm.Company.value.length < 1 || thisForm.Company.value.indexOf ('n/a', 0) != -1 )
					{
						alert ('Please enter a Company Name')
						thisForm.Company.focus()
						return(false);
					}
					if (thisForm.Address.value.length < 1 || thisForm.Address.value.indexOf ('n/a', 0) != -1 ){
						alert ('Please enter a Address')
						thisForm.Address.focus()
						return(false);
					}						
					
					if (thisForm.City.value.length < 1 || thisForm.City.value.indexOf ('n/a', 0) != -1 )
					{
						alert ('Please enter a City')
						thisForm.City.focus()
						return(false);
					}
					if (thisForm.State.value.length < 1 || thisForm.State.value.indexOf ('n/a', 0) != -1 ){
						alert ('Please enter a State')
						thisForm.State.focus()
						return(false);
					}
					if (thisForm.Zip.value.length < 1 || thisForm.Zip.value.indexOf ('n/a', 0) != -1 )
					{
						alert ('Please enter a ZIP')
						thisForm.Zip.focus()
						return(false);
					}
					if (thisForm.Country.value.length < 1 || thisForm.Country.value.indexOf ('n/a', 0) != -1 )
					{
						alert ('Please enter a Country')
						thisForm.Country.focus()
						return(false);
					}
					
					if (thisForm.Telephone.value.length < 10 || thisForm.Telephone.value.indexOf ('n/a', 0) != -1 )
					{
						alert ('Please enter a Telephone number')
						thisForm.Telephone.focus()
						return(false);
					}
					
					if 	(document.forms[0].Email.value.length > 100 || document.forms[0].Email.value.length < 6 || document.forms[0].Email.value.indexOf ('@', 0) == -1 || document.forms[0].Email.value.indexOf('.', 0) == -1){
						alert ('Please enter a valid email address')
						thisForm.Email.focus()
						return(false);
					}
					cust_Registration();
					break;
				case 2:
					if 	(thisForm.EmailL.value.length > 100 || thisForm.EmailL.value.length < 6 || thisForm.EmailL.value.indexOf ('@', 0) == -1 || thisForm.EmailL.value.indexOf('.', 0) == -1){
						alert ('Please enter a valid email address')
						thisForm.EmailL.focus()
						return(false);
					}
					cust_Logon();
					break;
				case 3:
					cust_EmPwd();
					break;		
				}			
			}	

			function getParam(fType)
			{
				var thisParm = '';
				var selItem = 0;
				var thisEntry = '';
				var thisForm = document.Configurator_0;
				switch (fType)
				{					
					case 1: //submitting registration
						thisEntry = thisForm.FName.value;
						if (thisEntry!=null && thisEntry!='')
    					{
    						thisParm = 'FName=' + thisEntry;
    					}else{
							thisParm = 'FName=no Data';
						}
						thisEntry = thisForm.LName.value;
						if (thisEntry!=null && thisEntry!='')
    					{
    						thisParm += '&LName=' + thisEntry;
    					}else{
							thisParm += '&LName=no Data';
						}						
						thisEntry = thisForm.Company.value;
						if (thisEntry!=null && thisEntry!='')
    					{
    						thisParm += '&CName=' + thisEntry;
    					}else{
							thisParm += '&CName=no Data';
						}						
						thisEntry = thisForm.Email.value;
						if (thisEntry!=null && thisEntry!='')
    					{
    						thisParm += '&eMail=' + thisEntry;
    					}else{
							thisParm += '&eMail=no Data';
						}						
						thisEntry = thisForm.Telephone.value;
						if (thisEntry!=null && thisEntry!='')
    					{
    						thisParm += '&Tel=' + thisEntry;
    					}else{
							thisParm += '&Tel=no Data';
						}						
						thisEntry = thisForm.Address.value;
						if (thisEntry!=null && thisEntry!='')
    					{
    						thisParm += '&Add=' + thisEntry;
    					}else{
							thisParm += '&Add=no Data';
						}						
						thisEntry = thisForm.City.value;
						if (thisEntry!=null && thisEntry!='')
    					{
    						thisParm += '&City=' + thisEntry;
    					}else{
							thisParm += '&City=no Data';
						}		
						thisEntry = thisForm.State.value;
						if (thisEntry!=null && thisEntry!='')
    					{
    						thisParm += '&State=' + thisEntry;
    					}else{
							thisParm += '&State=no Data';
						}
						thisEntry = thisForm.Zip.value;
						if (thisEntry!=null && thisEntry!='')
    					{
    						thisParm += '&Zip=' + thisEntry;
    					}else{
							thisParm += '&Zip=no Data';
						}
						thisEntry = thisForm.Country.value;
						if (thisEntry!=null && thisEntry!='')
    					{
    						thisParm += '&Country=' + thisEntry;
    					}else{
							thisParm += '&Country=no Data';
						}						
						thisEntry = thisForm.Pword.value;
						if (thisEntry!=null && thisEntry!='')
    					{
    						thisParm += '&Pwd=' + thisEntry;
    					}else{
							thisParm += '&Pwd= ';
						}						
						thisParm += '&FT=' + parseInt(fType);		
						break;	
					case 2: //submitting logon
						thisParm = 'eMail=' + thisForm.EmailL.value;
						thisParm += '&Pwd=' + thisForm.PwordL.value;
						thisParm += '&FT=' + parseInt(fType);		
						break;	
					case 3: //submitting mail PWD request
						thisParm = 'eMail=' + thisForm.EmailP.value;
						thisParm += '&FT=' + parseInt(fType);	
						break;	
				}
				return(thisParm);
			}
			
			
			function cust_Registration()
			{
	    		var thisSel;
				var SelVal;
				var params  = encodeURI(getParam(1));				
				xmlHttp = GetXmlHttp("GET","AJAX_Cust_Register_TabConf.asp?"+params);
				xmlHttp.onreadystatechange = osc_CustReg;
				xmlHttp.send(null);
    		}
			
			function osc_CustReg()
			{
				if (xmlHttp.readyState == 4)
				{   
					if (xmlHttp.status == 200)
					{
		           		var msg;
						var subMsg;
						var thisRow;
						var partRow;
						var thisCost = 0;
						var expD = new Date('2020/12/31');
						msg = xmlHttp.responseText;
						subMsg = msg.substring(0,7);
						if(subMsg=='Nothing')
						{
							alert('Could not Register.');
						}else{	
							subMsg = msg.split('|');
							document.getElementById('custData').innerHTML = subMsg[0];	
							document.Configurator_0.CV.value=subMsg[1];		
							document.Configurator_0.CID.value=subMsg[1];				
							document.cookie="NRQID="+subMsg[2]+";expires="+expD.toGMTString()+";path=/cxdb";
						}	
					}else{
						alert(xmlHttp.responseText);
					}
				}
			}
			
			function cust_Logon()
			{
	    		var thisSel;
				var SelVal;
				var params  = encodeURI(getParam(2));				
				xmlHttp = GetXmlHttp("GET","AJAX_Cust_Register_TabConf.asp?"+params);
				xmlHttp.onreadystatechange = osc_CustLogon;
				xmlHttp.send(null);
    		}
			
			function osc_CustLogon()
			{
				if (xmlHttp.readyState == 4)
				{   
					if (xmlHttp.status == 200)
					{
		           		var msg;
						var subMsg;
						var thisRow;
						var partRow;
						var thisCost = 0;
						var expD = new Date('2020/12/31');
						msg = xmlHttp.responseText;
						subMsg = msg.substring(0,7);
						if(subMsg=='Nothing')
						{
							alert('Invalid credentials.');
						}else{	
							subMsg = msg.split('|');
							document.getElementById('custData').innerHTML = subMsg[0];	
							document.Configurator_0.CV.value=subMsg[1];			
							document.Configurator_0.CID.value=subMsg[1];	
							document.cookie='NRQID='+subMsg[2]+';expires='+expD.toGMTString()+';path=/cxdb';
						
						}	
					}else{
						alert(xmlHttp.responseText);
					}
				}
			}
			
		
			function cust_EmPwd()
			{
	    		var thisSel;
				var SelVal;
				var params  = encodeURI(getParam(3));				
				xmlHttp = GetXmlHttp("GET","AJAX_Cust_Register_TabConf.asp?"+params);
				xmlHttp.onreadystatechange = osc_CustEmPwd;
				xmlHttp.send(null);
    		}
			
			function osc_CustEmPwd()
			{
				if (xmlHttp.readyState == 4)
				{   
					if (xmlHttp.status == 200)
					{
		           		var msg;
						var subMsg;
						msg = xmlHttp.responseText;
						subMsg = msg.substring(0,7);
						if(subMsg=='Nothing')
						{
							alert('Could not email password!');
						}else{	
							alert(msg);
						}	
					}else{
						alert(xmlHttp.responseText);
					}
				}
			}
			
			function TnC(){
				if(wOpen){
					wH.close()
					wOpen = false;
				}	
				wH = displayPopup('http://www.colfax-intl.com/DL_Documents/Colfax International Terms and Conditions of Sale.pdf',480,620,'Terms_and_Conditions');
				wOpen = true;
			}

			
			function pStmnt(){
				if(wOpen){
					wH.close()
					wOpen = false;
				}	
				wH = displayPopup('http://www.colfax-intl.com/DL_Documents/ColfaxInternationalSiteUsePrivacyPolicy.pdf',480,620,'Privacy_Statement')
				wOpen = true;
			}	
	
			function replAll(strTarget,strOld,strNew)
			{
				var strText = strTarget;
				var intIndexOfMatch = strText.indexOf(strOld);
				while (intIndexOfMatch != -1)
				{
					strText = strText.replace(strOld,strNew)
					intIndexOfMatch = strText.indexOf(strOld);
				}
				return( strText );
			}
			
		function makeArray2(X,Y)
		{
			var Count;
			this.length = X;
			for (var Count =0; Count <= X; Count++)
				this[Count] = new makeArray(Y);
		}
			
		function makeArray(NumElements)
		{
			var Count;
			this.length = NumElements;
			for (Count = 1; Count <= NumElements; Count++)
				this[Count] = 0; return(this);
		}	
		
		function show_SelSID()
		{
			var selPID = '0'
			var selItem = 0;
			var selValue = '0';
			var bladeDDL = eval('document.Configurator_0.selBladeBase_0');
			selItem = bladeDDL.selectedIndex;
			selValue = bladeDDL.options[selItem].value;
			document.Configurator_0.sysCOSTDisp.title = 'Current selection: SysID '+parseInt(selValue);
		}
		
		var hasIMG=false;
		var defIMG='';
		var frmCount = 1;
		var frmList = new makeArray(frmCount);
