<!--
totalFRYSPqty = 0;
totalFROHSPqty = 0;
totalFROHSCqty = 0;
totalFREDHCqty = 0;
totalFREDACqty = 0;
totalPEZPostqty = 0;
totalINFOPAKqty = 0;

/* buyItem - adds an item to the shopping basket
function buyItemRex2(itemNo, qty) 
{
// set up variables for message riders
//alert("itemNo = " + itemNo);
		var whichitem;
		var size;
		var color = "Green and Red";
		var bgcolor = "White";
		var copy1;
		var copy2;
		
		// get order parameters
		if (itemNo.substr(0,6) == "REXPNR")
		{ //Agent Photo Rider
			// extract sign variables
			switch(itemNo.substr(9, 1))
			{
				case "S":
					whichitem = "Executives Steel Agent Photo Rider";
					break;
				case "P":
					whichitem = "Executives Polyethylene Agent Photo Rider"; 
					break;
				case "R":
					whichitem = "Executives Reflective Agent Photo Rider"; 
			}
			if (itemNo.substr(7,2) == "CM")
			{
				size = "6 x 24";
			} else 
			{
				size = "8 x 24";
			}
			if (itemNo.substr(11,2) == "RD")
			{
				color = "Red";
			}
			if (itemNo.substr(11,2) == "BK")
			{
				color = "Black";
			}
			if (itemNo.substr(11,2) == "BE")
			{
				color = "Blue";
			}
			
			copy1 = document.getElementById("Namerider_name").value + ", " + document.getElementById("Namerider_phone1").value;
			var filepath = document.getElementById("F1").value.split("\\");
			var filename = filepath[filepath.length - 1];
			//alert("filename = " + filename);
			copy2 = filename;
		}

		if (itemNo.substr(0,5) == "REXNR")
		{ //Agent Rider
			// extract sign variables
			switch(itemNo.substr(7, 1))
			{
				case "S":
					whichitem = "Executives Steel ";
					break;
				case "P":
					whichitem = "Executives Polyethylene "; 
					break;
				//case "A":
					//whichitem = "Executives Aluminum ";
					//break;
				case "R":
					whichitem = "Executives Reflective "; 
			}
			copy2 = "&nbsp;";
			switch(itemNo.substr(5, 1))
			{
				case "F":
					whichitem = whichitem + "Agent Rider Style F";
					size = "6 x 24";
					break;
				case "G":
					whichitem = whichitem + "Agent Rider Style G"; 
					size = "6 x 24";
					break;
				case "H":
					whichitem = whichitem + "Agent Rider Style H"; 
					size = "6 x 28";
					copy2 = document.getElementById("Namerider_phone2").value;
					break;
				case "I":
					whichitem = whichitem + "Agent Rider Style I"; 
					size = "6 x 28";
					copy2 = document.getElementById("Namerider_phone2").value;
					break;
			}
			if (itemNo.substr(9,2) == "RD")
			{
				color = "Red";
			}
			if (itemNo.substr(9,2) == "BK")
			{
				color = "Black";
			}
			if (itemNo.substr(9,2) == "BE")
			{
				color = "Blue";
			}

			copy1 = document.getElementById("Namerider_name").value + 
			", " + document.getElementById("Namerider_phone1").value;			
		}
	
		if (itemNo.substr(0,5) == "REX-D")
		{ //Decal Message Rider
		//alert("starting EXR-D");
			// extract sign variables
			whichitem = "Executives Decal Message Rider";
			size = "4 x 18";
			color = "&nbsp;";
			bgcolor = "&nbsp;";
			var listd = document.getElementById("dec_rider");
			copy1 = listd.options[listd.selectedIndex].text;
			copy2 = "&nbsp;";
		}
	
		if (itemNo.substr(0,5) == "REX-M")
		{ //Magnetic Rider
		//alert("starting EXR-M");
			// extract sign variables
			whichitem = "Executives Magnetic Message Rider";
			size = "4 x 18";
			color = "&nbsp;";
			bgcolor = "&nbsp;";
			var listm = document.getElementById("mag_massage");
			copy1 = listm.options[listm.selectedIndex].text;
			copy2 = "&nbsp;";
		}
	
		if (itemNo == "REXSCOH")
		{
			size = "18 x 24";
			color = "Blue";
			bgcolor = "White";
			copy1 = "&nbsp;";
			copy2 = "&nbsp;";
			whichitem = "Executives Open House Combo";
		}
		
		if (itemNo == "REXSCOH-I")
		{
			size = "18 x 24;";
			color = "Blue";
			bgcolor = "White";
			copy1 = document.getElementById("rexscoh_I_name").value;
			copy2 = "&nbsp;";
			whichitem = "Executives Imprinted Open House Combo";
		}
		
		if (itemNo == "REXP-STK003")
		{
			size = "&nbsp;";
			color = "&nbsp;";
			bgcolor = "";
			copy1 = "&nbsp;";
			copy2 = "&nbsp;";
			whichitem = "Executives Single Stake Post";
		}
		
		if (itemNo == "REXP-Colonial Post")
		{
			size = "&nbsp;";
			color = "&nbsp;";
			bgcolor = "";
			copy1 = "&nbsp;";
			copy2 = "&nbsp;";
			whichitem = "Executives Colonial Post";
		}
		
		if (itemNo == "REXP-EZ Post")
		{
			size = "&nbsp;";
			color = "&nbsp";
			bgcolor = "";
			copy1 = "&nbsp;";
			copy2 = "&nbsp;";
			whichitem = "Executives E-Z Post";
		}
		
		if (itemNo.substr(0,6) == "REXCS-")
		{
			switch(itemNo.substr(6,2))
			{
				case "RG":
				//alert("starting rg");
						size = "&nbsp;";
						color = "&nbsp";
						bgcolor = "";
						copy1 = "&nbsp;";
						copy2 = "&nbsp;";
						whichitem = "Executives Coro-Stake Standard";
						break;
				case "HD":
				//alert("starting hd");
						size = "&nbsp;";
						color = "&nbsp";
						bgcolor = "";
						copy1 = "&nbsp;";
						copy2 = "&nbsp;";
						whichitem = "Executives Coro-Stake Heavy";
						break;
				case "SD":
				//alert("starting sd");
						size = "&nbsp;";
						color = "&nbsp";
						bgcolor = "";
						copy1 = "&nbsp;";
						copy2 = "&nbsp;";
						whichitem = "Executives Coro-Stake Super";
						break;
				case "S3":	// REXCS-S3248-2
						size = "32 x 48";
						color = "Blue and Red";
						bgcolor = "White";
						copy1 = document.getElementById("vs_name").value + ', ' + document.getElementById("vs_phone").value
							+ ', ' +  document.getElementById("vs_web").value;
						copy2 = document.getElementById("vs_text").value;
						whichitem = "Executives 32x48 Steel VersaSign";
			}
		}
	

		if (itemNo.substr(0,4) == "REXB")
		{ // Large Flexi signs
			switch(itemNo.substr(4, 2))
			{
				case "OH":	
						size = "42 x 72";
						color = "Blue and Red";
						bgcolor = "White";
						copy1 = document.getElementById("exboh_name").value;
						copy2 = "&nbsp;";
						whichitem = "Executives Open House Banner";
						break;
				case "AD":	
						size = "42 x 72";
						color = "Blue and Red";
						bgcolor = "White";
						copy1 = document.getElementById("exbafs_name").value;
						copy2 = document.getElementById("exbafs_phone").value;
						whichitem = "Executives For Sale Banner";
						break;
			}
		}
						
		if (itemNo.substr(0,6) == "REXMG-" || itemNo == "REXLP" || itemNo == "REXLP-I")
		{ // Large Flexi signs
			switch(itemNo)
			{
				case "REXMG-C1014":	
						size = "10 x 14";
						color = "Blue and Red";
						bgcolor = "White";
						copy1 = document.getElementById("Namerider_name").value + ', ' + document.getElementById("Namerider_phone1").value;
						copy2 = document.getElementById("Namerider_name0").value;
						whichitem = "Executives Company Auto Magnetic";
						break;
				case "REXMG-A1014":	
						size = "10 x 14";
						color = "Blue and Red";
						bgcolor = "White";
						copy1 = document.getElementById("Namerider_name").value + ', ' + document.getElementById("Namerider_phone1").value;
						copy2 = document.getElementById("Namerider_name0").value;
						whichitem = "Executives Agent Auto Magnetic";
						break;
				case "REXMG-P1014":	
						size = "10 x 14";
						color = "Blue and Red";
						bgcolor = "White";
						copy1 = document.getElementById("Namerider_name").value + ', ' + document.getElementById("Namerider_phone1").value + ', ' + document.getElementById("Namerider_name0").value;
						var filepath = document.getElementById("F1").value.split("\\");
						var filename = filepath[filepath.length - 1];
						copy2 = filename;
						//copy2 = document.getElementById("F1").value;
						whichitem = "Executives Photo Auto Magnetic";
						break;
				case "REXLP":	
						size = "6 x 12";
						color = "Blue and Red";
						bgcolor = "White";
						copy1 = "&nbsp;";
						copy2 = "&nbsp;";
						whichitem = "Executives License Plate";
						break;
				case "REXLP-I":	
						size = "6 x 12";
						color = "Blue and Red";
						bgcolor = "White";
						copy1 = document.getElementById("Namerider_name0").value;
						copy2 = "&nbsp;";
						whichitem = "Executives Imprinted License Plate";
						break;
			}
		}
						
						
		if (itemNo.substr(0,6) == "REXSP-" || itemNo.substr(0,6) == "REXCA-" 
				|| itemNo.substr(0,6) == "REXCR-" || itemNo.substr(0,6) == "REXES-")
		{ // Company Yard Signs or Frames
				switch(itemNo.substr(6, 4))
			{
				case "1824":	// 1824 frame
						size = "18 x 24";
						color = "&nbsp";
						bgcolor = "";
						copy1 = "&nbsp;";
						copy2 = "&nbsp;";
						whichitem = "Executives Castle Frame";
						break;
				case "1830":	// 1830 frame
						size = "20 x 28";
						color = "&nbsp";
						bgcolor = "";
						copy1 = "&nbsp;";
						copy2 = "&nbsp;";
						whichitem = "Executives Castle Frame";
						break;
				case "T324": 	// REXSP-T3248-2
						size = "32 x 48";
						color = "Blue and Red";
						bgcolor = "White";
						copy1 = document.getElementById("lf1_name").value + ', ' + document.getElementById("lf1_phone").value;
						copy2 = document.getElementById("lf1r_web").value;
						whichitem = "Executives 32x48 TwinWall Panel";
						break;
				case "T484": 	// REXSP-T4848-2
						size = "48 x 48";
						color = "Blue and Red";
						bgcolor = "White";
						copy1 = document.getElementById("lf1_name").value + ', ' + document.getElementById("lf1_phone").value;
						copy2 = document.getElementById("lf1r_web").value;
						whichitem = "Executives 48x48 TwinWall Panel";
						break;
				case "W324": 	// REXSP-W3248-2
						size = "32 x 48";
						color = "Blue and Red";
						bgcolor = "White";
						copy1 = document.getElementById("lf1_name").value + ', ' + document.getElementById("lf1_phone").value;
						copy2 = document.getElementById("lf1r_web").value;
						whichitem = "Executives 32x48 Midex Panel";
						break;
				case "W484": 	// REXSP-W4848-2
						size = "48 x 48";
						color = "Blue and Red";
						bgcolor = "White";
						copy1 = document.getElementById("lf1_name").value + ', ' + document.getElementById("lf1_phone").value;
						copy2 = document.getElementById("lf1r_web").value;
						whichitem = "Executives 48x48 Midex Panel";
						break;
				case "S324": 	// REXSP-S3248-2
						size = "32 x 48";
						color = "Blue and Red";
						bgcolor = "White";
						copy1 = document.getElementById("lf2_name").value;
						copy2 = document.getElementById("lf2_phone").value;
						whichitem = "Executives 32x48 Metal Panel";
						break;
				case "S181": 	// REXSP-S1818-1
						size = "18 x 18";
						color = "Black";
						bgcolor = "White";
						copy1 = document.getElementById("vsp_text").value;
						copy2 = "&nbsp;";
						whichitem = "Executives 18x18 Changeable VersaSign Panel";
						break;
	
				default:	// Company Yard Signs
					// extract sign variables
					switch(itemNo.substr(6, 1))
					{
						case "S":
							whichitem = "Executives Steel Company Yard Sign";
							break;
						case "P":
							whichitem = "Executives Polyethylene Company Yard Sign"; 
							break;
						case "R":
							whichitem = "Executives Reflective Company Yard Sign"; 
							break;
						case "A":
							whichitem = "Executives Aluminum Company Yard Sign"; 
							break;
						case "T":
							whichitem = "Executives TwinWall Company Yard Sign"; 
					}
					switch(itemNo.substr(7,4))
					{
						case "1824":
							size = "18 x 24";
							break;
						case "1830":
							size = "18 x 30";
					}
					color = "Blue and Red";
					if (itemNo.substr(12,1) == "C")
					{
						copy1 = document.getElementById("Namerider_name").value;
						copy2 = document.getElementById("Namerider_phone1").value;
					} else 
					{
						/*
						if (itemNo.substr(12,1) == "1")
						{
							copy1 = document.getElementById("Namerider_name").value;
							copy2 = document.getElementById("Namerider_phone1").value;
						}
						else
						{
							copy1 = document.getElementById("Namerider_name").value + ', ' +
							document.getElementById("Namerider_phone1").value;
							copy2 = document.getElementById("Namerider_name0").value + ', ' +
							document.getElementById("Namerider_phone2").value;
						}
//Close comment was here				
						//  changed to capture all four text boxes per request from Ken 4/4/07
							copy1 = document.getElementById("Namerider_name").value + ', ' +
							document.getElementById("Namerider_phone1").value;
							copy2 = document.getElementById("Namerider_name0").value + ', ' +
							document.getElementById("Namerider_phone2").value;
							
						if (itemNo.substr(12,1) == "P") 
						{
							copy1 = copy1 + ', ' + copy2;
							var filepath = document.getElementById("F1").value.split("\\");
							var filename = filepath[filepath.length - 1];
							//alert("filename = " + filename);
							copy2 = filename;
						}
					}
			}
		}
/*		
		if (itemNo.substr(0,5) == "REXASP" || itemNo.substr(0,5) == "REXACA" 
				|| itemNo.substr(0,5) == "REXACR" || itemNo.substr(0,5) == "REXAES")
		{ //Agent Photo Rider
			// extract sign variables
			switch(itemNo.substr(6, 1))
			{
				case "S":
					whichitem = "Executives Steel Agent";
					break;
				case "P":
					whichitem = "Executives Polyethylene Agent Yard Sign"; 
					break;
				case "R":
					whichitem = "Executives Reflective Agent Yard Sign"; 
					break;
				case "A":
					whichitem = "Executives Aluminum Agent Yard Sign"; 
					break;
				case "T":
					whichitem = "Executives TwinWall Agent Yard Sign"; 
			}
			if (itemNo.substr(7,4) == "2028")
			{
				size = "20 x 28";
			} else if (itemNo.substr(7,4) == "2418")
			{
				size = "24 x 18";
			}
			if (itemNo.substr(12,1) == "2")
			{
				color = "Blue and Red";
			} if (itemNo.substr(12,1) == "3")
			{
				color = "Blue and Red";
				bgcolor = "Burgundy";
			}
			
			copy1 = document.getElementById("Namerider_name").value + ", " + document.getElementById("Namerider_phone1").value
			+ ", " + document.getElementById("Namerider_name0").value + ", " + document.getElementById("Namerider_phone2").value;
			var filepath = document.getElementById("F1").value.split("\\");
			var filename = filepath[filepath.length - 1];
			//alert("filename = " + filename);
			copy2 = filename;
		}
//Close comment was here	
		if (itemNo.substr(0,6) == "REXHFS" || itemNo.substr(0,6) == "REXHOH" 
				|| itemNo.substr(0,6) == "REXAFS" || itemNo.substr(0,6) == "REXAOH"
				|| itemNo.substr(0,6) == "REXTWF" || itemNo.substr(0,6) == "REXTWO"
				|| itemNo.substr(0,6) == "REXDPF" || itemNo.substr(0,6) == "REXDPO")
		{ // Directional Signs
			whichitem = "Executives ";
			// extract sign variables
			switch(itemNo.substr(3, 1))
			{
				case "D":
					whichitem += "Steel ";
					break;
				default:
					whichitem += "TwinWall "; 
			}
			whichitem += "Directional ";
			if (itemNo.substr(itemNo.length - 1, 1) == "I")
			{
				whichitem += "Imprinted ";
			}
			whichitem += "Sign";
			
			if (itemNo.substr(8,4) == "1218")
			{
				size = "12 x 18";
			} else if (itemNo.substr(9,4) == "0924")
			{
				size = "9 x 24";
			} else 
			{
				size = "&nbsp;";
			}
			
			color = "&nbsp;";
			bgcolor = "&nbsp;";
			
			copy1 = document.getElementById("Namerider_name").value;
			copy2 = "&nbsp;";
		}
		
			//alert("itemNo = " + itemNo);
		
		if (itemNo.substr(0,7) == "REXINFO" || itemNo == "REXGDBH" || itemNo == "REXSOLAR") 
		{
			switch(itemNo)
			{
			case "REXINFOBOX":
						size = "&nbsp;";
						color = "Blue and Red";
						bgcolor = "White";
						copy1 = "&nbsp;";
						copy2 = "&nbsp;";
						whichitem = "Executives Information Box";
						break;
			case "REXINFOBOX-I":
						size = "&nbsp;";
						color = "Blue and Red";
						bgcolor = "White";
						copy1 = document.getElementById("CompanyName1").value;
						copy2 = "&nbsp;";
						whichitem = "Executives Imprinted Information Box";
						break;
			case "REXINFOBOX-WSS":
						size = "&nbsp;";
						color = "Blue and Red";
						bgcolor = "White";
						copy1 = "&nbsp;";
						copy2 = "&nbsp;";
						whichitem = "Executives Info Box with Stake";
						break;
			case "REXINFOBOX-I-WSS":
						size = "&nbsp;";
						color = "Blue and Red";
						bgcolor = "White";
						copy1 = document.getElementById("CompanyName2").value;
						copy2 = "&nbsp;";
						whichitem = "Executives Imprinted Info Box with Stake";
						break;
			case "REXGDBH":
						size = "&nbsp;";
						color = "&nbsp;";
						bgcolor = "&nbsp;";
						copy1 = "&nbsp;";
						copy2 = "&nbsp;";
						whichitem = "Executives Banner Hanger Kit";
						break;
			case "REXSOLAR":
			//alert("starting solar");
						size = "&nbsp;";
						color = "&nbsp;";
						bgcolor = "&nbsp;";
						copy1 = "&nbsp;";
						copy2 = "&nbsp;";
						whichitem = "Executives Solar Information Dispenser";
						break;
			}
		}
/*
// sets Commercialqty counter for Commercial prices
		color = " ";
		bgcolor = " ";
		copy1 = " ";
		copy2 = " ";


		//CODED BY ALF 07/09/06
		if (whichitem == "Flat Rate Yard Sign Panel") {
 			setTotalqty(qty);
		}
		if (whichitem == "Flat Rate Open House Sign Panel") {
        	setTotalqty(qty);
		}
		if (whichitem == "Flat Rate Open House Sign Combo") {
        	setTotalqty(qty); 
		}
		if (whichitem == "Flat Rate Economy Directional House Combo") {
			setTotalqty(qty);
		}
		if (whichitem == "Flat Rate Economy Directional Arrow Combo") {
			setTotalqty(qty);
		}
		if (whichitem == "EZPost") {
			setTotalqty(qty);
		}
		if (whichitem == "Infopak") {
			setTotalqty(qty);
		}
//Close comment was here	
		oldCart = getCookie('ShopCart');
		newCart = "["+itemNo+"|"+whichitem+"|"+size+"|"+color+"|"+bgcolor+"|"+copy1+"|"+copy2+"|"+qty+"]";
		cartFull = oldCart + newCart;
		setCookie('ShopCart',cartFull);
		
		viewCart();
}
*/	
//-------------------------------------------------------------------------------------------------------------------------------
/*

// validate form fields
function addItemRex2(itemNoField, Commercialqty)
{
	//alert("itemNoField = " + itemNoField + ', qty = ' + Commercialqty);
	
		// get form variables
		if (itemNoField == "" || itemNoField == " ")
		{
				alert('Please click Price Activator first...');
				return;
		}

		// validates Commercialqty
		if (Commercialqty == "" || Commercialqty == " ")
        {
		//alert(selectQtyValue);
		    alert('Please enter a quantity.');
			return;
		}
		isNo = chkForNum(Commercialqty);
		if (!isNo)
		{
			alert('Please enter only numeric values');
			return;
		}
	//alert("itemNoField = " + itemNoField);

		// get and validate order parameters
		if (itemNoField.substr(0,6) == "REXPNR") //Photo Agent Riders
		{ //Agent Photo Rider
			// validate the quantity
			if (Commercialqty != 5 && Commercialqty != 10 && Commercialqty != 15 && Commercialqty != 25 && Commercialqty != 50)
			{
				alert('Please select a quantity.');
				return;
			}
			// validate Textbox Options
			if (document.getElementById("Namerider_name").value == "" ||
				document.getElementById("Namerider_name").value == " ")
				{
					alert("Please enter the Agent's Name.");
					return;
				}
					
			if (document.getElementById("Namerider_phone1").value == "" ||
				document.getElementById("Namerider_phone1").value == " ")
				{
					alert("Please enter the Agent's Phone Number.");
					return;
				}
		}
		
		if (itemNoField.substr(0,5) == "REXNR") //Std Agent Riders
		{ //Agent Photo Rider
			// validate the quantity
			if (Commercialqty != 5 && Commercialqty != 10 && Commercialqty != 15 && Commercialqty != 25 && Commercialqty != 50)
			{
				alert('Please select a quantity.');
				return;
			}
			// validate Textbox Options
			if (document.getElementById("Namerider_name").value == "" ||
				document.getElementById("Namerider_name").value == " ")
				{
					alert("Please enter the Agent's Name.");
					return;
				}
					
			if (document.getElementById("Namerider_phone1").value == "" ||
				document.getElementById("Namerider_phone1").value == " ")
				{
					alert("Please enter the Agent's Phone Number.");
					return;
				}

			if (itemNoField.substr(5,1) == "H" || itemNoField.substr(5,1) == "I")
			{
				if (document.getElementById("Namerider_phone2").value == "" ||
					document.getElementById("Namerider_phone2").value == " ")
					{
						alert("Please enter the Second Phone Number or Web Address.");
						return;
					}
			}
		}
		
		if (itemNoField.substr(0,6) == "REXINF") 
		{ 
			// validate the quantity
			if (Commercialqty != 6 && Commercialqty != 12 && Commercialqty != 24 && Commercialqty != 48 && Commercialqty != 96)
			{
				alert('Please select a quantity.');
				return;
			}
		}
		
		if (itemNoField.substr(0,6) == "REXSP-" || itemNoField.substr(0,6) == "REXCA-" 
				|| itemNoField.substr(0,6) == "REXCR-" || itemNoField.substr(0,6) == "REXES-"
				|| itemNoField == "REXCS-S3248-2") 
		{ // Company Yard Signs or Frames or some Large Format signs
			switch (itemNoField)
			{
				case ('REXSP-S1818-1'):
					if (Commercialqty != 1 && Commercialqty != 2 && Commercialqty != 4 && Commercialqty != 6 
						&& Commercialqty != 12 && Commercialqty != 24)
						{
							alert('Please select a quantity.');
							return;
						}
					if (document.getElementById("vsp_text").value == "" ||
						document.getElementById("vsp_text").value == " ")
						{
							alert("Please enter the Changeable Panel text.");
							return;
						}
					break;					
				case ('REXCS-S3248-2'):
					if (Commercialqty != 1 && Commercialqty != 2 && Commercialqty != 4 && Commercialqty != 6 
						&& Commercialqty != 12 && Commercialqty != 24)
						{
							alert('Please select a quantity.');
							return;
						}
					if (document.getElementById("vs_name").value == "" ||
						document.getElementById("vs_name").value == " ")
						{
							alert("Please enter the Company Name.");
							return;
						}
					if (document.getElementById("vs_phone").value == "" ||
						document.getElementById("vs_phone").value == " ")
						{
							alert("Please enter the Phone Number.");
							return;
						}
					if (document.getElementById("vs_web").value == "" ||
						document.getElementById("vs_web").value == " ")
						{
							alert("Please enter the Web Address.");
							return;
						}
					if (document.getElementById("vs_text").value == "" ||
						document.getElementById("vs_text").value == " ")
						{
							alert("Please enter the Changeable Panel text.");
							return;
						}
					break;					
				case ('REXCA-S3248-2'):
					// validate Textbox Options
					if (document.getElementById("lf2_name").value == "" ||
						document.getElementById("lf2_name").value == " ")
						{
							alert("Please enter the Company Name.");
							return;
						}
								
					if (document.getElementById("lf2_phone").value == "" ||
						document.getElementById("lf2_phone").value == " ")
						{
							alert("Please enter the Phone Number.");
							return;
						}
					break;
				
				case ('REXSP-T3248-2'):
						// large format Signs
					if (Commercialqty != 2 && Commercialqty != 4 && Commercialqty != 6 
						&& Commercialqty != 12 && Commercialqty != 24)
						{
							alert('Please select a quantity.');
							return;
						}
					// validate Textbox Options
					if (document.getElementById("lf1_name").value == "" ||
						document.getElementById("lf1_name").value == " ")
						{
							alert("Please enter the Company Name.");
							return;
						}
								
					if (document.getElementById("lf1_phone").value == "" ||
						document.getElementById("lf1_phone").value == " ")
						{
							alert("Please enter the Phone Number.");
							return;
						}
					if (document.getElementById("lf1r_web").value == "" ||
						document.getElementById("lf1r_web").value == " ")
						{
							alert("Please enter the Web Address.");
							return;
						}
					break;
					
				case ('REXSP-T4848-2'):
						// large format Signs
					if (Commercialqty != 2 && Commercialqty != 4 && Commercialqty != 6 
						&& Commercialqty != 12 && Commercialqty != 24)
						{
							alert('Please select a quantity.');
							return;
						}
					// validate Textbox Options
					if (document.getElementById("lf1_name").value == "" ||
						document.getElementById("lf1_name").value == " ")
						{
							alert("Please enter the Company Name.");
							return;
						}
								
					if (document.getElementById("lf1_phone").value == "" ||
						document.getElementById("lf1_phone").value == " ")
						{
							alert("Please enter the Phone Number.");
							return;
						}
					if (document.getElementById("lf1r_web").value == "" ||
						document.getElementById("lf1r_web").value == " ")
						{
							alert("Please enter the Web Address.");
							return;
						}
					break;
					
				case ('REXSP-W3248-2'):
						// large format Signs
					if (Commercialqty != 2 && Commercialqty != 4 && Commercialqty != 6 
						&& Commercialqty != 12 && Commercialqty != 24)
						{
							alert('Please select a quantity.');
							return;
						}
					// validate Textbox Options
					if (document.getElementById("lf1_name").value == "" ||
						document.getElementById("lf1_name").value == " ")
						{
							alert("Please enter the Company Name.");
							return;
						}
								
					if (document.getElementById("lf1_phone").value == "" ||
						document.getElementById("lf1_phone").value == " ")
						{
							alert("Please enter the Phone Number.");
							return;
						}
					if (document.getElementById("lf1r_web").value == "" ||
						document.getElementById("lf1r_web").value == " ")
						{
							alert("Please enter the Web Address.");
							return;
						}
					break;
					
				case ('REXSP-W4848-2'):
						// large format Signs
					if (Commercialqty != 2 && Commercialqty != 4 && Commercialqty != 6 
						&& Commercialqty != 12 && Commercialqty != 24)
						{
							alert('Please select a quantity.');
							return;
						}
					// validate Textbox Options
					if (document.getElementById("lf1_name").value == "" ||
						document.getElementById("lf1_name").value == " ")
						{
							alert("Please enter the Company Name.");
							return;
						}
					if (document.getElementById("lf1_phone").value == "" ||
						document.getElementById("lf1_phone").value == " ")
						{
							alert("Please enter the Phone Number.");
							return;
						}
					if (document.getElementById("lf1r_web").value == "" ||
						document.getElementById("lf1r_web").value == " ")
						{
							alert("Please enter the Web Address.");
							return;
						}
					break;
					
					case ('REXCA-1824'):
						//Castle frames
						break;
						
					case ('REXCA-1820'):
						//Castle frames
						break;
					
				default:
					//yard signs
					if (Commercialqty != 5 && Commercialqty != 10 && Commercialqty != 15 && Commercialqty != 25 
						&& Commercialqty != 50 && Commercialqty != 100)
					{
						alert('Please select a quantity.');
						return;
					}
					if (itemNoField.substr(12, 1) == "C")
					{
						// Company Yard Signs
						// validate Textbox Options
						if (document.getElementById("Namerider_name").value == "" ||
							document.getElementById("Namerider_name").value == " ")
							{
								alert("Please enter the Comapny Name.");
								return;
							}
								
						if (document.getElementById("Namerider_phone1").value == "" ||
							document.getElementById("Namerider_phone1").value == " ")
							{
								alert("Please enter the Phone Number.");
								return;
							}
					}
					if (itemNoField.substr(12, 1) == "1" || itemNoField.substr(12, 1) == "2" || itemNoField.substr(12, 1) == "P")
					{
						// Agent Yard Signs
						// validate Textbox Options
						if (document.getElementById("Namerider_name").value == "" ||
							document.getElementById("Namerider_name").value == " ")
							{
								alert("Please enter the Comapny Name.");
								return;
							}
								
						if (document.getElementById("Namerider_phone1").value == "" ||
							document.getElementById("Namerider_phone1").value == " ")
							{
								alert("Please enter the Phone Number.");
								return;
							}
								
						if (document.getElementById("Namerider_name0").value == "" ||
							document.getElementById("Namerider_name0").value == " ")
							{
								alert("Please enter the Agent's Name.");
								return;
							}
								
						if (document.getElementById("Namerider_phone2").value == "" ||
							document.getElementById("Namerider_phone2").value == " ")
							{
								alert("Please enter the Phone Number.");
								return;
							}
					}
			}
		}
/*		
		if (itemNoField.substr(0,7) == "REXASP-" || itemNoField.substr(0,7) == "REXACA-" 
				|| itemNoField.substr(0,7) == "REXACR-" || itemNoField.substr(0,7) == "REXAES-") 
		{ // Agent Yard Signs
			// validate the quantity
			if (Commercialqty != 5 && Commercialqty != 10 && Commercialqty != 15 && Commercialqty != 25 
				&& Commercialqty != 50 && Commercialqty != 100)
			{
				alert('Please select a quantity.');
				return;
			}
			// validate Textbox Options
			if (document.getElementById("Namerider_name").value == "" ||
				document.getElementById("Namerider_name").value == " ")
				{
					alert("Please enter the Company's Name.");
					return;
				}
					
			if (document.getElementById("Namerider_phone1").value == "" ||
				document.getElementById("Namerider_phone1").value == " ")
				{
					alert("Please enter the Company's Phone Number.");
					return;
				}
			if (document.getElementById("Namerider_name0").value == "" ||
				document.getElementById("Namerider_name0").value == " ")
				{
					alert("Please enter the Agent's Name.");
					return;
				}
			if (document.getElementById("Namerider_phone2").value == "" ||
				document.getElementById("Namerider_phone2").value == " ")
				{
					alert("Please enter the Agent's Phone Number.");
					return;
				}
		}
//Close comment was here	
		if (itemNoField.substr(0,6) == "REXMG-") 
		{ //magnetic vehicle signs
			// validate the quantity
			if (Commercialqty != 2 && Commercialqty != 4 && Commercialqty != 6)
				{
					alert('Please select a quantity.');
					return;
				}
			// validate Textbox Options					
			if (document.getElementById("Namerider_name").value == "" ||
				document.getElementById("Namerider_name").value == " ")
				{
					alert("Please enter the Company's Name.");
					return;
				}
			if (document.getElementById("Namerider_phone1").value == "" ||
				document.getElementById("Namerider_phone1").value == " ")
				{
					alert("Please enter the Company's Phone Number.");
					return;
				}
			if (document.getElementById("Namerider_name0").value == "" ||
				document.getElementById("Namerider_name0").value == " ")
				{
					alert("Please enter the Agent's Name.");
					return;
				}
		}
		
		
		if (itemNoField.substr(0,6) == "REXHFS" || itemNoField.substr(0,6) == "REXHOH" 
			|| itemNoField.substr(0,6) == "REXAFS" || itemNoField.substr(0,6) == "REXAOH"
			|| itemNoField.substr(0,6) == "REXTWF" || itemNoField.substr(0,6) == "REXTWO"
			|| itemNoField.substr(0,6) == "REXDPF" || itemNoField.substr(0,6) == "REXDPO")
		{ // Directional Signs
			// validate the quantity
			if (Commercialqty != 5 && Commercialqty != 10 && Commercialqty != 15 && Commercialqty != 25 
				&& Commercialqty != 50 && Commercialqty != 100)
				{
					alert('Please select a quantity.');
					return;
				}
			// validate Textbox Options
			if (document.getElementById("Namerider_name").value == "" ||
				document.getElementById("Namerider_name").value == " ")
				{
					alert("Please enter the Company's Name.");
					return;
				}
		}
		
		if (itemNoField.substr(0,5) == "REX-M")
		{ // Magnetic Riders
			// validate the quantity
			if (Commercialqty != 2 && Commercialqty != 4 && Commercialqty != 6 && Commercialqty != 10)
			{
				alert('Please select a quantity.');
				return;
			}
		}
		
		if (itemNoField.substr(0,5) == "REX-D")
		{ // Decal Riders
			// validate the quantity
			if (Commercialqty != 1 && Commercialqty != 2 && Commercialqty != 3 && Commercialqty != 5)
			{
				alert('Please select a quantity.');
				return;
			}
		}
		
		if (itemNoField == "REXSCOH")
		{ // Directional Signs
			// validate the quantity
			if (Commercialqty != 5 && Commercialqty != 10 && Commercialqty != 15 && Commercialqty != 25 
				&& Commercialqty != 50)
			{
				alert('Please select a quantity.');
				return;
			}
		}
		
		if (itemNoField == "REXSCOH-I")
		{ // Directional Signs
			// validate the quantity
			if (Commercialqty != 5 && Commercialqty != 10 && Commercialqty != 15 && Commercialqty != 25 
				&& Commercialqty != 50)
			{
				alert('Please select a quantity.');
				return;
			}
			// validate Textbox Options
			if (document.getElementById("rexscoh_I_name").value == "" ||
				document.getElementById("rexscoh_I_name").value == " ")
				{
					alert("Please enter the Company's Name.");
					return;
				}
		}

		if (itemNoField == "REXLP-I")
		{ // Imprinted License Plates
			// validate Textbox Options
			if (document.getElementById("Namerider_name0").value == "" ||
				document.getElementById("Namerider_name0").value == " ")
				{
					alert("Please enter the Company's Name.");
					return;
				}
		}

		if (itemNoField == "REXINFOBOX")
		{ // Directional Signs
			// validate the quantity
			if (Commercialqty != 6 && Commercialqty != 12 && Commercialqty != 24 && Commercialqty != 48 
				&& Commercialqty != 96)
			{
				alert('Please select a quantity.');
				return;
			}
		}
		if (itemNoField == "REXINFOBOX-I")
		{ // Directional Signs
			// validate the quantity
			if (Commercialqty != 6 && Commercialqty != 12 && Commercialqty != 24 && Commercialqty != 48 
				&& Commercialqty != 96)
				{
					alert('Please select a quantity.');
					return;
				}
			// validate Textbox Options
			if (document.getElementById("CompanyName1").value == "" ||
				document.getElementById("CompanyName1").value == " ")
				{
					alert("Please enter the Company's Name.");
					return;
				}
		}
		
		if (itemNoField == "REXINFOBOX-WSS")
		{ // Directional Signs
			// validate the quantity
			if (Commercialqty != 6 && Commercialqty != 12 && Commercialqty != 24 && Commercialqty != 48 
				&& Commercialqty != 96)
				{
					alert('Please select a quantity.');
					return;
				}
		}
		if (itemNoField == "REXINFOBOX-I-WSS")
		{ // Directional Signs
			// validate the quantity
			if (Commercialqty != 6 && Commercialqty != 12 && Commercialqty != 24 && Commercialqty != 48 
				&& Commercialqty != 96)
				{
					alert('Please select a quantity.');
					return;
				}
			// validate Textbox Options
			if (document.getElementById("CompanyName2").value == "" ||
				document.getElementById("CompanyName2").value == " ")
				{
					alert("Please enter the Company's Name.");
					return;
				}
		}

		if (itemNoField.substr(0,4) == "REXB")
		{ // Large Flexi signs
			var isNo = chkForNum(Commercialqty);
			if (!isNo)
			{
				alert('Please enter only numeric values');
				return;
			}

			switch(itemNoField.substr(4, 2))
			{
				case "OH":	
					if (document.getElementById("exboh_name").value == '' || document.getElementById("exboh_name").value == ' ')
					{
						alert('Please enter the Company Name.');
						return;
					}
					break;
				case "AD":	
					if (document.getElementById("exbafs_name").value == '' || document.getElementById("exbafs_name").value == ' ')
					{
						alert('Please enter the Agent\'s Name.');
						return;
					}
					if (document.getElementById("exbafs_phone").value == '' || document.getElementById("exbafs_phone").value == ' ')
					{
						alert('Please enter the Phone Number.');
						return;
					}
			}
		}

	// adds item info into cart
	 buyItemRex2(itemNoField, Commercialqty)
}
*/
//-------------------------------------------------------------------------------------------------------------------------------

