/* 
	 var secureprefix 	 = "http://192.168.1.201";
	 var regularprefix 	 = "http://192.168.1.201";
	 var secure128prefix = "http://192.168.1.201";
	 var archiveprefix   = "http://192.168.1.201";
*/	 

var sessiontoken	= "/s/";
	// var secureprefix = "http://192.168.1.253";
	// var regularprefix = "http://192.168.1.253";

/* Production settings*/
	var secureprefix 	= "https://www.navicpmart.com";
	var regularprefix 	= "http://www.navicpmart.com";
	var secure128prefix = "https://secure.navicpmart.com";
	var archiveprefix   = "http://archive.navicpmart.com";
	var sessiontoken	= "/s/";
/**/

	states = ["AL","AK","AS","AZ","AR","CA","CO","CT","DE","DC","FM","FL","GA","GU","HI","ID","IL","IN","IA","KS","KY","LA","ME","MH","MD","MA","MI","MN","MS","MO","MT","NE","NV","NH","NJ","NM","NY","NC","ND","MP","OH","OK","OR","PW","PA","PR","RI","SC","SD","TN","TX","UT","VT","VI","WA","WV","WI","WY"];

	function trimVar(txt)
	{
		// trim leading spaces
		while(''+txt.charAt(0)==' ')
			txt=txt.substring(1,txt.length);		
			
		// trim trailing spaces
		while(''+txt.charAt(txt.length-1)==' ')
			txt=txt.substring(0,txt.length-1);
			
		return 	txt;
	}

	
	function trim(txtObj)
	{
		// trim leading spaces
		while(''+txtObj.value.charAt(0)==' ')
			txtObj.value=txtObj.value.substring(1,txtObj.value.length);		
			
		// trim trailing spaces
		while(''+txtObj.value.charAt(txtObj.value.length-1)==' ')
			txtObj.value=txtObj.value.substring(0,txtObj.value.length-1);
			
		return 	txtObj.value;
	}

	function open_window(url) 
	{
		if (((new String(url)).indexOf("http") == -1) && ((new String(url)).indexOf("https") == -1))
			url = "http://" + url;
		
		window.open(url,"win",'toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=500,height=450');
	}

	function openDodSession(url) 
	{
		if (((new String(url)).indexOf("http") == -1) && ((new String(url)).indexOf("https") == -1))
			url = "http://" + url;
		
		window.open(url,"win",'toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=800,height=600');
	}


	// This function is used for download spec.
	function open_downloadwindow(url)
	{
		var str = navigator.userAgent; 
		if (navigator.appName != 'Microsoft Internet Explorer')
		{
			linkSubmitForm(url);
		}
		else
		{
			if (((new String(url)).indexOf("http") == -1) && ((new String(url)).indexOf("https") == -1))
			url = regularprefix + url;
		
			window.open(url,"win",'toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=500,height=450'); 
			
		}
	}
	
	function validateEmail(emailAddrObj)
	{
		if (trim(emailAddrObj) == "")
			return true;
		
		txt = new String(emailAddrObj.value);
		txt = txt.toLowerCase();
		
		if ((atPos = txt.indexOf("@"))<1)
			return false;

			return true;
	}

	function emailHasSpaces(emailAddrObj)
	{
		emailString = trim(emailAddrObj);
		
		for (var i=0; i < emailString.length; i++)
		{
			if(emailString.charAt(i) == " ")
			return i+1; 
		}	
		
		return -1;
	}
	
/*
   function isCOTREmail(emailObject){
		var emailString = trim(emailObject);
		
		var extension = emailString.substring(emailString.length - 4,emailString.length);
		var testmartextension = emailString.substring(emailString.length - 12,emailString.length);

		testmartextension = testmartextension.toLowerCase();
		extension = extension.toLowerCase();
		
		return  ((extension == ".gov") || (extension == ".mil") || (testmartextension == "testmart.com"));
	}
*/
	
