<!--


// buyItem - adds an item to the shopping basket
function buyItemflat(itemNo, qty) 
{
		var whichitem;
		var size;
		var color = "";
		var bgcolor = "White";
		var copy1;
		var copy2;
		
			var filepath = getCookie('fileName'); 
			if(filepath === null)
			{ filepath ="c:\\fakepath\\'N/A'";  }
						
			filepath = filepath.split("\\");	
			var filename = filepath[filepath.length - 1];		
				
		
//Sign Panels-------------------------------
	if (itemNo.substr(0,2) == "K-" || itemNo.substr(0,2) == "T-")
		{ 
					switch(itemNo.substr(0,2))
					{
						case "K-":
							whichitem = "Poly Kote Poster Panel";
							break;
						case "T-":
							whichitem = "Corrugated Sign Panel"; 
							
					}
					switch(itemNo.substr(2,4))
					{
						case "0612":
							size = "6x12";
							break;
						case "1114":
							size = "11x14";
							break;
						case "1422":
							size = "14x22";
							break;
						case "2228":
							size = "22x28";
							break;							
						case "2844":
							size = "28x44";
							break;
						case "1824":
							size = "18x24";
							break;	
						case "2424":
							size = "24x24";
							break;							
						case "1218":
							size = "12x18";
							break;
						case "3248":
							size = "32x48";
							break;
						case "4848":
							size = "48x48";
							break;
						case "4896":
							size = "48x96";
							break;																											
					}
					
		
				if(itemNo.substr(7,2) == "FO")
				{
				
					switch(itemNo.substr(0, 2))
					{
						case "K-":
							whichitem = "Poly Kote Poster Panel Fold Over";
							break;
						case "T-":
							whichitem = "Corrugated sign Panel"; 
					}					
				}
					if (itemNo.substr(17,1) == "A") //Americana
					{
						color = "Red & Blue";
						copy1 = '(cn)' + document.getElementById("I_name").value;
						copy2 = '(co)' + document.getElementById("I_office").value;
						whichitem = 'Americana ' +	whichitem;					
					}
					if (itemNo.substr(17,1) == "B") //Budget
					{
						color = getCookie('panCol');
						copy1 = '(cn)' + document.getElementById("I_name").value;
						copy2 = '(co)' + document.getElementById("I_office").value;
						whichitem = 'Budget ' +	whichitem;											
					}
					if (itemNo.substr(17,1) == "R") //1 color road sign
					{
						color =  getCookie('panCol');
						copy1 = '(cn)' + document.getElementById("I_name").value +
								'(co)' + document.getElementById("I_office").value;
						copy2 = '(ci)' + document.getElementById("I_info").value;
						
						whichitem = 'Road ' +	whichitem;					
					}
										
					if (itemNo.substr(17,1) == "M") //Multicolor
					{
						color = '(c1) ' + getCookie('panCol1');
						color += '(c2) ' + getCookie('panCol2');
						copy1 = '(cn)' + document.getElementById("I_name").value;
						copy2 = '(co)' + document.getElementById("I_office").value;
						whichitem = 'Multicolored ' +	whichitem;					
					}
					if (itemNo.substr(17,1) == "E") //School Board
					{
						color = getCookie('panCol');
						copy1 = '(cn)' + document.getElementById("I_name").value;
						copy2 = '(co)' + document.getElementById("I_office").value;
						whichitem = 'School Board ' +	whichitem;					
					}					
					if (itemNo.substr(17,1) == "N") //Multicolor 4x8
					{
						color = '(c1) ' + getCookie('panCol1');
						color += '(c2) ' + getCookie('panCol2');
						copy1 = '(cn)' + document.getElementById("I_name").value +
								'(co)' + document.getElementById("I_office").value;
						copy2 = '(ci)' + document.getElementById("I_info").value;
						
						whichitem = 'Multicolor Road ' +	whichitem;					
					}					
					if (itemNo.substr(17,1) == "C") //Special offer 1824
					{
						color = getCookie('panCol');
						copy1 = '(cn)' + document.getElementById("I_name").value;
						copy2 = '(co)' + document.getElementById("I_office").value;
						whichitem = 'Corrugated Yard Sign SPECIAL';					
					}
					if (itemNo.substr(17,1) == "D") //Special offer 1824
					{
						color = getCookie('panCol');
						copy1 = '(cn)' + document.getElementById("I_name").value;
						copy2 = '(co)' + document.getElementById("I_office").value;
						whichitem = 'Poster Sign SPECIAL';					
					}
					if (itemNo.substr(17,1) == "K" ||itemNo.substr(17,1) == "Q") //Special offer 1824
					{
						color = getCookie('panCol');
						copy1 = '(cn)' + document.getElementById("I_name").value;
						copy2 = '(co)' + document.getElementById("I_office").value;
						if (itemNo.substr(17,1) == "K") 
						{whichitem = ' Kwik-Ship  ' +	whichitem;}					
					}
					if (itemNo.substr(17,2) == "K2" || itemNo.substr(17,2) == "Q2") //Special offer 1824
					{
						color = '(c1) ' + getCookie('panCol1');
						color += '(c2) ' + getCookie('panCol2');
						copy1 = '(cn)' + document.getElementById("I_name").value;
						copy2 = '(co)' + document.getElementById("I_office").value;
										
					}															
					if (itemNo.substr(17,3) == "UPD") //Special offer 1824
					{
						color = getCookie('panCol');
						copy1 = '(cn)' + document.getElementById("I_name").value +
								'(co)' + document.getElementById("I_office").value;

						copy2 = filename;
						
						whichitem += ' Customer File Upload';					
					}
					
					if (itemNo.substr(17,3) == "PO1") //1 color photo
					{
						color = getCookie('panCol');
						copy1 = '(cn)' + document.getElementById("I_name").value +
								'(co)' + document.getElementById("I_office").value;

						copy2 = filename;
						
						whichitem += ' Photo File Upload';					
					}
					if (itemNo.substr(17,3) == "PO2") //2 color photo
					{
						color = 'HiRes Photo with '  + getCookie('panCol') + ' text';
						copy1 = '(cn)' + document.getElementById("I_name").value +
								'(co)' + document.getElementById("I_office").value;

						copy2 = filename;
						
						whichitem += ' Photo File Upload';					
					}
					if (itemNo.substr(17,3) == "PO3") //1 color Customer Layout
					{
						color = getCookie('panCol') + ' text';
						copy1 = '(cn)' + document.getElementById("I_name").value +
								'(co)' + document.getElementById("I_office").value;

						copy2 = filename;
						
						whichitem += ' Layout File Upload';					
					}
					if (itemNo.substr(17,3) == "PO4") //2 color Customer Layout
					{
						color = '(c1) ' + getCookie('panCol1');
						color += '(c2) ' + getCookie('panCol2');
						
						copy1 = '(cn)' + document.getElementById("I_name").value +
								'(co)' + document.getElementById("I_office").value;

						copy2 = filename;
						
						whichitem += ' Layout File Upload';					
					}																																													
					if (itemNo.substr(17,3) == "PO5") //1 color photo
					{
						color = getCookie('panCol') + ' HiRes Photo and text';
						copy1 = 'Customer Layout';

						copy2 = filename;
						
						whichitem += ' Layout/Photo File Upload';					
					}
					if (itemNo.substr(17,3) == "PO6" || itemNo.substr(17,3) == "PO9"
						|| itemNo.substr(17,3) == "P11") //2 color photo
					{
						color = 'HiRes Photo with '  + getCookie('panCol') + ' text';
						copy1 = 'Customer Layout';

						copy2 = filename;
						
						whichitem += ' Layout/Photo File Upload';					
					}
					if (itemNo.substr(17,3) == "PO7") //1 color road sign
					{
						color = getCookie('panCol') + ' text';
						copy1 = '(cn)' + document.getElementById("I_name").value +
								'(co)' + document.getElementById("I_office").value +
								'(ci)' + document.getElementById("I_info").value;
						copy2 = filename;
						
						whichitem += ' Layout File Upload';					
					}
					if (itemNo.substr(17,3) == "PO8") //1 color road sign
					{
						color = '(c1) ' + getCookie('panCol1');
						color += '(c2) ' + getCookie('panCol2');
						copy1 = '(cn)' + document.getElementById("I_name").value +
								'(co)' + document.getElementById("I_office").value +
								'(ci)' + document.getElementById("I_info").value;
						copy2 = filename;
						
						whichitem += ' Layout File Upload';					
					}
					
					if (itemNo.substr(17,3) == "P12") //fULL color photo
					{
						color = 'Full Color Photo & Text';
						copy1 = 'Customer Layout';

						copy2 = filename;
						
						whichitem += ' Full Color Layout & Photo Upload';					
					}
				if(itemNo.substr(7,2) == "2S")
				{whichitem = "Two Sided " + whichitem;}					
				else
				{whichitem = "One Sided " + whichitem;}				
										
										
		}// end panels
	if (itemNo.substr(0,2) == "V-")
		{  
			whichitem = "Vinyl Bumper Sticker";
			switch(itemNo.substr(2,4))
				{
					case "0312":
						size = '3"x12"';
						break;
					case "0415":
						size = '4"x15"';
						break;
				}
				
			if (itemNo.substr(0,12) == "V-0312-NP-1C" || itemNo.substr(0,12) == "V-0415-NP-1C")
				{
						whichitem += " 1-Color";
						color = getCookie('panCol1');
						copy1 = '(cn)' + document.getElementById("I_name").value +
								'(co)' + document.getElementById("I_office").value;	
						copy2 = filename;	
				}
			if (itemNo.substr(0,12) == "V-0312-NP-2C" || itemNo.substr(0,12) == "V-0415-NP-2C")
				{
						whichitem += " 2-Color";
						color = '(c1) ' + getCookie('panCol1');
						color += '(c2) ' + getCookie('panCol2');
						copy1 = '(cn)' + document.getElementById("I_name").value +
								'(co)' + document.getElementById("I_office").value;	
						copy2 = filename;	
				}
		}							
	if (itemNo.substr(0,2) == "M-")
		{  
			whichitem = "Magnetic Sticker";
			switch(itemNo.substr(2,4))
				{
					case "0312":
						size = '3"x12"';
						break;
					case "0418":
						size = '4"x18"';
						break;
				}
				
			if (itemNo.substr(0,12) == "M-0312-NP-1C" || itemNo.substr(0,12) == "M-0418-NP-1C")
				{
						whichitem += " 1-Color";
						color = getCookie('panCol1');
						copy1 = '(cn)' + document.getElementById("I_name").value +
								'(co)' + document.getElementById("I_office").value;	
						copy2 = filename;	
				}
			if (itemNo.substr(0,12) == "M-0312-NP-2C" || itemNo.substr(0,12) == "M-0418-NP-2C")
				{
						whichitem += " 2-Color";
						color = '(c1) ' + getCookie('panCol1');
						color += '(c2) ' + getCookie('panCol2');
						copy1 = '(cn)' + document.getElementById("I_name").value +
								'(co)' + document.getElementById("I_office").value;	
						copy2 = filename;	
				}
		}							

	if (itemNo.substr(0,2) == "A-")
		{  
			whichitem = "Aluminum License Plate";
			switch(itemNo.substr(2,4))
				{
					case "0612":
						size = '6"x12"';
						break;
					case "0418":
						size = '4"x18"';
						break;
				}
			if (itemNo.substr(10,2) == "1C")
				{
						whichitem += " 1-Color";
						color = getCookie('panCol1');
						copy1 = '(cn)' + document.getElementById("I_name").value;
						copy2 = '(co)' + document.getElementById("I_office").value;	
				}
			if (itemNo.substr(10,2) == "2C")
				{
						whichitem += " 2-Color";
						color = '(c1) ' + getCookie('panCol1');
						color += '(c2) ' + getCookie('panCol2');
						copy1 = '(cn)' + document.getElementById("I_name").value;
						copy2 = '(co)' + document.getElementById("I_office").value;		
				}
			if (itemNo.substr(17,3) == "UPD") 
					{
						color = '(c1) ' + getCookie('panCol1');
						color += '(c2) ' + getCookie('panCol2');
						copy1 = '(cn)' + document.getElementById("I_name").value +
								'(co)' + document.getElementById("I_office").value;

						copy2 = filename;
						
						whichitem = "Aluminum License Plate" +' Customer File Upload';					
					}
		}








		if (itemNo.substr(0,3) == "CS-")// Holders
		{				size = '30"';
						color = "Silver";
						bgcolor = "";
						copy1 = "&nbsp;";
						copy2 = "&nbsp;";
			switch(itemNo.substr(3,2))
			{
				case "RG":
						whichitem = "Holder Coro-Stake Standard";
						break;
				case "HD":
						whichitem = "Holder Coro-Stake Heavy";
						break;
				case "SD":
						size = '33"';
						color = "Black"
						whichitem = "Holder Coro-Stake Super";
						break;
			}
		}
		if (itemNo.substr(0,3) == "STK")// Holders
		{				size = '22"';
						color = "Black";
						bgcolor = "";
						copy1 = "&nbsp;";
						copy2 = "&nbsp;";
			switch(itemNo.substr(3,3))
			{
				case "U22":
						whichitem = 'Holder U Stake 22"';
						break;
				case "U28":
						size = '28"';
						color = "Black"
						whichitem = 'Holder U Stake 28"';
						break;
			}
		}






















// Agent Name Riders--------------------------------------------------------		
		if (itemNo.substr(0,4) == "DNR-")
		{ 
			switch(itemNo.substr(0,12))
			{
				case "DNR-P-824-NZ":
					whichitem = "READY Dome Agent Rider Negative ";
					size = " 8x24"
					break;
				case "DNR-P-828-NZ":
					whichitem = "READY Dome Agent Rider Negative ";
					size = " 8x28"
					break;	
				case "DNR-P-824-PZ":
					whichitem = "READY Dome Agent Rider Positive ";
					size = " 8x24"
					break;
				case "DNR-P-828-NZ":
					whichitem = "READY Dome Agent Rider Positive ";
					size = " 8x28"
					break;									  
			}			

			if (itemNo.substr(17,2) == "RD"){color = "Red";}
			if (itemNo.substr(17,2) == "BK"){color = "Black";}
			if (itemNo.substr(17,2) == "GR"){color = "Green";}
			if (itemNo.substr(17,2) == "BE"){color = "Blue";}
				
			copy1 = document.getElementById("I_name").value; 
			copy2 =  document.getElementById("A_phone").value;	
		}
		if (itemNo.substr(0,4) == "SNR-")
		{ 
			switch(itemNo.substr(4,2))
			{
				case "S-":
					whichitem = "READY Steel Agent Rider";
					break;
				case "P-":
					whichitem = "READY Polysterene Agent Rider  ";
					break;
				case "R-":
					whichitem = "READY Reflective AgentRider ";
					break;										  
			}
			switch(itemNo.substr(6,3))
			{
				case "624":
					size = "6x24";
					break;
				case "628":
					size = "6x28";
					break;										  
			}						
			if (itemNo.substr(17,2) == "RD"){color = "Red";}
			if (itemNo.substr(17,2) == "BK"){color = "Black";}
			if (itemNo.substr(17,2) == "GR"){color = "Green";}
			if (itemNo.substr(17,2) == "BE"){color = "Blue";}
				
			copy1 = document.getElementById("A_name").value; 
			copy2 =  document.getElementById("A_phone").value;	
		}
		if (itemNo.substr(0,3) == "PNR")
		{ 
			size = " 6x24";
			switch(itemNo.substr(4, 1))
			{
				case "S":
					whichitem = "READY Steel Agent Photo Rider";
					break;
				case "P":
					whichitem = "READY Polystyrene Agent Photo Rider"; 
					break;
				case "R":
					whichitem = "READY Reflective Agent Photo Rider"; 
			}
			
			switch(itemNo.substr(0,12))
			{
				case "PNR-P-624-NP":
					whichitem += " Negative ";
					size = " 6x24";
					break;
				case "PNR-P-624-PP":
					whichitem += " Positive ";
					size = " 6x24";
					break;	
			}			
		
			if (itemNo.substr(14,2) == "RD")
			{	color = "Red";	}
			if (itemNo.substr(14,2) == "BK")
			{	color = "Black";	}
			if (itemNo.substr(14,2) == "GR")
			{	color = "Green";	}
			if (itemNo.substr(14,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;
		}

//Directionals-------------------			
			if(itemNo.substr(7,2) == "AW" || itemNo.substr(7,2) == "HE" || itemNo.substr(7,2) == "RE")
				{	
							
					switch(itemNo.substr(0, 2))
					{
						case "S-":
							whichitem = "READY Directional Steel Panel";
							break;
						case "T-":
							whichitem = "READY Directional TwinWall Panel"; 
					}
					switch(itemNo.substr(7, 2))
					{
						case "AW":
							whichitem = "READY Directional Arrow TwinWall";
							copy1 ="" ;
							copy2 ="" ;
							break;
						case "HE":
							whichitem = "READY Directional House TwinWall";
							copy1 ="" ;
							copy2 ="" ;						 
							break;
						case "RE":
							whichitem = "READY Directional Rectangle TwinWall";
							copy1 ="" ;
							copy2 ="" ;							 
							break;					
					}
					if (itemNo.substr(10,2) == "IP")
						{	whichitem += ' Imprinted ';				

						if (itemNo.substr(17,2) == "FS")
							{
								whichitem = whichitem + ' "FOR SALE"';
								copy1 ='(an)' + document.getElementById("AFS_name").value ;
							}
						if (itemNo.substr(17,2) == "OH")
							{
								whichitem = whichitem + ' "OPEN HOUSE"';
								copy1 ='(an)' + document.getElementById("AOH_name").value ;
							}
						if (itemNo.substr(17,2) == "HP")
							{
								whichitem = whichitem + ' "Phone Home Tour"';
								copy1 ='(ap)' + document.getElementById("A_phone").value ;
							}
						if (itemNo.substr(17,2) == "NP")
							{
								whichitem = whichitem + ' "Name & Phone Home Tour"';
								copy1 ='(an)' + document.getElementById("A_name").value ;
								copy2 ='(ap)' + document.getElementById("A_phone1").value ;
							}														
						}																	
			switch(itemNo.substr(2,4))
					{
						case "1218":
							size = "12x18";
							break;
						case "1723":
							size = "17x23";
							break;
						case "1824":
							size = "18x24";
							break;
						case "1830":
							size = "18x30";
							break;
						case "2424":
							size = "24x24";
							break;							
					}					
				}	
//Holders----------------------------------------------------------------------------
		if (itemNo.substr(0,4) == "CAF-")
		{	
			whichitem = "Holder Castle Frame";
			color = "Black";
			bgcolor = "";
			copy1 = "&nbsp;";
			copy2 = "&nbsp;";
			switch(itemNo.substr(4, 4))
			{
				case "1824":	// 1824 frame
						size = "18x24";
						break;
				case "1830":
						size = "18x30";
						break;						
				case "2028":
						size = "20x28";						
						break;
				case "2424":
						size = "24x24";						
						break;
				case "2436":
						size = "24x36";						
						break;
				case "2418":
						size = "24x18";						
						break;																								
			}
		}
		if (itemNo.substr(0,4) == "CRF-")
		{	
			whichitem = "Holder Crown Frame";
			color = "Black";
			bgcolor = "";
			copy1 = "&nbsp;";
			copy2 = "&nbsp;";
			switch(itemNo.substr(4, 4))
			{
				case "1824":	// 1824 frame
						size = "18x24";
						break;
				case "1830":
						size = "18x30";
						break;						
				case "2028":
						size = "20x28";						
						break;
				case "2424":
						size = "24x24";						
						break;
				case "2436":
						size = "24x36";						
						break;
				case "2418":
						size = "24x18";						
						break;																								
			}
		}
		if (itemNo.substr(0,4) == "ESF-")
		{	
			whichitem = "Holder Esquire Frame";
			color = "Black";
			bgcolor = "";
			copy1 = "&nbsp;";
			copy2 = "&nbsp;";
			switch(itemNo.substr(4, 4))
			{
				case "1824":	// 1824 frame
						size = "18x24";
						break;
				case "1830":
						size = "18x30";
						break;						
				case "2028":
						size = "20x28";						
						break;
				case "2424":
						size = "24x24";						
						break;
				case "2436":
						size = "24x36";						
						break;
				case "2418":
						size = "24x18";						
						break;																								
			}
		}				
		if (itemNo == "Colonial Post-WT")
		{
			size = '64" Tall';
			color = "White";
			bgcolor = "";
			copy1 = "&nbsp;";
			copy2 = "&nbsp;";
			whichitem = "Holder Colonial Post";
		}
		
		if (itemNo == "EZ Post-WT")
		{
			size = '72" Tall';
			color = "White";
			bgcolor = "";
			copy1 = "&nbsp;";
			copy2 = "&nbsp;";
			whichitem = "Holder E-Z Post";
		}
		if (itemNo == "SW-1824-BK")
		{
			size = '18x24';
			color = "Black";
			bgcolor = "";
			copy1 = "&nbsp;";
			copy2 = "&nbsp;";
			whichitem = "Holder Sidewalk Frame-1824";
		}

//lARGEfORMAT---------------------------------------------------------------

		if (itemNo == "LFT-BAN3660-RMX-OH")
		{ 	
						size = "36 x 60";
						copy1 = '(an) ' + document.getElementById("Namerider_name1").value + '(ap) ' + document.getElementById("Namerider_phone1").value;
						copy1 = '(cn) ' + document.getElementById("Namerider_name").value + '(cp) ' + document.getElementById("Namerider_phone2").value;
						whichitem = "READY Open House Banner";
		}
		if (itemNo == "LFT-BAN3660-RMX-FS")
		{ 	
						size = "36 x 60";
						copy1 = '(an) ' + document.getElementById("Namerider_name1").value + '(ap) ' + document.getElementById("Namerider_phone1").value;
						copy1 = '(cn) ' + document.getElementById("Namerider_name").value + '(cp) ' + document.getElementById("Namerider_phone2").value;						
						whichitem = "READY For Sale Banner";
		}			
		if (itemNo == "LFT-BDP3660-RMX-PO")
		{ 		
						size = "36 x 60";
						color = "Full Color";
						bgcolor = "White";
						copy1 = '(an) ' + document.getElementById("Namerider_name1").value
						+ '(ap) ' + document.getElementById("Namerider_phone1").value
						+ '(cn) ' + document.getElementById("Namerider_name").value
						+ '(cp) ' + document.getElementById("Namerider_phone2").value;
						
						var filepath = document.getElementById("F1").value.split("\\");
						var filename = filepath[filepath.length - 1];
						copy2 = filename;						
						whichitem = "READY Agent Photo Banner";
		}
		
		if (itemNo == "T-3248-NP-SP-RMX-FS")
		{
			size = "32x48";
			copy1 = '(an)' + document.getElementById("A_name").value + '(ap)' + document.getElementById("A_phone").value;
			copy2 = '(cn)' + document.getElementById("C_name").value + '(cp)' + document.getElementById("C_phone").value;
			whichitem = "READY 32x48 Site Sign TwinWall Panel";
		}
		if (itemNo == "T-4848-NP-SP-RMX-FS")
		{
			size = "48x48";
			copy1 = '(an)' + document.getElementById("A_name").value + '(ap)' + document.getElementById("A_phone").value;
			copy2 = '(cn)' + document.getElementById("C_name").value + '(cp)' + document.getElementById("C_phone").value;
			whichitem = "READY 48x48 Site Sign TwinWall Panel";
		}		

		if (itemNo.substr(0,10) == "LFT-SCADE-")
		{
			size = "25 x 45";
			whichitem = "READY Office Sign";
			copy1 = '(cn) ' + document.getElementById("C_name").value
			copy2 = '(cp) ' + document.getElementById("C_phone").value;			
			switch(itemNo.substr(14,2))
				{
				case "OO":
					whichitem += " - Office Open";
					break;
				case "NH":
					whichitem += " - Now Hiring";
					break;
				case "AD":
					whichitem += " - Agent On Duty";
					break;
				case "OH":
					whichitem += " - Open House";
				}						
		}
		if (itemNo.substr(0,10) == "LFT-SCPNL-")
		{
			size = "9x24";
			color = "White";
			bgcolor = "Blue";
			whichitem = "READY Office Panel";
			copy2 = "";
				switch(itemNo.substr(14,2))
				{
				case "OO":
					copy1 = "Office Open";
					break;
				case "NH":
					copy1 = "Now Hiring";
					break;
				case "AD":
					copy1 = "Agent On Duty";
					break;
				case "OH":
					copy1 = "Open House";
				}
			}	
// Vehicle-------------------------							
		if (itemNo == "M-1224-RC-SP-RDY-AM")
			{	
						size = "12 x 24";
						copy1 = ' (an) ' + document.getElementById("A_name").value;
						copy2 = ' (ap) ' +  document.getElementById("A_phone").value;
						whichitem = "READY Agent Auto Magnetic";
			}
		if (itemNo == "S-0612-LI-SP-RMX-LP")
			{
					size = "6 x 12";
					copy1 = ' (cn) ' + document.getElementById("C_name").value;
					copy2 = "&nbsp;";
					whichitem = "READY License Plate";				
			}
//Open House & Jumbo--------------------------------------------------------------------------------
			if (itemNo == "S-3248-JU-SP-RMX-FS")
			{
				size = "32 x 48";
				copy1 = '(an)' + document.getElementById("A_name").value + '(ap)' + document.getElementById("A_phone").value;
				copy2 = '(cn)' + document.getElementById("C_name").value + '(cp)' + document.getElementById("C_phone").value;
				whichitem = "READY 32x48 Metal Panel & Holder";
			}
			else if (itemNo == "S-1824-FP-SC-RDY-OH")
			{
				size = "18 x 24";
				copy1 = "&nbsp;";
				copy2 = "&nbsp;"; 
				whichitem = "READY Open House Panel/Holder Combo";
			}		
			
			else if (itemNo == "S-1824-FP-IC-RMX-OH")
			{
				size = "18 x 24";
				copy1 = '(an)' + document.getElementById("A_name").value;
				copy2 = "&nbsp;"; 
				whichitem = "READY Open House Company Imprinted Panel/Holder Combo";
			}					

		oldCart = getCookie('ShopCart');
		newCart = "["+itemNo+"|"+whichitem+"|"+size+"|"+color+"|"+bgcolor+"|"+copy1+"|"+copy2+"|"+qty+"]";
		cartFull = oldCart + newCart;
		setCookie('ShopCart',cartFull);
//alert(cartFull);		
		viewCart();
}

//-------------------------------------------------------------------------------------------------------------------------------
// validate form fields
function addItemPSE(itemNoField, Commercialqty)
{
//alert("itemNoField = " + itemNoField + ', qty = ' + Commercialqty + '  line 317 shop  ');
	
		// 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;
		}


	// adds item info into cart
	 buyItemflat(itemNoField, Commercialqty)
}

//-------------------------------------------------------------------------------------------------------------------------------
// goes to view cart
function viewCart()
{
		var FranCode = getCookie('Franchise');	
		if(FranCode == null)
		{self.location.href="shop_view_cart.htm";}
		else
		{self.location.href="shop_view_cart_" + FranCode + ".htm";} 
}
//--------------------------------------------------------------------------------------------------
function getPriceReady(itemNo, qty)
{
	var thePrice = "";
	if (thePrice.length == 0) thePrice = getPriceREADYCYS(itemNo, qty);
	if (thePrice.length == 0) thePrice = getPriceREADYDIR(itemNo, qty);
	if (thePrice.length == 0) thePrice = getPriceREADYNR(itemNo, qty);
	if (thePrice.length == 0) thePrice = getPriceREADYOH(itemNo, qty);
	if (thePrice.length == 0) thePrice = getPriceREADYFrames(itemNo, qty);
	return thePrice;
}

function getPriceREADYCYS(itemNo, qty)
{
	switch (itemNo)
	{
		case "RRSP-S1824":
			if (qty<10){ return "34.50"; }
			if (qty<15){ return "23.95"; }	
			if (qty<25){ return "19.50"; }
			if (qty<50){ return "14.50"; }
			if (qty<100){ return "11.75"; }								
			return "CALL";	
			
		case "RRSP-S2028":
			if (qty<10){ return "38.95"; }
			if (qty<15){ return "31.50"; }	
			if (qty<25){ return "22.95"; }
			if (qty<50){ return "18.25"; }
			if (qty<100){ return "14.75"; }								
			return "CALL";	
			
		case "RRSP-R1824":
			if (qty<10){ return "49.95"; }
			if (qty<15){ return "39.95"; }	
			if (qty<25){ return "33.50"; }
			if (qty<50){ return "29.95"; }
			if (qty<100){ return "27.75"; }								
			return "CALL";	
			
		case "RRSP-R2028":
			if (qty<10){ return "59.95"; }
			if (qty<15){ return "53.50"; }	
			if (qty<25){ return "46.95"; }
			if (qty<50){ return "39.95"; }
			if (qty<100){ return "37.50"; }								
			return "CALL";		
			
		case "RRCA-S1824":
			if (qty<10){ return "48.50"; }
			if (qty<15){ return "37.95"; }	
			if (qty<25){ return "33.50"; }
			if (qty<50){ return "28.50"; }
			if (qty<100){ return "25.75"; }								
			return "CALL";	
			
		case "RRCA-S2028":
			if (qty<10){ return "54.95"; }
			if (qty<15){ return "47.50"; }	
			if (qty<25){ return "38.95"; }
			if (qty<50){ return "34.25"; }
			if (qty<100){ return "30.75"; }								
			return "CALL";	
			
		case "RRCA-R1824":
			if (qty<10){ return "63.95"; }
			if (qty<15){ return "53.95"; }	
			if (qty<25){ return "47.50"; }
			if (qty<50){ return "43.95"; }
			if (qty<100){ return "41.75"; }								
			return "CALL";	
			
		case "RRCA-R2028":
			if (qty<10){ return "75.95"; }
			if (qty<15){ return "69.50"; }	
			if (qty<25){ return "62.95"; }
			if (qty<50){ return "55.95"; }
			if (qty<100){ return "53.50"; }								
			return "CALL";		
		 
		default:
			return "";			
	}	
}

function getPriceREADYNR(itemNo, qty)
{

	if (itemNo.substr(0,4) == "RRNR")
	{
		if (itemNo.substr(5,1) == "R")
		{
			if (qty<10){ return "16.95"; }
			if (qty<15){ return "15.95"; }		
			if (qty<25){ return "14.95"; }
			return "12.95";
		}
	}


	switch (itemNo.substr(0,4))
	{
		case "RRNR": 
			if (qty<10){ return "9.95"; }
			if (qty<15){ return "8.95"; }		
			if (qty<25){ return "7.95"; }
			return "5.95";

		case "RRPN": 
			if (qty<10){ return "19.95"; }
			if (qty<15){ return "18.50"; }		
			if (qty<25){ return "17.95"; }
			return "15.95";
		default:
			return "";			
	}
}

function getPriceREADYOH(itemNo, qty)
{	
	switch (itemNo)
	{
		case "RROHC":
			if (qty<10){ return "39.95"; }
			if (qty<15){ return "35.00"; }
			if (qty<25){ return "31.95"; }
			if (qty<50){ return "29.95"; }			
			return "28.50";
		case "RROHC_I":
			if (qty<10){ return "49.50"; }
			if (qty<15){ return "39.95"; }
			if (qty<25){ return "35.00"; }
			if (qty<50){ return "31.50"; }			
			return "29.95";			
		default:
			return "";
	}
}

function getPriceREADYFrames(itemNo, qty)
{
	//alert("itemNo in getPriceExiYS() = " + itemNo);
	switch (itemNo)
	{		
		case "RREZ":
		if (qty<4){ return "69.95"; }				
			return "64.88";
		case "RRCA1824":
			return "14.00";
		case "RRCA2028":
			return "16.00";				
		case "RRCS-RG":
			return "1.25";	
		case "RRCS-HD":
			return "2.50";	
		case "RRCS-SD":
			return "5.95";
		case "RRAAM":
			if (qty<4){ return "24.50"; }
			if (qty<10){ return "21.50"; }		
			if (qty<18){ return "17.50"; }
			if (qty<24){ return "12.95"; }	
			if (qty<50){ return "9.50"; }					
			return "6.50";
								
		case "rdy-DSP":
			return "3.88";												
			
		default:
			return "";
	}
}

function getPriceREADYDIR(itemNo, qty)
{
	switch(itemNo)
	{
		case "RRDAFS":
			if (qty<10){ return "18.95"; }
			if (qty<15){ return "13.95"; }		
			if (qty<25){ return "11.95"; }
			if (qty<50){ return "8.95"; }			
			return "6.75";
		case "RRDAOH":
			if (qty<10){ return "18.95"; }
			if (qty<15){ return "13.95"; }		
			if (qty<25){ return "11.95"; }
			if (qty<50){ return "8.95"; }			
			return "6.75";	
		case "RRDAFS_I":
			if (qty<10){ return "24.45"; }
			if (qty<15){ return "17.50"; }		
			if (qty<25){ return "13.95"; }
			if (qty<50){ return "9.50"; }			
			return "6.75";
		case "RRDAOH_I":
			if (qty<10){ return "24.45"; }
			if (qty<15){ return "17.50"; }		
			if (qty<25){ return "13.95"; }
			if (qty<50){ return "9.50"; }			
			return "6.75";
		case "RRDHFS":
			if (qty<10){ return "18.95"; }
			if (qty<15){ return "13.95"; }		
			if (qty<25){ return "11.95"; }
			if (qty<50){ return "8.95"; }			
			return "6.75";
		case "RRDHOH":
			if (qty<10){ return "18.95"; }
			if (qty<15){ return "13.95"; }		
			if (qty<25){ return "11.95"; }
			if (qty<50){ return "8.95"; }			
			return "6.75";	
		case "RRDHFS_I":
			if (qty<10){ return "24.45"; }
			if (qty<15){ return "17.50"; }		
			if (qty<25){ return "13.95"; }
			if (qty<50){ return "9.50"; }			
			return "6.75";
		case "RRDHOH_I":
			if (qty<10){ return "24.45"; }
			if (qty<15){ return "17.50"; }		
			if (qty<25){ return "13.95"; }
			if (qty<50){ return "9.50"; }			
			return "6.75";	
			
		case "RRDRFS":
			if (qty<10){ return "16.95"; }
			if (qty<15){ return "12.50"; }		
			if (qty<25){ return "9.95"; }
			if (qty<50){ return "7.25"; }			
			return "5.95";
		case "RRDROH":
			if (qty<10){ return "16.95"; }
			if (qty<15){ return "12.50"; }		
			if (qty<25){ return "9.95"; }
			if (qty<50){ return "7.25"; }			
			return "5.95";	
		case "RRDRFS_I":
			if (qty<10){ return "22.45"; }
			if (qty<15){ return "15.95"; }		
			if (qty<25){ return "11.50"; }
			if (qty<50){ return "7.95"; }			
			return "5.95";
		case "RRDROH_I":
			if (qty<10){ return "22.45"; }
			if (qty<15){ return "15.95"; }		
			if (qty<25){ return "11.50"; }
			if (qty<50){ return "7.95"; }			
			return "5.95";
		case "RRTWHT-1824-A":
			if (qty<10){ return "12.95"; }
			if (qty<15){ return "9.95"; }		
			if (qty<25){ return "8.95"; }
			if (qty<50){ return "6.95"; }			
			return "4.95";
		case "RRTWHT-1824-B":
			if (qty<10){ return "12.95"; }
			if (qty<15){ return "9.95"; }		
			if (qty<25){ return "8.95"; }
			if (qty<50){ return "6.95"; }			
			return "4.95";									
			

		default:
			return "";
	}
}


//-------------------------------------------------------------------------------------------------------------------------------

function viewInfo(infoType)
{
alert(infoType + 'it gets here' );
	
	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 == 'foInstruct'){
		smallwin3 = window.open("2_FoldOver_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");
	}
}

// -->	