/*
// goes to view cart
function viewCart()
	{
		self.location.href="shop_view_cart.htm"
	}
*/
function getPriceRex2(itemNo, qty)
{
//alert("starting getPriceRex2 in shop_rex2.js");
	var thePrice = "";
	thePrice = getPriceRexACC(itemNo, qty);
	if (thePrice.length == 0) thePrice = getPriceRexCYS(itemNo, qty);
	if (thePrice.length == 0) thePrice = getPriceSppAYS(itemNo, qty);
	if (thePrice.length == 0) thePrice = getPriceRexDIR(itemNo, qty);
	if (thePrice.length == 0) thePrice = getPriceRexSAR(itemNo, qty);
	if (thePrice.length == 0) thePrice = getPriceRexPAR(itemNo, qty);
	if (thePrice.length == 0) thePrice = getPriceRexMG(itemNo, qty);
	if (thePrice.length == 0) thePrice = getPriceRexOH(itemNo, qty);
	if (thePrice.length == 0) thePrice = getPriceRexEXR(itemNo, qty);
	if (thePrice.length == 0) thePrice = getPriceRexEXLF(itemNo, qty);
	if (thePrice.length == 0) thePrice = getPriceRexFrames(itemNo, qty);
	return thePrice;
}
/*
function getPriceRexCYS(itemNo, qty)
{
	//alert("itemNo in getPriceExiYS() = " + itemNo);
	switch (itemNo)
	{
		case "REXSP-S1824-C":
			if (qty<10){ return "29.95"; }
			if (qty<15){ return "23.95"; }
			if (qty<25){ return "17.95"; }
			if (qty<50){ return "12.95"; }
			if (qty<100){ return "10.95"; }
			return "9.95"; 
		case "REXSP-P1824-C":
			if (qty<10){ return "27.95"; }
			if (qty<15){ return "21.95"; }
			if (qty<25){ return "15.95"; }
			if (qty<50){ return "10.95"; }
			if (qty<100){ return "8.95"; }
			return "7.95"; 
		case "REXSP-A1824-C":
			if (qty<10){ return "34.95"; }
			if (qty<15){ return "27.95"; }
			if (qty<25){ return "21.75"; }
			if (qty<50){ return "15.95"; }
			if (qty<100){ return "12.95"; }
			return "11.95"; 
		case "REXSP-R1824-C":
			if (qty<10){ return "45.95"; }
			if (qty<15){ return "39.95"; }
			if (qty<25){ return "33.95"; }
			if (qty<50){ return "28.95"; }
			if (qty<100){ return "26.95"; }
			return "25.95"; 
		case "REXSP-S1830-C":
			if (qty<10){ return "34.95"; }
			if (qty<15){ return "28.75"; }
			if (qty<25){ return "22.50"; }
			if (qty<50){ return "16.95"; }
			if (qty<100){ return "14.25"; }
			return "12.95"; 
		case "REXSP-P1830-C":
			if (qty<10){ return "32.95"; }
			if (qty<15){ return "26.75"; }
			if (qty<25){ return "20.50"; }
			if (qty<50){ return "14.95"; }
			if (qty<100){ return "12.25"; }
			return "10.95"; 
		case "REXSP-A1830-C":
			if (qty<10){ return "40.95"; }
			if (qty<15){ return "33.50"; }
			if (qty<25){ return "27.25"; }
			if (qty<50){ return "20.95"; }
			if (qty<100){ return "16.75"; }
			return "15.50"; 
		case "REXSP-R1830-C":
			if (qty<10){ return "56.95"; }
			if (qty<15){ return "50.75"; }
			if (qty<25){ return "44.50"; }
			if (qty<50){ return "38.95"; }
			if (qty<100){ return "36.25"; }
			return "34.95"; 
		case "REXCA-S1824-C":
			if (qty<10){ return "43.95"; }
			if (qty<15){ return "37.95"; }
			if (qty<25){ return "31.95"; }
			if (qty<50){ return "26.95"; }
			if (qty<100){ return "24.95"; }
			return "23.95"; 
		case "REXCA-P1824-C":
			if (qty<10){ return "41.95"; }
			if (qty<15){ return "35.95"; }
			if (qty<25){ return "29.95"; }
			if (qty<50){ return "24.95"; }
			if (qty<100){ return "22.95"; }
			return "21.95"; 
		case "REXCA-A1824-C":
			if (qty<10){ return "48.95"; }
			if (qty<15){ return "41.95"; }
			if (qty<25){ return "35.75"; }
			if (qty<50){ return "29.95"; }
			if (qty<100){ return "26.95"; }
			return "25.95"; 
		case "REXCA-R1824-C":
			if (qty<10){ return "59.95"; }
			if (qty<15){ return "53.95"; }
			if (qty<25){ return "47.95"; }
			if (qty<50){ return "42.95"; }
			if (qty<100){ return "40.95"; }
			return "39.95"; 
		case "REXCA-S1830-C":
			if (qty<10){ return "50.95"; }
			if (qty<15){ return "44.75"; }
			if (qty<25){ return "38.50"; }
			if (qty<50){ return "32.95"; }
			if (qty<100){ return "30.25"; }
			return "28.95";
		case "REXCA-P1830-C":
			if (qty<10){ return "48.95"; }
			if (qty<15){ return "42.75"; }
			if (qty<25){ return "36.50"; }
			if (qty<50){ return "30.95"; }
			if (qty<100){ return "28.25"; }
			return "26.95"; 
		case "REXCA-A1830-C":
			if (qty<10){ return "56.95"; }
			if (qty<15){ return "49.50"; }
			if (qty<25){ return "43.25"; }
			if (qty<50){ return "36.95"; }
			if (qty<100){ return "32.75"; }
			return "31.50"; 
		case "REXCA-R1830-C":
			if (qty<10){ return "72.95"; }
			if (qty<15){ return "66.75"; }
			if (qty<25){ return "60.50"; }
			if (qty<50){ return "54.95"; }
			if (qty<100){ return "52.25"; }
			return "50.95"; 
		default:
			return "";
	}
}
*/
function getPriceSppAYS(itemNo, qty)
{
	//alert("itemNo in getPriceExiYS() = " + itemNo);
	switch (itemNo)
	{
		case "panel-S-0618":
			if (qty<10){ return "14.30"; }
			if (qty<15){ return "10.40"; }
			if (qty<25){ return "7.30"; }
			if (qty<50){ return "5.20"; }
			if (qty<100){ return "3.50"; }
			return "CALL";
		case "panel-S-0624":
			if (qty<10){ return "17.60"; }
			if (qty<15){ return "11.30"; }
			if (qty<25){ return "8.20"; }
			if (qty<50){ return "6.10"; }
			if (qty<100){ return "4.20"; }
			return "CALL";
		case "panel-S-0924":
			if (qty<10){ return "20.90"; }
			if (qty<15){ return "15.60"; }
			if (qty<25){ return "11.40"; }
			if (qty<50){ return "8.30"; }
			if (qty<100){ return "5.95"; }
			return "CALL";
		case "panel-S-1218":
			if (qty<10){ return "20.90"; }
			if (qty<15){ return "15.60"; }
			if (qty<25){ return "11.40"; }
			if (qty<50){ return "8.30"; }
			if (qty<100){ return "5.95"; }
			return "CALL";
		case "panel-S-1224":
			if (qty<10){ return "23.00"; }
			if (qty<15){ return "17.20"; }
			if (qty<25){ return "12.95"; }
			if (qty<50){ return "9.90"; }
			if (qty<100){ return "7.40"; }
			return "CALL";
		case "panel-S-1824":
			if (qty<10){ return "28.95"; }
			if (qty<15){ return "18.95"; }
			if (qty<25){ return "15.70"; }
			if (qty<50){ return "11.50"; }
			if (qty<100){ return "9.25"; }
			return "CALL";
		case "panel-S-1830":
			if (qty<10){ return "34.25"; }
			if (qty<15){ return "26.50"; }
			if (qty<25){ return "19.75"; }
			if (qty<50){ return "15.50"; }
			if (qty<100){ return "12.00"; }
			return "CALL";
		case "panel-S-2028":
			if (qty<10){ return "31.95"; }
			if (qty<15){ return "24.90"; }
			if (qty<25){ return "18.10"; }
			if (qty<50){ return "14.30"; }
			if (qty<100){ return "11.25"; }
			return "CALL";
		case "panel-S-2424":
			if (qty<10){ return "31.95"; }
			if (qty<15){ return "25.95"; }
			if (qty<25){ return "18.95"; }
			if (qty<50){ return "13.95"; }
			if (qty<100){ return "10.95"; }
			return "CALL";
		case "panel-S-2436":
			if (qty<10){ return "59.95"; }
			if (qty<15){ return "47.20"; }
			if (qty<25){ return "36.25"; }
			if (qty<50){ return "27.95"; }
			if (qty<100){ return "22.90"; }
			return "CALL";
	
		case "panel-A-0618":
			if (qty<10){ return "14.90"; }
			if (qty<15){ return "11.00"; }
			if (qty<25){ return "7.90"; }
			if (qty<50){ return "5.80"; }
			if (qty<100){ return "4.10"; }
			return "CALL";
		case "panel-A-0624":
			if (qty<10){ return "18.70"; }
			if (qty<15){ return "12.40"; }
			if (qty<25){ return "9.30"; }
			if (qty<50){ return "7.20"; }
			if (qty<100){ return "5.30"; }
			return "CALL";
		case "panel-A-0924":
			if (qty<10){ return "23.00"; }
			if (qty<15){ return "17.60"; }
			if (qty<25){ return "13.50"; }
			if (qty<50){ return "10.40"; }
			if (qty<100){ return "8.05"; }
			return "CALL";
		case "panel-A-1218":
			if (qty<10){ return "23.00"; }
			if (qty<15){ return "17.60"; }
			if (qty<25){ return "13.50"; }
			if (qty<50){ return "10.40"; }
			if (qty<100){ return "8.05"; }
			return "CALL";
		case "panel-A-1224":
			if (qty<10){ return "25.90"; }
			if (qty<15){ return "20.10"; }
			if (qty<25){ return "15.85"; }
			if (qty<50){ return "12.80"; }
			if (qty<100){ return "10.30"; }
			return "CALL";
		case "panel-A-1824":
			if (qty<10){ return "33.15"; }
			if (qty<15){ return "23.15"; }
			if (qty<25){ return "19.90"; }
			if (qty<50){ return "15.70"; }
			if (qty<100){ return "13.45"; }
			return "CALL";
		case "panel-A-1830":
			if (qty<10){ return "39.05"; }
			if (qty<15){ return "31.30"; }
			if (qty<25){ return "24.55"; }
			if (qty<50){ return "20.30"; }
			if (qty<100){ return "16.80"; }
			return "CALL";
		case "panel-A-2028":
			if (qty<10){ return "37.20"; }
			if (qty<15){ return "30.20"; }
			if (qty<25){ return "23.40"; }
			if (qty<50){ return "19.60"; }
			if (qty<100){ return "16.55"; }
			return "CALL";
		case "panel-A-2424":
			if (qty<10){ return "37.75"; }
			if (qty<15){ return "31.75"; }
			if (qty<25){ return "24.75"; }
			if (qty<50){ return "19.75"; }
			if (qty<100){ return "16.75"; }
			return "CALL";
		case "panel-A-2436":
			if (qty<10){ return "67.99"; }
			if (qty<15){ return "55.24"; }
			if (qty<25){ return "44.29"; }
			if (qty<50){ return "35.89"; }
			if (qty<100){ return "30.94"; }
			return "CALL";

		case "panel-P-0618":
			if (qty<10){ return "13.40"; }
			if (qty<15){ return "9.50"; }
			if (qty<25){ return "6.40"; }
			if (qty<50){ return "4.30"; }
			if (qty<100){ return "2.60"; }
			return "CALL";
		case "panel-P-0624":
			if (qty<10){ return "16.45"; }
			if (qty<15){ return "10.15"; }
			if (qty<25){ return "7.05"; }
			if (qty<50){ return "4.95"; }
			if (qty<100){ return "3.05"; }
			return "CALL";
		case "panel-P-0924":
			if (qty<10){ return "19.80"; }
			if (qty<15){ return "14.50"; }
			if (qty<25){ return "10.30"; }
			if (qty<50){ return "7.20"; }
			if (qty<100){ return "4.85"; }
			return "CALL";
		case "panel-P-1218":
			if (qty<10){ return "19.80"; }
			if (qty<15){ return "14.50"; }
			if (qty<25){ return "10.30"; }
			if (qty<50){ return "7.20"; }
			if (qty<100){ return "4.85"; }
			return "CALL";
		case "panel-P-1224":
			if (qty<10){ return "21.65"; }
			if (qty<15){ return "15.85"; }
			if (qty<25){ return "11.75"; }
			if (qty<50){ return "8.55"; }
			if (qty<100){ return "6.00"; }
			return "CALL";
		case "panel-P-1824":
			if (qty<10){ return "27.25"; }
			if (qty<15){ return "17.25"; }
			if (qty<25){ return "14.00"; }
			if (qty<50){ return "9.80"; }
			if (qty<100){ return "7.55"; }
			return "CALL";
		case "panel-P-1830":
			if (qty<10){ return "31.55"; }
			if (qty<15){ return "23.80"; }
			if (qty<25){ return "17.05"; }
			if (qty<50){ return "12.80"; }
			if (qty<100){ return "9.30"; }
			return "CALL";
		case "panel-P-2028":
			if (qty<10){ return "28.70"; }
			if (qty<15){ return "21.70"; }
			if (qty<25){ return "14.90"; }
			if (qty<50){ return "11.10"; }
			if (qty<100){ return "8.05"; }
			return "CALL";
		case "panel-P-2424":
			if (qty<10){ return "29.95"; }
			if (qty<15){ return "23.25"; }
			if (qty<25){ return "16.25"; }
			if (qty<50){ return "11.25"; }
			if (qty<100){ return "8.25"; }
			return "CALL";
		case "panel-P-2436":
			if (qty<10){ return "55.55"; }
			if (qty<15){ return "42.80"; }
			if (qty<25){ return "31.85"; }
			if (qty<50){ return "23.55"; }
			if (qty<100){ return "18.50"; }
			return "CALL";

		case "panel-R-0618":
			if (qty<10){ return "18.20"; }
			if (qty<15){ return "14.30"; }
			if (qty<25){ return "11.20"; }
			if (qty<50){ return "9.10"; }
			if (qty<100){ return "7.40"; }
			return "CALL";
		case "panel-R-0624":
			if (qty<10){ return "24.80"; }
			if (qty<15){ return "18.50"; }
			if (qty<25){ return "15.40"; }
			if (qty<50){ return "13.30"; }
			if (qty<100){ return "11.40"; }
			return "CALL";
		case "panel-R-0924":
			if (qty<10){ return "29.00"; }
			if (qty<15){ return "23.70"; }
			if (qty<25){ return "19.50"; }
			if (qty<50){ return "16.40"; }
			if (qty<100){ return "14.05"; }
			return "CALL";
		case "panel-R-1218":
			if (qty<10){ return "29.00"; }
			if (qty<15){ return "23.70"; }
			if (qty<25){ return "19.50"; }
			if (qty<50){ return "16.40"; }
			if (qty<100){ return "14.05"; }
			return "CALL";
		case "panel-R-1224":
			if (qty<10){ return "36.80"; }
			if (qty<15){ return "31.00"; }
			if (qty<25){ return "26.75"; }
			if (qty<50){ return "23.70"; }
			if (qty<100){ return "21.20"; }
			return "CALL";
		case "panel-R-1824":
			if (qty<10){ return "46.55"; }
			if (qty<15){ return "36.55"; }
			if (qty<25){ return "33.30"; }
			if (qty<50){ return "29.10"; }
			if (qty<100){ return "26.85"; }
			return "CALL";
		case "panel-R-1830":
			if (qty<10){ return "55.75"; }
			if (qty<15){ return "48.00"; }
			if (qty<25){ return "41.25"; }
			if (qty<50){ return "37.00"; }
			if (qty<100){ return "33.50"; }
			return "CALL";
		case "panel-R-2028":
			if (qty<10){ return "51.20"; }
			if (qty<15){ return "44.20"; }
			if (qty<25){ return "37.40"; }
			if (qty<50){ return "33.60"; }
			if (qty<100){ return "30.55"; }
			return "CALL";
		case "panel-R-2424":
			if (qty<10){ return "59.95"; }
			if (qty<15){ return "53.55"; }
			if (qty<25){ return "46.55"; }
			if (qty<50){ return "41.55"; }
			if (qty<100){ return "38.55"; }
			return "CALL";
		case "panel-R-2436":
			if (qty<10){ return "91.25"; }
			if (qty<15){ return "78.50"; }
			if (qty<25){ return "67.55"; }
			if (qty<50){ return "59.25"; }
			if (qty<100){ return "54.20"; }
			return "CALL";
																						
			
		default:
			return "";
	}
}
/*
function getPriceRexMG(itemNo, qty)
{
	//alert("Line 3454 itemNo in getPriceExiYS() = " + itemNo);
	switch (itemNo)
	{
		case "REXMG-A1014": //prices from spread sheet...
			if (qty<4){ return "24.50"; }
			if (qty<10){ return "21.95"; }
			if (qty<18){ return "17.50"; }
			if (qty<24){ return "12.95"; }
			if (qty<50){ return "9.50"; }
			return "6.50";
		//case "REXMG-C1014":  //not on current page
			//if (qty<4){ return "24.50"; }
			///if (qty<10){ return "21.95"; }
			//if (qty<18){ return "17.50"; }
			//if (qty<24){ return "12.95"; }
			//if (qty<50){ return "9.50"; }
			//return "6.50";
		case "REXMG-P1014": //prices from spread sheet...
			if (qty<4){ return "29.50"; }
			if (qty<10){ return "23.50"; }
			if (qty<18){ return "19.95"; }
			if (qty<24){ return "19.95"; }
			if (qty<50){ return "19.95"; }
			return "19.95"; 
		case "REXLP": //prices from current page, not spread sheet...
			if (qty<2) return "14.95";
			if (qty<3) return "12.99";
			return "10.95";
		case "REXLP-I": 
			if (qty<10) return "11.95";
			if (qty<15) return "10.50";
			if (qty<25) return "8.95";
			if (qty<50) return "7.95";
			return "6.95";
		default:
			return "";
	}
}
function getPriceRexEXR(itemNo, qty)
{
	//alert("itemNo in getPriceExiYS() = " + itemNo);
	switch (itemNo.substr(0,5))
	{
		case "REX-M":
			if (qty<4){ return "4.50"; }
			if (qty<6){ return "3.75"; }
			if (qty<10){ return "3.25"; }
			return "2.95"; 
		case "REX-D":
			if (qty<1){ return "4.50"; }
			if (qty<3){ return "3.75"; }
			if (qty<5){ return "3.25"; }
			return "2.50";

		default:
			return "";
	}
}

function getPriceRexOH(itemNo, qty)
{
	//alert("itemNo in getPriceExiYS() = " + itemNo);
	switch (itemNo)
	{
		case "REXSCOH":
			if (qty<9) return "32.95";
			if (qty<14) return "28.95";
			if (qty<24) return "25.95";
			if (qty<49) return "24.95";
			return "22.50";
		case "REXSCOH-I":
			if (qty<9) return "47.95";
			if (qty<14) return "38.95";
			if (qty<24) return "32.95";
			if (qty<49) return "29.95";
			return "25.50";
		default:
			return "";
	}
}
function getPriceRexEXLF(itemNo, qty)
{
	//alert("itemNo in getPriceExiEXLF() = " + itemNo.substr(0,5));
	switch (itemNo)
	{
		case "REXBOH":
			if (qty < 4){ return "85.00"; }
			if (qty < 6){ return "75.00"; }
			if (qty < 12){ return "65.00"; }
			if (qty < 24){ return "57.50"; }
			return "46.95";

		case "REXBADP":
			if (qty < 3){ return "95.00"; }
			return "75.00";
			
		case "REXCS-S3248-2":
			if (qty < 2){ return "159.50"; }
			if (qty < 4){ return "149.50"; }
			if (qty < 6){ return "125.00"; }
			if (qty < 12){ return "115.00"; }
			if (qty < 24){ return "105.00"; }
			return "92.50";
			
		case "REXSP-S1818-1":
			if (qty < 2){ return "30.00"; }
			if (qty < 4){ return "27.50"; }
			if (qty < 6){ return "25.00"; }
			if (qty < 12){ return "18.00"; }
			if (qty < 24){ return "12.00"; }
			return "9.50";
			
		case "REXSP-T3248-2":
			if (qty < 4){ return "90.00"; }
			if (qty < 6){ return "65.95"; }
			if (qty < 12){ return "53.50"; }
			if (qty < 24){ return "36.95"; }
			return "21.95";
			
		case "REXSP-T4848-2":
			if (qty < 4){ return "107.95"; }
			if (qty < 6){ return "78.00"; }
			if (qty < 12){ return "65.95"; }
			if (qty < 24){ return "47.50"; }
			return "28.95";
			
		case "REXSP-W3248-2":
			if (qty < 4){ return "99.50"; }
			if (qty < 6){ return "90.00"; }
			if (qty < 12){ return "75.00"; }
			if (qty < 24){ return "55.00"; }
			return "45.00";
			
		case "REXSP-W4848-2":
			if (qty < 4){ return "125.00"; }
			if (qty < 6){ return "115.00"; }
			if (qty < 12){ return "105.00"; }
			if (qty < 24){ return "80.00"; }
			return "62.50";
			
		case "REXCA-S3248-2":
			if (qty < 4){ return "159.95"; }
			if (qty < 6){ return "139.50"; }
			if (qty < 12){ return "125.00"; }
			if (qty < 24){ return "115.00"; }
			return "105.00";
			
		default:
			return "";
	}
}

function getPriceRexFrames(itemNo, qty)
{
	//alert("itemNo in getPriceExiYS() = " + itemNo);
	switch (itemNo)
	{
		case "REXCA-1824":
			return "14.00"; 
		case "REXCA-1830":
			return "16.00"; 
/*
		case "EXES-1824":
			return "N/A"; 
		case "EXES-2028":
			return "N/A"; 
		case "EXES-2436":
			return "N/A"; 
		case "EXES-2418":
			return "N/A"; 
//Close comment was here		
		case "REXP-STK003":
			return "5.00";
		case "REXP-Colonial Post":
			return "24.95";
		case "REXP-EZ Post":
			return "49.95";
			
		case "REXCS-RG":
			return "1.25";
		case "REXCS-HD":
			return "2.00";
		case "REXCS-SD":
			return "4.50";
			
		default:
			return "";
	}
}

function getPriceRexACC(itemNo, qty)
{
	switch(itemNo)
	{
		case "REXINFOBOX":
			if (qty<12) return "11.95";
			if (qty<24) return "10.95";
			if (qty<48) return "9.95";
			if (qty<96) return "9.50";
			return "8.98";
		case "REXINFOBOX-I":
			if (qty<12) return "16.95";
			if (qty<24) return "13.95";
			if (qty<48) return "11.50";
			if (qty<96) return "10.50";
			return "9.75";
		case "REXINFOBOX-WSS":
			if (qty<12) return "17.95";
			if (qty<24) return "15.95";
			if (qty<48) return "14.95";
			if (qty<96) return "14.00";
			return "12.98";
		case "REXINFOBOX-I-WSS":
			if (qty<12) return "22.95";
			if (qty<24) return "18.95";
			if (qty<48) return "16.50";
			if (qty<96) return "15.50";
			return "13.75";
		case "REXGDBH":
			return "14.98";
		default:
			return "";
	}
}
function getPriceRexDIR(itemNo, qty)
{
	switch(itemNo)
	{
		case "REXHFS":
			if (qty<10) return "9.95";
			if (qty<15) return "7.95";
			if (qty<25) return "7.45";
			if (qty<50) return "6.95";
			if (qty<100) return "6.45";
			return "5.95";
		case "REXHOH":
			if (qty<10) return "9.95";
			if (qty<15) return "7.95";
			if (qty<25) return "7.45";
			if (qty<50) return "6.95";
			if (qty<100) return "6.45";
			return "5.95";
		case "REXHFS-I":
			if (qty<10) return "14.45";
			if (qty<15) return "11.45";
			if (qty<25) return "9.95";
			if (qty<50) return "8.45";
			if (qty<100) return "7.45";
			return "6.45";
		case "REXHOH-I":
			if (qty<10) return "14.45";
			if (qty<15) return "11.45";
			if (qty<25) return "9.95";
			if (qty<50) return "8.45";
			if (qty<100) return "7.45";
			return "6.45";

		case "REXAFS":
			if (qty<10) return "9.95";
			if (qty<15) return "7.95";
			if (qty<25) return "7.45";
			if (qty<50) return "6.95";
			if (qty<100) return "6.45";
			return "5.95";
		case "REXAOH":
			if (qty<10) return "9.95";
			if (qty<15) return "7.95";
			if (qty<25) return "7.45";
			if (qty<50) return "6.95";
			if (qty<100) return "6.45";
			return "5.95";
		case "REXAFS-I":
			if (qty<10) return "14.45";
			if (qty<15) return "11.45";
			if (qty<25) return "9.95";
			if (qty<50) return "8.45";
			if (qty<100) return "7.45";
			return "6.45";
		case "REXAOH-I":
			if (qty<10) return "14.45";
			if (qty<15) return "11.45";
			if (qty<25) return "9.95";
			if (qty<50) return "8.45";
			if (qty<100) return "7.45";
			return "6.45";

		case "REXTWFS-1218":
			if (qty<10) return "9.95";
			if (qty<15) return "7.45";
			if (qty<25) return "6.95";
			if (qty<50) return "6.45";
			if (qty<100) return "5.95";
			return "5.25";
		case "REXTWOH-1218":
			if (qty<10) return "9.95";
			if (qty<15) return "7.45";
			if (qty<25) return "6.95";
			if (qty<50) return "6.45";
			if (qty<100) return "5.95";
		case "REXTWFS-1218-I":
			if (qty<10) return "14.45";
			if (qty<15) return "10.95";
			if (qty<25) return "9.50";
			if (qty<50) return "7.95";
			if (qty<100) return "6.95";
			return "6.15";
		case "REXTWOH-1218-I":
			if (qty<10) return "14.45";
			if (qty<15) return "10.95";
			if (qty<25) return "9.50";
			if (qty<50) return "7.95";
			if (qty<100) return "6.95";
			return "6.15";

		case "REXDPFS-S0924":
			if (qty<10) return "14.95";
			if (qty<15) return "12.50";
			if (qty<25) return "10.95";
			if (qty<50) return "8.95";
			if (qty<100) return "6.95";
			return "6.50";
		case "REXDPOH-S0924":
			if (qty<10) return "14.95";
			if (qty<15) return "12.50";
			if (qty<25) return "10.95";
			if (qty<50) return "8.95";
			if (qty<100) return "6.95";
			return "6.50";
		case "REXDPFS-S0924-I":
			if (qty<10) return "19.45";
			if (qty<15) return "16.00";
			if (qty<25) return "13.45";
			if (qty<50) return "10.45";
			if (qty<100) return "8.45";
			return "7.00";
		case "REXDPOH-S0924-I":
			if (qty<10) return "19.45";
			if (qty<15) return "16.00";
			if (qty<25) return "13.45";
			if (qty<50) return "10.45";
			if (qty<100) return "8.45";
			return "7.00";

		default:
			return "";
	}
}

function getPriceRexSAR(itemNo, qty)
{
	if (!itemNo.substr(0,5) ==  "REXNR")
	{
		return "";
	}
	// eg. REXNRF-S-RD
	if (itemNo.substr(7,1) == "S")
	{
			if (qty<10) return "9.75";
			if (qty<15) return "8.75";
			if (qty<25) return "7.75";
			if (qty<50) return "5.75";
			return "4.95";
	}
	
	// eg. REXNRF-P-RD
	if (itemNo.substr(7,1) == "P")
	{
			if (qty<10) return "8.75";
			if (qty<15) return "7.75";
			if (qty<25) return "6.75";
			if (qty<50) return "4.75";
			return "4.25";
	}
	
	// eg. REXNRF-R-RD
	if (itemNo.substr(7,1) == "R")
	{
			if (qty<10) return "16.95";
			if (qty<15) return "15.95";
			if (qty<25) return "14.95";
			if (qty<50) return "12.95";
			return "11.95";
	}
	
	//default:
	return "";
}

function getPriceRexPAR(itemNo, qty)
{
	if (!itemNo.substr(0,7) ==  "REXPNR-")
	{
		return "";
	}
	// eg. REXPNR-CMS-RD
	if (itemNo.substr(7,3) == "CMS")
	{
			if (qty<10) return "23.25";
			if (qty<15) return "21.75";
			if (qty<25) return "20.75";
			if (qty<50) return "18.95";
			return "16.95";
	}
	// eg. REXPNR-CMP-RD
	if (itemNo.substr(7,3) == "CMP")
	{
			if (qty<10) return "22.25";
			if (qty<15) return "20.75";
			if (qty<25) return "19.75";
			if (qty<50) return "17.95";
			return "16.25";
	}
	// eg. REXPNR-CMR-RD
	if (itemNo.substr(7,3) == "CMR")
	{
			if (qty<10) return "30.45";
			if (qty<15) return "28.95";
			if (qty<25) return "27.95";
			if (qty<50) return "26.15";
			return "23.95";
	}
	// eg. REXPNR-CLS-RD
	if (itemNo.substr(7,3) == "CLS")
	{
			if (qty<10) return "24.95";
			if (qty<15) return "23.75";
			if (qty<25) return "22.50";
			if (qty<50) return "20.75";
			return "18.50";
	}
	// eg. REXPNR-CLP-RD
	if (itemNo.substr(7,3) == "CLP")
	{
			if (qty<10) return "23.45";
			if (qty<15) return "22.25";
			if (qty<25) return "20.95";
			if (qty<50) return "19.20";
			return "17.50";
	}
	// eg. REXPNR-CLR-RD
	if (itemNo.substr(7,3) == "CLR")
	{
			if (qty<10) return "34.15";
			if (qty<15) return "32.95";
			if (qty<25) return "32.95";
			if (qty<50) return "29.20";
			return "25.95";
	}

	//default:
	return "";
}

*/
//-------------------------------------------------------------------------------------------------------------------------------