/*** This array will defined all the pages that need to 
	be served from http://archive.navicpmart.com 
	that is the Document Server which is in the 
	varaible  archiveserver***/
	var archivePages = new Array();
	archivePages[0] = "mfgdocview.cfm";
	archivePages[1] = "spec.cfm";
	archivePages[2] = "mfgcatalogrslt.cfm";	
	archivePages[3] = "catalogrslt.cfm";	

	
	var secPages = new Array();	
	secPages[0] = "personaltmp.cfm";
	secPages[1] = "shippingtmp.cfm";
	secPages[2] = "billingtmp.cfm";
	secPages[3] = "shipdtl.cfm";
	secPages[4] = "payinfo.cfm";
	secPages[5] = "paydtl.cfm";
	secPages[6] = "orderverify.cfm";
	secPages[7] = "reqconfirm.cfm";
	secPages[8] = "loginvalidate.cfm";
	secPages[9] = "registration.cfm";
	secPages[10] = "regconfirm.cfm";
	secPages[11] = "login.cfm";	
	secPages[12] = "shippingmethod.cfm";
	secPages[13] = "creditcard.cfm";
	secPages[14] = "purchaseorder.cfm";
	secPages[15] = "shippinginfo.cfm";
	secPages[16] = "reqcreditaccount.cfm";
	secPages[17] = "otherpayment.cfm";
	secPages[18] = "notices.cfm";
	secPages[19] = "noticestmp.cfm";
	secPages[20] = "myprofile.cfm";
	secPages[21] = "personal.cfm";
	secPages[22] = "shipbill.cfm";	
	secPages[23] = "reqlist.cfm";	
	secPages[24] = "browsertest.cfm";	
	secPages[25] = "selectvalidate.cfm";
	secPages[26] = "salescrquote.cfm";
	secPages[27] = "viewquote.cfm";
	secPages[28] = "salesgenquote.cfm";
	

	// Secure 128 bit pages
	var sec128pages = new Array ();
	sec128pages[0] = "payinfo.cfm";
	sec128pages[1] = "shippinginfo.cfm";
	sec128pages[2] = "orderverify.cfm";
	sec128pages[3] = "reqconfirm.cfm";
	sec128pages[4] = "shipinfo.cfm";
	sec128pages[5] = "paymentmethod.cfm";
	sec128pages[6] = "creditcard.cfm";
	sec128pages[7] = "purchaseorder.cfm";
	sec128pages[8] = "verifycontract.cfm";
	sec128pages[9] = "checkoutcotr.cfm";
	sec128pages[10] = "corporateaccount.cfm";
	sec128pages[11] = "savedshippingaddresses.cfm";
	sec128pages[12] = "milstrip.cfm";
	sec128pages[13] = "editmilstrip.cfm";
	sec128pages[14] = "soldtoinfo.cfm";
	
		
	function isRequiredArchive(actionTxt,targetPageStr)
	{
		for (var i=0; i < archivePages.length ; i++)
		{
			if (((new String(actionTxt)).indexOf(archivePages[i]) > -1) || ((new String(targetPageStr)).indexOf(archivePages[i]) > -1))
			{
					return true;
			}	
		}
		return false;
	
	}

	
	function isRequired128(actionTxt,targetPageStr)
	{
		for (var i=0; i < sec128pages.length ; i++)
		{
			if (((new String(actionTxt)).indexOf(sec128pages[i]) > -1) || ((new String(targetPageStr)).indexOf(sec128pages[i]) > -1))
			{
					return true;
			}	
		}
		
		return false;
	}

	function isSecured(actionTxt,targetPageStr)
	{		
		for (var i=0; i < secPages.length ; i++)
			if (((new String(actionTxt)).indexOf(secPages[i]) > -1) || ((new String(targetPageStr)).indexOf(secPages[i]) > -1))
				return true;
				
		return false;
	}
		

	function setStatus(statusTxt)
	{
		// window.status = statusTxt;
		return true;		
	}



	
	function setSubmitValue(actionTxt,targetPageStr)
	{
		document.forms[1].targetPage.value = targetPageStr;	
		if (actionTxt == "")
			actionTxt = document.forms[1].pageName.value;

		if (isSecured(actionTxt,targetPageStr))
			document.forms[1].action = secureprefix + actionTxt;
		else
		if (isRequiredArchive(actionTxt,targetPageStr))
			document.forms[1].action = archiveprefix + actionTxt;
		else
			document.forms[1].action = regularprefix + actionTxt;

		return true;
	}
	function setSubmitValue0(actionTxt,targetPageStr)
	{
		document.forms[0].targetPage.value = targetPageStr;	
		if (actionTxt == "")
			actionTxt = document.forms[0].pageName.value;

		if (isSecured(actionTxt,targetPageStr))
			document.forms[0].action = secureprefix + actionTxt;
		else
			document.forms[0].action = regularprefix + actionTxt;

		return true;
	}
	function linkSubmitForm0(actionTxt,targetPageStr,paramValue1,paramValue2,paramValue3,paramValue4,paramValue5)
	{
		var str = navigator.userAgent; 
		if (navigator.appName != 'Microsoft Internet Explorer')
		{ 
				document.forms[0].targetPage.value = targetPageStr;	
				document.forms[0].param1.value = paramValue1;
				document.forms[0].param2.value = paramValue2;
				document.forms[0].param3.value = paramValue3;
				document.forms[0].param4.value = paramValue4;
				document.forms[0].param5.value = paramValue5;
		}
		else 
		{
			document.forms[0].targetPage.value = targetPageStr;			
			document.forms[0].param1.value = paramValue1;
			document.forms[0].param2.value = paramValue2;
			document.forms[0].param3.value = paramValue3;
			document.forms[0].param4.value = paramValue4;
			document.forms[0].param5.value = paramValue5;
		}
			
		if (actionTxt == "")
			actionTxt = document.forms[0].pageName.value;

		if (isSecured(actionTxt,targetPageStr))
			document.forms[0].action = secureprefix + actionTxt;
		else
			document.forms[0].action = regularprefix + actionTxt;
			
		document.forms[0].submit();
	}


	function linkSubmitForm(actionTxt,targetPageStr,paramValue1,paramValue2,paramValue3,paramValue4,paramValue5)
	{
		var str = navigator.userAgent; 
		if (navigator.appName != 'Microsoft Internet Explorer')
		{ 
			//if (targetPageStr != null)
				document.forms[1].targetPage.value = targetPageStr;	
			//if (paramValue1 != null)
				document.forms[1].param1.value = paramValue1;
			//if (paramValue2 != null)
				document.forms[1].param2.value = paramValue2;
			//if (paramValue3 != null)
				document.forms[1].param3.value = paramValue3;
			//if (paramValue4 != null)
				document.forms[1].param4.value = paramValue4;
			//if (paramValue5 != null)
				document.forms[1].param5.value = paramValue5;
		}
		else 
		{
			document.forms[1].targetPage.value = targetPageStr;			
			document.forms[1].param1.value = paramValue1;
			document.forms[1].param2.value = paramValue2;
			document.forms[1].param3.value = paramValue3;
			document.forms[1].param4.value = paramValue4;
			document.forms[1].param5.value = paramValue5;
		}
			
		if (actionTxt == "")
			actionTxt = document.forms[1].pageName.value;

		if (isRequired128(actionTxt,targetPageStr))
			document.forms[1].action = secure128prefix + actionTxt;
		else	
		if (isSecured(actionTxt,targetPageStr))
			document.forms[1].action = secureprefix + actionTxt;
		else
		if (isRequiredArchive(actionTxt,targetPageStr))
			document.forms[1].action = archiveprefix + actionTxt;
		else
			document.forms[1].action = regularprefix + actionTxt;
			
		document.forms[1].submit();
	}


	function linkValidateForm(actionTxt,targetPageStr)
	{
		document.forms[1].targetPage.value = targetPageStr;

		if (actionTxt == "")
			actionTxt = document.forms[1].pageName.value;

		if (isSecured(actionTxt,targetPageStr))
			document.forms[1].action = secureprefix + actionTxt;
		else
			document.forms[1].action = regularprefix + actionTxt;

		if (_CF_checkcfForm(document.forms[1]))
			document.forms[1].submit();
	}

 //** function to check the shopping_cart_conflict 
	function cartVerify(branch,actionTxt,targetPageStr,paramValue1,paramValue2,paramValue3,paramValue4,paramValue5)
	{
		var present_cart_type = document.forms[1].h_cart_type.value;
		
		if(present_cart_type == "")
		{
			linkSubmitForm(actionTxt,targetPageStr,paramValue1,paramValue2,paramValue3,paramValue4,paramValue5);
		}
		else if (present_cart_type == "B" && branch == "L") 
		{
			
			 msgWindow=window.open("","displayWindow","titlebar=no,menubar=no,width=500,height=230,resizable=no");
   			 msgWindow.document.write("<HEAD><TITLE>TestMart window</TITLE></HEAD>");
			 msgWindow.document.write("<BODY bgcolor=#FEFEEC>");
			 msgWindow.document.write('<form action=" "  method="post">');
			 msgWindow.document.write('<table cellspacing="0"><tr><td><ul><li><font face="Arial" pointsize="6" >Your shopping cart currently contains items to buy.  Please complete your buy transaction before collecting items to lease.</font></ul></td></tr>');
 			 msgWindow.document.write('<tr><td align="center"><br><input type="Button" value="Close" onclick="self.close()"></td></tr></table>');
			 msgWindow.document.write('<br><div align="center"><img src="/webdata/img/seal_yellow.gif" border="o"></div>');
			 msgWindow.document.write("</form></body>");
		} 
		else if( (present_cart_type == "B" && branch == "R"))
		{
			
			 msgWindow=window.open("","displayWindow","titlebar=no,menubar=no,width=500,height=260,resizable=no");
   			 msgWindow.document.write("<HEAD><TITLE>TestMart window</TITLE></HEAD>");
			 msgWindow.document.write("<BODY bgcolor=#FEFEEC>");
			 msgWindow.document.write('<form action=" "  method="post">');
			 msgWindow.document.write('<table cellspacing="0"><tr><td><ul><li><font face="Arial" pointsize="6" >Your shopping cart currently contains items to buy.  Please complete your buy transaction before collecting items to rent.  If you are interested in buying this item and none are available to buy on the Select Product page, please <a href="mailto:sales@testmart.com"> contact us</a> directly to request this item.</font></ul></td></tr>');
 			 msgWindow.document.write('<tr><td align="center"><br><input type="Button" value="Close" onclick="self.close()"></td></tr></table>');
			 msgWindow.document.write('<br><div align="center"><img src="/webdata/img/seal_yellow.gif" border="o"></div>');
			 msgWindow.document.write("</form></body>");
		}
		else if((present_cart_type == "L" && branch == "B") ||
				(present_cart_type == "L" && branch == "A") )
		{
			 msgWindow=window.open("","displayWindow","titlebar=no,menubar=no,width=500,height=230,resizable=no");
   			 msgWindow.document.write("<HEAD><TITLE>TestMart window</TITLE></HEAD>");
			 msgWindow.document.write("<BODY bgcolor=#FEFEEC>");
			 msgWindow.document.write('<form action=" "  method="post">');
			 msgWindow.document.write('<table cellspacing="0"><tr><td><ul><li><font face="Arial" pointsize="6" >Your shopping cart currently contains items to lease.  Please complete your lease transaction before collecting items to buy.</font></ul></td></tr>');
 			 msgWindow.document.write('<tr><td align="center"><br><input type="Button" value="Close" onclick="self.close()"></td></tr></table>');
			 msgWindow.document.write('<br><div align="center"><img src="/webdata/img/seal_yellow.gif" border="o"></div>');
			 msgWindow.document.write("</form></body>");
		}
		else if((present_cart_type == "L" && branch == "R"))
		{
			 msgWindow=window.open("","displayWindow","titlebar=no,menubar=no,width=500,height=260,resizable=no");
   			 msgWindow.document.write("<HEAD><TITLE>TestMart window</TITLE></HEAD>");
			 msgWindow.document.write("<BODY bgcolor=#FEFEEC>");
			 msgWindow.document.write('<form action=" "  method="post">');
			 msgWindow.document.write('<table cellspacing="0"><tr><td><ul><li><font face="Arial" pointsize="6" >Your shopping cart currently contains items to lease.  Please complete your lease transaction before collecting items to rent.  If you are interested in leasing this item and none are available for lease on the Select Product page, please <a href="mailto:sales@testmart.com">contact us</a> directly to request this item.</font></ul></td></tr>');
 			 msgWindow.document.write('<tr><td align="center"><br><input type="Button" value="Close" onclick="self.close()"></td></tr></table>');
			 msgWindow.document.write('<br><div align="center"><img src="/webdata/img/seal_yellow.gif" border="o"></div>');
			 msgWindow.document.write("</form></body>");
		}
	
		else if((present_cart_type == "R" && branch == "B") ||
				(present_cart_type == "R" && branch == "A"))
		{
			msgWindow=window.open("","displayWindow","titlebar=no,menubar=no,width=500,height=260,resizable=no");
   			msgWindow.document.write("<HEAD><TITLE>TestMart window</TITLE></HEAD>");
			msgWindow.document.write("<BODY bgcolor=#FEFEEC>");
			msgWindow.document.write('<form action=" "  method="post">');
			msgWindow.document.write('<table cellspacing="0"><tr><td><ul><li><font face="Arial" pointsize="6" >Your shopping cart currently contains items to rent.  Please complete your rent transaction before collecting items to buy.  If you are interested in renting this item and none are available for rent on the Select Product page, please <a href="mailto:sales@testmart.com">contact us</a> directly to request this item.</font></ul></td></tr>');
 			msgWindow.document.write('<tr><td align="center"><br><input type="Button" value="Close" onclick="self.close()"></td></tr></table>');
			msgWindow.document.write('<br><div align="center"><img src="/webdata/img/seal_yellow.gif" border="o"></div>');
			msgWindow.document.write("</form></body>");
		}
		
		else if(present_cart_type == "R" && branch == "L")
		{
			msgWindow=window.open("","displayWindow","titlebar=no,menubar=no,width=500,height=260,resizable=no");
   			msgWindow.document.write("<HEAD><TITLE>TestMart window</TITLE></HEAD>");
			msgWindow.document.write("<BODY bgcolor=#FEFEEC>");
			msgWindow.document.write('<form action=" "  method="post">');
			msgWindow.document.write('<table cellspacing="0"><tr><td><ul><li><font face="Arial" pointsize="6" >Your shopping cart currently contains items to rent.  Please complete your rent transaction before collecting items to lease.  If you are interested in renting this item and none are available for rent on the Select Product page, please <a href="mailto:sales@testmart.com">contact us</a> directly to request this item.</font></ul></td></tr>');
 			msgWindow.document.write('<tr><td align="center"><br><input type="Button" value="Close" onclick="self.close()"></td></tr></table>');
			msgWindow.document.write('<br><div align="center"><img src="/webdata/img/seal_yellow.gif" border="o"></div>');
			msgWindow.document.write("</form></body>");
		}
		else 
		{
			linkSubmitForm(actionTxt,targetPageStr,paramValue1,paramValue2,paramValue3,paramValue4,paramValue5);
		 }
	}
	//**  end of the function to check the shopping_cart_conflict 

	
	//** function blipImgWindow(ImagePath) is to show the larger product image.
	function blipImgWindow(ImagePath) 
	{
			 msgWindow=window.open("","displayWindow","titlebar=no,menubar=no,width=500,height=290,resizable=no");
			
			 if ( msgWindow != null )
			 {
			 	msgWindow.close();
				msgWindow=window.open("","displayWindow","titlebar=no,menubar=no,width=500,height=290,resizable=no");
			 }
   			 msgWindow.document.write("<HEAD><TITLE>Larger Image View</TITLE>");
			 msgWindow.document.write("</HEAD>");
			 msgWindow.document.write('<BODY bgcolor=#ffffff><div align="center">');
			 msgWindow.document.write('<form action=" "  method="post">');
			 msgWindow.document.write('<table cellspacing="0" cellpadding="0"><tr><td align="center"><img src= ' + ImagePath + '></td></tr>');
			 msgWindow.document.write('<tr><td align="center"><br><a href="javascript:self.close();"><input type="image" src="/webdata/img/close.gif" border="0" value="Close" onclick="self.close()"></a></td></tr></table>');
			 msgWindow.document.write("</form></div></body>");
	}

	//*** this function shows the (xxx.pdf) in a child window 
	//**  if the child window already exists, the same is brought forward  
	function open_pdf_window(url)
	{
		if (((new String(url)).indexOf("http") == -1) && ((new String(url)).indexOf("https") == -1))
			url = "http://" + url;
		
		
		winPdf1 = window.open(url,"winPdf",'toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=400,height=400,screenX=10,screenY=10');
		
		if ( winPdf1 != null )
		{ 
			if ( winPdf1.opener == null ) { winPdf1.opener = self;  } 
			winPdf1.focus(); 
		} 
	}

	function MM_openBrWindow(theURL,winName,features) { //v2.0
  		window.open(theURL,winName,features);
	}

	function MM_swapImgRestore() { //v2.0
  		if (document.MM_swapImgData != null)
   		 for (var i=0; i<(document.MM_swapImgData.length-1); i+=2)
    		  document.MM_swapImgData[i].src = document.MM_swapImgData[i+1];
	}

	function MM_preloadImages() { //v2.0
  		if (document.images) {
    		var imgFiles = MM_preloadImages.arguments;
    		if (document.preloadArray==null) document.preloadArray = new Array();
    		var i = document.preloadArray.length;
    		with (document) for (var j=0; j<imgFiles.length; j++) if (imgFiles[j].charAt(0)!="#"){
 		     preloadArray[i] = new Image;
 		     preloadArray[i++].src = imgFiles[j];
		  } }
	}

	function MM_swapImage() { //v2.0
  		var i,j=0,objStr,obj,swapArray=new Array,oldArray=document.MM_swapImgData;
  		for (i=0; i < (MM_swapImage.arguments.length-2); i+=3) {

		 objStr = MM_swapImage.arguments[i];	
   		 obj = eval(objStr);
   		 if (obj != null) {
   		   swapArray[j++] = obj;
		    swapArray[j++] = obj.src;
  		    obj.src = MM_swapImage.arguments[i+2];
		  } }
 		 document.MM_swapImgData = swapArray; //used for restore
	}	
	
// This function clears all the 
// Text boxes and select boxes of a form.
function resetForm(formName){
	var length;
	var i;
	length = formName.elements.length;
	for (i=0;i<length;i++){
		// Check if it is a text box
		if (formName.elements[i].type == "text"){
			formName.elements[i].value = "";
		}
		// Check if it is a Select Box 
		else if ( (formName.elements[i].type).indexOf("select") > -1){
			formName.elements[i].selectedIndex = -1;
		}
		
	}
}

// This method is used to set the parameters for the destination page.
// written on 03/13/01 used in estore/categories.cfm
function seParameters(actionTxt,targetPageStr,param1,param2,param3,param4,param5)
{
		document.forms[1].targetPage.value = targetPageStr;
		
		if (actionTxt == "")
			actionTxt = document.forms[1].pageName.value;
		
		if (isSecured(actionTxt,targetPageStr))
			document.forms[1].action = secureprefix + actionTxt;
		else
			document.forms[1].action = regularprefix + actionTxt;
		
		document.forms[1].param1.value = param1;
		document.forms[1].param2.value = param2;
		document.forms[1].param3.value = param3;
		document.forms[1].param4.value = param4;
		document.forms[1].param5.value = param5;
}	

	function whatIsStatus()
	{
			window.name = "NAVICPmart";
			window.open(regularprefix+"/redir.cfm" + sessiontoken+document.forms[1].sessionID.value+ "/include/navicpstatus.cfm","Status",'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=300,height=300');
	}	

// Used to display navicp ships in information in popup window (used in most of the folder)
function navicpdelivery(delivery)
	{
			 msgWindow=window.open("","displayWindow","titlebar=no,menubar=no,width=550,height=240,resizable=no");
   			 msgWindow.document.write("<HEAD><TITLE>NAVICP Contract Product</TITLE>");
			 msgWindow.document.write("</HEAD>");
			 msgWindow.document.write("<BODY bgcolor=#ffffcc>");
			 msgWindow.document.write("<div align=center>");
			 msgWindow.document.write('<form action=" "  method="post">');
			 msgWindow.document.write('<table cellspacing="0" cellpadding="0" border=0><tr><td align="left"><img src="/webdata/img/nav-seal3.gif"><br><br></td><td align="left" valign="middle" width="550"><font face="Arial" size="3">&nbsp;&nbsp;<b>NAVICP Contract Delivery Terms<p></b></font></td></tr><tr><td align="left" colspan="2" width="550"><font face="Arial" size="2">This product is offered under the terms of a contract negotiated between the manufacturer<br> and NAVICP. ')
			 msgWindow.document.write('This is the maximum delivery period allowed by the contract. Actual delivery time may be shorter.</font></td></tr>');
			 msgWindow.document.write('<tr><td colspan="2">&nbsp;</td></tr>');
			 msgWindow.document.write('<tr><td colspan=2 align="left"><font face="Arial" size="2">EXPEDITED DELIVERY may be available on this product to meet government fiscal year end purchase requirements.  Please call (888) 665-3454.</font></td></tr>');
			 msgWindow.document.write('<tr><td colspan="2" align="center"><br><a href="javascript:self.close();"><img src="/webdata/img/close_yellow.gif" border="0"></a></td></tr></table>');
			 msgWindow.document.write("</form></div></body>");
	}
	
	
function navicpimg()
{
	if (arguments.length > 0)
		showProdDesc(arguments[0]);
	else
		showProdDesc();
}

function gsaimg()
{
	if (arguments.length > 0)
		showProdDesc(arguments[0]);
	else
		showProdDesc();
}
	
function l4img()
{
	if (arguments.length > 0)
		showProdDesc(arguments[0]);
	else
		showProdDesc();
}
	

function recimg()
{
	if (arguments.length > 0)
		showProdDesc(arguments[0]);
	else
		showProdDesc();
}


function displaySavings()
{
showGovSavDesc();
}
	
var prodpopup;

function showProdDesc(){

	if (prodpopup != null){
		prodpopup.focus();
	}
	else{
	
	var wtop  = ( screen.height - 500)/2;
	var wleft = ( screen.width - 400)/2 ;
	if (arguments.length > 0)
		pordpopup = window.open(regularprefix+"/redir.cfm" + sessiontoken+document.forms[1].sessionID.value + '/include/proddesc.cfm#' + arguments[0],'prodkey','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=400,height=500,top='+wtop+',left='+wleft);
	else
		pordpopup = window.open(regularprefix+"/redir.cfm" + sessiontoken+document.forms[1].sessionID.value + '/include/proddesc.cfm','prodkey','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=400,height=500,top='+wtop+',left='+wleft);	
	pordpopup.focus();
	}

}

function showCatPopup(){

	if (prodpopup != null){
		prodpopup.focus();
	}
	else{
	
	var wtop  = ( screen.height - 500)/2;
	var wleft = ( screen.width - 400)/2 ;
	pordpopup = window.open(regularprefix+"/redir.cfm" + sessiontoken+document.forms[1].sessionID.value + '/include/popup.cfm','prodkey','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=400,height=500,top='+wtop+',left='+wleft);
	pordpopup.focus();
	}

}

var savpopup = null;


function showGovSavDesc(){

	if (savpopup == null || savpopup.closed){
	
	var wtop  = ( screen.height - 400)/2;
	var wleft = ( screen.width - 420)/2 ;
	savpopup = window.open(regularprefix + '/include/savdesc.cfm','savkey','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=420,height=400,top='+wtop+',left='+wleft);
	savpopup.focus();
	}
	else
	{
		savpopup.focus();
	}

}


var gsaAuthPopup = null;