function viewInfo(infoType)
{
	if (infoType == 'Style'){
		smallwin1 = window.open("popouts/style_popup.htm", "small1", "scrollbars,width=550,height=425");
		smallwin1.focus;
	} else if (infoType == 'Material'){
		smallwin2 = window.open("popouts/agent_material_popup.htm", "small2", "scrollbars,width=500,height=400");		
		smallwin2.focus;
	} else if (infoType == 'Product'){
		smallwin3 = window.open("popouts/product_popup.htm", "small3", "scrollbars,width=550,height=400");		
		smallwin3.focus;
	} else if (infoType == 'dShape'){
		smallwin4 = window.open("popouts/d_shape_popup.htm", "small4", "scrollbars,width=500,height=400");
	} else if (infoType == 'dStyle'){
		smallwin5 = window.open("popouts/d_style_popup.htm", "small5", "scrollbars,width=550,height=300");
	} else if (infoType == 'nrColor'){
		smallwin6 = window.open("popouts/nr_color_popup.htm", "small6", "scrollbars,width=550,height=300");
	} else if (infoType == 'nrMaterial'){
		smallwin7 = window.open("popouts/material_popup_nr.htm", "small7", "scrollbars,width=550,height=400");
	} else if (infoType == 'nrStyle'){
		smallwin8 = window.open("popouts/nr_style_popup.htm", "small8", "scrollbars,width=550,height=300");
	} else if (infoType == 'Signature'){
		smallwin9 = window.open("popouts/new_franchise_popup.htm", "small9", "scrollbars,width=475,height=400");
	} else if (infoType == 'dMaterial'){
		smallwin10 = window.open("popouts/d_material_popup.htm", "small10", "scrollbars,width=475,height=300");
	} else if (infoType == 'lfMaterial'){
		smallwin11 = window.open("popouts/material_popup_large_format.htm", "small11", "scrollbars,width=550,height=200");
	}
}

// -->	