function showGsaAuth(){

	if (savpopup == null || savpopup.closed){
	var wtop  = ( screen.height - 500)/2;
	var wleft = ( screen.width - 400)/2 ;
	gsaAuthPopup = window.open(regularprefix + '/include/gsaauthorized.cfm','gsa','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=400,height=500,top='+wtop+',left='+wleft);
	gsaAuthPopup.focus();
	}else{
		gsaAuthPopup.focus();
	}

}



	
function nsnmsg()
	{
			 msgWindow=window.open("","displayWindow","titlebar=no,menubar=no,scrollbars=yes,width=500,height=240,resizable=no");
   			 msgWindow.document.write("<HEAD><TITLE>National Stock Number (NSN)</TITLE>");
			 msgWindow.document.write("</HEAD>");
			 msgWindow.document.write("<BODY bgcolor=#ffffff>");
			 msgWindow.document.write("<div align=center>");
			 msgWindow.document.write('<form action=" "  method="post">');
			 msgWindow.document.write('<table cellspacing="0" cellpadding="0" border=0><tr><td align="left" valign="middle" width="550"><font face="Arial" size="3"><font face="Arial" size="3"><b>National Stock Number (NSN)<p></b></font></td></tr><tr><td align="left" colspan="2" width="550"><font face="Arial" size="2"><p>When searching by NSN, please use the following format:"6625-01-414-0354"<P>You may also enter only the leading characters of the NSN to yield a larger return.</P><P>Example:  "6625-01"</P><P>would return all products whose NSN begins with "6625-01".</P></td></tr>')
			 msgWindow.document.write('<tr><td colspan="2" align="center"><br><a href="javascript:self.close();"><img src="/webdata/img/close.gif" border="0"></a></td></tr></table>');
			 msgWindow.document.write("</form></div></body>");
	}
	
	
function cagemsg()
	{
			 msgWindow=window.open("","displayWindow","titlebar=no,menubar=no,scrollbars=yes,width=500,height=140,resizable=no");
   			 msgWindow.document.write("<HEAD><TITLE>CAGE Code</TITLE>");
			 msgWindow.document.write("</HEAD>");
			 msgWindow.document.write("<BODY bgcolor=#ffffff>");
			 msgWindow.document.write("<div align=center>");
			 msgWindow.document.write('<form action=" "  method="post">');
			 msgWindow.document.write('<table cellspacing="0" cellpadding="0" border=0><tr><td align="left" valign="middle" width="550"><font face="Arial" size="3"><font face="Arial" size="3"><b>CAGE Code<p></b></font></td></tr><tr><td align="left" colspan="2" width="550"><font face="Arial" size="2"><p>The CAGE (Commercial And Government Entity) Code is a five-character code assigned to a manufacturer.  The CAGE was formerly known as FSCM, Federal Supply Code for Manufacturers.</P></td></tr>')
			 msgWindow.document.write('<tr><td colspan="2" align="center"><br><a href="javascript:self.close();"><img src="/webdata/img/close.gif" border="0"></a></td></tr></table>');
			 msgWindow.document.write("</form></div></body>");
	}

	
var newscatpopup = null;
	
function scatmsg(){

	if (newscatpopup != null ){
		if (!newscatpopup.closed)
			newscatpopup.focus();
		else
			newscatpopup = null;	
	}

	if (newscatpopup == null){
	 var wtop  = ( screen.height - 140)/2;
	 var wleft = ( screen.width - 500)/2 ;
	 newscatpopup = window.open("","scatpopup",'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=500,height=140,top='+wtop+',left='+wleft);
	 newscatpopup.document.write("<HEAD><TITLE>SCAT Code</TITLE>");
	 newscatpopup.document.write("</HEAD>");
	 newscatpopup.document.write("<BODY bgcolor=#ffffff>");
	 newscatpopup.document.write("<div align=center>");
	 newscatpopup.document.write('<form action=" "  method="post">');
	 newscatpopup.document.write('<table cellspacing="0" cellpadding="0" border=0><tr><td align="left" valign="middle" width="550"><font face="Arial" size="3"><font face="Arial" size="3"><b>Navy SCAT Code<p></b></font></td></tr><tr><td align="left" colspan="2" width="550"><font face="Arial" size="2"><p>The SCAT (Sub-CATegory) Code is used by the Navy to classify groups of products by technical functionality. View <a href="javascript:window.open(\'/webdata/whitepapers/SCATguide.pdf\',\'xxx\',\'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=500,height=600,top=\'+((opener.screen.height-600)/2)+\',left=\'+((opener.screen.width-500)/2));javascript:self.close();">SCAT and Priority Guide</a></P></td></tr>')
	 newscatpopup.document.write('<tr><td colspan="2" align="center"><br><a href="javascript:window.close();"><img src="/webdata/img/close.gif" border="0"></a></td></tr></table>');
	 newscatpopup.document.write("</form></div></body>");
	 newscatpopup.focus();
	}	 

}	
	
	
	

function awardmsg()
	{
			 msgWindow=window.open("","displayWindow","titlebar=no,menubar=no,scrollbars=yes,width=500,height=140,resizable=no");
   			 msgWindow.document.write("<HEAD><TITLE>Government Efficiency Awards</TITLE>");
			 msgWindow.document.write("</HEAD>");
			 msgWindow.document.write("<BODY bgcolor=#ffffff>");
			 msgWindow.document.write("<div align=center>");
			 msgWindow.document.write('<form action=" "  method="post">');
			 msgWindow.document.write('<table cellspacing="0" cellpadding="0" border=0><tr><td align="left" colspan="2" width="550"><font face="Arial" size="2"><p>This facility is recognized as having saved the most money at NAVICPmart in a particular month and has been issued a special certificate.</P></td></tr>')
			 msgWindow.document.write('<tr><td colspan="2" align="center"><br><a href="javascript:self.close();"><img src="/webdata/img/close.gif" border="0"></a></td></tr></table>');
			 msgWindow.document.write("</form></div></body>");
	}	
	

	
	function isCOTREmail(textObject){
		// Get the last characters after the last "."
		if (!validateEmail(textObject)){
			return -3;
		}
		
		if ( emailHasSpaces(textObject) != -1 )
		{
			return -3;
		}
		
		textStr = trim(textObject);
		index = textStr.lastIndexOf(".");

		last3 = (textStr.substring(index+1)).toUpperCase();
		//alert("characters after . = " + last3);
		
		UpperCotrEmail  =  textStr.toUpperCase();
		if(UpperCotrEmail == "WEBMASTER@NAVICPMART.COM")
		{
			return 0;
		}
		else
		if ((last3 == "GOV") || (last3 == "MIL")){
			theSubStr = textStr.substring(0,index);
			index2 = theSubStr.lastIndexOf(".");
			if (index2 > -1){
				//alert(theSubStr.substring(index2+1));
				possibleState = (theSubStr.substring(index2+1)).toUpperCase();
				for (i=0;i<states.length;i++){
					if (possibleState == states[i]){
						//alert("its a state");
						return -2;
						break;
					}
				} // end of the for statement
			}// end of if (index 2 > -1)
		}// end of if last3 == 'GOV'
		else
		if (last3 == "COM"){
			// check for TestMart 
		
			theSubStr = textStr.substring(0,index);
			index2 = theSubStr.lastIndexOf(".");
			if (index2 > -1){
					return -3;
			}// END OF index2 > -1	
			else{
				index2 = theSubStr.lastIndexOf("@");
				if (index2>-1){
				
					possibleTM = (theSubStr.substring(index2 + 1)).toUpperCase();
					if (possibleTM == "TESTMART")
						return 0;
					else
					 	return -1;
				}
			 return -1;
			}// end of if else of index2 > -1

		}// end of elseif (last3 == "com")
		else
			return -1;

	 return 0;
	}

function openOnlineChat(who)
{
	if (who == "USER"){
		window.name = "NAVICPmart";
		window.open("/customerservice/onlinechattmp.cfm"+sessiontoken+document.forms[1].sessionID.value,"onlinechat",'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=550,height=400');
	}
	else{
		window.name = "NAVICPmart";
		window.open("/customerservice/webchatlogintmp.cfm"+sessiontoken+document.forms[1].sessionID.value,"chatlogin",'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=550,height=300');
	}	
}	


function navicplistprice()
{
		window.name = "NAVICPmart";
		window.open(regularprefix+"/redir.cfm" + sessiontoken+document.forms[1].sessionID.value+"/include/navicplistprice.cfm","listprice",'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=550,height=240');
}	

function testBrowser()
{
/*
This code is believed to be compatible with all versions of all JavaScript-capable browsers on all platforms. It has been tested on the following operating systems and browser versions: 

Windows NT:  Navigator 4, Navigator 3, and Navigator 2; Internet Explorer 5; Internet Explorer 3; Opera 3 
Windows 98: Netscape 6;Navigator 4.76; Internet Explorer 4; Internet Explorer 5; Internet Explorer 5.5; Opera 5; HotJava 3 
Macintosh: Navigator 4, Internet Explorer 3.01, Internet Explorer 4.02 
RedHat Linux 6.2: Navigator 4.6; Netscape 6 
SunOS5: Navigator 3 
*/
//<!--
// Ultimate client-side JavaScript client sniff. Version 3.03
// (C) Netscape Communications 1999-2001.  Permission granted to reuse and distribute.
// Revised 17 May 99 to add is_nav5up and is_ie5up (see below).
// Revised 20 Dec 00 to add is_gecko and change is_nav5up to is_nav6up
//                      also added support for IE5.5 Opera4&5 HotJava3 AOLTV
// Revised 22 Feb 01 to correct Javascript Detection for IE 5.x, Opera 4, 
//                      correct Opera 5 detection
//                      add support for winME and win2k
//                      synch with browser-type-oo.js
// Revised 26 Mar 01 to correct Opera detection
// Revised 02 Oct 01 to add IE6 detection

// Everything you always wanted to know about your JavaScript client
// but were afraid to ask. Creates "is_" variables indicating:
// (1) browser vendor:
//     is_nav, is_ie, is_opera, is_hotjava, is_webtv, is_TVNavigator, is_AOLTV
// (2) browser version number:
//     is_major (integer indicating major version number: 2, 3, 4 ...)
//     is_minor (float   indicating full  version number: 2.02, 3.01, 4.04 ...)
// (3) browser vendor AND major version number
//     is_nav2, is_nav3, is_nav4, is_nav4up, is_nav6, is_nav6up, is_gecko, is_ie3,
//     is_ie4, is_ie4up, is_ie5, is_ie5up, is_ie5_5, is_ie5_5up, is_ie6, is_ie6up, is_hotjava3, is_hotjava3up,
//     is_opera2, is_opera3, is_opera4, is_opera5, is_opera5up
// (4) JavaScript version number:
//     is_js (float indicating full JavaScript version number: 1, 1.1, 1.2 ...)
// (5) OS platform and version:
//     is_win, is_win16, is_win32, is_win31, is_win95, is_winnt, is_win98, is_winme, is_win2k
//     is_os2
//     is_mac, is_mac68k, is_macppc
//     is_unix
//     is_sun, is_sun4, is_sun5, is_suni86
//     is_irix, is_irix5, is_irix6
//     is_hpux, is_hpux9, is_hpux10
//     is_aix, is_aix1, is_aix2, is_aix3, is_aix4
//     is_linux, is_sco, is_unixware, is_mpras, is_reliant
//     is_dec, is_sinix, is_freebsd, is_bsd
//     is_vms
//
// See http://www.it97.de/JavaScript/JS_tutorial/bstat/navobj.html and
// http://www.it97.de/JavaScript/JS_tutorial/bstat/Browseraol.html
// for detailed lists of userAgent strings.
//
// Note: you don't want your Nav4 or IE4 code to "turn off" or
// stop working when new versions of browsers are released, so
// in conditional code forks, use is_ie5up ("IE 5.0 or greater") 
// is_opera5up ("Opera 5.0 or greater") instead of is_ie5 or is_opera5
// to check version in code which you want to work on future
// versions.

    // convert all characters to lowercase to simplify testing
    var agt=navigator.userAgent.toLowerCase();

    // *** BROWSER VERSION ***
    // Note: On IE5, these return 4, so use is_ie5up to detect IE5.
    var is_major = parseInt(navigator.appVersion);
    var is_minor = parseFloat(navigator.appVersion);

    // Note: Opera and WebTV spoof Navigator.  We do strict client detection.
    // If you want to allow spoofing, take out the tests for opera and webtv.
    var is_nav  = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1)
                && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1)
                && (agt.indexOf('webtv')==-1) && (agt.indexOf('hotjava')==-1));
    var is_nav2 = (is_nav && (is_major == 2));
    var is_nav3 = (is_nav && (is_major == 3));
    var is_nav4 = (is_nav && (is_major == 4));
    var is_nav4up = (is_nav && (is_major >= 4));
    var is_navonly      = (is_nav && ((agt.indexOf(";nav") != -1) ||
                          (agt.indexOf("; nav") != -1)) );
    var is_nav6 = (is_nav && (is_major == 5));
    var is_nav6up = (is_nav && (is_major >= 5));
    var is_gecko = (agt.indexOf('gecko') != -1);


    var is_ie     = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));
    var is_ie3    = (is_ie && (is_major < 4));
    var is_ie4    = (is_ie && (is_major == 4) && (agt.indexOf("msie 4")!=-1) );
    var is_ie4up  = (is_ie && (is_major >= 4));
    var is_ie5    = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.0")!=-1) );
    var is_ie5_5  = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.5") !=-1));
    var is_ie5up  = (is_ie && !is_ie3 && !is_ie4);
    var is_ie5_5up =(is_ie && !is_ie3 && !is_ie4 && !is_ie5);
    var is_ie6    = (is_ie && (is_major == 4) && (agt.indexOf("msie 6.")!=-1) );
    var is_ie6up  = (is_ie && !is_ie3 && !is_ie4 && !is_ie5 && !is_ie5_5);

    // KNOWN BUG: On AOL4, returns false if IE3 is embedded browser
    // or if this is the first browser window opened.  Thus the
    // variables is_aol, is_aol3, and is_aol4 aren't 100% reliable.
    var is_aol   = (agt.indexOf("aol") != -1);
    var is_aol3  = (is_aol && is_ie3);
    var is_aol4  = (is_aol && is_ie4);
    var is_aol5  = (agt.indexOf("aol 5") != -1);
    var is_aol6  = (agt.indexOf("aol 6") != -1);

    var is_opera = (agt.indexOf("opera") != -1);
    var is_opera2 = (agt.indexOf("opera 2") != -1 || agt.indexOf("opera/2") != -1);
    var is_opera3 = (agt.indexOf("opera 3") != -1 || agt.indexOf("opera/3") != -1);
    var is_opera4 = (agt.indexOf("opera 4") != -1 || agt.indexOf("opera/4") != -1);
    var is_opera5 = (agt.indexOf("opera 5") != -1 || agt.indexOf("opera/5") != -1);
    var is_opera5up = (is_opera && !is_opera2 && !is_opera3 && !is_opera4);

    var is_webtv = (agt.indexOf("webtv") != -1); 

    var is_TVNavigator = ((agt.indexOf("navio") != -1) || (agt.indexOf("navio_aoltv") != -1)); 
    var is_AOLTV = is_TVNavigator;

    var is_hotjava = (agt.indexOf("hotjava") != -1);
    var is_hotjava3 = (is_hotjava && (is_major == 3));
    var is_hotjava3up = (is_hotjava && (is_major >= 3));

    // *** JAVASCRIPT VERSION CHECK ***
    var is_js;
    if (is_nav2 || is_ie3) is_js = 1.0;
    else if (is_nav3) is_js = 1.1;
    else if (is_opera5up) is_js = 1.3;
    else if (is_opera) is_js = 1.1;
    else if ((is_nav4 && (is_minor <= 4.05)) || is_ie4) is_js = 1.2;
    else if ((is_nav4 && (is_minor > 4.05)) || is_ie5) is_js = 1.3;
    else if (is_hotjava3up) is_js = 1.4;
    else if (is_nav6 || is_gecko) is_js = 1.5;
    // NOTE: In the future, update this code when newer versions of JS
    // are released. For now, we try to provide some upward compatibility
    // so that future versions of Nav and IE will show they are at
    // *least* JS 1.x capable. Always check for JS version compatibility
    // with > or >=.
    else if (is_nav6up) is_js = 1.5;
    // NOTE: ie5up on mac is 1.4
    else if (is_ie5up) is_js = 1.3

    // HACK: no idea for other browsers; always check for JS version with > or >=
    else is_js = 0.0;

    // *** PLATFORM ***
    var is_win   = ( (agt.indexOf("win")!=-1) || (agt.indexOf("16bit")!=-1) );
    // NOTE: On Opera 3.0, the userAgent string includes "Windows 95/NT4" on all
    //        Win32, so you can't distinguish between Win95 and WinNT.
    var is_win95 = ((agt.indexOf("win95")!=-1) || (agt.indexOf("windows 95")!=-1));

    // is this a 16 bit compiled version?
    var is_win16 = ((agt.indexOf("win16")!=-1) || 
               (agt.indexOf("16bit")!=-1) || (agt.indexOf("windows 3.1")!=-1) || 
               (agt.indexOf("windows 16-bit")!=-1) );  

    var is_win31 = ((agt.indexOf("windows 3.1")!=-1) || (agt.indexOf("win16")!=-1) ||
                    (agt.indexOf("windows 16-bit")!=-1));

    var is_winme = ((agt.indexOf("win 9x 4.90")!=-1));
    var is_win2k = ((agt.indexOf("windows nt 5.0")!=-1));

    // NOTE: Reliable detection of Win98 may not be possible. It appears that:
    //       - On Nav 4.x and before you'll get plain "Windows" in userAgent.
    //       - On Mercury client, the 32-bit version will return "Win98", but
    //         the 16-bit version running on Win98 will still return "Win95".
    var is_win98 = ((agt.indexOf("win98")!=-1) || (agt.indexOf("windows 98")!=-1));
    var is_winnt = ((agt.indexOf("winnt")!=-1) || (agt.indexOf("windows nt")!=-1));
    var is_win32 = (is_win95 || is_winnt || is_win98 || 
                    ((is_major >= 4) && (navigator.platform == "Win32")) ||
                    (agt.indexOf("win32")!=-1) || (agt.indexOf("32bit")!=-1));

    var is_os2   = ((agt.indexOf("os/2")!=-1) || 
                    (navigator.appVersion.indexOf("OS/2")!=-1) ||   
                    (agt.indexOf("ibm-webexplorer")!=-1));

    var is_mac    = (agt.indexOf("mac")!=-1);
    // hack ie5 js version for mac
    if (is_mac && is_ie5up) is_js = 1.4;
    var is_mac68k = (is_mac && ((agt.indexOf("68k")!=-1) || 
                               (agt.indexOf("68000")!=-1)));
    var is_macppc = (is_mac && ((agt.indexOf("ppc")!=-1) || 
                                (agt.indexOf("powerpc")!=-1)));

    var is_sun   = (agt.indexOf("sunos")!=-1);
    var is_sun4  = (agt.indexOf("sunos 4")!=-1);
    var is_sun5  = (agt.indexOf("sunos 5")!=-1);
    var is_suni86= (is_sun && (agt.indexOf("i86")!=-1));
    var is_irix  = (agt.indexOf("irix") !=-1);    // SGI
    var is_irix5 = (agt.indexOf("irix 5") !=-1);
    var is_irix6 = ((agt.indexOf("irix 6") !=-1) || (agt.indexOf("irix6") !=-1));
    var is_hpux  = (agt.indexOf("hp-ux")!=-1);
    var is_hpux9 = (is_hpux && (agt.indexOf("09.")!=-1));
    var is_hpux10= (is_hpux && (agt.indexOf("10.")!=-1));
    var is_aix   = (agt.indexOf("aix") !=-1);      // IBM
    var is_aix1  = (agt.indexOf("aix 1") !=-1);    
    var is_aix2  = (agt.indexOf("aix 2") !=-1);    
    var is_aix3  = (agt.indexOf("aix 3") !=-1);    
    var is_aix4  = (agt.indexOf("aix 4") !=-1);    
    var is_linux = (agt.indexOf("inux")!=-1);
    var is_sco   = (agt.indexOf("sco")!=-1) || (agt.indexOf("unix_sv")!=-1);
    var is_unixware = (agt.indexOf("unix_system_v")!=-1); 
    var is_mpras    = (agt.indexOf("ncr")!=-1); 
    var is_reliant  = (agt.indexOf("reliantunix")!=-1);
    var is_dec   = ((agt.indexOf("dec")!=-1) || (agt.indexOf("osf1")!=-1) || 
           (agt.indexOf("dec_alpha")!=-1) || (agt.indexOf("alphaserver")!=-1) || 
           (agt.indexOf("ultrix")!=-1) || (agt.indexOf("alphastation")!=-1)); 
    var is_sinix = (agt.indexOf("sinix")!=-1);
    var is_freebsd = (agt.indexOf("freebsd")!=-1);
    var is_bsd = (agt.indexOf("bsd")!=-1);
    var is_unix  = ((agt.indexOf("x11")!=-1) || is_sun || is_irix || is_hpux || 
                 is_sco ||is_unixware || is_mpras || is_reliant || 
                 is_dec || is_sinix || is_aix || is_linux || is_bsd || is_freebsd);

    var is_vms   = ((agt.indexOf("vax")!=-1) || (agt.indexOf("openvms")!=-1));

//--> end hide JavaScript
		if( is_nav)
		{ 	
			if(is_nav6 || is_nav6up )
			{
				document.forms[1].client_browserName.value = "Navigator " + " 6";
			}
			else
			{
				document.forms[1].client_browserName.value = "Navigator " + is_minor;
			}
		}
		else if(is_ie)
		{
			//alert(is_major + ";" + is_minor + ";");
			    //var is_ie3    = (is_ie && (is_major < 4));
			    if(is_ie3)
				{
					 document.forms[1].client_browserName.value = "Internet Explorer " + is_major;
				}
				
				//var is_ie4    = (is_ie && (is_major == 4) && (agt.indexOf("msie 4")!=-1) );
				if(is_ie4)
				{
					 document.forms[1].client_browserName.value = "Internet Explorer" + " 4";
				}
				//var is_ie4up  = (is_ie && (is_major >= 4));
				if(is_ie4up)
				{
					 document.forms[1].client_browserName.value = "Internet Explorer" +  is_minor;
				}
			    //var is_ie5    = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.0")!=-1) );
				if(is_ie5)
				{
					 document.forms[1].client_browserName.value = "Internet Explorer" + " 5";
				}

			    //var is_ie5_5  = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.5") !=-1));
				if(is_ie5_5) 
				{
					 document.forms[1].client_browserName.value = "Internet Explorer" +  " 5.5";
				}
			    //var is_ie5up  = (is_ie && !is_ie3 && !is_ie4);
			    if(is_ie5up) 
				{
					 document.forms[1].client_browserName.value = "Internet Explorer" +  " 5.0";
				}

				//var is_ie5_5up =(is_ie && !is_ie3 && !is_ie4 && !is_ie5);
				if(is_ie5_5up)
				{
					 document.forms[1].client_browserName.value = "Internet Explorer" +  " 5.5";
				}

			    //var is_ie6    = (is_ie && (is_major == 4) && (agt.indexOf("msie 6.")!=-1) );
				if(is_ie6)
				{
					 document.forms[1].client_browserName.value = "Internet Explorer" +  " 6.0";
				}

			   // var is_ie6up  = (is_ie && !is_ie3 && !is_ie4 && !is_ie5 && !is_ie5_5);
				if(is_ie6up)
				{
					 document.forms[1].client_browserName.value = "Internet Explorer" +  " 6.0";
				}
		
		 	   //document.forms[1].client_browserName.value = "Internet Explorer " + is_minor;
		 
		 }
		else if(is_opera)
		{ document.forms[1].client_browserName.value = "Opera"+ is_major;}
		else if(is_hotjava)
		{ document.forms[1].client_browserName.value = "HotJava"+ is_major;}
		else if(is_webtv)
		{ document.forms[1].client_browserName.value = "WebTV"+ is_major;}
		else if(is_TVNavigator)
		{ document.forms[1].client_browserName.value = "TV Navigator"+ is_major;}
		else if(is_AOLTV)
		{ document.forms[1].client_browserName.value = "AOL"+ is_major;}
		else
		{ document.forms[1].client_browserName.value = "UnKnown";}
		
		//OS
		// windows 
		if(is_win)
		{
			if(	is_win31 )
			{
				 document.forms[1].client_os.value = "Windows 3.1";
			}
			
			if(is_win32)
			{
				 document.forms[1].client_os.value = "Windows 3.2";
			}
			
			if(is_win98)
			{
				 document.forms[1].client_os.value = "Windows 98";
			}
			
			if(is_winnt)
			{
				 document.forms[1].client_os.value = "Windows NT";
			}
			
			if(is_winme)
			{
				 document.forms[1].client_os.value = "Windows ME";
			}

			if(is_win2k)
			{
				 document.forms[1].client_os.value = "Windows 2000";
			}
		}
		else if(is_os2)
		{ 
			 document.forms[1].client_os.value = "OS/2";
		}
		else if (is_mac)
		{ 
			 document.forms[1].client_os.value = "MAC";
		}		
	
     	linkSubmitForm('','../help/browsertest.cfm');	
}

function closeandcontact(){
	window.opener.location=regularprefix+"/customerservice/contacttmp.cfm"+sessiontoken+document.forms[1].sessionID.value;
	window.opener.focus();
	self.close();	
}

function validateCDReqForm(){
	
/*
	flag = false;
		for (i = 0; i < document.forms[1].role.length; i++)
		{	
				if( document.forms[1].role[i].checked )
				{	
					flag = true;
					break; 
				}
		}

	if (!flag){
			alert("Please select your role");
			return;
	}
	else
	if ((i == 4) && (trim(document.forms[1].othertxt) == "")) {
		alert("Please enter your \"Other\" role ");
		document.forms[1].othertxt.focus();
		return;
	}
	else
	*/
	if (trim(document.forms[1].email) == "")
	{
			alert("Please enter E-mail");
			document.forms[1].email.focus();
			return;
	}
	else
	if (!emailCheck(document.forms[1].email.value)){
			alert("Please enter a valid e-mail address");
			document.forms[1].email.focus();
			return;
	}	
	else
	if(trim(document.forms[1].phone) == "")
		{
			alert("Please enter Phone");
			document.forms[1].phone.focus();
			return;
		}
	else
	if(trim(document.forms[1].name) == "")
		{
			alert("Please enter First name");
			document.forms[1].name.focus();
			return;
		}
	else
	if (trim(document.forms[1].lastname) == "")
	{
			alert("Please enter Last name");
			document.forms[1].lastname.focus();
			return;
	}
	else
	if (trim(document.forms[1].organization) == "")
	{
			alert("Please enter Organization");
			document.forms[1].organization.focus();
			return;
	}
	else
	if (trim(document.forms[1].address6) == "")
	{
		alert("Please enter the Street");
		document.forms[1].address6.focus();
		return;
	}
	else
	if(trim(document.forms[1].city) == "")
		{
			alert("Please enter City");
			document.forms[1].city.focus();
			return;
		}				
	else
	if(trim(document.forms[1].zip) == "")
		{
			alert("Please enter Zip");
			document.forms[1].zip.focus();
			return;
		}				

		linkSubmitForm('/advice/advicetmp.cfm','../advice/cdromreqform.cfm','fromsubmit');
}



function validateCTReqForm(){
	
	if(trim(document.forms[1].name) == "")
		{
			alert("Please enter Name");
			document.forms[1].name.focus();
			return;
		}
	else
	if (trim(document.forms[1].email) == "")
	{
			alert("Please enter E-mail");
			document.forms[1].email.focus();
			return;
	}
	else
	if(trim(document.forms[1].phone) == "")
		{
			alert("Please enter Phone Number");
			document.forms[1].phone.focus();
			return;
		}
	else
	if(trim(document.forms[1].address1) == "")
		{
			alert("Please enter Address1");
			document.forms[1].address1.focus();
			return;
		}
	else
	if(trim(document.forms[1].city) == "")
		{
			alert("Please enter City");
			document.forms[1].city.focus();
			return;
		}				
	else
	if(trim(document.forms[1].state) == "")
		{
			alert("Please enter State");
			document.forms[1].state.focus();
			return;
		}				
	else
	if(trim(document.forms[1].zip) == "")
		{
			alert("Please enter Zip");
			document.forms[1].zip.focus();
			return;
		}				
	else
	{
		if (!emailCheck(document.forms[1].email.value)){
			alert("Please enter a valid e-mail address");
			return;
		}	
		linkSubmitForm('/customerservice/customerservicetmp.cfm','../estore/requestgsa.cfm','fromsubmit');
	}
}


	function mockSplit(strSourceString,strChar){
		var noOfChars = 1;
		for (var i=0; i<strSourceString.length; i++){
			if (strSourceString.charAt(i) == strChar)
				noOfChars++;					
		} // end of for statement		
	
		arr = new Array(noOfChars);
		i = 0; 
		var fromChar = 0;
	
		for (var j=0; j<strSourceString.length; j++){
			if (strSourceString.charAt(j) == strChar){
				arr[i++] = strSourceString.substring(fromChar,j);
				fromChar = j + 1;
			}	
		} // end of for statement		
	
		arr[i] = strSourceString.substring(fromChar);
		return arr;
	
	}// end of function mockSplit
	
	
	function emailCheck (emailStr) {
/* The following pattern is used to check if the entered e-mail address
   fits the user@domain format.  It also is used to separate the username
   from the domain. */
var emailPat=/^(.+)@(.+)$/
/* The following string represents the pattern for matching all special
   characters.  We don't want to allow special characters in the address. 
   These characters include ( ) < > @ , ; : \ " . [ ]    */
var specialChars="\\(\\)<>@,;:\\\\\\\"\\.\\[\\]"
/* The following string represents the range of characters allowed in a 
   username or domainname.  It really states which chars aren't allowed. */
var validChars="\[^\\s" + specialChars + "\]"
/* The following pattern applies if the "user" is a quoted string (in
   which case, there are no rules about which characters are allowed
   and which aren't; anything goes).  E.g. "jiminy cricket"@disney.com
   is a legal e-mail address. */
var quotedUser="(\"[^\"]*\")"
/* The following pattern applies for domains that are IP addresses,
   rather than symbolic names.  E.g. joe@[123.124.233.4] is a legal
   e-mail address. NOTE: The square brackets are required. */
var ipDomainPat=/^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/
/* The following string represents an atom (basically a series of
   non-special characters.) */
var atom=validChars + '+'
/* The following string represents one word in the typical username.
   For example, in john.doe@somewhere.com, john and doe are words.
   Basically, a word is either an atom or quoted string. */
var word="(" + atom + "|" + quotedUser + ")"
// The following pattern describes the structure of the user
var userPat=new RegExp("^" + word + "(\\." + word + ")*$")
/* The following pattern describes the structure of a normal symbolic
   domain, as opposed to ipDomainPat, shown above. */
var domainPat=new RegExp("^" + atom + "(\\." + atom +")*$")


/* Finally, let's start trying to figure out if the supplied address is
   valid. */

/* Begin with the coarse pattern to simply break up user@domain into
   different pieces that are easy to analyze. */
var matchArray=emailStr.match(emailPat)
if (matchArray==null) {
  /* Too many/few @'s or something; basically, this address doesn't
     even fit the general mould of a valid e-mail address. */
//	alert("Email address seems incorrect (check @ and .'s)")
	return false
}
var user=matchArray[1]
var domain=matchArray[2]

// See if "user" is valid 
if (user.match(userPat)==null) {
    // user is not valid
//    alert("The username doesn't seem to be valid.")
    return false
}

/* if the e-mail address is at an IP address (as opposed to a symbolic
   host name) make sure the IP address is valid. */
var IPArray=domain.match(ipDomainPat)
if (IPArray!=null) {
    // this is an IP address
	  for (var i=1;i<=4;i++) {
	    if (IPArray[i]>255) {
//	        alert("Destination IP address is invalid!")
		return false
	    }
    }
    return true
}

// Domain is symbolic name
var domainArray=domain.match(domainPat)
if (domainArray==null) {
//	alert("The domain name doesn't seem to be valid.")
    return false
}

/* domain name seems valid, but now make sure that it ends in a
   three-letter word (like com, edu, gov) or a two-letter word,
   representing country (uk, nl), and that there's a hostname preceding 
   the domain or country. */

/* Now we need to break up the domain to get a count of how many atoms
   it consists of. */
var atomPat=new RegExp(atom,"g")
var domArr=domain.match(atomPat)
var len=domArr.length
if (domArr[domArr.length-1].length<2 || 
    domArr[domArr.length-1].length>3) {
   // the address must end in a two letter or three letter word.
   //alert("The address must end in a three-letter domain, or two letter country.")
   return false
}

// Make sure there's a host name preceding the domain.
if (len<2) {
   var errStr="This address is missing a hostname!"
//   alert(errStr)
   return false
}

// If we've gotten this far, everything's valid!
return true;
}



function validateNotify(){
	
	if(trim(document.forms[1].sname) == "")
		{
			alert("Please enter your name");
			document.forms[1].sname.focus();
			return;
		}
	else
	if (trim(document.forms[1].semail) == "")
		{
			alert("Please enter your E-mail address");
			document.forms[1].semail.focus();
			return;
		}
	else
	if (trim(document.forms[1].remails) == "")
		{
			alert("Please enter send to E-mail address");
			document.forms[1].remails.focus();
			return;
		}
	else
	if(trim(document.forms[1].notes) == "")
		{
			alert("Please enter your Comments/Questions");
			document.forms[1].notes.focus();
			return;
		}
		else
		{
			cmmArr = mockSplit(document.forms[1].remails.value,',');
			for (i=0; i<cmmArr.length; i++)
			{
				//alert("before calling email check for " + cmmArr[i]);
				tempEmail = trimVar(cmmArr[i]);
				if ( tempEmail.length == 0)
					continue;
					
				if  (!emailCheck(tempEmail)){
					alert("Please enter valid e-mail addresses");
					return;
				}
			}
			linkSubmitForm('/customerservice/contacttmp.cfm','../customerservice/notifyothers.cfm');
		}
	
}

function validateYEContact(){
	email = trim(document.forms[1].email);
	
	if(trim(document.forms[1].name) == "")
		{
			alert("Please enter your name");
			document.forms[1].name.focus();
			return;
		}
	if(email == "")
		{
			alert("Please enter email");
			document.forms[1].email.focus();
			return;
		}
	if(trim(document.forms[1].phone) == "")
		{
			alert("Please enter phone");
			document.forms[1].phone.focus();
			return;
		}

	if (!emailCheck(email)){
		alert("Please enter valid e-mail addresses");
		document.forms[1].email.focus();
		return;
	}

	linkSubmitForm('/customerservice/customerservicetmp.cfm','../customerservice/yearend.cfm','','CNTSUBMIT');
			
}


function validateYENotify(){
	
	if(trim(document.forms[1].sname) == "")
		{
			alert("Please enter your name");
			document.forms[1].sname.focus();
			return;
		}
	else
	if (trim(document.forms[1].semail) == "")
		{
			alert("Please enter your E-mail address");
			document.forms[1].semail.focus();
			return;
		}
	else
	if (trim(document.forms[1].remails) == "")
		{
			alert("Please enter send to E-mail address");
			document.forms[1].remails.focus();
			return;
		}
	else
	if(trim(document.forms[1].notes) == "")
		{
			alert("Please enter your Comments/Questions");
			document.forms[1].notes.focus();
			return;
		}
		else
		{
			cmmArr = mockSplit(document.forms[1].remails.value,',');
			for (i=0; i<cmmArr.length; i++)
			{
				//alert("before calling email check for " + cmmArr[i]);
				if (!emailCheck(cmmArr[i])){
					alert("Please enter valid e-mail addresses");
					return;
				}
			}
			linkSubmitForm('/customerservice/customerservicetmp.cfm','../customerservice/yearend.cfm','','NTFSUBMIT');
		}
	
}



function validateNYEContact(){
	email = trim(document.forms[1].email);
	
	if(trim(document.forms[1].notes) == "")
		{
			alert("Please enter your note");
			document.forms[1].notes.focus();
			return;
		}

	if(trim(document.forms[1].name) == "")
		{
			alert("Please enter your name");
			document.forms[1].name.focus();
			return;
		}
	if(email == "")
		{
			alert("Please enter email");
			document.forms[1].email.focus();
			return;
		}
	if(trim(document.forms[1].phone) == "")
		{
			alert("Please enter phone");
			document.forms[1].phone.focus();
			return;
		}


	if (!emailCheck(email)){
		alert("Please enter valid e-mail addresses");
		document.forms[1].email.focus();
		return;
	}

	linkSubmitForm('/customerservice/customerservicetmp.cfm','../customerservice/nyearend.cfm','','CNTSUBMIT');
			
}


function validateNYENotify(){
	
	if(trim(document.forms[1].sname) == "")
		{
			alert("Please enter your name");
			document.forms[1].sname.focus();
			return;
		}
	else
	if (trim(document.forms[1].semail) == "")
		{
			alert("Please enter your E-mail address");
			document.forms[1].semail.focus();
			return;
		}
	else
	if (trim(document.forms[1].remails) == "")
		{
			alert("Please enter send to E-mail address");
			document.forms[1].remails.focus();
			return;
		}
	else
	if(trim(document.forms[1].notes) == "")
		{
			alert("Please enter your Comments/Questions");
			document.forms[1].notes.focus();
			return;
		}
		else
		{
			cmmArr = mockSplit(document.forms[1].remails.value,',');
			for (i=0; i<cmmArr.length; i++)
			{
				//alert("before calling email check for " + cmmArr[i]);
				if (!emailCheck(cmmArr[i])){
					alert("Please enter valid e-mail addresses");
					return;
				}
			}
			linkSubmitForm('/customerservice/customerservicetmp.cfm','../customerservice/nyearend.cfm','','NTFSUBMIT');
		}
	
}


function validateMCDReqForm(){
	
	if(trim(document.forms[1].name) == "")
		{
			alert("Please enter Name");
			document.forms[1].name.focus();
			return;
		}
	else
	if (trim(document.forms[1].title) == "")
	{
			alert("Please enter Title");
			document.forms[1].title.focus();
			return;
	}
	else
	if (trim(document.forms[1].organization) == "")
	{
			alert("Please enter Organization");
			document.forms[1].organization.focus();
			return;
	}
	else
	if (trim(document.forms[1].email) == "")
	{
			alert("Please enter E-mail");
			document.forms[1].email.focus();
			return;
	}
	else
	if(trim(document.forms[1].phone) == "")
		{
			alert("Please enter Telephone Number");
			document.forms[1].phone.focus();
			return;
		}
	else
	if(trim(document.forms[1].address1) == "")
		{
			alert("Please enter Address1");
			document.forms[1].address1.focus();
			return;
		}
	else
	if(trim(document.forms[1].city) == "")
		{
			alert("Please enter City");
			document.forms[1].city.focus();
			return;
		}				
	else
	if(trim(document.forms[1].state) == "")
		{
			alert("Please enter State");
			document.forms[1].state.focus();
			return;
		}				
	else
	if(trim(document.forms[1].zip) == "")
		{
			alert("Please enter Zip");
			document.forms[1].zip.focus();
			return;
		}				
	else
	{
		if (!emailCheck(document.forms[1].email.value)){
			alert("Please enter a valid e-mail address");
			return;
		}	
		linkSubmitForm('/advice/advicetmp.cfm','../advice/splcatreq.cfm','fromsubmit');
	}
}




function validateEqpReqForm(fromPage){

		
	request = trim(document.forms[1].equiprequest);
	i = request.length - 1;
	for (i = request.length -1; (request.charAt(i) == '\n' || request.charAt(i) == '\r'); i--);

	if (request.charAt(i) == ':')
	{
			alert("Please enter request");
			return;
	}	
	
	if(trim(document.forms[1].name) == "")
		{
			alert("Please enter Name");
			document.forms[1].name.focus();
			return;
		}
	else
	if(trim(document.forms[1].email) == "") 
	{
			alert("Please enter E-mail");
			document.forms[1].email.focus();
			return;
	}
	else
	 if(trim(document.forms[1].phone) == "")
	{
			alert("Please enter phone");
			document.forms[1].phone.focus();
			return;
	}
	else
	if(trim(document.forms[1].equiprequest) == "")
		{
			alert("Please enter request");
			document.forms[1].equiprequest.focus();
			return;
		}
	else
	if((request.length < 40) && (request.charAt(request.length) == ":"))
	{
		alert("Please enter request");
		document.forms[1].equiprequest.focus();
		return;
		
	}
	else
	{
			if (!emailCheck(document.forms[1].email.value)){
				alert("Please enter a valid e-mail address");
				return;
			}
		linkSubmitForm('/customerservice/customerservicetmp.cfm','../customerservice/equiprequest.cfm','fromsubmit',fromPage,'');
	}	
}


function validateNfySavings(){
	
	if(trim(document.forms[1].sname) == "")
		{
			alert("Please enter your name");
			document.forms[1].sname.focus();
			return;
		}
	else
	if (trim(document.forms[1].semail) == "")
		{
			alert("Please enter your E-mail address");
			document.forms[1].semail.focus();
			return;
		}
	else
	if (trim(document.forms[1].remails) == "")
		{
			alert("Please enter send to E-mail address");
			document.forms[1].remails.focus();
			return;
		}
	else
	if(trim(document.forms[1].notes) == "")
		{
			alert("Please enter your Comments/Questions");
			document.forms[1].notes.focus();
			return;
		}
		else
		{
			cmmArr = mockSplit(document.forms[1].remails.value,',');
			for (i=0; i<cmmArr.length; i++)
			{
				//alert("before calling email check for " + cmmArr[i]);
				tempEmail = trimVar(cmmArr[i]);
				if ( tempEmail.length == 0)
					continue;
					
				if  (!emailCheck(tempEmail)){
					alert("Please enter valid e-mail addresses");
					return;
				}
			}
			linkSubmitForm('/customerservice/contacttmp.cfm','../customerservice/nfysavings.cfm');
		}
	
}
function selectRadio(radio){
	radio.checked = true;
}

function sendResponse(){

	flag = false;

	for (i = 0; i < document.forms[1].order.length; i++)
	{	if( document.forms[1].order[i].checked )
		{	
			flag = true;
			break; 
		}
	}
	if (!flag){
		alert("When is your next test equipment order?");
		return;
	}

	flag = false;

	for (i = 0; i < document.forms[1].budget.length; i++)
	{	if( document.forms[1].budget[i].checked )
		{	
			flag = true;
			break; 
		}
	}
	if (!flag){
		alert("What is your 2003 test equipment budget?");
		return;
	}


	flag = false;

	for (i = 0; i < document.forms[1].role.length; i++)
	{	if( document.forms[1].role[i].checked )
		{	
			flag = true;
			break; 
		}
	}
	if (!flag){
		alert("What is your role?");
		return;
	}
	document.forms[1].targetPage.value = '../customerservice/survey.cfm';
	document.forms[1].submit();

}

function vldSendQuote(){
	name = trim(document.forms[1].ftr_name);
	email = trim(document.forms[1].ftr_email);
	phone = trim(document.forms[1].ftr_phone);

	if (name == ""){
		alert("Please enter name");
		document.forms[1].ftr_name.focus();
		return;
	}
	if (email == ""){
		alert("Please enter e-mail");
		document.forms[1].ftr_email.focus();
		return;
	}
	if (!emailCheck(email)){
		alert("Please enter a valid e-mail");
		document.forms[1].ftr_email.focus();
		return;
	}
	
	linkSubmitForm('/estore/productstmp.cfm','../help/quoteform.cfm','','','','');
}

function inventoryOverride(){
	var pagename = "overrideinventory";
	curdate = new Date();
	WindowName = curdate.setTime(Date.parse(curdate));

	var wtop  = ( screen.height - 450)/2;
	var wleft = ( screen.width - 550)/2 ;

	var windowprops = 'toolbar=0,location=0,directories=0,status=0, ' +
			'menubar=0,scrollbars=1,resizable=0,width=550,height=450,top='+wtop+',left='+wleft;
	self.name = WindowName;
	overrideWindow = window.open("/reqlist/overrideinventory.cfm","overrideinventory",windowprops);

			if ( overrideWindow != null )
			{
				if ( overrideWindow.opener == null )
				{ overrideWindow.opener = self;  } 
			
				if (arguments.length == 3){
					document.forms[1].param1.value = arguments[0];
					document.forms[1].param2.value = arguments[1];
					document.forms[1].param3.value = arguments[2];
					document.forms[1].param4.value = '../reqlist/reqlist.cfm';
				}
				else if (arguments.length == 4){
					document.forms[1].param1.value = arguments[0];
					document.forms[1].param2.value = arguments[1];
					document.forms[1].param3.value = arguments[2];
					document.forms[1].param4.value = arguments[3];
				}
				else{
					document.forms[1].param1.value = "";
					document.forms[1].param2.value = "";
					document.forms[1].param3.value = "";
					document.forms[1].param4.value = '../reqlist/reqlist.cfm';
				}	
				document.forms[1].action="/estore/reqlisttmp.cfm?ttype=";
				document.forms[1].targetPage.value = "../reqlist/overrideinventory.cfm";
				document.forms[1].target="overrideinventory";
				document.forms[1].method="post";
				document.forms[1].submit();
				overrideWindow.focus(); 
			}
	overrideWindow.opener = self;  
	overrideWindow.focus();
}		

function vldCat1(){
  flag = false;
  usertype = document.forms[1].usertype;
  for (i=0;i<usertype.length;i++){
  	if(usertype[i].checked){
		flag = true;
		break;
	}
  }
  
  if (!flag){
    alert("Please select your role");
	return;
  }
  
  email = trim(document.forms[1].catalogemail);
  if (email == ""){
  	alert("Please enter email address");
	document.forms[1].catalogemail.focus();
	return;
  }
  
  if (!emailCheck(email)){
  	alert("Please enter a valid email address");
	document.forms[1].catalogemail.focus();
	return;
  }
  
  linkSubmitForm('/estore/productstmp.cfm','../advice/cdromreqform.cfm','catalogemail','','','','');

}