<!--
//-------------------------------------------------------------------------------------------------------------------------------
	var product;
	
	function browserOK()
	// checks users browser for compatibility with shopping cart
	{	
		var bName = navigator.appName;
		var bVer = parseInt(navigator.appVersion);
		var NS4 = (bName == "Netscape" && bVer >= 3);
		var IE4 = (bName == "Microsoft Internet Explorer" && bVer >= 4);
		if (!(IE4 || NS4))
		{	
			return false;
		}
		return true;
	}
//-------------------------------------------------------------------------------------------------------------------------------
// showItems() - displays shopping cart in a table
	function showItems()
	{
//alert("line 22 SVC.JS - FUNCTION showItems()");
		if(!browserOK())
		{	
			document.writeln('<DIV ALIGN="CENTER"><TABLE BORDER=0 WIDTH="360" bordercolor="#DD9500"><TR ALIGN="center"><TD><FONT FACE="Verdana, Arial" SIZE="+1" color="#800000"><B>YOUR SHOPPING CART IS EMPTY.</B></FONT></TD></TR></TABLE></DIV>');
			areItems = 0;
			return;
		}
		
		// sets flag to false for qty validation
		invalidQty = 0;
		subTotal = 0;
				
		// initializes flag to check if cart is empty
		areItems = 0;
		
		fulllist = getCookie('ShopCart');
		//alert(fulllist);
		
		if((!fulllist) || (fulllist == "null") || (fulllist == ""))
		{	
		document.writeln('<DIV ALIGN="CENTER"><TABLE BORDER=0 WIDTH="360"><TR ALIGN="center"><TD><FONT FACE="Verdana, Arial" SIZE="+1" COLOR="#FF0000"><B>YOUR SHOPPING CART IS EMPTY.</B></FONT></TD></TR></TABLE></DIV>');
		return;
		}
			
		document.writeln('<FORM NAME="updateform">');
		document.writeln('<TABLE BORDER=3 FRAMEBORDER=3 bordercolor="#DD9500">');
		document.writeln('<TR bgcolor="#F4BD00"><TD ALIGN="center"><b><font face="Arial" color="#800000" size=2>Item #</font></b></TD><TD ALIGN="center"><b><font face="Arial" color="#800000" size=2>Description</font></b></TD><TD ALIGN="center"><b><font face="Arial" color="#800000" size=2>Qty</font></b></TD><TD ALIGN="center"><b><font face="Arial" color="#800000" size=2>Size</font></b></TD><TD ALIGN="center"><b><font face="Arial" color="#800000" size=2>Color</font></b></TD><TD ALIGN="center"><b><font face="Arial" color="#800000" size=2>Copy - Line 1</font></b></TD><TD ALIGN="center"><b><font face="Arial" color="#800000" size=2>Copy - Line 2</font></b></TD><TD ALIGN="center"><b><font face="Arial" color="#800000" size=2>Cost Each</font></b></TD><TD ALIGN="center"><b><font face="Arial" color="#800000" size=2>Total Cost</font></b><TD ALIGN="center"><b><font face="Arial" color="#800000" size=2>Action</font></b></TD></TR>');
		itemlist = 0;

		for (var i = 0; i <= fulllist.length; i++) {
			if (fulllist.substring(i,i+1) == '[')
			{
				itemstart = i+1;
				thisitem = 1;
			} else if (fulllist.substring(i,i+1) == ']') {
				//the last item is the quantity...
			 	itemend = i;
			 	thequantity = fulllist.substring(itemstart, itemend);

				// check validity (numeric) of the quantity
			 	if (!validQty(thequantity)) { return };

			 	// increments empty cart check flag
			 	areItems++;

			  	// sets red qty marker to false
				turnItemRed = 0;
								
				// calls the pricing function
				//CODED BY ALF 07/09/06
				//CODE Modified to add 'Exi' Exit Realty Items BY Auburn SeeWolf 12/5/2006
				
			
//alert(whichitem + ' line 75');				
				if ((whichitem == "Accessories") || (whichitem == "Posts") || (whichitem == "Coro-Stakes") || (whichitem == "Frames") || (whichitem == "Decals") || (whichitem == "INFOLine")
						|| (whichitem == "Magnetic Vehicle Sign") || (whichitem == "Economy Directional Open House") 
						|| (whichitem == "Economy Directional For Sale") || (whichitem == "ED Sign Step1") || (whichitem == "ED Sign Step2") 
						|| (whichitem == "Die Cut House FOR SALE") || (whichitem == "Die Cut House OPEN HOUSE") 
						|| (whichitem == "Die Cut Arrow FOR SALE") || (whichitem == "Die Cut Arrow OPEN HOUSE") 
						|| (whichitem == "Open House Sign") || (whichitem == "Open House Sign Frame") || (whichitem == "Sign Panel 432") 
						|| (whichitem == "Sign Panel 560") || (whichitem == "Sign Panel 864") 
						|| (whichitem == "Sign Panel & Esquire Frame Combo1") || (whichitem == "Sign Panel & Esquire Frame Combo2") 
						|| (whichitem == "Sign Panel & Castle Frame Combo1") || (whichitem == "Sign Panel & Castle Frame Combo2") 
						|| (whichitem == "Sign Panel & Castle Frame Combo3") || (whichitem == "Sign Panel & Castle Frame Combo4") 
						|| (whichitem == "Sign Panel & Castle Frame Combo5") || (whichitem == "Deluxe Directional Open House") 
						|| (whichitem == "Deluxe Directional For Sale") || (whichitem == "Deluxe Directional Open House Combo") 
						|| (whichitem == "Deluxe Directional For Sale Combo") || (whichitem == "Agent Name Rider1") 
						|| (whichitem == "Agent Name Rider2") || (whichitem == "Reflective Agent Name Rider1") 
						|| (whichitem == "Reflective Agent Name Rider2") || (whichitem == "Flexible Sign Open House") 
						|| (whichitem == "Flexible Sign For Sale") || (whichitem == "Plastic 1") || (whichitem == "Plastic 2") 
						|| (whichitem == "Plastic 3") || (whichitem == "Wooden 1") || (whichitem == "Wooden 2") || (whichitem == "Wooden 3") 
						|| (whichitem == "Metal")
						
						|| (whichitem == "Flat Rate Yard Sign Panel") || (whichitem == "Flat Rate Open House Sign Panel") 
						|| (whichitem == "Flat Rate Open House Sign Combo") || (whichitem == "Flat Rate Economy Directional House Combo") 
						|| (whichitem == "Flat Rate Economy Directional Arrow Combo") || (whichitem == "EZPost") || (whichitem == "Infopak") 
						|| (whichitem == "Flat Rate Name Rider Style F") || (whichitem == "Flat Rate Name Rider Style G") 
						|| (whichitem == "Flat Rate Name Rider Style H") || (whichitem == "Flat Rate Name Rider Style I") 
						|| (whichitem == "Flat Rate Reflective Name Rider Style F") || (whichitem == "Flat Rate Reflective Name Rider Style G") 
						|| (whichitem == "Flat Rate Reflective Name Rider Style H") || (whichitem == "Flat Rate Reflective Name Rider Style I") 
						|| (whichitem == "Flat Rate Photo Name Rider") || (whichitem == "UBuildIt Steel Project Sign Panel") || (whichitem == "UBuildIt Reflective Project Sign Panel")   // Added By JO 03/11/007
						|| (whichitem == "UBuildIt TwinWall Project Sign Panel") || (whichitem == "UBuildIt Sidewalk Frame w/ Panel")  // Added By JO
						|| (whichitem == "UBuildIt Sidewalk Replacement Panel")  || (whichitem == "UBuildIt Custom Home Directional")
						|| (whichitem == "UBuildIt Remodeled Directional") || (whichitem == "UBuildIt Instant Equity Directional")
						|| (whichitem == "UBuildIt Custom Home Message")  || (whichitem == "UBuildIt Remodeled Message")
						|| (whichitem == "UBuildIt Instant Equity Message") || (whichitem == "UBuildIt Message Assortment Pack")
						|| (whichitem == "UBuildIt Coro Stake Regular")  || (whichitem == "UBuildIt Coro Stake Heavy")
						|| (whichitem == "UBuildIt Coro Stake Super") || (whichitem == "UBuildIt E Z Post")
						|| (whichitem == "UBuildIt TriFold  Dispenser") || (whichitem == "UBuildIt Solar Dispenser")
						|| (whichitem == "UBuildIt Custom Banner")

						|| (whichitem == "SST Yard Sign Panel")	
						|| (whichitem == "SST FSBO Directional")
						|| (whichitem == "SST Call For Rider")						
						|| (whichitem == "SST Free 24 Rider")					  
						|| (whichitem == "SST Handy Post")
						|| (whichitem == "SST Colonial Post")
						|| (whichitem == "SST Coro Stake Regular Duty")
						|| (whichitem == "SST Coro Stake Heavy Duty")						
						|| (whichitem == "SST Coro Stake Super Duty")												
						|| (whichitem == "Yard Sign & Directional Numbers")
						|| (whichitem == "Smart Sales Rider Numbers")
						
						|| (whichitem == "RR Steel Panel 1824")						
						|| (whichitem == "RR Steel Panel 2028")												
						|| (whichitem == "RR Refl Panel 1824")
						|| (whichitem == "RR Refl Panel 2028")
						|| (whichitem == "RR Steel Combo 1824")						
						|| (whichitem == "RR Steel Combo 2028")												
						|| (whichitem == "RR Refl Combo 1824")
						|| (whichitem == "RR Refl Combo 2028")
						|| (whichitem == "ARROW Dir 'For Sale'")
						|| (whichitem == "ARROW Dir 'Open House'")		
						|| (whichitem == "ARROW Dir 'For Sale' Imprint")
						|| (whichitem == "ARROW Dir 'Open House' Imprint")	
						|| (whichitem == "HOUSE Dir 'For Sale'")
						|| (whichitem == "HOUSE Dir 'Open House'")		
						|| (whichitem == "HOUSE Dir 'For Sale' Imprint")
						|| (whichitem == "HOUSE Dir 'Open House' Imprint")						
						|| (whichitem == "12x18 Dir 'For Sale'")
						|| (whichitem == "12x18 Dir 'Open House'")		
						|| (whichitem == "12x18 Dir 'For Sale' Imprint")
						|| (whichitem == "12x18 Dir 'Open House' Imprint")
						|| (whichitem == "RR Company Auto Magnetics")		
						|| (whichitem == "RR Agent Auto Magnetics")
						|| (whichitem == "RR Photo Auto Magnetics")						
						|| (whichitem == "RR Open House Combo")
						|| (whichitem == "RR Open House Combo Imprint")	
						|| (whichitem == "RR Castle 1824 Frame")
						|| (whichitem == "RR Castle 2028 Frame")		
						|| (whichitem == "RR Coro Stake Regular")
						|| (whichitem == "RR Coro Stake Heavy")						
						|| (whichitem == "RR Coro Stake Super")
						|| (whichitem == "RR E Z Post")
						
						|| (whichitem == "RR Name Rider Style F")
						|| (whichitem == "RR Name Rider Style G")		
						|| (whichitem == "RR Name Rider Style H")
						|| (whichitem == "RR Name Rider Style I")						
						|| (whichitem == "RR Reflective Name Rider Style F")
						|| (whichitem == "RR Reflective Name Rider Style G")
						|| (whichitem == "RR Reflective Name Rider Style H")
						|| (whichitem == "RR Reflective Name Rider Style I")																								
						|| (whichitem == "RR Standard Photo Name Rider")
						|| (whichitem == "RR Reflective Photo Name Rider")
						
						)
														
		{
		
					itemprice = getPriceitem(thequantity, theitem);
				} else if (whichitem == "Photo Riders") {	
					itemprice = getPhoto(thequantity, thesize, theitem);	
				} else if (whichitem == "Directionals") {	
					itemprice = getPriceDir(thequantity, thesize, theitem, thecopy2);	
//				} 
//					else if (whichitem.substring(0,3) == "C21") {
//					itemprice = getPriceC21(thequantity, theitem);	
//				} else if (whichitem.substring(0,3) == "Rea") {
//					itemprice = getPriceRea(theitem, thequantity);	
//				} else if (whichitem.substring(0,3) == "Rex") {
//					itemprice = getPriceRex(thequantity,theitem);
	
				} else if (whichitem == "Hot Products") {	
					itemprice = getPriceHot(thequantity);	
				} else if (whichitem.substring(0,3) == "Exi") {		//Exit Realty Items
					itemprice = getPriceExi(theitem, thequantity);
				} else if (whichitem.substring(0,10) == "Executives") {		//Realty Executives (REX2)
					itemprice = getPriceRex2(theitem, thequantity);
				} else if (whichitem.substring(0,3) == "Env") {		//Envirian (Env)
					itemprice = getPriceEnv(theitem, thequantity);
				} else if (whichitem.substring(0,3) == "o48") {		//o48 (o48)
					itemprice = getPriceo48(theitem, thequantity);		
				} else if (whichitem.substring(0,4) == "gmac") {		
					itemprice = getPricegmac(theitem, thequantity);					
				}  else if (whichitem.substring(0,4) == "casa") {		
					itemprice = getPricecasa(theitem, thequantity);					
				}  else if (whichitem.substring(0,7) == "Century") {		
					itemprice = getPricec21(theitem, thequantity);					
				}  else if (whichitem.substring(0,7) == "Special") {		
					itemprice = getPriceSpc(theitem, thequantity);					
				}   else if (whichitem.substring(0,8) == "Emporium") {		
					itemprice = getPriceSpc(theitem, thequantity);					
				}	else if (whichitem.substring(0,5) == "FSBO_") {		
					itemprice = getPriceFsbo(theitem, thequantity);					
				} else if (whichitem.substring(0,6) == "United") {		
					itemprice = getPriceunc(theitem, thequantity);					
				}  else if (whichitem.substring(0,8) == "UbuildIt") {		
					itemprice = getPriceUbuildIt(theitem, thequantity);					
				}  else if (whichitem.substring(0,5) == "Chart") {		
					itemprice = getPriceCrt(theitem, thequantity);					
				}   else if (whichitem.substring(0,4) == "NCRG") {		
					itemprice = getPriceNcr(theitem, thequantity);					
				}   else if (whichitem.substring(0,7) == "Digital") {
					itemprice = getPriceDpb(theitem, thequantity);					
				}   else if (whichitem.substring(0,5) == "Ready") {
					itemprice = getPriceReady(theitem, thequantity);					
				}
				
				
				else if (whichitem.substring(0,6) == "AllPro") {		//AllPro (Alp)
					itemprice = getPriceAlp(theitem, thequantity);					
				}else {	
					itemprice = getPrice(thequantity, thesize);
				}
	
				itemtotal = formatDecimal((eval(itemprice * thequantity)), true, 2);


				subTotal = (eval(parseFloat(subTotal)) + (parseFloat(itemtotal)));

				subTotalShow = formatDecimal(subTotal, true, 2);

				itemlist=itemlist+1;
 				// sets anchor for whichitem
			  	goOrderPage(whichitem);

				// checks for invalid qty and flags item in red
				if (turnItemRed == 1)	{
					document.write('<tr><td ALIGN="center"><FONT COLOR="#FF0000"><BLINK>'+theitem+'</BLINK></FONT></td>');
				} else {
				    document.write('<tr><td ALIGN="center">'+theitem+'</td>')
				}

//				document.write('<td ALIGN="center"><A HREF="'+go+'" TARGET="_self">'+whichitem+'</A></td>');
				document.write('<td ALIGN="center">'+whichitem+'</A></td>');

				
				//CODED BY ALF 07/09/06
				if ((whichitem == "Accessories") || (whichitem == "Frames") || (whichitem == "Magnetic Vehicle Sign") || (whichitem == "Decals")
				  	|| (whichitem == "Economy Directional Open House") || (whichitem == "Economy Directional For Sale") 
					|| (whichitem == "ED Sign Step1") || (whichitem == "ED Sign Step2") || (whichitem == "Die Cut House FOR SALE") 
					|| (whichitem == "Die Cut House OPEN HOUSE") || (whichitem == "Die Cut Arrow FOR SALE") 
					|| (whichitem == "Die Cut Arrow OPEN HOUSE") || (whichitem == "Open House Sign") || (whichitem == "Open House Sign Frame") 
					|| (whichitem == "Sign Panel 432") || (whichitem == "Sign Panel 560") || (whichitem == "Sign Panel 864") 
					|| (whichitem == "Sign Panel & Esquire Frame Combo1") || (whichitem == "Sign Panel & Esquire Frame Combo2") 
					|| (whichitem == "Sign Panel & Castle Frame Combo1") || (whichitem == "Sign Panel & Castle Frame Combo2") 
					|| (whichitem == "Sign Panel & Castle Frame Combo3") || (whichitem == "Sign Panel & Castle Frame Combo4") 
					|| (whichitem == "Sign Panel & Castle Frame Combo5") || (whichitem == "Deluxe Directional Open House") 
					|| (whichitem == "Deluxe Directional For Sale") || (whichitem == "Deluxe Directional Open House Combo") 
					|| (whichitem == "Deluxe Directional For Sale Combo") || (whichitem == "Agent Name Rider1") || (whichitem == "Agent Name Rider2") 
					|| (whichitem == "Reflective Agent Name Rider1") || (whichitem == "Reflective Agent Name Rider2") 
					|| (whichitem == "Flexible Sign Open House") || (whichitem == "Flexible Sign For Sale") || (whichitem == "Plastic 1") 
					|| (whichitem == "Plastic 2") || (whichitem == "Plastic 3") || (whichitem == "Wooden 1") || (whichitem == "Wooden 2") 
					|| (whichitem == "Wooden 3") || (whichitem == "Metal") 
					
					|| (whichitem == "Flat Rate Yard Sign Panel") 
					|| (whichitem == "Flat Rate Open House Sign Panel") || (whichitem == "Flat Rate Open House Sign Combo") 
					|| (whichitem == "Flat Rate Economy Directional House Combo") || (whichitem == "Flat Rate Economy Directional Arrow Combo") 
					|| (whichitem == "Flat Rate Name Rider Style F") || (whichitem == "Flat Rate Name Rider Style G") 
					|| (whichitem == "Flat Rate Name Rider Style H") || (whichitem == "Flat Rate Name Rider Style I") 
					|| (whichitem == "Flat Rate Reflective Name Rider Style F") || (whichitem == "Flat Rate Reflective Name Rider Style G") 
					|| (whichitem == "Flat Rate Reflective Name Rider Style H") || (whichitem == "Flat Rate Reflective Name Rider Style I") 
					|| (whichitem == "Flat Rate Photo Name Rider") || (whichitem == "Exit Castle Frame")
					|| (whichitem == "Exit Crown Frame") || (whichitem == "Exit Esquire Frame") 
					|| (whichitem == "Exit Coro-Stake Standard") || (whichitem == "Exit Coro-Stake Heavy")
					|| (whichitem == "Exit Coro-Stake Super") || (whichitem == "Exit Single Stake Post")
					|| (whichitem == "Exit Colonial Post") || (whichitem == "Exit E-Z Post")
					|| (whichitem == "Exit Estate Frame-2418") || (whichitem == "Exit Estate Frame-2424") || (whichitem == "Exit Estate Frame-2820")
					|| (whichitem == "Exit TwinWall Directional Sign") || (whichitem == "Exit TwinWall Directional Imprinted Sign")
					|| (whichitem == "Exit Steel Directional Sign") || (whichitem == "Exit Steel Directional Imprinted Sign")
					|| (whichitem == "Exit Decal Message Rider") || (whichitem == "Exit Magnetic Message Rider")
					|| (whichitem == "Exit Banner Hanger Kit") || (whichitem == "Exit Solar Information Dispenser")
					|| (whichitem == "Exit Designer Imperial Panel") || (whichitem == "Exit Designer Marquis Panel") 
					|| (whichitem == "Exit Designer Regal Panel") || (whichitem == "Exit Designer Royal  Panel")
					|| (whichitem == "Exit Photo Designer Imperial Panel") || (whichitem == "Exit Photo Designer Marquis Panel") 
					|| (whichitem == "Exit Photo Designer Regal Panel") || (whichitem == "Exit Photo Designer Royal  Panel")
					|| (whichitem == "Exit Dome Rider Style A") || (whichitem == "Exit Dome Rider Style B")
					|| (whichitem == "Exit New Agent Starter Kit") || (whichitem == "Exit Complete Agent Starter Kit")
					|| (whichitem == "Exit Super Agent Starter Kit") || (whichitem == "Exit Agent Identity Starter Kit")

					|| (whichitem == "Envirian Steel Agent Photo Rider")  || (whichitem == "Envirian Reflective Agent Photo Rider")
					|| (whichitem == "Envirian Steel Agent Rider")  || (whichitem == "Envirian Reflective Agent Rider")
					|| (whichitem == "Envirian castle frame")  || (whichitem == "Envirian crown frame")
					|| (whichitem == "Envirian E-Z Post")  || (whichitem == "Envirian Estate Frame")
					|| (whichitem == "Envirian Coro-Stake Standard")  || (whichitem == "Envirian Coro-Stake Heavy")  || (whichitem == "Envirian Coro-Stake Super")
					|| (whichitem == "Envirian Company Auto Magnetic")  || (whichitem == "Envirian Agent Auto Magnetic")  || (whichitem == "Envirian Photo Auto Magnetic")
					|| (whichitem == "Envirian Steel Company Yard Sign")  || (whichitem == "Envirian Polyethylene Company Yard Sign") || (whichitem == "Envirian Reflective Company Yard Sign")
					|| (whichitem == "Envirian Aluminum Company Yard Sign") || (whichitem == "Envirian TwinWall Company Yard Sign")
					|| (whichitem == "Envirian TwinWall Directional Imprinted Sign") || (whichitem == "Envirian Imprinted Open House Combo")

					|| (whichitem == "AllPro Steel Company Sign Panel")


  					|| (whichitem == "UBuildIt Steel Project Sign Panel")  // Added By JO 03/11/007
  					|| (whichitem == "UBuildIt Reflective Project Sign Panel")
					|| (whichitem == "UBuildIt TwinWall Project Sign Panel")
					|| (whichitem == "UBuildIt Sidewalk Frame w/ Panel")
					|| (whichitem == "UBuildIt Sidewalk Replacement Panel")
					|| (whichitem == "UBuildIt Custom Home Directional")
					|| (whichitem == "UBuildIt Remodeled Directional")
					|| (whichitem == "UBuildIt Instant Equity Directional")						
					|| (whichitem == "UBuildIt Custom Home Message")
					|| (whichitem == "UBuildIt Remodeled Message")
					|| (whichitem == "UBuildIt Instant Equity Message")
					|| (whichitem == "UBuildIt Message Assortment Pack")
					|| (whichitem == "UBuildIt Coro Stake Regular")  
					|| (whichitem == "UBuildIt Coro Stake Heavy")
					|| (whichitem == "UBuildIt Coro Stake Super")
					|| (whichitem == "UBuildIt E Z Post")
					|| (whichitem == "UBuildIt TriFold  Dispenser")
					|| (whichitem == "UBuildIt Solar Dispenser")										
					|| (whichitem == "UBuildIt Custom Banner")
// Added By JO 03/20/007
					
					|| (whichitem == "SST Yard Sign Panel")
					|| (whichitem == "SST FSBO Directional")
					|| (whichitem == "SST Call For Rider")
					|| (whichitem == "SST Free 24 Rider")					
					|| (whichitem == "SST Handy Post")			
					|| (whichitem == "SST Colonial Post")
					|| (whichitem == "SST Coro Stake Regular Duty")
					|| (whichitem == "SST Coro Stake Heavy Duty")						
					|| (whichitem == "SST Coro Stake Super Duty")
					|| (whichitem == "Smart Sales Rider Numbers")	
					|| (whichitem == "Yard Sign & Directional Numbers")
					
					|| (whichitem == "RR Steel Panel 1824")						
					|| (whichitem == "RR Steel Panel 2028")												
					|| (whichitem == "RR Refl Panel 1824")
					|| (whichitem == "RR Refl Panel 2028")
					|| (whichitem == "RR Steel Combo 1824")						
					|| (whichitem == "RR Steel Combo 2028")												
					|| (whichitem == "RR Refl Combo 1824")
					|| (whichitem == "RR Refl Combo 2028")
					|| (whichitem == "ARROW Dir 'For Sale'")
					|| (whichitem == "ARROW Dir 'Open House'")		
					|| (whichitem == "ARROW Dir 'For Sale' Imprint")
					|| (whichitem == "ARROW Dir 'Open House' Imprint")					
					|| (whichitem == "HOUSE Dir 'For Sale'")
					|| (whichitem == "HOUSE Dir 'Open House'")		
					|| (whichitem == "HOUSE Dir 'For Sale' Imprint")
					|| (whichitem == "HOUSE Dir 'Open House' Imprint")
					|| (whichitem == "12x18 Dir 'For Sale'")
					|| (whichitem == "12x18 Dir 'Open House'")		
					|| (whichitem == "12x18 Dir 'For Sale' Imprint")
					|| (whichitem == "12x18 Dir 'Open House' Imprint")
					|| (whichitem == "RR Company Auto Magnetics")		
					|| (whichitem == "RR Agent Auto Magnetics")
					|| (whichitem == "RR Photo Auto Magnetics")					
					|| (whichitem == "RR Open House Combo")
					|| (whichitem == "RR Open House Combo Imprint")					
					|| (whichitem == "RR Castle 1824 Frame")
					|| (whichitem == "RR Castle 2028 Frame")		
					|| (whichitem == "RR Coro Stake Regular")
					|| (whichitem == "RR Coro Stake Heavy")						
					|| (whichitem == "RR Coro Stake Super")
					|| (whichitem == "RR E Z Post")					
					|| (whichitem == "RR Name Rider Style F")
					|| (whichitem == "RR Name Rider Style G")		
					|| (whichitem == "RR Name Rider Style H")
					|| (whichitem == "RR Name Rider Style I")					
					|| (whichitem == "RR Reflective Name Rider Style F")
					|| (whichitem == "RR Reflective Name Rider Style G")
					|| (whichitem == "RR Reflective Name Rider Style H")
					|| (whichitem == "RR Reflective Name Rider Style I")																								
					|| (whichitem == "RR Standard Photo Name Rider")
					|| (whichitem == "RR Reflective Photo Name Rider")								
				
					|| (whichitem == "Executives Castle Frame")
					|| (whichitem == "Executives Coro-Stake Standard") || (whichitem == "Executives Coro-Stake Heavy")
					|| (whichitem == "Executives Coro-Stake Super") || (whichitem == "Executives Single Stake Post")
					|| (whichitem == "Executives Colonial Post") || (whichitem == "Executives E-Z Post")
					|| (whichitem == "Executives TwinWall Directional Sign") || (whichitem == "Executives TwinWall Directional Imprinted Sign")
					|| (whichitem == "Executives Steel Directional Sign") || (whichitem == "Executives Steel Directional Imprinted Sign")
					|| (whichitem == "Executives Decal Message Rider") || (whichitem == "Executives Magnetic Message Rider")
					|| (whichitem == "Executives Banner Hanger Kit") || (whichitem == "Executives Solar Information Dispenser") || (thebgcolor == ""))
			   	{
					document.write('<td align=center><INPUT TYPE=TEXT NAME="quant'+itemlist+'" VALUE="'+thequantity+'" SIZE=3></td><td align=center>'+thesize+'</td><td align=center>'+thecolor+' '+thebgcolor+'</td><td align=center><FONT SIZE="2">'+thecopy1+'</FONT></td><td align=center><FONT SIZE="2">'+thecopy2+'</FONT></td><td align=right>'+itemprice+'</td>')
 				} else if ((whichitem == "EZPost") || (whichitem == "Infopak")) {
					document.write('<td align=center><INPUT TYPE=TEXT NAME="quant'+itemlist+'" VALUE="'+thequantity+'" SIZE=3></td><td>&nbsp;</td><td align=center>'+thecolor+' '+thebgcolor+'</td><td align=center><FONT SIZE="2">'+thecopy1+'</FONT></td><td align=center><FONT SIZE="2">'+thecopy2+'</FONT></td><td align=right>'+itemprice+'</td>')
				} else {
					document.write('<td align=center><INPUT TYPE=TEXT NAME="quant'+itemlist+'" VALUE="'+thequantity+'" SIZE=3></td><td align=center>'+thesize+'</td><td align=center>'+thecolor+' on '+thebgcolor+'</td><td align=center><FONT SIZE="2">'+thecopy1+'</FONT></td><td align=center><FONT SIZE="2">'+thecopy2+'</FONT></td><td align=right>'+itemprice+'</td>')
				}
				  
  				document.write('<td align=right>'+itemtotal+'</td>')
				document.write('<TD><a href="javascript:removeItem('+itemlist+')">Remove</a>&nbsp;<a href="javascript:updateItem('+itemlist+',document.updateform.quant'+itemlist+'.value)">Update</a></td></tr>');
			
			} else if (fulllist.substring(i,i+1) == '|') { // parce the item into fields
				if (thisitem==1) theitem = fulllist.substring(itemstart, i);
				if (thisitem==2) whichitem = fulllist.substring(itemstart, i);
				if (thisitem==3) thesize = fulllist.substring(itemstart, i);
				if (thisitem==4) thecolor = fulllist.substring(itemstart, i);
				if (thisitem==5) thebgcolor = fulllist.substring(itemstart, i);
				if (thisitem==6) thecopy1 = fulllist.substring(itemstart, i);
				if (thisitem==7) thecopy2 = fulllist.substring(itemstart, i);				
				thisitem++;
				itemstart=i+1;
			}
		}
//alert(subTotalShow + '  line409 SVC.js');		 //for
		document.write('<tr><td align=right COLSPAN=8>Subtotal:</td>')
		document.write('<td align=right>'+subTotalShow+'</td>')
		document.write('<TD></td></tr>');
		document.writeln('</TABLE>');
		document.writeln('</FORM>');
	}
//-------------------------------------------------------------------------------------------------------------------------------
// updateItem() updates the cart when quantities are changed
function updateItem(itemno, newquant)
	{
		// check user input for validity
		if(!validQty(newquant)){
			return;
		}
	
		newItemList = null;
		itemlist = 0;
		
		for (var i = 0; i <= fulllist.length; i++)
		{
			if (fulllist.substring(i,i+1) == '['){ //found beginning of order detail
				thisitem = 1;
				itemstart = i+1;
				fullstart = i+1;
			} else if (fulllist.substring(i,i+1) == ']') { //found end of order detail
				itemend = i;
				itemlist=itemlist+1;

				// used in totalMsgrider value computation
				thequantity = fulllist.substring(itemstart, itemend);
				
				if (itemlist != itemno)
				{
					newItemList = newItemList+'['+fulllist.substring(fullstart, itemend)+']';
				} else { //add modified order detail to cookie
					var theitem5 = theitem.substr(0,5);
					var theitem4 = theitem.substr(0,4);
					switch (theitem.substr(0,2))
					{
						case "EX":
							if(theitem=="EXCS-S3248-2" || theitem=="EXSP-S1818-1" || theitem=="EXSP-T3248-2"
							   || theitem=="EXSP-T4848-2" || theitem=="EXSP-W3248-2" || theitem=="EXSP-W4848-2"
							   || theitem=="EXCA-S3248-2"){
								if (newquant != 1 && newquant != 2 && newquant != 4 && newquant != 6 && newquant != 12
									&& newquant != 24){
									newItemList = newItemList+'['+fulllist.substring(fullstart, itemend)+']';
									alert("Quantity must be 1, 2, 4, 6, 12, or 24.");
								} else {
									newItemList = newItemList + "["+theitem+"|"+whichitem+"|"+thesize+"|"+thecolor+"|"+thebgcolor+"|"+thecopy1+"|"+thecopy2+"|"+itemprice+"|"+itemtotal+"|"+newquant+"]";
								}
							} else if(theitem=="EXLP" || theitem=="EXLP-I"){
								if (newquant < 5){
									//newItemList = newItemList+'['+fulllist.substring(fullstart, itemend)+']';
									newItemList = newItemList + "["+theitem+"|"+whichitem+"|"+thesize+"|"+thecolor+"|"+thebgcolor+"|"+thecopy1+"|"+thecopy2+"|"+itemprice+"|"+itemtotal+"|5]";
									alert("The minimum order is 5 license plates.");
								} else {
									newItemList = newItemList + "["+theitem+"|"+whichitem+"|"+thesize+"|"+thecolor+"|"+thebgcolor+"|"+thecopy1+"|"+thecopy2+"|"+itemprice+"|"+itemtotal+"|"+newquant+"]";
								}
							} else if(theitem5=="EXPNR" || theitem5=="EXNRF" || theitem5=="EXSCO"  || theitem5=="EXDNR"
								){
								if (newquant != 5 && newquant != 10 && newquant != 15 && newquant != 25 && newquant != 50){
									newItemList = newItemList+'['+fulllist.substring(fullstart, itemend)+']';
									alert("Quantity must be 5, 10, 15, 25, or 50.");
								} else {
									newItemList = newItemList + "["+theitem+"|"+whichitem+"|"+thesize+"|"+thecolor+"|"+thebgcolor+"|"+thecopy1+"|"+thecopy2+"|"+itemprice+"|"+itemtotal+"|"+newquant+"]";
								}
							} else if(theitem5=="EXASP" || theitem5=="EXACA" || theitem5=="EXACR" || theitem5=="EXAES" 
								|| theitem5=="EXSP-" || theitem5=="EXCA-" ||  theitem5=="EXCR-" || theitem5=="EXES-"
								|| theitem5=="EXHFS" || theitem5=="EXHOH" || theitem5=="EXHFS" || theitem5=="EXAFS" || theitem5=="EXAOH"
								|| theitem5=="EXTWF" || theitem5=="EXTWO" || theitem5=="EXDPF" || theitem5=="EXDPO" 
								){
								if (newquant != 5 && newquant != 10 && newquant != 15 && newquant != 25 && newquant != 50){
									newItemList = newItemList+'['+fulllist.substring(fullstart, itemend)+']';
									alert("Quantity must be 5, 10, 15, 25, 50, or 100.");
								} else {
									newItemList = newItemList + "["+theitem+"|"+whichitem+"|"+thesize+"|"+thecolor+"|"+thebgcolor+"|"+thecopy1+"|"+thecopy2+"|"+itemprice+"|"+itemtotal+"|"+newquant+"]";
								}
							} else if(theitem5=="EXINF"){
								if (newquant != 6 && newquant != 12 && newquant != 24 && newquant != 48 && newquant != 96){
									newItemList = newItemList+'['+fulllist.substring(fullstart, itemend)+']';
									alert("Quantity must be 6, 12, 24, 48, or 96.");
								} else {
									newItemList = newItemList + "["+theitem+"|"+whichitem+"|"+thesize+"|"+thecolor+"|"+thebgcolor+"|"+thecopy1+"|"+thecopy2+"|"+itemprice+"|"+itemtotal+"|"+newquant+"]";
								}
							} else if(theitem5=="EXR-D"){
								if (newquant != 1 && newquant != 2 && newquant != 3 && newquant != 5){
									newItemList = newItemList+'['+fulllist.substring(fullstart, itemend)+']';
									alert("Quantity must be 1, 2, 3, or 5.");
								} else {
									newItemList = newItemList + "["+theitem+"|"+whichitem+"|"+thesize+"|"+thecolor+"|"+thebgcolor+"|"+thecopy1+"|"+thecopy2+"|"+itemprice+"|"+itemtotal+"|"+newquant+"]";
								}
							} else if(theitem5=="EXR-M"){
								if (newquant != 2 && newquant != 4 && newquant != 6 && newquant != 10){
									newItemList = newItemList+'['+fulllist.substring(fullstart, itemend)+']';
									alert("Quantity must be 2, 4, 6, or 10.");
								} else {
									newItemList = newItemList + "["+theitem+"|"+whichitem+"|"+thesize+"|"+thecolor+"|"+thebgcolor+"|"+thecopy1+"|"+thecopy2+"|"+itemprice+"|"+itemtotal+"|"+newquant+"]";
								}
							} else if(theitem5=="EXMG-"){
								if (newquant != 2 && newquant != 4 && newquant != 10 && newquant != 18 && newquant != 24 && newquant != 50){
									newItemList = newItemList+'['+fulllist.substring(fullstart, itemend)+']';
									alert("Quantity must be 2, 4, 10, 18, 24, or 50.");
								} else {
									newItemList = newItemList + "["+theitem+"|"+whichitem+"|"+thesize+"|"+thecolor+"|"+thebgcolor+"|"+thecopy1+"|"+thecopy2+"|"+itemprice+"|"+itemtotal+"|"+newquant+"]";
								}
							} else {
								newItemList = newItemList + "["+theitem+"|"+whichitem+"|"+thesize+"|"+thecolor+"|"+thebgcolor+"|"+thecopy1+"|"+thecopy2+"|"+itemprice+"|"+itemtotal+"|"+newquant+"]";
							}
							break;

//						default:
							
						case "RE":
							if(theitem=="REXLP" || theitem=="REXLP-I"){
								if (newquant < 5){
									//newItemList = newItemList+'['+fulllist.substring(fullstart, itemend)+']';
									newItemList = newItemList + "["+theitem+"|"+whichitem+"|"+thesize+"|"+thecolor+"|"+thebgcolor+"|"+thecopy1+"|"+thecopy2+"|"+itemprice+"|"+itemtotal+"|5]";
									alert("The minimum order is 5 license plates.");
								} else {
									newItemList = newItemList + "["+theitem+"|"+whichitem+"|"+thesize+"|"+thecolor+"|"+thebgcolor+"|"+thecopy1+"|"+thecopy2+"|"+itemprice+"|"+itemtotal+"|"+newquant+"]";
								}
							} else {
								newItemList = newItemList + "["+theitem+"|"+whichitem+"|"+thesize+"|"+thecolor+"|"+thebgcolor+"|"+thecopy1+"|"+thecopy2+"|"+itemprice+"|"+itemtotal+"|"+newquant+"]";
							}
							
	
							break;
//						default:
						case "EN":																			

							if(theitem4=="ENVS" || theitem4=="ENVC" || theitem4=="ENVH" 
							|| theitem4=="ENVA" || theitem4=="ENVR" || theitem4=="ENVP"){
								if (newquant < 5){
									//newItemList = newItemList+'['+fulllist.substring(fullstart, itemend)+']';
									newItemList = newItemList + "["+theitem+"|"+whichitem+"|"+thesize+"|"+thecolor+"|"+thebgcolor+"|"+thecopy1+"|"+thecopy2+"|"+itemprice+"|"+itemtotal+"|5]";
									alert("The minimum order is 5.");
								} else {
									newItemList = newItemList + "["+theitem+"|"+whichitem+"|"+thesize+"|"+thecolor+"|"+thebgcolor+"|"+thecopy1+"|"+thecopy2+"|"+itemprice+"|"+itemtotal+"|"+newquant+"]";
								}
							} 
							
						 	else if(theitem5=="ENVMG"){
								if (newquant < 2){
									//newItemList = newItemList+'['+fulllist.substring(fullstart, itemend)+']';
									newItemList = newItemList + "["+theitem+"|"+whichitem+"|"+thesize+"|"+thecolor+"|"+thebgcolor+"|"+thecopy1+"|"+thecopy2+"|"+itemprice+"|"+itemtotal+"|2]";
									alert("The minimum order is 2 Magnetics.");
								} else {
									newItemList = newItemList + "["+theitem+"|"+whichitem+"|"+thesize+"|"+thecolor+"|"+thebgcolor+"|"+thecopy1+"|"+thecopy2+"|"+itemprice+"|"+itemtotal+"|"+newquant+"]";
								}
	  						}							
							
						else if(theitem5=="ENVCS"){
								if (newquant < 1){
									//newItemList = newItemList+'['+fulllist.substring(fullstart, itemend)+']';
									newItemList = newItemList + "["+theitem+"|"+whichitem+"|"+thesize+"|"+thecolor+"|"+thebgcolor+"|"+thecopy1+"|"+thecopy2+"|"+itemprice+"|"+itemtotal+"|5]";
									alert("The minimum order is 1 Coro Stake.");
								} else {
									newItemList = newItemList + "["+theitem+"|"+whichitem+"|"+thesize+"|"+thecolor+"|"+thebgcolor+"|"+thecopy1+"|"+thecopy2+"|"+itemprice+"|"+itemtotal+"|"+newquant+"]";
								}
	  						} else {
								newItemList = newItemList + "["+theitem+"|"+whichitem+"|"+thesize+"|"+thecolor+"|"+thebgcolor+"|"+thecopy1+"|"+thecopy2+"|"+itemprice+"|"+itemtotal+"|"+newquant+"]";
							}							
							break;
						default:
							if(theitem=="REXLP" || theitem=="REXLP-I"){
								if (newquant < 5){
									//newItemList = newItemList+'['+fulllist.substring(fullstart, itemend)+']';
									newItemList = newItemList + "["+theitem+"|"+whichitem+"|"+thesize+"|"+thecolor+"|"+thebgcolor+"|"+thecopy1+"|"+thecopy2+"|"+itemprice+"|"+itemtotal+"|5]";
									alert("The minimum order is 5 license plates.");
								} else {
									newItemList = newItemList + "["+theitem+"|"+whichitem+"|"+thesize+"|"+thecolor+"|"+thebgcolor+"|"+thecopy1+"|"+thecopy2+"|"+itemprice+"|"+itemtotal+"|"+newquant+"]";
								}
							} else {
								newItemList = newItemList + "["+theitem+"|"+whichitem+"|"+thesize+"|"+thecolor+"|"+thebgcolor+"|"+thecopy1+"|"+thecopy2+"|"+itemprice+"|"+itemtotal+"|"+newquant+"]";
							}															
					}





//UBuildIt added by JO 03/11/007
					//UBuildIt Rate reset
					if (whichitem == "UBuildIt Steel Project Sign Panel")
						{	totalUBSPqty = getCookie('totalUBSPqty');
							if (newquant < thequantity)
							{	totalUBSPqty = (parseInt(totalUBSPqty) - (parseInt(thequantity) -(parseInt(newquant))));
								setCookie('totalUBSPqty',totalUBSPqty)
							} else	{
								totalUBSPqty = (parseInt(totalUBSPqty) + (parseInt(newquant) -(parseInt(thequantity))));
								setCookie('totalUBSPqty',totalUBSPqty)
							}
						}					

					if (whichitem == "UBuildIt Reflective Project Sign Panel")
						{	totalUBSPRqty = getCookie('totalUBSPRqty');
							if (newquant < thequantity)
							{	totalUBSPRqty = (parseInt(totalUBSPRqty) - (parseInt(thequantity) -(parseInt(newquant))));
								setCookie('totalUBSPRqty',totalUBSPRqty)
							} else	{
								totalUBSPRqty = (parseInt(totalUBSPRqty) + (parseInt(newquant) -(parseInt(thequantity))));
								setCookie('totalUBSPRqty',totalUBSPRqty)
							}
						}






					if (whichitem == "UBuildIt Twinwall Project Sign Panel")
						{	totalUBSPTqty = getCookie('totalUBSPTqty');
							if (newquant < thequantity)
							{	totalUBSPTqty = (parseInt(totalUBSPTqty) - (parseInt(thequantity) -(parseInt(newquant))));
								setCookie('totalUBSPTqty',totalUBSPTqty)
							} else	{
								totalUBSPTqty = (parseInt(totalUBSPTqty) + (parseInt(newquant) -(parseInt(thequantity))));
								setCookie('totalUBSPTqty',totalUBSPTqty)
							}
						}

					if (whichitem == "UBuildIt Sidewalk Frame w/ Panel")
						{	totalUBSCqty = getCookie('totalUBSCqty');
							if (newquant < thequantity)
							{	totalUBSCqty = (parseInt(totalUBSCqty) - (parseInt(thequantity) -(parseInt(newquant))));
								setCookie('totalUBSCqty',totalUBSPTqty)
							} else	{
								totalUBSCqty = (parseInt(totalUBSCqty) + (parseInt(newquant) -(parseInt(thequantity))));
								setCookie('totalUBSCqty',totalUBSCqty)
							}
						}

					if (whichitem == "UBuildIt Sidewalk Replacement Panel")
						{	totalUBSCPqty = getCookie('totalUBSCPqty');
							if (newquant < thequantity)
							{	totalUBSCPqty = (parseInt(totalUBSCPqty) - (parseInt(thequantity) -(parseInt(newquant))));
								setCookie('totalUBSCPqty',totalUBSCPqty)
							} else	{
								totalUBSCPqty = (parseInt(totalUBSCPqty) + (parseInt(newquant) -(parseInt(thequantity))));
								setCookie('totalUBSCPqty',totalUBSCPqty)
							}
						}

					if (whichitem == "UBuildIt Custom Home Directional")
						{	totalUBCHDqty = getCookie('totalUBCHDqty');
							if (newquant < thequantity)
							{	totalUBCHDqty = (parseInt(totalUBCHDqty) - (parseInt(thequantity) -(parseInt(newquant))));
								setCookie('totalUBCHDqty',totalUBCHDqty)
							} else	{
								totalUBCHDqty = (parseInt(totalUBCHDqty) + (parseInt(newquant) -(parseInt(thequantity))));
								setCookie('totalUBCHDqty',totalUBCHDqty)
							}
						}

					if (whichitem == "UBuildIt Remodeled Directional")
						{	totalUBRMDqty = getCookie('totalUBRMDqty');
							if (newquant < thequantity)
							{	totalUBRMDqty = (parseInt(totalUBRMDqty) - (parseInt(thequantity) -(parseInt(newquant))));
								setCookie('totalUBRMDqty',totalUBRMDqty)
							} else	{
								totalUBRMDqty = (parseInt(totalUBRMDqty) + (parseInt(newquant) -(parseInt(thequantity))));
								setCookie('totalUBRMDqty',totalUBRMDqty)
							}
						}
						
					if (whichitem == "UBuildIt Instant Equity Directional")
						{	totalUBIEDqty = getCookie('totalUBIEDqty');
							if (newquant < thequantity)
							{	totalUBIEDqty = (parseInt(totalUBIEDqty) - (parseInt(thequantity) -(parseInt(newquant))));
								setCookie('totalUBIEDqty',totalUBIEDqty)
							} else	{
								totalUBIEDqty = (parseInt(totalUBIEDqty) + (parseInt(newquant) -(parseInt(thequantity))));
								setCookie('totalUBIEDqty',totalUBIEDqty)
							}
						}					

					if (whichitem == "UBuildIt Custom Home Message")
						{	totalUBCHMqty = getCookie('totalUBCHMqty');
							if (newquant < thequantity)
							{	totalUBCHMqty = (parseInt(totalUBCHMqty) - (parseInt(thequantity) -(parseInt(newquant))));
								setCookie('totalUBCHMqty',totalUBCHMqty)
							} else	{
								totalUBCHMqty = (parseInt(totalUBCHMqty) + (parseInt(newquant) -(parseInt(thequantity))));
								setCookie('totalUBCHMqty',totalUBCHMqty)
							}
						}

					if (whichitem == "UBuildIt Remodeled Message")
						{	totalUBRMMqty = getCookie('totalUBRMMqty');
							if (newquant < thequantity)
							{	totalUBRMMqty = (parseInt(totalUBRMMqty) - (parseInt(thequantity) -(parseInt(newquant))));
								setCookie('totalUBRMMqty',totalUBRMMqty)
							} else	{
								totalUBRMMqty = (parseInt(totalUBRMMqty) + (parseInt(newquant) -(parseInt(thequantity))));
								setCookie('totalUBRMMqty',totalUBRMMqty)
							}
						}
						
					if (whichitem == "UBuildIt Instant Equity Message")
						{	totalUBIEMqty = getCookie('totalUBIEMqty');
							if (newquant < thequantity)
							{	totalUBIEMqty = (parseInt(totalUBIEMqty) - (parseInt(thequantity) -(parseInt(newquant))));
								setCookie('totalUBIEMqty',totalUBIEMqty)
							} else	{
								totalUBIEMqty = (parseInt(totalUBIEMqty) + (parseInt(newquant) -(parseInt(thequantity))));
								setCookie('totalUBIEMqty',totalUBIEMqty)
							}
						}

					if (whichitem == "UBuildIt Message Assortment Pack")
						{	totalUBASTMqty = getCookie('totalUBASTMqty');
							if (newquant < thequantity)
							{	totalUBASTMqty = (parseInt(totalUBASTMqty) - (parseInt(thequantity) -(parseInt(newquant))));
								setCookie('totalUBASTMqty',totalUBASTMqty)
							} else	{
								totalUBASTMqty = (parseInt(totalUBASTMqty) + (parseInt(newquant) -(parseInt(thequantity))));
								setCookie('totalUBASTMqty',totalUBASTMqty)
							}
						}
						
					if (whichitem == "UBuildIt Coro Stake Regular")
						{	totalUBCSRGqty = getCookie('totalUBCSRGqty');
							if (newquant < thequantity)
							{	totalUBCSRGqty = (parseInt(totalUBCSRGqty) - (parseInt(thequantity) -(parseInt(newquant))));
								setCookie('totalUBCSRGqty',totalUBCSRGqty)
							} else	{
								totalUBCSRGqty = (parseInt(totalUBCSRGqty) + (parseInt(newquant) -(parseInt(thequantity))));
								setCookie('totalUBCSRGqty',totalUBCSRGqty)
							}
						}
						
					if (whichitem == "UBuildIt Coro Stake Heavy")
						{	totalUBCSHDqty = getCookie('totalUBCSHDqty');
							if (newquant < thequantity)
							{	totalUBCSHDqty = (parseInt(totalUBCSHDqty) - (parseInt(thequantity) -(parseInt(newquant))));
								setCookie('totalUBCSHDqty',totalUBCSHDqty)
							} else	{
								totalUBCSHDqty = (parseInt(totalUBCSHDqty) + (parseInt(newquant) -(parseInt(thequantity))));
								setCookie('totalUBCSHDqty',totalUBCSHDqty)
							}
						}
						
					if (whichitem == "UBuildIt Coro Stake Super")
						{	totalUBCSSDqty = getCookie('totalUBCSSDqty');
							if (newquant < thequantity)
							{	totalUBCSSDqty = (parseInt(totalUBCSSDqty) - (parseInt(thequantity) -(parseInt(newquant))));
								setCookie('totalUBCSSDqty',totalUBCSSDqty)
							} else	{
								totalUBCSSDqty = (parseInt(totalUBCSSDqty) + (parseInt(newquant) -(parseInt(thequantity))));
								setCookie('totalUBCSSDqty',totalUBCSSDqty)
							}
						}	
						
					if (whichitem == "UBuildIt E Z Post")
						{	totalUBPEZqty = getCookie('totalUBPEZqty');
							if (newquant < thequantity)
							{	totalUBPEZqty = (parseInt(totalUBPEZqty) - (parseInt(thequantity) -(parseInt(newquant))));
								setCookie('totalUBPEZqty',totalUBPEZqty)
							} else	{
								totalUBPEZqty = (parseInt(totalUBPEZqty) + (parseInt(newquant) -(parseInt(thequantity))));
								setCookie('totalUBPEZqty',totalUBPEZqty)
							}
						}

					if (whichitem == "UBuildIt Estate Frame")
						{	totalUBEFqty = getCookie('totalUBEFqty');
							if (newquant < thequantity)
							{	totalUBEFqty = (parseInt(totalUBEFqty) - (parseInt(thequantity) -(parseInt(newquant))));
								setCookie('totalUBEFqty',totalUBEFqty)
							} else	{
								totalUBEFqty = (parseInt(totalUBEFqty) + (parseInt(newquant) -(parseInt(thequantity))));
								setCookie('totalUBEFqty',totalUBEFqty)
							}
						}

						
					if (whichitem == "UBuildIt Custom Banner")
						{	totalUBBADPqty = getCookie('totalUBBADPqty');
							if (newquant < thequantity)
							{	totalUBBADPqty = (parseInt(totalUBBADPqty) - (parseInt(thequantity) -(parseInt(newquant))));
								setCookie('totalUBBADPqty',totalUBBADPqty)
							} else	{
								totalUBBADPqty = (parseInt(totalUBBADPqty) + (parseInt(newquant) -(parseInt(thequantity))));
								setCookie('totalUBBADPqty',totalUBBADPqty)
							}
						}					

					if (whichitem == "UBuildIt TriFold  Dispenser")
						{	totalUBINFOqty = getCookie('totalUBINFOqty');
							if (newquant < thequantity)
							{	totalUBINFOqty = (parseInt(totalUBINFOqty) - (parseInt(thequantity) -(parseInt(newquant))));
								setCookie('totalUBINFOqty',totalUBINFOqty)
							} else	{
								totalUBINFOqty = (parseInt(totalUBINFOqty) + (parseInt(newquant) -(parseInt(thequantity))));
								setCookie('totalUBINFOqty',totalUBINFOqty)
							}
						}
						
					if (whichitem == "UBuildIt Solar Dispenser")
						{	totalUBSOLARqty = getCookie('totalUBSOLARqty');
							if (newquant < thequantity)
							{	totalUBSOLARqty = (parseInt(totalUBSOLARqty) - (parseInt(thequantity) -(parseInt(newquant))));
								setCookie('totalUBSOLARqty',totalUBSOLARqty)
							} else	{
								totalUBSOLARqty = (parseInt(totalUBSOLARqty) + (parseInt(newquant) -(parseInt(thequantity))));
								setCookie('totalUBSOLARqty',totalUBSOLARqty)
							}
						}
					
//Smart Sales Tools  Added By JO 03/20/007

					if (whichitem == "SST Yard Sign Panel")
						{	totalSSTSTPqty = getCookie('totalSSTSTPqty');
							if (newquant < thequantity)
							{	totalSSTSTPqty = (parseInt(totalSSTSTPqty) - (parseInt(thequantity) -(parseInt(newquant))));
								setCookie('totalSSTSTPqty',totalSSTSTPqty)
							} else	{
								totalSSTSTPqty = (parseInt(totalSSTSTPqty) + (parseInt(newquant) -(parseInt(thequantity))));
								setCookie('totalSSTSTPqty',totalSSTSTPqty)
							}
						}

					if (whichitem == "SST FSBO Directional")
						{	totalSSTOHTqty = getCookie('totalSSTOHTqty');
							if (newquant < thequantity)
							{	totalSSTOHTqty = (parseInt(totalSSTOHTqty) - (parseInt(thequantity) -(parseInt(newquant))));
								setCookie('totalSSTOHTqty',totalSSTOHTqty)
							} else	{
								totalSSTOHTqty = (parseInt(totalSSTOHTqty) + (parseInt(newquant) -(parseInt(thequantity))));
								setCookie('totalSSTOHTqty',totalSSTOHTqty)
							}
						}

					if (whichitem == "SST Call For Rider")
						{	totalSSTRCFqty = getCookie('totalSSTRCFqty');
							if (newquant < thequantity)
							{	totalSSTRCFqty = (parseInt(totalSSTRCFqty) - (parseInt(thequantity) -(parseInt(newquant))));
								setCookie('totalSSTRCFqty',totalSSTRCFqty)
							} else	{
								totalSSTRCFqty = (parseInt(totalSSTRCFqty) + (parseInt(newquant) -(parseInt(thequantity))));
								setCookie('totalSSTRCFqty',totalSSTRCFqty)
							}
						}

					if (whichitem == "SST Free 24 Rider")
						{	totalSSTRFRqty = getCookie('totalSSTRFRqty');
							if (newquant < thequantity)
							{	totalSSTRFRqty = (parseInt(totalSSTRFRqty) - (parseInt(thequantity) -(parseInt(newquant))));
								setCookie('totalSSTRFRqty',totalSSTRFRqty)
							} else	{
								totalSSTRFRqty = (parseInt(totalSSTRFRqty) + (parseInt(newquant) -(parseInt(thequantity))));
								setCookie('totalSSTRFRqty',totalSSTRFRqty)
							}
						}	

					if (whichitem == "SST Handy Post")
						{	totalSSTHANqty = getCookie('totalSSTHANqty');
							if (newquant < thequantity)
							{	totalSSTHANqty = (parseInt(totalSSTHANqty) - (parseInt(thequantity) -(parseInt(newquant))));
								setCookie('totalSSTHANqty',totalSSTHANqty)
							} else	{
								totalSSTHANqty = (parseInt(totalSSTHANqty) + (parseInt(newquant) -(parseInt(thequantity))));
								setCookie('totalSSTHANqty',totalSSTHANqty)
							}
						}
					
					if (whichitem == "SST Colonial Post")
						{	totalSSTCOLqty = getCookie('totalSSTCOLqty');
							if (newquant < thequantity)
							{	totalSSTCOLqty = (parseInt(totalSSTCOLqty) - (parseInt(thequantity) -(parseInt(newquant))));
								setCookie('totalSSTCOLqty',totalSSTCOLqty)
							} else	{
								totalSSTCOLqty = (parseInt(totalSSTCOLqty) + (parseInt(newquant) -(parseInt(thequantity))));
								setCookie('totalSSTCOLqty',totalSSTCOLqty)
							}
						}
					if (whichitem == "SST Coro Stake Regular Duty")
						{	totalSSTCSRqty = getCookie('totalSSTCSRqty');
							if (newquant < thequantity)
							{	totalSSTCSRqty = (parseInt(totalSSTCSRqty) - (parseInt(thequantity) -(parseInt(newquant))));
								setCookie('totalSSTCSRqty',totalSSTCSRqty)
							} else	{
								totalSSTCSRqty = (parseInt(totalSSTCSRqty) + (parseInt(newquant) -(parseInt(thequantity))));
								setCookie('totalSSTCSRqty',totalSSTCSRqty)
							}
						}
					if (whichitem == "SST Coro Stake Heavy Duty")
						{	totalSSTCSHqty = getCookie('totalSSTCSHqty');
							if (newquant < thequantity)
							{	totalSSTCSHqty = (parseInt(totalSSTCSHqty) - (parseInt(thequantity) -(parseInt(newquant))));
								setCookie('totalSSTCSHqty',totalSSTCSHqty)
							} else	{
								totalSSTCSHqty = (parseInt(totalSSTCSHqty) + (parseInt(newquant) -(parseInt(thequantity))));
								setCookie('totalSSTCSHqty',totalSSTCSHqty)
							}
						}
					if (whichitem == "SST Coro Stake Super Duty")
						{	totalSSTCSSqty = getCookie('totalSSTCSSqty');
							if (newquant < thequantity)
							{	totalSSTCSSqty = (parseInt(totalSSTCSSqty) - (parseInt(thequantity) -(parseInt(newquant))));
								setCookie('totalSSTCSSqty',totalSSTCSSqty)
							} else	{
								totalSSTCSSqty = (parseInt(totalSSTCSSqty) + (parseInt(newquant) -(parseInt(thequantity))));
								setCookie('totalSSTCSSqty',totalSSTNSHqty)
							}
						}
																													
					if (whichitem == "Smart Sales Rider Numbers")
						{	totalSSTNSRqty = getCookie('totalSSTNSRqty');
							if (newquant < thequantity)
							{	totalSSTNSRqty = (parseInt(totalSSTNSRqty) - (parseInt(thequantity) -(parseInt(newquant))));
								setCookie('totalSSTNSRqty',totalSSTNSRqty)
							} else	{
								totalSSTNSRqty = (parseInt(totalSSTNSRqty) + (parseInt(newquant) -(parseInt(thequantity))));
								setCookie('totalSSTNSRqty',totalSSTNSRqty)
							}
						}

					if (whichitem == "Yard Sign & Directional Numbers")
						{	totalSSTNSSqty = getCookie('totalSSTNSSqty');
							if (newquant < thequantity)
							{	totalSSTNSSqty = (parseInt(totalSSTNSSqty) - (parseInt(thequantity) -(parseInt(newquant))));
								setCookie('totalSSTNSSqty',totalSSTNSSqty)
							} else	{
								totalSSTNSSqty = (parseInt(totalSSTNSSqty) + (parseInt(newquant) -(parseInt(thequantity))));
								setCookie('totalSSTNSSqty',totalSSTNSSqty)
							}
						}
						
//=========================READY

					if (whichitem == "RR Steel Panel 1824")
						{	totalRRSP_S1824qty = getCookie('totalRRSP_S1824qty');
							if (newquant < thequantity)
							{	totalRRSP_S1824qty = (parseInt(totalRRSP_S1824qty) - (parseInt(thequantity) -(parseInt(newquant))));
								setCookie('totalRRSP_S1824qty',totalRRSP_S1824qty)
							} else	{
								totalRRSP_S1824qty = (parseInt(totalRRSP_S1824qty) + (parseInt(newquant) -(parseInt(thequantity))));
								setCookie('totalRRSP_S1824qty',totalRRSP_S1824qty)
							}
						}
						
					if (whichitem == "RR Steel Panel 2028")
						{	totalRRSP_S2028qty = getCookie('totalRRSP_S2028qty');
							if (newquant < thequantity)
							{	totalRRSP_S2028qty = (parseInt(totalRRSP_S2028qty) - (parseInt(thequantity) -(parseInt(newquant))));
								setCookie('totalRRSP_S2028qty',totalRRSP_S2028qty)
							} else	{
								totalRRSP_S2028qty = (parseInt(totalRRSP_S2028qty) + (parseInt(newquant) -(parseInt(thequantity))));
								setCookie('totalRRSP_S2028qty',totalRRSP_S2028qty)
							}
						}						

					if (whichitem == "RR Refl Panel 1824")
						{	totalRRSP_R1824qty = getCookie('totalRRSP_R1824qty');
							if (newquant < thequantity)
							{	totalRRSP_R1824qty = (parseInt(totalRRSP_R1824qty) - (parseInt(thequantity) -(parseInt(newquant))));
								setCookie('totalRRSP_R1824qty',totalRRSP_R1824qty)
							} else	{
								totalRRSP_R1824qty = (parseInt(totalRRSP_R1824qty) + (parseInt(newquant) -(parseInt(thequantity))));
								setCookie('totalRRSP_R1824qty',totalRRSP_R1824qty)
							}
						}


					if (whichitem == "RR Refl Panel 2028")
						{	totalRRSP_R2028qty = getCookie('totalRRSP_R2028qty');
							if (newquant < thequantity)
							{	totalRRSP_R2028qty = (parseInt(totalRRSP_R2028qty) - (parseInt(thequantity) -(parseInt(newquant))));
								setCookie('totalRRSP_R2028qty',totalRRSP_R2028qty)
							} else	{
								totalRRSP_R2028qty = (parseInt(totalRRSP_R2028qty) + (parseInt(newquant) -(parseInt(thequantity))));
								setCookie('totalRRSP_R2028qty',totalRRSP_R2028qty)
							}
						}

					if (whichitem == "RR Steel Combo 1824")
						{	totalRRCA_S1824qty = getCookie('totalRRCA_S1824qty');
							if (newquant < thequantity)
							{	totalRRCA_S1824qty = (parseInt(totalRRCA_S1824qty) - (parseInt(thequantity) -(parseInt(newquant))));
								setCookie('totalRRCA_S1824qty',totalRRCA_S1824qty)
							} else	{
								totalRRCA_S1824qty = (parseInt(totalRRCA_S1824qty) + (parseInt(newquant) -(parseInt(thequantity))));
								setCookie('totalRRCA_S1824qty',totalRRCA_S1824qty)
							}
						}
						
					if (whichitem == "RR Steel Combo 2028")
						{	totalRRCA_S2028qty = getCookie('totalRRCA_S2028qty');
							if (newquant < thequantity)
							{	totalRRCA_S2028qty = (parseInt(totalRRCA_S2028qty) - (parseInt(thequantity) -(parseInt(newquant))));
								setCookie('totalRRCA_S2028qty',totalRRCA_S2028qty)
							} else	{
								totalRRCA_S2028qty = (parseInt(totalRRCA_S2028qty) + (parseInt(newquant) -(parseInt(thequantity))));
								setCookie('totalRRCA_S2028qty',totalRRCA_S2028qty)
							}
						}						

					if (whichitem == "RR Refl Combo 1824")
						{	totalRRCA_R1824qty = getCookie('totalRRCA_R1824qty');
							if (newquant < thequantity)
							{	totalRRCA_R1824qty = (parseInt(totalRRCA_R1824qty) - (parseInt(thequantity) -(parseInt(newquant))));
								setCookie('totalRRCA_R1824qty',totalRRCA_R1824qty)
							} else	{
								totalRRCA_R1824qty = (parseInt(totalRRCA_R1824qty) + (parseInt(newquant) -(parseInt(thequantity))));
								setCookie('totalRRCA_R1824qty',totalRRCA_R1824qty)
							}
						}


					if (whichitem == "RR Refl Combo 2028")
						{	totalRRCA_R2028qty = getCookie('totalRRCA_R2028qty');
							if (newquant < thequantity)
							{	totalRRCA_R2028qty = (parseInt(totalRRCA_R2028qty) - (parseInt(thequantity) -(parseInt(newquant))));
								setCookie('totalRRCA_R2028qty',totalRRCA_R2028qty)
							} else	{
								totalRRCA_R2028qty = (parseInt(totalRRCA_R2028qty) + (parseInt(newquant) -(parseInt(thequantity))));
								setCookie('totalRRCA_R2028qty',totalRRCA_R2028qty)
							}
						}

					if (whichitem == "ARROW Dir 'For Sale'")
						{	totalRRDAFSqty = getCookie('totalRRDAFSqty');
							if (newquant < thequantity)
							{	totalRRDAFSqty = (parseInt(totalRRDAFSqty) - (parseInt(thequantity) -(parseInt(newquant))));
								setCookie('totalRRDAFSqty',totalRRDAFSqty)
							} else	{
								totalRRDAFSqty = (parseInt(totalRRDAFSqty) + (parseInt(newquant) -(parseInt(thequantity))));
								setCookie('totalRRDAFSqty',totalRRDAFSqty)
							}
						}
							
					if (whichitem == "ARROW Dir 'Open House'")
						{	totalRRDAOHqty = getCookie('totalRRDAOHqty');
							if (newquant < thequantity)
							{	totalRRDAOHqty = (parseInt(totalRRDAOHqty) - (parseInt(thequantity) -(parseInt(newquant))));
								setCookie('totalRRDAOHqty',totalRRDAOHqty)
							} else	{
								totalRRDAOHqty = (parseInt(totalRRDAOHqty) + (parseInt(newquant) -(parseInt(thequantity))));
								setCookie('totalRRDAOHqty',totalRRDAOHqty)
							}
						}

					if (whichitem == "ARROW Dir 'For Sale' Imprint")
						{	totalRRDAFS_Iqty = getCookie('totalRRDAFS_Iqty');
							if (newquant < thequantity)
							{	totalRRDAFS_Iqty = (parseInt(totalRRDAFS_Iqty) - (parseInt(thequantity) -(parseInt(newquant))));
								setCookie('totalRRDAFS_Iqty',totalRRDAFS_Iqty)
							} else	{
								totalRRDAFS_Iqty = (parseInt(totalRRDAFS_Iqty) + (parseInt(newquant) -(parseInt(thequantity))));
								setCookie('totalRRDAFS_Iqty',totalRRDAFS_Iqty)
							}
						}

					if (whichitem == "ARROW Dir 'Open House' Imprint")
						{	totalRRDAOH_Iqty = getCookie('totalRRDAOH_Iqty');
							if (newquant < thequantity)
							{	totalRRDAOH_Iqty = (parseInt(totalRRDAOH_Iqty) - (parseInt(thequantity) -(parseInt(newquant))));
								setCookie('totalRRDAOH_Iqty',totalRRDAOH_Iqty)
							} else	{
								totalRRDAOH_Iqty = (parseInt(totalRRDAOH_Iqty) + (parseInt(newquant) -(parseInt(thequantity))));
								setCookie('totalRRDAOH_Iqty',totalRRDAOH_Iqty)
							}
						}

					if (whichitem == "HOUSE Dir 'For Sale'")
						{	totalRRDHFSqty = getCookie('totalRRDHFSqty');
							if (newquant < thequantity)
							{	totalRRDHFSqty = (parseInt(totalRRDHFSqty) - (parseInt(thequantity) -(parseInt(newquant))));
								setCookie('totalRRDHFSqty',totalRRDHFSqty)
							} else	{
								totalRRDHFSqty = (parseInt(totalRRDHFSqty) + (parseInt(newquant) -(parseInt(thequantity))));
								setCookie('totalRRDHFSqty',totalRRDHFSqty)
							}
						}
							
					if (whichitem == "HOUSE Dir 'Open House'")
						{	totalRRDHOHqty = getCookie('totalRRDHOHqty');
							if (newquant < thequantity)
							{	totalRRDHOHqty = (parseInt(totalRRDHOHqty) - (parseInt(thequantity) -(parseInt(newquant))));
								setCookie('totalRRDHOHqty',totalRRDHOHqty)
							} else	{
								totalRRDHOHqty = (parseInt(totalRRDHOHqty) + (parseInt(newquant) -(parseInt(thequantity))));
								setCookie('totalRRDHOHqty',totalRRDHOHqty)
							}
						}

					if (whichitem == "HOUSE Dir 'For Sale' Imprint")
						{	totalRRDHFS_Iqty = getCookie('totalRRDHFS_Iqty');
							if (newquant < thequantity)
							{	totalRRDHFS_Iqty = (parseInt(totalRRDHFS_Iqty) - (parseInt(thequantity) -(parseInt(newquant))));
								setCookie('totalRRDHFS_Iqty',totalRRDHFS_Iqty)
							} else	{
								totalRRDHFS_Iqty = (parseInt(totalRRDHFS_Iqty) + (parseInt(newquant) -(parseInt(thequantity))));
								setCookie('totalRRDHFS_Iqty',totalRRDHFS_Iqty)
							}
						}

					if (whichitem == "HOUSE Dir 'Open House' Imprint")
						{	totalRRDHOH_Iqty = getCookie('totalRRDHOH_Iqty');
							if (newquant < thequantity)
							{	totalRRDHOH_Iqty = (parseInt(totalRRDHOH_Iqty) - (parseInt(thequantity) -(parseInt(newquant))));
								setCookie('totalRRDHOH_Iqty',totalRRDHOH_Iqty)
							} else	{
								totalRRDHOH_Iqty = (parseInt(totalRRDHOH_Iqty) + (parseInt(newquant) -(parseInt(thequantity))));
								setCookie('totalRRDHOH_Iqty',totalRRDHOH_Iqty)
							}
						}

					if (whichitem == "12x18 Dir 'For Sale'")
						{	totalRRDRFSqty = getCookie('totalRRDRFSqty');
							if (newquant < thequantity)
							{	totalRRDRFSqty = (parseInt(totalRRDRFSqty) - (parseInt(thequantity) -(parseInt(newquant))));
								setCookie('totalRRDRFSqty',totalRRDRFSqty)
							} else	{
								totalRRDRFSqty = (parseInt(totalRRDRFSqty) + (parseInt(newquant) -(parseInt(thequantity))));
								setCookie('totalRRDRFSqty',totalRRDRFSqty)
							}
						}
							
					if (whichitem == "12x18 Dir 'Open House'")
						{	totalRRDROHqty = getCookie('totalRRDROHqty');
							if (newquant < thequantity)
							{	totalRRDROHqty = (parseInt(totalRRDROHqty) - (parseInt(thequantity) -(parseInt(newquant))));
								setCookie('totalRRDROHqty',totalRRDROHqty)
							} else	{
								totalRRDROHqty = (parseInt(totalRRDROHqty) + (parseInt(newquant) -(parseInt(thequantity))));
								setCookie('totalRRDROHqty',totalRRDROHqty)
							}
						}

					if (whichitem == "12x18 Dir 'For Sale' Imprint")
						{	totalRRDRFS_Iqty = getCookie('totalRRDRFS_Iqty');
							if (newquant < thequantity)
							{	totalRRDRFS_Iqty = (parseInt(totalRRDRFS_Iqty) - (parseInt(thequantity) -(parseInt(newquant))));
								setCookie('totalRRDRFS_Iqty',totalRRDRFS_Iqty)
							} else	{
								totalRRDRFS_Iqty = (parseInt(totalRRDRFS_Iqty) + (parseInt(newquant) -(parseInt(thequantity))));
								setCookie('totalRRDRFS_Iqty',totalRRDRFS_Iqty)
							}
						}

					if (whichitem == "12x18 Dir 'Open House' Imprint")
						{	totalRRDROH_Iqty = getCookie('totalRRDROH_Iqty');
							if (newquant < thequantity)
							{	totalRRDROH_Iqty = (parseInt(totalRRDROH_Iqty) - (parseInt(thequantity) -(parseInt(newquant))));
								setCookie('totalRRDROH_Iqty',totalRRDROH_Iqty)
							} else	{
								totalRRDROH_Iqty = (parseInt(totalRRDROH_Iqty) + (parseInt(newquant) -(parseInt(thequantity))));
								setCookie('totalRRDROH_Iqty',totalRRDROH_Iqty)
							}
						}

					if (whichitem == "RR Company Auto Magnetics")
						{	totalRRCAMqty = getCookie('totalRRCAMqty');
							if (newquant < thequantity)
							{	totalRRCAMqty = (parseInt(totalRRCAMqty) - (parseInt(thequantity) -(parseInt(newquant))));
								setCookie('totalRRCAMqty',totalRRCAMqty)
							} else	{
								totalRRCAMqty = (parseInt(totalRRCAMqty) + (parseInt(newquant) -(parseInt(thequantity))));
								setCookie('totalRRCAMqty',totalRRCAMqty)
							}
						}

					if (whichitem == "RR Agent Auto Magnetics")
						{	totalRRAAMqty = getCookie('totalRRAAMqty');
							if (newquant < thequantity)
							{	totalRRAAMqty = (parseInt(totalRRAAMqty) - (parseInt(thequantity) -(parseInt(newquant))));
								setCookie('totalRRAAMqty',totalRRAAMqty)
							} else	{
								totalRRAAMqty = (parseInt(totalRRAAMqty) + (parseInt(newquant) -(parseInt(thequantity))));
								setCookie('totalRRAAMqty',totalRRAAMqty)
							}
						}
							
					if (whichitem == "RR Photo Auto Magnetics")
						{	totalRRPAMqty = getCookie('totalRRPAMqty');
							if (newquant < thequantity)
							{	totalRRPAMqty = (parseInt(totalRRPAMqty) - (parseInt(thequantity) -(parseInt(newquant))));
								setCookie('totalRRPAMqty',totalRRPAMqty)
							} else	{
								totalRRPAMqty = (parseInt(totalRRPAMqty) + (parseInt(newquant) -(parseInt(thequantity))));
								setCookie('totalRRPAMqty',totalRRPAMqty)
							}
						}						

					if (whichitem == "RR Open House Combo")
						{	totalRROHCqty = getCookie('totalRROHCqty');
							if (newquant < thequantity)
							{	totalRROHCqty = (parseInt(totalRROHCqty) - (parseInt(thequantity) -(parseInt(newquant))));
								setCookie('totalRROHCqty',totalRROHCqty)
							} else	{
								totalRROHCqty = (parseInt(totalRROHCqty) + (parseInt(newquant) -(parseInt(thequantity))));
								setCookie('totalRROHCqty',totalRROHCqty)
							}
						}

					if (whichitem == "RR Open House Combo Imprint")
						{	totalRROHC_Iqty = getCookie('totalRROHC_Iqty');
							if (newquant < thequantity)
							{	totalRROHC_Iqty = (parseInt(totalRROHC_Iqty) - (parseInt(thequantity) -(parseInt(newquant))));
								setCookie('totalRROHC_Iqty',totalRROHC_Iqty)
							} else	{
								totalRROHC_Iqty = (parseInt(totalRROHC_Iqty) + (parseInt(newquant) -(parseInt(thequantity))));
								setCookie('totalRROHC_Iqty',totalRROHC_Iqty)
							}
						}

					if (whichitem == "RR Castle 1824 Frame")
						{	totalRRCA1824qty = getCookie('totalRRCA1824qty');
							if (newquant < thequantity)
							{	totalRRCA1824qty = (parseInt(totalRRCA1824qty) - (parseInt(thequantity) -(parseInt(newquant))));
								setCookie('totalRRCA1824qty',totalRRCA1824qty)
							} else	{
								totalRRCA1824qty = (parseInt(totalRRCA1824qty) + (parseInt(newquant) -(parseInt(thequantity))));
								setCookie('totalRRCA1824qty',totalRRCA1824qty)
							}
						}

					if (whichitem == "RR Castle 2028 Frame")
						{	totalRRCA2028qty = getCookie('totalRRCA2028qty');
							if (newquant < thequantity)
							{	totalRRCA2028qty = (parseInt(totalRRCA2028qty) - (parseInt(thequantity) -(parseInt(newquant))));
								setCookie('totalRRCA2028qty',totalRRCA2028qty)
							} else	{
								totalRRCA2028qty = (parseInt(totalRRCA2028qty) + (parseInt(newquant) -(parseInt(thequantity))));
								setCookie('totalRRCA2028qty',totalRRCA2028qty)
							}
						}

					if (whichitem == "RR Coro Stake Regular")
						{	totalRRCSRGqty = getCookie('totalRRCSRGqty');
							if (newquant < thequantity)
							{	totalRRCSRGqty = (parseInt(totalRRCSRGqty) - (parseInt(thequantity) -(parseInt(newquant))));
								setCookie('totalRRCSRGqty',totalRRCSRGqty)
							} else	{
								totalRRCSRGqty = (parseInt(totalRRCSRGqty) + (parseInt(newquant) -(parseInt(thequantity))));
								setCookie('totalRRCSRGqty',totalRRCSRGqty)
							}
						}

					if (whichitem == "RR Coro Stake Heavy")
						{	totalRRCSHDqty = getCookie('totalRRCSHDqty');
							if (newquant < thequantity)
							{	totalRRCSHDqty = (parseInt(totalRRCSHDqty) - (parseInt(thequantity) -(parseInt(newquant))));
								setCookie('totalRRCSHDqty',totalRRCSHDqty)
							} else	{
								totalRRCSHDqty = (parseInt(totalRRCSHDqty) + (parseInt(newquant) -(parseInt(thequantity))));
								setCookie('totalRRCSHDqty',totalRRCSHDqty)
							}
						}

					if (whichitem == "RR Coro Stake Super")
						{	totalRRCSSDqty = getCookie('totalRRCSSDqty');
							if (newquant < thequantity)
							{	totalRRCSSDqty = (parseInt(totalRRCSSDqty) - (parseInt(thequantity) -(parseInt(newquant))));
								setCookie('totalRRCSSDqty',totalRRCSSDqty)
							} else	{
								totalRRCSSDqty = (parseInt(totalRRCSSDqty) + (parseInt(newquant) -(parseInt(thequantity))));
								setCookie('totalRRCSSDqty',totalRRCSSDqty)
							}
						}

					if (whichitem == "RR E Z Post")
						{	totalRREZqty = getCookie('totalRREZqty');
							if (newquant < thequantity)
							{	totalRREZqty = (parseInt(totalRREZqty) - (parseInt(thequantity) -(parseInt(newquant))));
								setCookie('totalRREZqty',totalRREZqty)
							} else	{
								totalRREZqty = (parseInt(totalRREZqty) + (parseInt(newquant) -(parseInt(thequantity))));
								setCookie('totalRREZqty',totalRREZqty)
							}
						}

/*					if (itemNo.substr(0,5) == "RRSNR")
						{	totalNameqty = getCookie('totalNameqty');
							if (newquant < thequantity)
							{	totalNameqty = (parseInt(totalNameqty) - (parseInt(thequantity) -(parseInt(newquant))));
								setCookie('totalNameqty',totalNameqty)
							} else	{
								totalRREZqty = (parseInt(totalNameqty) + (parseInt(newquant) -(parseInt(thequantity))));
								setCookie('totalNameqty',totalNameqty)
							}
						}
*/


			
//--------------------------------------------------------------------------------------------------------




					//Flat Rate reset
					if (whichitem == "Flat Rate Yard Sign Panel")
						{	totalFRYSPqty = getCookie('totalFRYSPqty');
							if (newquant < thequantity)
							{	totalFRYSPqty = (parseInt(totalFRYSPqty) - (parseInt(thequantity) -(parseInt(newquant))));
								setCookie('totalFRYSPqty',totalFRYSPqty)
							} else	{
								totalFRYSPqty = (parseInt(totalFRYSPqty) + (parseInt(newquant) -(parseInt(thequantity))));
								setCookie('totalFRYSPqty',totalFRYSPqty)
							}
						}
						
/*						
						if (theitem.substr(0,8) == "infocust")
							if (newquant < 6){
									//newItemList = newItemList+'['+fulllist.substring(fullstart, itemend)+']';
									newItemList = newItemList + "["+theitem+"|"+whichitem+"|"+thesize+"|"+thecolor+"|"+thebgcolor+"|"+thecopy1+"|"+thecopy2+"|"+itemprice+"|"+itemtotal+"|5]";
									alert("The minimum order for this product is 6");
									alert(theitem.substr(0,8) + ' line 1282');
									
							} else {	
									(totalInfoRider2_qty = getCookie('totalInfoRider2_qty');
							if (newquant < thequantity)
							{	totalInfoRider2_qty = (parseInt(totalInfoRider2_qty) - (parseInt(thequantity) -(parseInt(newquant))));
								setCookie('totalInfoRider2_qty',totalInfoRider2_qty)
							} else	{
								totalInfoRider2_qty = (parseInt(totalInfoRider2_qty) + (parseInt(newquant) -(parseInt(thequantity))));
								setCookie('totalInfoRider2_qty',totalInfoRider2_qty)
							}
						}						
		}						
*/						
						
						
						
						
//alert(whichitem + '  line 1261');	
					// resets totalMsgqty value to compensate for Message rider qty change
					if (whichitem.substr(0,14) == "Message Riders")
					{
						if (thesize == "4x18")
						{	totalMsgqty18 = getCookie('totalMsgqty18');
							if (newquant < thequantity)
							{	totalMsgqty18 = (parseInt(totalMsgqty18) - (parseInt(thequantity) -(parseInt(newquant))));
								setCookie('totalMsgqty18',totalMsgqty18)
							} else	{
								totalMsgqty18 = (parseInt(totalMsgqty18) + (parseInt(newquant) -(parseInt(thequantity))));
								setCookie('totalMsgqty18',totalMsgqty18)
							}
						}
	
						if (thesize == "6x24")
						{	totalMsgqty24 = getCookie('totalMsgqty24');
							if (newquant < thequantity)
							{
								totalMsgqty24 = (parseInt(totalMsgqty24) - (parseInt(thequantity) -(parseInt(newquant))));
								setCookie('totalMsgqty24',totalMsgqty24)
							} else	{
								totalMsgqty24 = (parseInt(totalMsgqty24) + (parseInt(newquant) -(parseInt(thequantity))));
								setCookie('totalMsgqty24',totalMsgqty24)
							}
						}
						
						if (thesize == "6x28")
						{	totalMsgqty28 = getCookie('totalMsgqty28');
							if (newquant < thequantity)
							{
								totalMsgqty28 = (parseInt(totalMsgqty28) - (parseInt(thequantity) -(parseInt(newquant))));
								setCookie('totalMsgqty28',totalMsgqty28)
							} else	{
								totalMsgqty28 = (parseInt(totalMsgqty28) + (parseInt(newquant) -(parseInt(thequantity))));
								setCookie('totalMsgqty28',totalMsgqty28)
							}
						}
						
						
						
						
					}	 




					if (whichitem.substr(0,20) == "Steel Message Riders")
					{
						if (thesize == "4x18")
						{	totalMsgqty18 = getCookie('totalMsgqty18');
							if (newquant < thequantity)
							{	totalMsgqty18 = (parseInt(totalMsgqty18) - (parseInt(thequantity) -(parseInt(newquant))));
								setCookie('totalMsgqty18',totalMsgqty18)
							} else	{
								totalMsgqty18 = (parseInt(totalMsgqty18) + (parseInt(newquant) -(parseInt(thequantity))));
								setCookie('totalMsgqty18',totalMsgqty18)
							}
						}
	
						if (thesize == "6x24")
						{	totalMsgqty24 = getCookie('totalMsgqty24');
							if (newquant < thequantity)
							{
								totalMsgqty24 = (parseInt(totalMsgqty24) - (parseInt(thequantity) -(parseInt(newquant))));
								setCookie('totalMsgqty24',totalMsgqty24)
							} else	{
								totalMsgqty24 = (parseInt(totalMsgqty24) + (parseInt(newquant) -(parseInt(thequantity))));
								setCookie('totalMsgqty24',totalMsgqty24)
							}
						}
						
						if (thesize == "6x28")
						{	totalMsgqty28 = getCookie('totalMsgqty28');
							if (newquant < thequantity)
							{
								totalMsgqty28 = (parseInt(totalMsgqty28) - (parseInt(thequantity) -(parseInt(newquant))));
								setCookie('totalMsgqty28',totalMsgqty28)
							} else	{
								totalMsgqty28 = (parseInt(totalMsgqty28) + (parseInt(newquant) -(parseInt(thequantity))));
								setCookie('totalMsgqty28',totalMsgqty28)
							}
						}
						
						
						
						
					}
					// end of totalMsgqty reset
	
					// resets totalDirectionalqty value to compensate for Directional qty change
					if (whichitem == "Directionals")
					{
						if (thesize == "ESQUIRE")
						{	totalEsquireqty = getCookie('totalEsquireqty');
							if (newquant < thequantity)
							{	totalEsquireqty = (parseInt(totalEsquireqty) - (parseInt(thequantity) -(parseInt(newquant))));
								setCookie('totalEsquireqty',totalEsquireqty)
							} else	{
								totalEsquireqty = (parseInt(totalEsquireqty) + (parseInt(newquant) -(parseInt(thequantity))));
								setCookie('totalEsquireqty',totalEsquireqty)
							}
						}
	
						if (thesize == "SIDEWALK")
						{	totalSidewalkqty = getCookie('totalSidewalkqty');
							if (newquant < thequantity)
							{	totalSidewalkqty = (parseInt(totalSidewalkqty) - (parseInt(thequantity) -(parseInt(newquant))));
								setCookie('totalSidewalkqty',totalSidewalkqty)
							} else	{
								totalSidewalkqty = (parseInt(totalSidewalkqty) + (parseInt(newquant) -(parseInt(thequantity))));
								setCookie('totalSidewalkqty',totalSidewalkqty)
							}
						}
						
						if (thesize == "CASTLE")
						{	totalCastleqty = getCookie('totalCastleqty');
							if (newquant < thequantity)
							{	totalCastleqty = (parseInt(totalCastleqty) - (parseInt(thequantity) -(parseInt(newquant))));
								setCookie('totalCastleqty',totalCastleqty)
							} else	{
								totalCastleqty = (parseInt(totalCastleqty) + (parseInt(newquant) -(parseInt(thequantity))));
								setCookie('totalCastleqty',totalCastleqty)
							}
						}
	
						if (thesize == "BUDGET")
						{	totalBudgetqty = getCookie('totalBudgetqty');
							if (newquant < thequantity)
							{	totalBudgetqty = (parseInt(totalBudgetqty) - (parseInt(thequantity) -(parseInt(newquant))));
								setCookie('totalBudgetqty',totalBudgetqty)
							} else	{
								totalBudgetqty = (parseInt(totalBudgetqty) + (parseInt(newquant) -(parseInt(thequantity))));
								setCookie('totalBudgetqty',totalBudgetqty)
							}
						}
	
						if (thesize == "ECONOMY")
						{	totalEconomyqty = getCookie('totalEconomyqty');
							if (newquant < thequantity)
							{	totalEconomyqty = (parseInt(totalEconomyqty) - (parseInt(thequantity) -(parseInt(newquant))));
								setCookie('totalEconomyqty',totalEconomyqty)
							} else	{
								totalEconomyqty = (parseInt(totalEconomyqty) + (parseInt(newquant) -(parseInt(thequantity))));
								setCookie('totalEconomyqty',totalEconomyqty)
							}
						}
	
						if (thesize == "9x24")
						{	total9x24qty = getCookie('total9x24qty');
							if (newquant < thequantity)
							{	total9x24qty = (parseInt(total9x24qty) - (parseInt(thequantity) -(parseInt(newquant))));
								setCookie('total9x24qty',total9x24qty)
							} else	{
								total9x24qty = (parseInt(total9x24qty) + (parseInt(newquant) -(parseInt(thequantity))));
								setCookie('total9x24qty',total9x24qty)
							}
						}
	
						if (thesize == "12x18")
						{	total12x18qty = getCookie('total12x18qty');
							if (newquant < thequantity)
							{	total12x18qty = (parseInt(total12x18qty) - (parseInt(thequantity) -(parseInt(newquant))));
								setCookie('total12x18qty',total12x18qty)
							} else	{
								total12x18qty = (parseInt(total12x18qty) + (parseInt(newquant) -(parseInt(thequantity))));
								setCookie('total12x18qty',total12x18qty)
							}
						}
						
						if (thesize == "18x24")
						{	total18x24qty = getCookie('total18x24qty');
							if (newquant < thequantity)
							{	total18x24qty = (parseInt(total18x24qty) - (parseInt(thequantity) -(parseInt(newquant))));
								setCookie('total18x24qty',total18x24qty)
							} else	{
								total18x24qty = (parseInt(total18x24qty) + (parseInt(newquant) -(parseInt(thequantity))));
								setCookie('total18x24qty',total18x24qty)
							}
						}
					}	 				
					// resets totalFrameqty value to compensate for Frame qty change
					if (whichitem == "Frames")
					{
						if (theitem.substr(0,3) == "CAF")
						{	totalCastleFqty = getCookie('totalCastleFqty');
							if (newquant < thequantity)
							{	totalCastleFqty = (parseInt(totalCastleFqty) - (parseInt(thequantity) -(parseInt(newquant))));
								setCookie('totalCastleFqty',totalCastleFqty)
							} else	{
								totalCastleFqty = (parseInt(totalCastleFqty) + (parseInt(newquant) -(parseInt(thequantity))));
								setCookie('totalCastleFqty',totalCastleFqty)
							}
						}
	
						if (theitem.substr(0,3) == "CRF")
						{	totalCrownFqty = getCookie('totalCrownFqty');
							if (newquant < thequantity)
							{	totalCrownFqty = (parseInt(totalCrownFqty) - (parseInt(thequantity) -(parseInt(newquant))));
								setCookie('totalCrownFqty',totalCrownFqty)
							} else	{
								totalCrownFqty = (parseInt(totalCrownFqty) + (parseInt(newquant) -(parseInt(thequantity))));
								setCookie('totalCrownFqty',totalCrownFqty)
							}
						}
						
						if (theitem.substr(0,2) == "ES")
						{	totalEsquireFqty = getCookie('totalEsquireFqty');
							if (newquant < thequantity)
							{	totalEsquireFqty = (parseInt(totalEsquireFqty) - (parseInt(thequantity) -(parseInt(newquant))));
								setCookie('totalEsquireFqty',totalEsquireFqty)
							} else	{
								totalEsquireFqty = (parseInt(totalEsquireFqty) + (parseInt(newquant) -(parseInt(thequantity))));
								setCookie('totalEsquireFqty',totalEsquireFqty)
							}
						}
						
						if (theitem.substr(0,4) == "Coro")
						{	totalUtilityFqty = getCookie('totalUtilityFqty');
							if (newquant < thequantity)
							{	totalUtilityFqty = (parseInt(totalUtilityFqty) - (parseInt(thequantity) -(parseInt(newquant))));
								setCookie('totalUtilityFqty',totalUtilityFqty)
							} else	{
								totalUtilityFqty = (parseInt(totalUtilityFqty) + (parseInt(newquant) -(parseInt(thequantity))));
								setCookie('totalUtilityFqty',totalUtilityFqty)
							}
						}						
						
						
	
						if (theitem.substring(0,3) == "STK")
						{	totalUtilityFqty = getCookie('totalUtilityFqty');
							if (newquant < thequantity)
							{	totalUtilityFqty = (parseInt(totalUtilityFqty) - (parseInt(thequantity) -(parseInt(newquant))));
								setCookie('totalUtilityFqty',totalUtilityFqty)
							} else	{
								totalUtilityFqty = (parseInt(totalUtilityFqty) + (parseInt(newquant) -(parseInt(thequantity))));
								setCookie('totalUtilityFqty',totalUtilityFqty)
							}
						}			
					}	
					
				
					// resets totalHotqty value to compensate for Hot Products qty change
					if (whichitem == "Hot Products") {
						totalHotqty = getCookie('totalHotqty');
						if (newquant < thequantity) {	
							totalHotqty = (parseInt(totalHotqty) - (parseInt(thequantity) -(parseInt(newquant))));
							setCookie('totalHotqty',totalHotqty);
						} else {
							totalHotqty = (parseInt(totalHotqty) + (parseInt(newquant) -(parseInt(thequantity))));
							setCookie('totalHotqty',totalHotqty);
						}
					} // end of totalHotqty reset
				} // end add modified order detail to cookie
		
			} else if (fulllist.substring(i,i+1) == '|') {	//found field separator
				if (thisitem==1) theitem = fulllist.substring(itemstart, i);
				if (thisitem==2) whichitem = fulllist.substring(itemstart, i);
				if (thisitem==3) thesize = fulllist.substring(itemstart, i);
				if (thisitem==4) thecolor = fulllist.substring(itemstart, i);
				if (thisitem==5) thebgcolor = fulllist.substring(itemstart, i);
				if (thisitem==6) thecopy1 = fulllist.substring(itemstart, i);
				if (thisitem==7) thecopy2 = fulllist.substring(itemstart, i);										
				thisitem++;
				itemstart=i+1;
			} //else if
		} //for
				
		setCookie('ShopCart', newItemList);
		self.location = "shop_view_cart.htm";
	} //function
	
	// removes items from cart
//-------------------------------------------------------------------------------------------------------------------------------
function removeItem(itemno)
	{
		newItemList = null;
		itemlist = 0;
		
		for (var i = 0; i <= fulllist.length; i++)
		{
			if (fulllist.substring(i,i+1) == '[')
			{	thisitem = 1;
				itemstart = i+1;
				fullstart = i+1;
			} else if (fulllist.substring(i,i+1) == ']')
			  {	itemend = i;
				itemlist=itemlist+1;
				
				// used in total Message rider value computation
				thequantity = fulllist.substring(itemstart, itemend);
				if (itemlist != itemno)
				{	newItemList = newItemList+'['+fulllist.substring(fullstart, itemend)+']';
				} else
				{
				 // resets totalMsgqty value to compensate for Message rider item removal
				  if (whichitem.substr(0,14) == "Message Riders")
				  {
					if (thesize == "4x18")
					{
						totalMsgqty18 = getCookie('totalMsgqty18');
						totalMsgqty18 = (parseInt(totalMsgqty18) - parseInt(thequantity));
						setCookie('totalMsgqty18',totalMsgqty18);
					}

					if (thesize == "6x24")
					{
						totalMsgqty24 = getCookie('totalMsgqty24');
						totalMsgqty24 = (parseInt(totalMsgqty24) - parseInt(thequantity));
						setCookie('totalMsgqty24',totalMsgqty24);
					}
					
					if (thesize == "6x28")
					{
						totalMsgqty28 = getCookie('totalMsgqty28');
						totalMsgqty28 = (parseInt(totalMsgqty28) - parseInt(thequantity));
						setCookie('totalMsgqty28',totalMsgqty28);
					}					
					
					
				  }	

					 // end of totalMsgqty reset
					//resets totalDirectionalqty value to compensate for Directional item removal   
				if (whichitem == "Directionals")
				  {
					if (thesize == "ESQUIRE")
					{
						totalEsquireqty = getCookie('totalEsquireqty');
						totalEsquireqty = (parseInt(totalEsquireqty) - parseInt(thequantity));
						setCookie('totalEsquireqty',totalEsquireqty);
					}

					if (thesize == "SIDEWALK")
					{
						totalSidewalkqty = getCookie('totalSidewalkqty');
						totalSidewalkqty = (parseInt(totalSidewalkqty) - parseInt(thequantity));
						setCookie('totalSidewalkqty',totalSidewalkqty);
					}

					if (thesize == "CASTLE")
					{
						totalCastleqty = getCookie('totalCastleqty');
						totalCastleqty = (parseInt(totalCastleqty) - parseInt(thequantity));
						setCookie('totalCastleqty',totalCastleqty);
					}

					if (thesize == "BUDGET")
					{
						totalBudgetqty = getCookie('totalBudgetqty');
						totalBudgetqty = (parseInt(totalBudgetqty) - parseInt(thequantity));
						setCookie('totalBudgetqty',totalBudgetqty);
					}
					
					if (thesize == "ECONOMY")
					{
						totalEconomyqty = getCookie('totalEconomyqty');
						totalEconomyqty = (parseInt(totalEconomyqty) - parseInt(thequantity));
						setCookie('totalEconomyqty',totalEconomyqty);
					}

					if (thesize == "9x24")
					{
						total9x24qty = getCookie('total9x24qty');
						total9x24qty = (parseInt(total9x24qty) - parseInt(thequantity));
						setCookie('total9x24qty',total9x24qty);
					}

					if (thesize == "12x18")
					{
						total12x18qty = getCookie('total12x18qty');
						total12x18qty = (parseInt(total12x18qty) - parseInt(thequantity));
						setCookie('total12x18qty',total12x18qty);
					}

					if (thesize == "18x24")
					{
						total18x24qty = getCookie('total18x24qty');
						total18x24qty = (parseInt(total18x24qty) - parseInt(thequantity));
						setCookie('total118x24qty',total18x24qty);
					}

				  }	

 
				 // end of totalDirectionalqty reset

				//resets totalFrameqty value to compensate for Frames item removal   
				if (whichitem == "Frames")
				  {  
					if (theitem.substr(0,3) == "CAF")
					{
						totalCastleFqty = getCookie('totalCastleFqty');
						totalCastleFqty = (parseInt(totalCastleFqty) - parseInt(thequantity));
						setCookie('totalCastleFqty',totalCastleFqty);
					}

					if (theitem.substr(0,3) == "CRF")
					{
						totalCrownFqty = getCookie('totalCrownFqty');
						totalCrownFqty = (parseInt(totalCrownFqty) - parseInt(thequantity));
						setCookie('totalCrownFqty',totalCrownFqty);
					}

					if (theitem.substr(0,2) == "ES")
					{
						totalEsquireFqty = getCookie('totalEsquireFqty');
						totalEsquireFqty = (parseInt(totalEsquireFqty) - parseInt(thequantity));
						setCookie('totalEsquireFqty',totalEsquireFqty);
					}
					
					if (theitem.substr(0,4) == "Coro")
					{
						totalUtilityFqty = getCookie('totalUtilityFqty');
						totalUtilityFqty = (parseInt(totalUtilityFqty) - parseInt(thequantity));
						setCookie('totalUtilityFqty',totalUtilityFqty);
					}					

					if (theitem.substr(0,3) == "STK")
					{
						totalUtilityFqty = getCookie('totalUtilityFqty');
						totalUtilityFqty = (parseInt(totalUtilityFqty) - parseInt(thequantity));
						setCookie('totalUtilityFqty',totalUtilityFqty);
					}
																									
				  }	

				// end of totalFrameqty reset

				//resets totalHotqty value to compensate for Hot Products item removal   
				if (whichitem == "Hot Products")
				{
					totalHotqty = getCookie('totalHotqty');
					totalHotqty = (parseInt(totalHotqty) - (parseInt(thequantity)));
					setCookie('totalHotqty',totalHotqty)
				}	 

				// end of totalHotqty reset

				}

			} else if (fulllist.substring(i,i+1) == '|')
			  {
				if (thisitem==1) theitem = fulllist.substring(itemstart, i);
				if (thisitem==2) whichitem = fulllist.substring(itemstart, i);
				if (thisitem==3) thesize = fulllist.substring(itemstart, i);
				if (thisitem==4) thecolor = fulllist.substring(itemstart, i);
				if (thisitem==5) thebgcolor = fulllist.substring(itemstart, i);
				if (thisitem==6) thecopy1 = fulllist.substring(itemstart, i);
				if (thisitem==7) thecopy2 = fulllist.substring(itemstart, i);										
				thisitem++;
				itemstart=i+1;
			  }
		}
		
		setCookie('ShopCart',newItemList);
		self.location = "shop_view_cart.htm";
	}
//-------------------------------------------------------------------------------------------------------------------------------
function goOrderPage(whereTo)
	{
		go = "/default.asp";
		if (whereTo == "Special Custom Rider")
			go = "rsx_special_CustomRider.asp";		
		if (whereTo == "Agent Riders")
			go = "shop_name_riders_N1.asp";
		if (whereTo == "Photo Riders")
			go = "shop_photo_riders_N1.asp";
		if (whereTo == "Reflective Riders")
			go = "shop_reflective_name_riders_N1.asp";
		if (whereTo == "Message Riders")
			go = "shop_message_riders.htm";
		if (whereTo == "Message Riders - Bilingual")
			go = "shop_bilingual_riders.htm";					
		if (whereTo == "Magnetic Riders")
			go = "shop_mag_riders.htm";
		if (whereTo == "Banner")
			go = "shop_banners_pennants.htm";
		if (whereTo == "Pennant")
			go = "shop_banners_pennants.htm";
		if (whereTo == "PP Open House")
			go = "shop_banners_pennants.htm";
		if (whereTo == "Directionals")
			go = "shop_direction_main_N1.asp";
		if (whereTo == "Frames")
			go = "frames_main.htm";
		if (whereTo == "Accessories")
			go = "shop_accessories_N1.asp";
		if (whereTo == "INFOLine")
			go = "/infoline/index.htm";	
					
		if (whereTo == "SPC Message Riders")
			go = "rsx_spc_MessageRiders.asp";
		if (whereTo == "6x24 Message Riders")
			go = "shop_messageRider-624.asp";						
		if (whereTo == "Hot Products")
			go = "shop_hot_new_products.htm";
		if (whereTo == "Decals")
			go = "shop_decals.htm";
		if (whereTo.substring(0,3) == "Rex")
			go = "rex_order.htm";
		if (whereTo == "Magnetic Vehicle Sign")
			go = "car_magnetics.htm";
		if (whereTo == "Economy Directional Open House")
			go = "economy_directional_.htm";
		if (whereTo == "Economy Directional For Sale")
			go = "economy_directional_.htm";
		if (whereTo == "ED Sign Step1")
			go = "economy_directional_.htm";
		if (whereTo == "ED Sign Step2")
			go = "economy_directional_.htm";
		if (whereTo == "Die Cut House FOR SALE")
			go = "economy_directional_.htm";
		if (whereTo == "Die Cut House OPEN HOUSE")
			go = "economy_directional_.htm";
		if (whereTo == "Die Cut Arrow FOR SALE")
			go = "economy_directional_.htm";
		if (whereTo == "Die Cut Arrow OPEN HOUSE")
			go = "economy_directional_.htm";
		if (whereTo == "Open House Sign")
			go = "openhouse.htm";
		if (whereTo == "Open House Sign Frame")
			go = "openhouse.htm";
		if (whereTo == "Sign Panel 432")
			go = "yardsign.htm";
		if (whereTo == "Sign Panel 560")
			go = "yardsign.htm";
		if (whereTo == "Sign Panel 864")
			go = "yardsign.htm";
		if (whereTo == "Sign Panel & Esquire Frame Combo1")
			go = "yardsign.htm";
		if (whereTo == "Sign Panel & Esquire Frame Combo2")
			go = "yardsign.htm";
		if (whereTo == "Sign Panel & Castle Frame Combo1")
			go = "yardsign.htm";
		if (whereTo == "Sign Panel & Castle Frame Combo2")
			go = "yardsign.htm";
		if (whereTo == "Sign Panel & Castle Frame Combo3")
			go = "yardsign.htm";
		if (whereTo == "Sign Panel & Castle Frame Combo4")
			go = "yardsign.htm";
		if (whereTo == "Sign Panel & Castle Frame Combo5")
			go = "yardsign.htm";
		if (whereTo == "Deluxe Directional Open House")
			go = "deluxe_directional.htm";
		if (whereTo == "Deluxe Directional For Sale")
			go = "deluxe_directional.htm";
		if (whereTo == "Deluxe Directional Open House Combo")
			go = "deluxe_directional.htm";
		if (whereTo == "Deluxe Directional For Sale Combo")
			go = "deluxe_directional.htm";
		if (whereTo == "Agent Name Rider1")
			go = "nameriders.htm";
		if (whereTo == "Agent Name Rider2")
			go = "nameriders.htm";
		if (whereTo == "Reflective Agent Name Rider1")
			go = "nameriders.htm";
		if (whereTo == "Reflective Agent Name Rider2")
			go = "nameriders.htm";
		if (whereTo == "Flexible Sign Open House")
			go = "flex_sign.htm";
		if (whereTo == "Flexible Sign For Sale")
			go = "flex_sign.htm";
		if (whereTo == "Plastic 1")
			go = "EconomyLarge.htm";
		if (whereTo == "Plastic 2")
			go = "EconomyLarge.htm";
		if (whereTo == "Plastic 3")
			go = "EconomyLarge.htm";
		if (whereTo == "Wooden 1")
			go = "woodsign.htm";
		if (whereTo == "Wooden 2")
			go = "woodsign.htm";
		if (whereTo == "Wooden 3")
			go = "woodsign.htm";
		if (whereTo == "Metal")
			go = "metal_site.htm";

//added UBuildIt by JO 03/11/007


 		if (whereTo == "UbuildIt Steel Project Sign Panel")
 			go = "/UBuildIt/yardsign.htm";
 		if (whereTo == "UbuildIt Reflective Project Sign Panel")
 			go = "/UBuildIt/yardsign.htm"; 			
 		if (whereTo == "UbuildIt TwinWall Project Sign Panel")
 			go = "/UBuildIt/yardsign.htm";
 		if (whereTo == "UbuildIt Sidewalk Frame w/ Panel")
 			go = "/UBuildIt/sidewalk.htm";
 		if (whereTo == "UbuildIt Sidewalk Replacement Panel")
 			go = "/UBuildIt/sidewalk.htm";
 		if (whereTo == "UbuildIt Custom Home Directional")
 			go = "/UBuildIt/directional.htm";
 		if (whereTo == "UbuildIt Remodeled Directional")
 			go = "/UBuildIt/directional.htm";
 		if (whereTo == "UbuildIt Instant Equity Directional")
 			go = "/UBuildIt/directional.htm"; 			 			
 		if (whereTo == "UbuildIt Custom Home Message")
 			go = "/UBuildIt/message.htm"; 
  		if (whereTo == "UbuildIt Remodeled Message")
 			go = "/UBuildIt/message.htm";
 		if (whereTo == "UbuildIt Instant Equity Message")
 			go = "/UBuildIt/message.htm";
 		if (whereTo == "UbuildIt Message Assortment Pack")
 			go = "/UBuildIt/message.htm"; 			 						
 		if (whereTo == "UbuildIt Coro Stake Regular")
 			go = "/UBuildIt/stakes_post.htm"; 
 		if (whereTo == "UbuildIt Coro Stake Heavy")
 			go = "/UBuildIt/stakes_post.htm"; 						
 		if (whereTo == "UbuildIt Coro Stake Super")
 			go = "/UBuildIt/stakes_post.htm";
 		if (whereTo == "UbuildIt E Z Post")
 			go = "/UBuild/stakes_post.htm";	
 		if (whereTo == "UbuildIt Custom Banner")
 			go = "/UBuildIt/banners.htm";	 					  			
 		if (whereTo == "UbuildIt TriFold  Dispenser")
 			go = "/UBuildIt/accessories.htm";	 			
 		if (whereTo == "UbuildIt Solar Dispenser")
 			go = "/UBuildIt/accessories.htm";	
			
 		if (whereTo == "SST Yard Sign Panel")
 			go = "/sst/index.htm";
 		if (whereTo == "SST FSBO Directional")
 			go = "/sst/index.htm"; 
 		if (whereTo == "SST Call For Rider")
 			go = "/sst/index.htm";			
 		if (whereTo == "SST Free 24 Rider")
 			go = "/sst/index.htm"; 			
		if (whereTo == "SST Handy Post")
 			go = "/sst/index.htm";			
 		if (whereTo == "SST Colonial Post")
 			go = "/sst/index.htm"; 			
 		if (whereTo == "SST Coro Stake Regular Duty")
 			go = "/sst/index.htm";			
 		if (whereTo == "SST Coro Stake Heavy Duty")
 			go = "/sst/index.htm"; 			
 		if (whereTo == "SST Coro Stake Super Duty")
 			go = "/sst/index.htm";						
 		if (whereTo == "Smart Sales Rider Numbers")
 			go = "/sst/index.htm";			
 		if (whereTo == "Yard Sign & Directional Numbers")
 			go = "/sst/index.htm"; 			
		
//=========READY

 		if (whereTo == "RR Steel Panel 1824")
 			go = "/rr/index.htm"; 
 		if (whereTo == "RR Steel Panel 2028")
 			go = "/rr/index.htm"; 
 		if (whereTo == "RR Refl Panel 1824")
 			go = "/rr/index.htm"; 
 		if (whereTo == "RR Refl Panel 2028")
 			go = "/rr/index.htm";
 		if (whereTo == "RR Steel Combo 1824")
 			go = "/rr/index.htm"; 
 		if (whereTo == "RR Steel Combo 2028")
 			go = "/rr/index.htm"; 
 		if (whereTo == "RR Refl Combo 1824")
 			go = "/rr/index.htm"; 
 		if (whereTo == "RR Refl Combo 2028")
 			go = "/rr/index.htm";
 		if (whereTo == "ARROW Dir 'For Sale'")
 			go = "/rr/index.htm";
 		if (whereTo == "ARROW Dir 'Open House'")
 			go = "/rr/index.htm"; 						
 		if (whereTo == "ARROW Dir 'For Sale' Imprint")
 			go = "/rr/index.htm";
 		if (whereTo == "ARROW Dir 'Open House' Imprint")
 			go = "/rr/index.htm";
 		if (whereTo == "HOUSE Dir 'For Sale'")
 			go = "/rr/index.htm";
 		if (whereTo == "HOUSE Dir 'Open House'")
 			go = "/rr/index.htm"; 						
 		if (whereTo == "HOUSE Dir 'For Sale' Imprint")
 			go = "/rr/index.htm";
 		if (whereTo == "HOUSE Dir 'Open House' Imprint")
 			go = "/rr/index.htm"; 			
 		if (whereTo == "12x18 Dir 'For Sale'")
 			go = "/rr/index.htm";
 		if (whereTo == "12x18 Dir 'Open House'")
 			go = "/rr/index.htm"; 						
 		if (whereTo == "12x18 Dir 'For Sale' Imprint")
 			go = "/rr/index.htm";
 		if (whereTo == "12x18 Dir 'Open House' Imprint")
 			go = "/rr/index.htm"; 
 		if (whereTo == "RR Company Auto Magnetics")
 			go = "/rr/index.htm"; 
 		if (whereTo == "RR Agent Auto Magnetics")
 			go = "/rr/index.htm"; 
 		if (whereTo == "RR Photo Auto Magnetics")
 			go = "/rr/index.htm"; 												
 		if (whereTo == "RR Open House Combo")
 			go = "/rr/index.htm"; 
 		if (whereTo == "RR Open House Combo Imprint")
 			go = "/rr/index.htm"; 			
 		if (whereTo == "RR Castle 1824 Frame")
 			go = "/rr/index.htm"; 
 		if (whereTo == "RR Castle 2028 Frame")
 			go = "/rr/index.htm"; 
 		if (whereTo == "RR Coro Stake Regular")
 			go = "/rr/index.htm"; 
 		if (whereTo == "RR Coro Stake Heavy")
 			go = "/rr/index.htm"; 												
 		if (whereTo == "RR Coro Stake Super")
 			go = "/rr/index.htm"; 
 		if (whereTo == "RR E Z Post")
 			go = "/rr/index.htm";
 		if (whereTo == "RR Name Rider Style G")
			go = "/rr/index.htm";
 		if (whereTo == "RR Name Rider Style H")
 			go = "/rr/index.htm";
 		if (whereTo == "RR Name Rider Style I")
 			go = "/rr/index.htm";
 		if (whereTo == "RR Name Rider Style F")
 			go = "/rr/index.htm"; 			
//		if (WhereTo.substr(0,3) == "RR ")
//			go = "/rr/index.htm";




			  			 			

//-----------------------------------------------------------------------------
		//added by Alf 07-06-06
		if (whereTo == "Flat Rate Yard Sign Panel")
			go = "/flat/yardsign.htm";
		if (whereTo == "Flat Rate Open House Sign Panel")
			go = "/flat/openhouse.htm";
		if (whereTo == "Flat Rate Open House Sign Combo")
			go = "/flat/openhouse.htm";
		if (whereTo == "Flat Rate Economy Directional House Combo")
			go = "/flat/economy_directional_.htm";
		if (whereTo == "Flat Rate Economy Directional Arrow Combo")
			go = "/flat/economy_directional_.htm";
		if (whereTo == "EZPost")
			go = "/flat/posts_acc.htm";
		if (whereTo == "Infopak")
			go = "/flat/posts_acc.htm";
		//added by Alf 07-26-06
		if (whereTo == "Flat Rate Name Rider Style F")
			go = "/flat/nameriders.htm";
		if (whereTo == "Flat Rate Name Rider Style G")
			go = "/flat/nameriders.htm";
		if (whereTo == "Flat Rate Name Rider Style H")
			go = "/flat/nameriders.htm";
		if (whereTo == "Flat Rate Name Rider Style I")
			go = "/flat/nameriders.htm";
		if (whereTo == "Flat Rate Reflective Name Rider Style F")
			go = "/flat/nameriders.htm";
		if (whereTo == "Flat Rate Reflective Name Rider Style G")
			go = "/flat/nameriders.htm";
		if (whereTo == "Flat Rate Reflective Name Rider Style H")
			go = "/flat/nameriders.htm";
		if (whereTo == "Flat Rate Reflective Name Rider Style I")
			go = "/flat/nameriders.htm";
		if (whereTo == "Flat Rate Photo Name Rider")
			go = "/flat/nameriders.htm";
		//added by Auburn SeeWolf 12/7/2006
		if (whereTo.indexOf("Exit ",0) == 0){
			//alert("whereTo = " + whereTo);
			if (whereTo.indexOf("Agent Photo Rider", 5) > 0) go = "/exit/agent_riders_photo.htm";
			if (whereTo.indexOf("Company Yard Sign", 5) > 0) go = "/exit/yardsign_company.htm";
			if (whereTo.indexOf("Agent Yard Sign", 5) > 0) go = "/exit/yardsign_agent.htm";
			if (whereTo.indexOf("Frame", 10) > 0) go = "/exit/frames_frames.htm";
			if (whereTo.indexOf("Post", 10) > 0) {
				go = "/exit/frames_posts.htm";
			} else if (whereTo.indexOf("Stake", 10) > 0){
				go = "/exit/frames_stakes.htm";
			}
			if (whereTo.indexOf("Directional", 10) > 0) go = "/exit/directional.htm";
			if (whereTo.indexOf("Open House Combo",5) > 0) go = "/exit/openhouse.htm";
			if (whereTo.indexOf("Magnetic Message Rider",5) > 0) go = "/exit/message_magnetic.htm";
			if (whereTo.indexOf("Decal Message Rider",5) > 0) go = "/exit/message_decal.htm";
			if (whereTo.indexOf("Banner",10) > 0) go = "/exit/large_format_banners.htm";
			if (whereTo.indexOf("VersaSign",10) > 0) go = "/exit/large_format_versa.htm";
			if (whereTo.indexOf("TwinWall Panel",10) > 0 || whereTo.indexOf("Midex Panel",10) > 0 ||
				whereTo.indexOf("Steel Panel",10) > 0) go = "/exit/large_format_grande.htm";
			if (whereTo.indexOf("Solar Information",5) > 0) go = "/exit/accessories.htm";
			if (whereTo.indexOf("Banner Hanger",5) > 0) go = "/exit/accessories.htm";
			if (whereTo.indexOf("Information Box",5) > 0) go = "/exit/accessories.htm";
			//if (whereTo.indexOf("Solar Information",5) > 0) go = "/exit/accessories.htm";
		}
		//added by Auburn SeeWolf 2/28/2007
		if (whereTo.indexOf("Executives ",0) == 0){
			//alert("whereTo = " + whereTo);
			if (whereTo.indexOf("Agent Photo Rider", 5) > 0) go = "/REX2/agent_riders_photo.htm";
			if (whereTo.indexOf("Company Yard Sign", 5) > 0) go = "/REX2/yardsign_company.htm";
			if (whereTo.indexOf("Agent Yard Sign", 5) > 0) go = "/REX2/yardsign_agent.htm";
			if (whereTo.indexOf("Frame", 10) > 0) go = "/REX2/frames_frames.htm";
			if (whereTo.indexOf("Post", 10) > 0) {
				go = "/REX2/frames_posts.htm";
			} else if (whereTo.indexOf("Stake", 10) > 0){
				go = "/REX2/frames_stakes.htm";
			}
			if (whereTo.indexOf("Directional", 10) > 0) go = "/REX2/directional.htm";
			if (whereTo.indexOf("Open House Combo",5) > 0) go = "/REX2/openhouse.htm";
			if (whereTo.indexOf("Magnetic Message Rider",5) > 0) go = "/REX2/message_magnetic.htm";
			if (whereTo.indexOf("Decal Message Rider",5) > 0) go = "/REX2/message_decal.htm";
			if (whereTo.indexOf("Banner",10) > 0) go = "/REX2/large_format_banners.htm";
			if (whereTo.indexOf("VersaSign",10) > 0) go = "/REX2/large_format_versa.htm";
			if (whereTo.indexOf("TwinWall Panel",10) > 0 || whereTo.indexOf("Midex Panel",10) > 0 ||
				whereTo.indexOf("Steel Panel",10) > 0) go = "/REX2/large_format_grande.htm";
			if (whereTo.indexOf("Solar Information",5) > 0) go = "/REX2/accessories.htm";
			if (whereTo.indexOf("Banner Hanger",5) > 0) go = "/REX2/accessories.htm";
			if (whereTo.indexOf("Information Box",5) > 0) go = "/REX2/accessories.htm";
			//if (whereTo.indexOf("Solar Information",5) > 0) go = "/exit/accessories.htm";
		}
		//alert("go = " + go);
		return go;
	}

//-------------------------------------------------------------------------------------------------------------------------------
// getPrice() calculates price as a function of qty and size
function getPrice(qty,size)
	{
		newPrice = 0;



// Coded by JO 3/11/007 for UBuildIt

		if (whichitem == "UBuildIt Steel Project Sign Panel")
		{ 
		totalUBSPqty = getCookie('totalUBSPqty');
		qty = totalUBSPqty;
			if (qty >= 5 && qty < 10 ) {
				newPrice = 19.95 }
			if (qty >= 10 && qty < 15 ) {
				newPrice = 17.95 }
			if (qty >= 15 && qty < 25 ) {
				newPrice = 16.95 }
			if (qty >= 25 && qty < 50) {
				newPrice = 14.95 }
			if (qty >= 50 && qty < 100) {
				newPrice = 13.95 }
			if (qty >= 100) {
				newPrice = 11.95 }
		}
		
		if (whichitem == "UBuildIt Reflective Project Sign Panel")
		{ 
		totalUBSPRqty = getCookie('totalUBSPRqty');
		qty = totalUBSPqty;
			if (qty >= 5 && qty < 10 ) {
				newPrice = 56.95 }
			if (qty >= 10 && qty < 15 ) {
				newPrice = 42.95 }
			if (qty >= 15 && qty < 25 ) {
				newPrice = 38.95 }
			if (qty >= 25 && qty < 50) {
				newPrice = 34.95 }
			if (qty >= 50 && qty < 100) {
				newPrice = 29.95 }
			if (qty >= 100) {
				newPrice = 24.95 }
		}		
		
		
	
			if (whichitem == "UBuildIt TwinWall Project Sign Panel")
		{ 
		totalUBSPTqty = getCookie('totalUBSPTqty');
		qty = totalUBSPTqty;
			if (qty >= 5 && qty < 10 ) {
				newPrice = 12.95 }
			if (qty >= 10 && qty < 15 ) {
				newPrice = 10.95 }
			if (qty >= 15 && qty < 25 ) {
				newPrice = 9.95 }
			if (qty >= 25 && qty < 50) {
				newPrice = 8.95 }
			if (qty >= 50 && qty < 100) {
				newPrice = 7.95 }
			if (qty >= 100) {
				newPrice = 7.10 }
		}
	
			if (whichitem == "UBuildIt Sidewalk Frame w/ Panel")
		{ 
		totalUBSCqty = getCookie('totalUBSCqty');
		qty = totalUBSCqty;
			if (qty >= 1 && qty < 2) {
				newPrice = 149.95 }
			if (qty >= 2 && qty < 3) {
				newPrice = 129.95 }				
			if (qty >= 3) {
				newPrice = 119.95 }
		}	
	
			if (whichitem == "UBuildIt Sidewalk Replacement Panel")
		{ 
		totalUBSCPqty = getCookie('totalUBSCPqty');
		qty = totalUBSCPqty;
			if (qty >= 1 ) {
				newPrice = 32.50 }
		}	
	
			if (whichitem == "UBuildIt Custom Home Directional")
		{ 
		totalUBCHDqty = getCookie('totalUBCHDqty');
		qty = totalUBCHDqty;
			if (qty >= 5 && qty < 10 ) {
				newPrice = 7.95 }
			if (qty >= 10 && qty < 15 ) {
				newPrice = 6.95 }
			if (qty >= 15 && qty < 25 ) {
				newPrice = 6.50 }
			if (qty >= 25 && qty < 50) {
				newPrice = 6.25 }
			if (qty >= 50 && qty < 100) {
				newPrice = 5.95 }
			if (qty >= 100) {
				newPrice = 5.25 }
		}	

			if (whichitem == "UBuildIt Remodeled Directional")
		{ 
		totalUBRMDqty = getCookie('totalUBRMDqty');
		qty = totalUBRMDqty;
			if (qty >= 5 && qty < 10 ) {
				newPrice = 7.95 }
			if (qty >= 10 && qty < 15 ) {
				newPrice = 6.95 }
			if (qty >= 15 && qty < 25 ) {
				newPrice = 6.50 }
			if (qty >= 25 && qty < 50) {
				newPrice = 6.25 }
			if (qty >= 50 && qty < 100) {
				newPrice = 5.95 }
			if (qty >= 100) {
				newPrice = 5.25 }
		}
	
			if (whichitem == "UBuildIt Instant Equity Directional")
		{ 
		totalUBIEDqty = getCookie('totalUBIEDqty');
		qty = totalUBIEDqty;
			if (qty >= 5 && qty < 10 ) {
				newPrice = 7.95 }
			if (qty >= 10 && qty < 15 ) {
				newPrice = 6.95 }
			if (qty >= 15 && qty < 25 ) {
				newPrice = 6.50 }
			if (qty >= 25 && qty < 50) {
				newPrice = 6.25 }
			if (qty >= 50 && qty < 100) {
				newPrice = 5.95 }
			if (qty >= 100) {
				newPrice = 5.25 }
		}	
 		
			if (whichitem == "UBuildIt Custom Home Message")
		{ 
		totalUBCHMqty = getCookie('totalUBCHMqty');
		qty = totalUBCHMqty;
			if (qty >= 1 ) {
				newPrice = 5.95 }
		}		
		
			if (whichitem == "UBuildIt Remodeled Message")
		{ 
		totalUBRMMqty = getCookie('totalUBRMMqty');
		qty = totalUBRMMqty;
			if (qty >= 1 ) {
				newPrice = 5.95 }
		}		
		
			if (whichitem == "UBuildIt Instant Equity Message")
		{ 
		totalUBIEMqty = getCookie('totalUBIEMqty');
		qty = totalUBIEMqty;
			if (qty >= 1 ) {
				newPrice = 5.95 }		
		}
		
			if (whichitem == "UBuildIt Message Assortment Pack")
		{ 
		totalUBASTMqty = getCookie('totalUBASTMqty');
		qty = totalUBASTMqty;
			if (qty >= 1 ) {
				newPrice = 29.99 }		
		}
		
			if (whichitem == "UBuildIt Coro Stake Regular")
		{ 
		totalUBCSRGqty = getCookie('totalUBCSRGqty');
		qty = totalUBCSRGqty;
			if (qty >= 5 ) {
				newPrice = 1.25 }		
		}		
		
			if (whichitem == "UBuildIt Coro Stake Heavy")
		{ 
		totalUBCSHDqty = getCookie('totalUBCSHDqty');
		qty = totalUBCSHDqty;
			if (qty >= 5 ) {
				newPrice = 2.00 }		
		}
		
			if (whichitem == "UBuildIt Coro Stake Super")
		{ 
		totalUBCSSDqty = getCookie('totalUBCSSDqty');
		qty = totalUBCSSDqty;
			if (qty >= 5 ) {
				newPrice = 4.50 }		
		}	
		
			if (whichitem == "UBuildIt E Z Post")
		{ 
		totalUBPEZqty = getCookie('totalUBPEZqty');
		qty = totalUBPEZqty;
			if (qty >= 1 ) {
				newPrice = 49.95 }		
		}		

			if (whichitem == "UBuildIt Estate Frame")
		{ 
		totalUBEFqty = getCookie('totalUBEFqty');
		qty = totalUBEFqty;
			if (qty >= 1 ) {
				newPrice = 49.95 }		
		}


			if (whichitem == "UBuildIt Custom Banner")
		{ 
		totalUBBADPqty = getCookie('totalUBBADPqty');
		qty = totalUBBADPqty;
			if (qty = 1 ) {
				newPrice = 95.00 }
			if (qty = 2 ) {
				newPrice = 95.00 }				
			if (qty >= 3) {
				newPrice = 75.00 }
		}
		
			if (whichitem == "UBuildIt TriFold  Dispenser")
		{ 
		totalUBINFOqty = getCookie('totalUBINFOqty');
		qty = totalUBINFOqty;
			if (qty >= 1 ) {
				newPrice = 14.98 }		
		}
		
			if (whichitem == "UBuildIt Solar Dispenser")
		{ 
		totalUBSOLARqty = getCookie('totalUBSOLARqty');
		qty = totalUBSOLARqty;
			if (qty >= 1 ) {
				newPrice = 19.98 }		
		}		
// Smart Sales Tools JO 3/20/007



			if (whichitem == "SST Yard Sign Panel")
		{ 
		totalSSTSTPqty = getCookie('totalSSTSTPqty');
		qty = totalSSTSTPqty;
			if (qty >= 10 && qty < 15 ) {
				newPrice = 14.95 }
			if (qty >= 15 && qty < 25 ) {
				newPrice = 10.95 }
			if (qty >= 25 && qty < 50) {
				newPrice = 7.50 }
			if (qty >= 50) {
				newPrice = 5.25 }
		}

			if (whichitem == "SST FSBO Directional")
		{ 
		totalSSTOHTqty = getCookie('totalSSTOHTqty');
		qty = totalSSTOHTqty;
			if (qty >= 10 && qty < 15 ) {
				newPrice = 9.50 }
			if (qty >= 15 && qty < 25 ) {
				newPrice = 6.75 }
			if (qty >= 25 && qty < 50) {
				newPrice = 5.95 }
			if (qty >= 50) {
				newPrice = 4.95 }
		}

			if (whichitem == "SST Call For Rider")
		{ 
		totalSSTRCFqty = getCookie('totalSSTRCFqty');
		qty = totalSSTRCFqty;
			if (qty >= 10 && qty < 15 ) {
				newPrice = 8.50 }
			if (qty >= 15 && qty < 25 ) {
				newPrice = 5.95 }
			if (qty >= 25 && qty < 50) {
				newPrice = 5.5 }
			if (qty >= 50) {
				newPrice = 4.50 }
		}

			if (whichitem == "SST Free 24 Rider")
		{ 
		totalSSTRFRqty = getCookie('totalSSTRFRqty');
		qty = totalSSTRFRqty;
			if (qty >= 10 && qty < 15 ) {
				newPrice = 8.50 }
			if (qty >= 15 && qty < 25 ) {
				newPrice = 5.95 }
			if (qty >= 25 && qty < 50) {
				newPrice = 5.5 }
			if (qty >= 50) {
				newPrice = 4.50 }
		}
	
			if (whichitem == "SST Handy Post")
		{ 
		totalSSTHANqty = getCookie('totalSSTHANqty');
		qty = totalSSTHANqty;
			if (qty >= 4 ) {
				newPrice = 19.98 }		
		}	
	
			if (whichitem == "SST Colonial Post")
		{ 
		totalSSTCOLqty = getCookie('totalSSTCOLqty');
		qty = totalSSTCOLqty;
			if (qty >= 4 ) {
				newPrice = 24.98 }		
		}
		
			if (whichitem == "SST Coro Stake Regular Duty")
		{ 
		totalSSTCSRqty = getCookie('totalSSTCSRqty');
		qty = totalSSTCSRqty;
			if (qty >= 1 ) {
				newPrice = 1.25 }		
		}	
	
			if (whichitem == "SST Coro Stake Heavy Duty")
		{ 
		totalSSTCSHqty = getCookie('totalSSTCSHqty');
		qty = totalSSTCSHqty;
			if (qty >= 1 ) {
				newPrice = 2.50 }		
		}	
	
			if (whichitem == "SST Coro Stake Super Duty")
		{ 
		totalSSTCSSqty = getCookie('totalSSTCSSqty');
		qty = totalSSTCSSqty;
			if (qty >= 1 ) {
				newPrice = 5.95 }		
		}	
	
	
			if (whichitem == "Smart Sales Rider Numbers")
		{ 
		totalSSTNSRqty = getCookie('totalSSTNSRqty');
		qty = totalSSTNSRqty;
			if (qty >= 1 ) {
				newPrice = 9.50 }		
		}	
	
			if (whichitem == "Yard Sign & Directional Numbers")
		{ 
		totalSSTNSSqty = getCookie('totalSSTNSSqty');
		qty = totalSSTNSSqty;
			if (qty >= 1 ) {
				newPrice = 9.50 }		
		}	
	
	
//==========READY	
	
			if (whichitem == "RR Steel Panel 1824")
		{ 
		totalRRSP_S1824qty = getCookie('totalRRSP_S1824qty');
		qty = totalRRSP_S1824qty;
			if (qty >= 5 && qty < 10 ) {
				newPrice = 34.50 }
			if (qty >= 10 && qty < 15 ) {
				newPrice = 23.95 }
			if (qty >= 15 && qty < 25 ) {
				newPrice = 19.50 }
			if (qty >= 25 && qty < 50) {
				newPrice = 14.50 }
			if (qty >= 50 && qty < 100) {
				newPrice = 11.75 }
			if (qty >= 100) {
				newPrice = 9.95 }
		}	
	
			if (whichitem == "RR Steel Panel 2028")
		{ 
		totalRRSP_S2028qty = getCookie('totalRRSP_S2028qty');
		qty = totalRRSP_S2028qty;
			if (qty >= 5 && qty < 10 ) {
				newPrice = 38.95 }
			if (qty >= 10 && qty < 15 ) {
				newPrice = 31.5 }
			if (qty >= 15 && qty < 25 ) {
				newPrice = 22.95 }
			if (qty >= 25 && qty < 50) {
				newPrice = 18.25 }
			if (qty >= 50 && qty < 100) {
				newPrice = 14.75 }
			if (qty >= 100) {
				newPrice = 13.95 }
		}	

			if (whichitem == "RR Refl Panel 1824")
		{ 
		totalRRSP_R1824qty = getCookie('totalRRSP_R1824qty');
		qty = totalRRSP_R1824qty;
			if (qty >= 5 && qty < 10 ) {
				newPrice = 49.95 }
			if (qty >= 10 && qty < 15 ) {
				newPrice = 39.95 }
			if (qty >= 15 && qty < 25 ) {
				newPrice = 35.50 }
			if (qty >= 25 && qty < 50) {
				newPrice = 29.95 }
			if (qty >= 50 && qty < 100) {
				newPrice = 27.75 }
			if (qty >= 100) {
				newPrice = 25.95 }
		}

			if (whichitem == "RR Refl Panel 2028")
		{ 
		totalRRSP_R2028qty = getCookie('totalRRSP_R2028qty');
		qty = totalRRSP_R2028qty;
			if (qty >= 5 && qty < 10 ) {
				newPrice = 59.95 }
			if (qty >= 10 && qty < 15 ) {
				newPrice = 53.50 }
			if (qty >= 15 && qty < 25 ) {
				newPrice = 46.95 }
			if (qty >= 25 && qty < 50) {
				newPrice = 39.95 }
			if (qty >= 50 && qty < 100) {
				newPrice = 37.50 }
			if (qty >= 100) {
				newPrice = 35.95 }
		}
		
			if (whichitem == "RR Steel Combo 1824")
		{ 
		totalRRCA_S1824qty = getCookie('totalRRCA_S1824qty');
		qty = totalRRCA_S1824qty;
			if (qty >= 5 && qty < 10 ) {
				newPrice = 48.50 }
			if (qty >= 10 && qty < 15 ) {
				newPrice = 37.95 }
			if (qty >= 15 && qty < 25 ) {
				newPrice = 33.50 }
			if (qty >= 25 && qty < 50) {
				newPrice = 28.50 }
			if (qty >= 50 && qty < 100) {
				newPrice = 25.75 }
			if (qty >= 100) {
				newPrice = 23.95 }
		}	
	
			if (whichitem == "RR Steel Combo 2028")
		{ 
		totalRRCA_S2028qty = getCookie('totalRRCA_S2028qty');
		qty = totalRRCA_S2028qty;
			if (qty >= 10 && qty < 15 ) {
				newPrice = 47.50 }
			if (qty >= 15 && qty < 25 ) {
				newPrice = 38.95 }
			if (qty >= 25 && qty < 50) {
				newPrice = 34.25 }
			if (qty >= 50 && qty < 100) {
				newPrice = 30.75 }
			if (qty >= 100) {
				newPrice = 29.25 }
		}	

			if (whichitem == "RR Refl Combo 1824")
		{ 
		totalRRCA_R1824qty = getCookie('totalRRCA_R1824qty');
		qty = totalRRCA_R1824qty;
			if (qty >= 5 && qty < 10 ) {
				newPrice = 63.95 }
			if (qty >= 10 && qty < 15 ) {
				newPrice = 53.95 }
			if (qty >= 15 && qty < 25 ) {
				newPrice = 49.50 }
			if (qty >= 25 && qty < 50) {
				newPrice = 43.95 }
			if (qty >= 50 && qty < 100) {
				newPrice = 41.75 }
			if (qty >= 100) {
				newPrice = 39.95 }
		}

			if (whichitem == "RR Refl Combo 2028")
		{ 
		totalRRCA_R2028qty = getCookie('totalRRCA_R2028qty');
		qty = totalRRCA_R2028qty;
			if (qty >= 5 && qty < 10 ) {
				newPrice = 75.95 }
			if (qty >= 10 && qty < 15 ) {
				newPrice = 69.50 }
			if (qty >= 15 && qty < 25 ) {
				newPrice = 62.95 }
			if (qty >= 25 && qty < 50) {
				newPrice = 55.95 }
			if (qty >= 50 && qty < 100) {
				newPrice = 53.50 }
			if (qty >= 100) {
				newPrice = 51.95 }
		}		

			if (whichitem == "ARROW Dir 'For Sale'")
		{ 
		totalRRDAFSqty = getCookie('totalRRDAFSqty');
		qty = totalRRDAFSqty;
			if (qty >= 5 && qty < 10 ) {
				newPrice = 18.95 }
			if (qty >= 10 && qty < 15 ) {
				newPrice = 13.95 }
			if (qty >= 15 && qty < 25 ) {
				newPrice = 11.95 }
			if (qty >= 25 && qty < 50) {
				newPrice = 8.95 }
			if (qty >= 50) {
				newPrice = 6.75 }
		}

			if (whichitem == "ARROW Dir 'Open House'")
		{ 
		totalRRDAOHqty = getCookie('totalRRDAOHqty');
		qty = totalRRDAOHqty;
			if (qty >= 5 && qty < 10 ) {
				newPrice = 18.95 }
			if (qty >= 10 && qty < 15 ) {
				newPrice = 13.95 }
			if (qty >= 15 && qty < 25 ) {
				newPrice = 11.95 }
			if (qty >= 25 && qty < 50) {
				newPrice = 8.95 }
			if (qty >= 50) {
				newPrice = 6.75 }
		}

			if (whichitem == "ARROW Dir 'For Sale' Imprint")
		{ 
		totalRRDAFS_Iqty = getCookie('totalRRDAFS_Iqty');
		qty = totalRRDAFS_Iqty;
			if (qty >= 5 && qty < 10 ) {
				newPrice = 24.95 }
			if (qty >= 10 && qty < 15 ) {
				newPrice = 17.50 }
			if (qty >= 15 && qty < 25 ) {
				newPrice = 13.95 }
			if (qty >= 25 && qty < 50) {
				newPrice = 9.50 }
			if (qty >= 50) {
				newPrice = 6.75 }
		}

			if (whichitem == "ARROW Dir 'Open House' Imprint")
		{ 
		totalRRDAOH_Iqty = getCookie('totalRRDAOH_Iqty');
		qty = totalRRDAOH_Iqty;
			if (qty >= 5 && qty < 10 ) {
				newPrice = 24.95 }
			if (qty >= 10 && qty < 15 ) {
				newPrice = 17.50 }
			if (qty >= 15 && qty < 25 ) {
				newPrice = 13.95 }
			if (qty >= 25 && qty < 50) {
				newPrice = 9.50 }
			if (qty >= 50) {
				newPrice = 6.75 }
		}

			if (whichitem == "HOUSE Dir 'For Sale'")
		{ 
		totalRRDHFSqty = getCookie('totalRRDHFSqty');
		qty = totalRRDHFSqty;
			if (qty >= 5 && qty < 10 ) {
				newPrice = 18.95 }
			if (qty >= 10 && qty < 15 ) {
				newPrice = 13.95 }
			if (qty >= 15 && qty < 25 ) {
				newPrice = 11.95 }
			if (qty >= 25 && qty < 50) {
				newPrice = 8.95 }
			if (qty >= 50) {
				newPrice = 6.75 }
		}

			if (whichitem == "HOUSE Dir 'Open House'")
		{ 
		totalRRDHOHqty = getCookie('totalRRDHOHqty');
		qty = totalRRDHOHqty;
			if (qty >= 5 && qty < 10 ) {
				newPrice = 18.95 }
			if (qty >= 10 && qty < 15 ) {
				newPrice = 13.95 }
			if (qty >= 15 && qty < 25 ) {
				newPrice = 11.95 }
			if (qty >= 25 && qty < 50) {
				newPrice = 8.95 }
			if (qty >= 50) {
				newPrice = 6.75 }
		}

			if (whichitem == "HOUSE Dir 'For Sale' Imprint")
		{ 
		totalRRDHFS_Iqty = getCookie('totalRRDHFS_Iqty');
		qty = totalRRDHFS_Iqty;
			if (qty >= 5 && qty < 10 ) {
				newPrice = 24.95 }
			if (qty >= 10 && qty < 15 ) {
				newPrice = 17.50 }
			if (qty >= 15 && qty < 25 ) {
				newPrice = 13.95 }
			if (qty >= 25 && qty < 50) {
				newPrice = 9.50 }
			if (qty >= 50) {
				newPrice = 6.75 }
		}

			if (whichitem == "HOUSE Dir 'Open House' Imprint")
		{ 
		totalRRDHOH_Iqty = getCookie('totalRRDHOH_Iqty');
		qty = totalRRDHOH_Iqty;
			if (qty >= 5 && qty < 10 ) {
				newPrice = 24.95 }
			if (qty >= 10 && qty < 15 ) {
				newPrice = 17.50 }
			if (qty >= 15 && qty < 25 ) {
				newPrice = 13.95 }
			if (qty >= 25 && qty < 50) {
				newPrice = 9.50 }
			if (qty >= 50) {
				newPrice = 6.75 }
		}

			if (whichitem == "12x18 Dir 'For Sale'")
		{ 
		totalRRDRFSqty = getCookie('totalRRDRFSqty');
		qty = totalRRDRFSqty;
			if (qty >= 5 && qty < 10 ) {
				newPrice = 16.95 }
			if (qty >= 10 && qty < 15 ) {
				newPrice = 12.50}
			if (qty >= 15 && qty < 25 ) {
				newPrice = 9.95 }
			if (qty >= 25 && qty < 50) {
				newPrice = 7.25 }
			if (qty >= 50) {
				newPrice = 5.95 }
		}

			if (whichitem == "12x18 Dir 'Open House'")
		{ 
		totalRRDROHqty = getCookie('totalRRDROHqty');
		qty = totalRRDROHqty;
			if (qty >= 5 && qty < 10 ) {
				newPrice = 16.95 }
			if (qty >= 10 && qty < 15 ) {
				newPrice = 12.50}
			if (qty >= 15 && qty < 25 ) {
				newPrice = 9.95 }
			if (qty >= 25 && qty < 50) {
				newPrice = 7.25 }
			if (qty >= 50) {
				newPrice = 5.95 }
		}

			if (whichitem == "12x18 Dir 'For Sale' Imprint")
		{ 
		totalRRDRFS_Iqty = getCookie('totalRRDRFS_Iqty');
		qty = totalRRDRFS_Iqty;
			if (qty >= 5 && qty < 10 ) {
				newPrice = 22.45 }
			if (qty >= 10 && qty < 15 ) {
				newPrice = 15.95 }
			if (qty >= 15 && qty < 25 ) {
				newPrice = 11.50 }
			if (qty >= 25 && qty < 50) {
				newPrice = 7.95 }
			if (qty >= 50) {
				newPrice = 5.95 }
		}

			if (whichitem == "12x18 Dir 'Open House' Imprint")
		{ 
		totalRRDROH_Iqty = getCookie('totalRRDROH_Iqty');
		qty = totalRRDROH_Iqty;
			if (qty >= 5 && qty < 10 ) {
				newPrice = 22.45 }
			if (qty >= 10 && qty < 15 ) {
				newPrice = 15.95 }
			if (qty >= 15 && qty < 25 ) {
				newPrice = 11.50 }
			if (qty >= 25 && qty < 50) {
				newPrice = 7.95 }
			if (qty >= 50) {
				newPrice = 5.95 }
		}

			if (whichitem == "RR Company Auto Magnetics")
		{ 
		totalRRCAMqty = getCookie('totalRRCAMqty');
		qty = totalRRCAMqty;
			if (qty >= 2 && qty < 4 ) {
				newPrice = 24.50 }
			if (qty >= 4 && qty < 10 ) {
				newPrice = 21.95 }
			if (qty >= 10 && qty < 18 ) {
				newPrice = 17.50 }
			if (qty >= 18 && qty < 24) {
				newPrice = 12.95 }
			if (qty >= 24 && qty < 50) {
				newPrice = 9.50 }				
			if (qty >= 50) {
				newPrice = 6.50 }
		}

			if (whichitem == "RR Agent Auto Magnetics")
		{ 
		totalRRAAMqty = getCookie('totalRRAAMqty');
		qty = totalRRAAMqty;
			if (qty >= 2 && qty < 4 ) {
				newPrice = 24.50 }
			if (qty >= 4 && qty < 10 ) {
				newPrice = 21.95 }
			if (qty >= 10 && qty < 18 ) {
				newPrice = 17.50 }
			if (qty >= 18 && qty < 24) {
				newPrice = 12.95 }
			if (qty >= 24 && qty < 50) {
				newPrice = 9.50 }				
			if (qty >= 50) {
				newPrice = 6.50 }
		}
		
			if (whichitem == "RR Photo Auto Magnetics")
		{ 
		totalRRPAMqty = getCookie('totalRRPAMqty');
		qty = totalRRPAMqty;
			if (qty >= 2 && qty < 4 ) {
				newPrice = 29.50 }
			if (qty >= 4 && qty < 6 ) {
				newPrice = 23.50 }				
			if (qty >= 6) {
				newPrice = 19.95 }
		}		

			if (whichitem == "RR Open House Combo")
		{ 
		totalRROHCqty = getCookie('totalRROHCqty');
		qty = totalRROHCqty;
			if (qty >= 5 && qty < 10 ) {
				newPrice = 39.95 }
			if (qty >= 10 && qty < 15 ) {
				newPrice = 35.00 }
			if (qty >= 15 && qty < 25 ) {
				newPrice = 31.95 }
			if (qty >= 25 && qty < 50) {
				newPrice = 29.95 }
			if (qty >= 50) {
				newPrice = 28.50 }
		}

			if (whichitem == "RR Open House Combo Imprint")
		{ 
		totalRROHC_Iqty = getCookie('totalRROHC_Iqty');
		qty = totalRROHC_Iqty;
			if (qty >= 5 && qty < 10 ) {
				newPrice = 49.50 }
			if (qty >= 10 && qty < 15 ) {
				newPrice = 39.95 }
			if (qty >= 15 && qty < 25 ) {
				newPrice = 35.00 }
			if (qty >= 25 && qty < 50) {
				newPrice = 31.50 }
			if (qty >= 50) {
				newPrice = 29.95 }
		}

			if (whichitem == "RR Castle 1824 Frame")
		{ 
		totalRRCA1824qty = getCookie('totalRRCA1824qty');
		qty = totalRRCA1824qty;
			if (qty >= 5 ) {
				newPrice = 14.00 }		
		}

			if (whichitem == "RR Castle 2028 Frame")
		{ 
		totalRRCA2028qty = getCookie('totalRRCA2028qty');
		qty = totalRRCA2028qty;
			if (qty >= 5 ) {
				newPrice = 16.00 }		
		}

			if (whichitem == "RR Coro Stake Regular")
		{ 
		totalRRCSRGqty = getCookie('totalRRCSRGqty');
		qty = totalRRCSRGqty;
			if (qty >= 1 ) {
				newPrice = 1.25 }		
		}

			if (whichitem == "RR Coro Stake Heavy")
		{ 
		totalRRCSHDqty = getCookie('totalRRCSHDqty');
		qty = totalRRCSHDqty;
			if (qty >= 1 ) {
				newPrice = 2.00 }		
		}

			if (whichitem == "RR Coro Stake Super")
		{ 
		totalRRCSSDqty = getCookie('totalRRCSSDqty');
		qty = totalRRCSSDqty;
			if (qty >= 1 ) {
				newPrice = 4.50 }
		}		
		
			if (whichitem == "RR E Z Post")
		{ 
		totalRREZqty = getCookie('totalRREZqty');
		qty = totalRREZqty;
			if (qty >= 1 ) {
				newPrice = 54.88 }
		}

			if (whichitem == "RR Name Rider Style F")
		{ 
		totalRRSNRFqty = getCookie('totalRRSNRFqty');
		qty = totalRRSNRFqty;
			if (qty >= 5 && qty < 10 ) {
				newPrice = 9.75 }
			if (qty >= 10 && qty < 15 ) {
				newPrice = 8.75 }
			if (qty >= 15 && qty < 25 ) {
				newPrice = 7.75 }
			if (qty >= 25 && qty < 50) {
				newPrice = 5.75 }
			if (qty >= 50) {
				newPrice = 4.95 }
		}

			if (whichitem == "RR Name Rider Style G")
		{ 
		totalRRSNRGqty = getCookie('totalRRSNRGqty');
		qty = totalRRSNRGqty;
			if (qty >= 5 && qty < 10 ) {
				newPrice = 9.75 }
			if (qty >= 10 && qty < 15 ) {
				newPrice = 8.75 }
			if (qty >= 15 && qty < 25 ) {
				newPrice = 7.75 }
			if (qty >= 25 && qty < 50) {
				newPrice = 5.75 }
			if (qty >= 50) {
				newPrice = 4.95 }
		}

			if (whichitem == "RR Name Rider Style H")
		{ 
		totalRRSNRHqty = getCookie('totalRRSNRHqty');
		qty = totalRRSNRHqty;
			if (qty >= 5 && qty < 10 ) {
				newPrice = 9.75 }
			if (qty >= 10 && qty < 15 ) {
				newPrice = 8.75 }
			if (qty >= 15 && qty < 25 ) {
				newPrice = 7.75 }
			if (qty >= 25 && qty < 50) {
				newPrice = 5.75 }
			if (qty >= 50) {
				newPrice = 4.95 }
		}

			if (whichitem == "RR Name Rider Style I")
		{ 
		totalRRSNRIqty = getCookie('totalRRSNRIqty');
		qty = totalRRSNRIqty;
			if (qty >= 5 && qty < 10 ) {
				newPrice = 9.75 }
			if (qty >= 10 && qty < 15 ) {
				newPrice = 8.75 }
			if (qty >= 15 && qty < 25 ) {
				newPrice = 7.75 }
			if (qty >= 25 && qty < 50) {
				newPrice = 5.75 }
			if (qty >= 50) {
				newPrice = 4.95 }
		}

			if (whichitem == "RR Reflective Name Rider Style F")
		{ 
		totalRRRNRFqty = getCookie('totalRRRNRFqty');
		qty = totalRRRNRFqty;
			if (qty >= 5 && qty < 10 ) {
				newPrice = 16.95 }
			if (qty >= 10 && qty < 15 ) {
				newPrice = 15.95 }
			if (qty >= 15 && qty < 25 ) {
				newPrice = 14.95 }
			if (qty >= 25 && qty < 50) {
				newPrice = 12.95 }
			if (qty >= 50) {
				newPrice = 11.95 }
		}

			if (whichitem == "RR Reflective Name Rider Style G")
		{ 
		totalRRRNRGqty = getCookie('totalRRRNRGqty');
		qty = totalRRRNRFqty;
			if (qty >= 5 && qty < 10 ) {
				newPrice = 16.95 }
			if (qty >= 10 && qty < 15 ) {
				newPrice = 15.95 }
			if (qty >= 15 && qty < 25 ) {
				newPrice = 14.95 }
			if (qty >= 25 && qty < 50) {
				newPrice = 12.95 }
			if (qty >= 50) {
				newPrice = 11.95 }
		}

			if (whichitem == "RR Reflective Name Rider Style H")
		{ 
		totalRRRNRHqty = getCookie('totalRRRNRHqty');
		qty = totalRRRNRHqty;
			if (qty >= 5 && qty < 10 ) {
				newPrice = 16.95 }
			if (qty >= 10 && qty < 15 ) {
				newPrice = 15.95 }
			if (qty >= 15 && qty < 25 ) {
				newPrice = 14.95 }
			if (qty >= 25 && qty < 50) {
				newPrice = 12.95 }
			if (qty >= 50) {
				newPrice = 11.95 }
		}

			if (whichitem == "RR Reflective Name Rider Style I")
		{ 
		totalRRRNRIqty = getCookie('totalRRRNRIqty');
		qty = totalRRRNRIqty;
			if (qty >= 5 && qty < 10 ) {
				newPrice = 16.95 }
			if (qty >= 10 && qty < 15 ) {
				newPrice = 15.95 }
			if (qty >= 15 && qty < 25 ) {
				newPrice = 14.95 }
			if (qty >= 25 && qty < 50) {
				newPrice = 12.95 }
			if (qty >= 50) {
				newPrice = 11.95 }
		}

			if (whichitem == "RR Standard Photo Name Rider")
		{ 
		totalRRSPNRqty = getCookie('totalRRSPNRIqty');
		qty = totalRRSPNRqty;
			if (qty >= 5 && qty < 10 ) {
				newPrice = 23.25 }
			if (qty >= 10 && qty < 15 ) {
				newPrice = 21.75 }
			if (qty >= 15 && qty < 25 ) {
				newPrice = 20.75 }
			if (qty >= 25 && qty < 50) {
				newPrice = 18.95 }
			if (qty >= 50) {
				newPrice = 16.95 }
		}

			if (whichitem == "RR Reflective Photo Name Rider")
		{ 
		totalRRRPNRqty = getCookie('totalRRRPNRqty');
		qty = totalRRRPNRqty;
			if (qty >= 5 && qty < 10 ) {
				newPrice = 30.45 }
			if (qty >= 10 && qty < 15 ) {
				newPrice = 28.95 }
			if (qty >= 15 && qty < 25 ) {
				newPrice = 27.95 }
			if (qty >= 25 && qty < 50) {
				newPrice = 26.15 }
			if (qty >= 50) {
				newPrice = 23.95 }
		}



	
//------------------------------------------------------------------------------



	//CODED BY ALF FOR FLAT RATE 07/13/06
		if (whichitem == "Flat Rate Yard Sign Panel")
		{ 
		totalFRYSPqty = getCookie('totalFRYSPqty');
		qty = totalFRYSPqty;
			if (qty >= 15 && qty < 25 ) {
				newPrice = 58.95 }
			if (qty >= 25 && qty < 50) {
				newPrice = 37.20 }
			if (qty >= 50) {
				newPrice = 29.95 }
		}
		
		if (whichitem == "Flat Rate Open House Sign Panel")
		{
		totalFROHSPqty = getCookie('totalFROHSPqty');
		qty = totalFROHSPqty;	
			if (qty >= 10 && qty < 15 ) {
				newPrice = 26.20 }
			if (qty >= 15 && qty < 25) {
				newPrice = 21.20 }
			if (qty >= 25) {
				newPrice = 16.00 }
		}
		
		if (whichitem == "Flat Rate Open House Sign Combo")
		{
		totalFROHSCqty = getCookie('totalFROHSCqty');
		qty = totalFROHSCqty;	
			if (qty < 10)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nFlat Rate Open House Sign Combos have a minimum quantity of 10. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 1;
			} else {
			if (qty >= 10 && qty < 151 ) {
				newPrice = 42.70 }
			if (qty >= 15 && qty < 25) {
				newPrice = 37.50 }
			if (qty >= 25) {
				newPrice = 32.50 }
			}
		}
		
		if (whichitem == "Flat Rate Economy Directional House Combo")
		{
		totalFREDHCqty = getCookie('totalFREDHCqty');
		qty = totalFREDHCqty;
			if (qty < 25)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nFlat Rate Economy Directional House Combos have a minimum quantity of 25. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 1;
			} else {
			if (qty >= 25 && qty < 50 ) {
				newPrice = 10.95 }
			if (qty >= 50 && qty < 100) {
				newPrice = 8.50 }
			if (qty >= 100) {
				newPrice = 6.95 }
			}
		}
		if (whichitem == "Flat Rate Economy Directional Arrow Combo")
		{
		totalFREDACqty = getCookie('totalFREDACqty');
		qty = totalFREDACqty;
			if (qty < 25)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nFlat Rate Economy Directional Arrow Combos have a minimum quantity of 25. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 1;
			} else {
			if (qty >= 25 && qty < 50 ) {
				newPrice = 10.95 }
			if (qty >= 50 && qty < 100) {
				newPrice = 8.50 }
			if (qty >= 100) {
				newPrice = 6.95 }
			}
		}
		
		
		if (whichitem == "USA Stake")
		{newPrice = 1.50 }
		if (whichitem == "USA Frame")
		{newPrice = 10.95 }				
		
		
		if (whichitem == "EZPost")
		{	
			if (qty < 2)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nEZPost have a minimum quantity of 2. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 1;
			} else {
			if (qty >= 2 && qty < 4 ) {
				newPrice = 59.95 }
			if (qty >= 4) {
				newPrice = 54.88 }
			}
		}
		if (whichitem == "Infopak")
		{	if (qty >= 1 && qty < 5 ) {
				newPrice = 6.99 }
			if (qty >= 5 && qty < 10) {
				newPrice = 5.99 }
			if (qty >= 10 && qty < 24) {
				newPrice = 5.50 }
			if (qty >= 24 ) {
				newPrice = 4.99 }
		}
	// --------------------------------------
		if (whichitem == "Flat Rate Name Rider Style F")
		{
		totalFRNRFqty = getCookie('totalFRNRFqty');
		qty = totalFRNRFqty;
			if (qty < 5)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nFlat Rate Name Rider Style F have a minimum quantity of 5. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 1;
			} else {
			if (qty >= 5 && qty < 10 ) {
				newPrice = 9.75 }
			if (qty >= 10 && qty < 15) {
				newPrice = 8.75 }
			if (qty >= 15 && qty < 25) {
				newPrice = 7.75 }
			if (qty >= 25) {
				newPrice = 5.75 }
			}
		}
		
		if (whichitem == "Flat Rate Name Rider Style G")
		{
		totalFRNRGqty = getCookie('totalFRNRGqty');
		qty = totalFRNRGqty;
			if (qty < 5)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nFlat Rate Name Rider Style G have a minimum quantity of 5. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 1;
			} else {
			if (qty >= 5 && qty < 10 ) {
				newPrice = 9.75 }
			if (qty >= 10 && qty < 15) {
				newPrice = 8.75 }
			if (qty >= 15 && qty < 25) {
				newPrice = 7.75 }
			if (qty >= 25) {
				newPrice = 5.75 }
			}
		}
		
		if (whichitem == "Flat Rate Name Rider Style H")
		{
		totalFRNRHqty = getCookie('totalFRNRHqty');
		qty = totalFRNRHqty;
			if (qty < 5)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nFlat Rate Name Rider Style H have a minimum quantity of 5. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 1;
			} else {
			if (qty >= 5 && qty < 10 ) {
				newPrice = 9.75 }
			if (qty >= 10 && qty < 15) {
				newPrice = 8.75 }
			if (qty >= 15 && qty < 25) {
				newPrice = 7.75 }
			if (qty >= 25) {
				newPrice = 5.75 }
			}
		}
		
		if (whichitem == "Flat Rate Name Rider Style I")
		{
		totalFRNRIqty = getCookie('totalFRNRIqty');
		qty = totalFRNRIqty;
			if (qty < 5)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nFlat Rate Name Rider Style I have a minimum quantity of 5. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 1;
			} else {
			if (qty >= 5 && qty < 10 ) {
				newPrice = 9.75 }
			if (qty >= 10 && qty < 15) {
				newPrice = 8.75 }
			if (qty >= 15 && qty < 25) {
				newPrice = 7.75 }
			if (qty >= 25) {
				newPrice = 5.75 }
			}
		}
		
		if (whichitem == "Flat Rate Reflective Name Rider Style F")
		{
		totalFRNRFRqty = getCookie('totalFRNRFRqty');
		qty = totalFRNRFRqty;
			if (qty < 5)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nFlat Rate Reflective Name Rider Style F have a minimum quantity of 5. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 1;
			} else {
			if (qty >= 5 && qty < 10 ) {
				newPrice = 16.95 }
			if (qty >= 10 && qty < 15) {
				newPrice = 15.95 }
			if (qty >= 15 && qty < 25) {
				newPrice = 14.95 }
			if (qty >= 25) {
				newPrice = 12.95 }
			}
		}
		
		if (whichitem == "Flat Rate Reflective Name Rider Style G")
		{
		totalFRNRGRqty = getCookie('totalFRNRGRqty');
		qty = totalFRNRGRqty;
			if (qty < 5)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nFlat Rate Reflective Name Rider Style G have a minimum quantity of 5. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 1;
			} else {
			if (qty >= 5 && qty < 10 ) {
				newPrice = 16.95 }
			if (qty >= 10 && qty < 15) {
				newPrice = 15.95 }
			if (qty >= 15 && qty < 25) {
				newPrice = 14.95 }
			if (qty >= 25) {
				newPrice = 12.95 }
			}
		}
		
		if (whichitem == "Flat Rate Reflective Name Rider Style H")
		{
		totalFRNRHRqty = getCookie('totalFRNRHRqty');
		qty = totalFRNRHRqty;
			if (qty < 5)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nFlat Rate Reflective Name Rider Style H have a minimum quantity of 5. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 1;
			} else {
			if (qty >= 5 && qty < 10 ) {
				newPrice = 16.95 }
			if (qty >= 10 && qty < 15) {
				newPrice = 15.95 }
			if (qty >= 15 && qty < 25) {
				newPrice = 14.95 }
			if (qty >= 25) {
				newPrice = 12.95 }
			}
		}
		
		if (whichitem == "Flat Rate Reflective Name Rider Style I")
		{
		totalFRNRIRqty = getCookie('totalFRNRIRqty');
		qty = totalFRNRIRqty;
			if (qty < 5)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nFlat Rate Reflective Name Rider Style I have a minimum quantity of 5. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 1;
			} else {
			if (qty >= 5 && qty < 10 ) {
				newPrice = 16.95 }
			if (qty >= 10 && qty < 15) {
				newPrice = 15.95 }
			if (qty >= 15 && qty < 25) {
				newPrice = 14.95 }
			if (qty >= 25) {
				newPrice = 12.95 }
			}
		}
		
		if (whichitem == "Flat Rate Photo Name Rider")
		{
		totalFRPNRqty = getCookie('totalFRPNRqty');
		qty = totalFRPNRqty;
			if (qty < 5)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nFlat Rate Photo Name Rider have a minimum quantity of 5. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 1;
			} else {
			if (qty >= 5 && qty < 10 ) {
				newPrice = 19.95 }
			if (qty >= 10 && qty < 15) {
				newPrice = 18.50 }
			if (qty >= 15 && qty < 25) {
				newPrice = 17.95 }
			if (qty >= 25) {
				newPrice = 15.95 }
			}
		}
	// --------------------------------------
	//nr-a, nr-b, nr-c	
		if (whichitem == "Agent Riders")
		{		
				
			// validates minimum agent rider qty
			if (qty < 5)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'.\nAgent riders have a minimum quantity of 5. Please enter a valid quantity and then hit the "UPDATE" link on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				// checks for valid qty so checkout can be allowed
				invalidQty = 1;
			} else
			{		
				if (qty >= 5 && qty <= 9 && size == "6x18") {
					newPrice = 8.95 }
				if (qty >= 10 && qty <=14 && size == "6x18") {
					newPrice = 7.75 }
				if (qty >= 15 && qty <= 24 && size == "6x18") {
					newPrice = 6.50 }
				if (qty >= 25 && qty <= 49 && size == "6x18") {
					newPrice = 5.75 }
				if (qty >= 50 && size == "6x18") {
					newPrice = 4.95 }
//nr-d, nr-e
				if (qty >= 5 && qty <= 9 && size == "8x18") {
					newPrice = 9.95 }
				if (qty >= 10 && qty <= 14 && size == "8x18") {
					newPrice = 8.95 }
				if (qty >= 15 && qty <= 24 && size == "8x18") {
					newPrice = 7.95 }
				if (qty >= 25 && qty < 49 && size == "8x18") {
					newPrice = 5.95 }
				if (qty >= 50 && size == "8x18") {
					newPrice = 5.50 }
//nr-f, nr-g, nr-h


				if (qty >= 5 && qty <= 9 && size == "6x24") {
					newPrice = 9.95 }
				if (qty >= 10 && qty <= 14 && size == "6x24") {
					newPrice = 8.95 }
				if (qty >= 15 && qty <= 24 && size == "6x24") {
					newPrice = 7.95 }
				if (qty >= 25 && qty <= 49 && size == "6x24") {
					newPrice = 5.95}
				if (qty >= 50 && size == "6x24") {
					newPrice = 5.5 }
					
				if (qty >= 5 && qty <= 9 && size == "6 x 24") {
					newPrice = 4.88 }
				if (qty >= 10 && qty <= 14 && size == "6 x 24") {
					newPrice = 4.88 }
				if (qty >= 15 && qty <= 24 && size == "6 x 24") {
					newPrice = 4.88 }
				if (qty >= 25 && qty <= 49 && size == "6 x 24") {
					newPrice = 4.88}
				if (qty >= 50 && size == "6 x 24") {
					newPrice = 4.88 }					
					
					
			}
		} 

//nr-ar, nr-br, nr-cr
		if (whichitem == "Reflective Riders")
		{					
			// validates minimum agent rider qty
			if (qty < 5)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'.\nReflective Agent riders have a minimum quantity of 5. Please enter a valid quantity and then hit the "UPDATE" link on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				// checks for valid qty so checkout can be allowed
				invalidQty = 1;
			} else
			{
				if (qty >= 5 && qty <= 9 && size == "6x18") {
					newPrice = 16.95 }
				if (qty >= 10 && qty <=14 && size == "6x18") {
					newPrice = 14.95 }
				if (qty >= 15 && qty <= 24 && size == "6x18") {
					newPrice = 13.95 }
				if (qty >= 25 && size == "6x18") {
					newPrice = 12.95 }
				
//nr-dr, nr-er
				if (qty >= 5 && qty <= 9 && size == "8x18") {
					newPrice = 17.95 }
				if (qty >= 10 && qty <= 14 && size == "8x18") {
					newPrice = 16.95 }
				if (qty >= 15 && qty <= 24 && size == "8x18") {
					newPrice = 15.95 }
				if (qty >= 25 && size == "8x18") {
					newPrice = 13.95 }
				
//nr-fr, nr-gr, nr-hr
				if (qty >= 5 && qty <= 9 && size == "6x24") {
					newPrice = 17.95 }
				if (qty >= 10 && qty <= 14 && size == "6x24") {
					newPrice = 16.95 }
				if (qty >= 15 && qty <= 24 && size == "6x24") {
					newPrice = 15.95 }
				if (qty >= 25 && size == "6x24") {
					newPrice = 13.95 }
			}
		} 

		if (whichitem == "Message Riders")
		{
	 		if (size == "4x18")
			{
				totalMsgqty = getCookie('totalMsgqty18');

				// validates Message rider qty
				if (totalMsgqty < 5)
				{
					alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nYou need to order '+(5 - parseInt(totalMsgqty))+' additional 4x18 message riders to meet the minimum quantity of 5. You will not be allowed to checkout until this is corrected. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart OR return to the Message Riders order page to add additional riders.');
					// sets flag for incorrect qty
					turnItemRed = 1;
					invalidQty = 1;
				} else
				{ 
					if (totalMsgqty >= 5 && totalMsgqty < 10 ) {
						newPrice = 4.25 }
					if (totalMsgqty >= 10) {
						newPrice = 3.60 }
				}
			}
				
			if (size == "6x24")
			{
				totalMsgqty = getCookie('totalMsgqty24');
				// validates Message rider qty
				if (totalMsgqty < 5)
				{
					alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nYou need to order '+(5 - parseInt(totalMsgqty))+' additional 6x24 message riders to meet the minimum quantity of 5. You will not be allowed to checkout until this is corrected. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart OR return to the Message Riders order page to add additional riders.');
					// sets flag for incorrect qty
					turnItemRed = 1;
					invalidQty = 1;
				} else
				{
					if (totalMsgqty >= 5 && totalMsgqty < 10 ) {
						newPrice = 4.50 }
					if (totalMsgqty >= 10) {
						newPrice = 3.85 }
				}
			}
			
			
			if (size == "6x28")
			{
				totalMsgqty = getCookie('totalMsgqty28');
				// validates Message rider qty
				if (totalMsgqty < 5)
				{
					alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nYou need to order '+(5 - parseInt(totalMsgqty))+' additional 6x28  message riders to meet the minimum quantity of 5. You will not be allowed to checkout until this is corrected. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart OR return to the Message Riders order page to add additional riders.');
					// sets flag for incorrect qty
					turnItemRed = 1;
					invalidQty = 1;
				} else
				{
					if (totalMsgqty >= 5 && totalMsgqty < 10 ) {
						newPrice = 5.50 }
					if (totalMsgqty >= 10) {
						newPrice = 4.95 }
				}
			}
			
			
		}
		
		
if (whichitem == "Steel Message Riders")
		{
			if (size == "4x18")
			{
				totalMsgqty = getCookie('totalMsgqty18');
				// validates Message rider qty
				if (totalMsgqty < 1)
				{
					alert('Please enter a valid quantity.');
					// sets flag for incorrect qty
					turnItemRed = 1;
					invalidQty = 1;
				} else
				{
					if (totalMsgqty >= 1) {
						newPrice = 3.50 }
				}
			}
				
			if (size == "6x24")
			{
				totalMsgqty = getCookie('totalMsgqty24');
				// validates Message rider qty
				if (totalMsgqty < 1)
				{
					alert('Please enter a valid quantity.');
					// sets flag for incorrect qty
					turnItemRed = 1;
					invalidQty = 1;
				} else
				{
					if (totalMsgqty >= 1) {
						newPrice = 3.75 }
				}
			}
			
			
			if (size == "6x28")
			{
				totalMsgqty = getCookie('totalMsgqty28');
				// validates Message rider qty
				if (totalMsgqty < 1)
				{
					alert('Please enter a valid quantity.');
					// sets flag for incorrect qty
					turnItemRed = 1;
					invalidQty = 1;
				} else
				{
					if (totalMsgqty >= 1) {
						newPrice = 4.25 }
				}
			}
			
			
		}		
		
		
		if (whichitem == "Message Riders - Bilingual")
		{			
			if (size == "6x24")
			{
				totalMsgqty = getCookie('totalMsgqty24');
				// validates Message rider qty
				if (totalMsgqty < 5)
				{
					alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nYou need to order '+(5 - parseInt(totalMsgqty))+' additional 6x24 message riders to meet the minimum quantity of 5. You will not be allowed to checkout until this is corrected. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart OR return to the Message Riders order page to add additional riders.');
					// sets flag for incorrect qty
					turnItemRed = 1;
					invalidQty = 1;
				} else
				{
					if (totalMsgqty >= 5 && totalMsgqty < 10 ) {
						newPrice = 4.50 }
					if (totalMsgqty >= 10) {
						newPrice = 3.85 }
				}
			}			
			if (size == "6x28")
			{
				totalMsgqty = getCookie('totalMsgqty28');
				// validates Message rider qty
				if (totalMsgqty < 5)
				{
					alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nYou need to order '+(5 - parseInt(totalMsgqty))+' additional 6x28  message riders to meet the minimum quantity of 5. You will not be allowed to checkout until this is corrected. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart OR return to the Message Riders order page to add additional riders.');
					// sets flag for incorrect qty
					turnItemRed = 1;
					invalidQty = 1;
				} else
				{
					if (totalMsgqty >= 5 && totalMsgqty < 10 ) {
						newPrice = 5.50 }
					if (totalMsgqty >= 10) {
						newPrice = 4.95 }
				}
			}			
		}

		if (whichitem == "Magnetic Riders")
		{					

			// validates minimum agent rider qty
			if (qty < 5)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nMagnetic Riders have a minimum quantity of 5. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
	
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 1;
			} else
			{	if (qty >= 5 && qty <= 9) {
					newPrice = 4.95 }
				if (qty >= 10 && qty <=14) {
					newPrice = 4.50 }
				if (qty >= 14 && qty <=24) {
					newPrice = 3.75 }
				if (qty >= 25) {
					newPrice = 3.25 }
			}
		}
 
		if (whichitem == "Pennant")
		{	if (size == "30'")
			{	newPrice = 4.99 }
			if (size == "100'")
			{	newPrice = 14.99 }
        	}

		if (whichitem == "Banner")
		{	if (size == "3'x5'")
			{	newPrice = 34.95 }
			if (size == "3'x10'")
			{	newPrice = 59.95 }
		} 

        if (whichitem == "PP Open House")
		{	totalOHPPqty = getCookie('totalOHPPqty');

			if (totalOHPPqty >= 1 && totalOHPPqty < 3 ) {
				newPrice = 32.50 }
			if (totalOHPPqty >= 3 && totalOHPPqty < 5) {
				newPrice = 29.50 }
			if (totalOHPPqty >= 5) {
				newPrice = 24.50 }
		}
		
		// formats output to 2 decimals using formatDecimal()
		newPrice = formatDecimal(newPrice, true, 2);
		return newPrice;
	}

//-------------------------------------------------------------------------------------------------------------------------------	
// getPriceitem() calculates price as ? function of qty and item
function getPriceitem(qty,item)
	{	newPrice = 0;


	//CODED BY JO FOR UBuildIt 03/11/0007

		if (item == "UBSP-S1824")
		{	
			if (qty < 5)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nUBuildIt Project Sign Panels have a minimum quantity of 5. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 1;
			} else {
			if (qty >= 5 && qty < 10 ) {
				newPrice = 19.95 }
			if (qty >= 10 && qty < 15) {
				newPrice = 17.95 }
			if (qty >= 15 && qty < 25 ) {
				newPrice = 16.95 }
			if (qty >= 25 && qty < 50) {
				newPrice = 14.95 }
			if (qty >= 50 && qty < 100) {
				newPrice = 13.95 }
			if (qty >= 100) {
				newPrice = 11.95 }
			}
		}
		
		
		if (item == "UBSP-R1824")
		{	
			if (qty < 5)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nUBuildIt Project Sign Panels have a minimum quantity of 5. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 1;
			} else {
			if (qty >= 5 && qty < 10 ) {
				newPrice = 56.95 }
			if (qty >= 10 && qty < 15) {
				newPrice = 42.95 }
			if (qty >= 15 && qty < 25 ) {
				newPrice = 38.95 }
			if (qty >= 25 && qty < 50) {
				newPrice = 34.95 }
			if (qty >= 50 && qty < 100) {
				newPrice = 29.95 }
			if (qty >= 100) {
				newPrice = 24.95 }
			}
		}		
		
		

		if (item == "UBSP-T1824")
		{	
			if (qty < 5)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nUBuildIt Project Sign Panels have a minimum quantity of 5. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 1;
			} else {
			if (qty >= 5 && qty < 10 ) {
				newPrice = 12.95 }
			if (qty >= 10 && qty < 15) {
				newPrice = 10.95 }
			if (qty >= 15 && qty < 25 ) {
				newPrice = 9.95 }
			if (qty >= 25 && qty < 50) {
				newPrice = 8.95 }
			if (qty >= 50 && qty < 100) {
				newPrice = 7.95 }
			if (qty >= 100) {
				newPrice = 7.10 }
			}
		}

		if (item == "UBSC-2")
		{	
			if (qty < 1)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nUBuildIt Sidewalk Frame & Panels have a minimum quantity of 1. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 0;
			} else {
			if (qty >= 1 && qty < 2) {
				newPrice = 149.95 }
			if (qty >= 2 && qty < 3) {
				newPrice = 129.95 }				
			if (qty >= 3) {
				newPrice = 119.95 }
			}
		}

		if (item == "UBSCP-1")
		{	
			if (qty < 1)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nUBuildIt Sidewalk Frame & Panels have a minimum quantity of 1. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 0;
			} else {
			if (qty >= 1 ) {
				newPrice = 32.50 }
			}
		}

/*		if (item == "UBCH-T924")
		{	
			if (qty < 5)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nUBuildIt Directional Signs have a minimum quantity of 5. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 1;
			} else {
			if (qty >= 5 && qty < 10 ) {
				newPrice = 7.95 }
			if (qty >= 10 && qty < 15) {
				newPrice = 6.95 }
			if (qty >= 15 && qty < 25 ) {
				newPrice = 6.50}
			if (qty >= 25 && qty < 50) {
				newPrice = 6.25 }
			if (qty >= 50 && qty < 100) {
				newPrice = 5.95 }
			if (qty >= 100) {
				newPrice = 5.25 }
			}
		}
*/
		if (item == "UBCH-T924")
		{	
			if (qty < 5)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nUBuildIt Directional Signs have a minimum quantity of 5. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 1;
			} else {
			if (qty >= 5 && qty < 10 ) {
				newPrice = 7.95 }
			if (qty >= 10 && qty < 15) {
				newPrice = 6.95 }
			if (qty >= 15 && qty < 25 ) {
				newPrice = 6.50}
			if (qty >= 25 && qty < 50) {
				newPrice = 6.25 }
			if (qty >= 50 && qty < 100) {
				newPrice = 5.95 }
			if (qty >= 100) {
				newPrice = 5.25 }
			}
		}
	



		if (item == "UBRM-T924")
		{	
			if (qty < 5)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nUBuildIt Directional Signs have a minimum quantity of 5. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 1;
			} else {
			if (qty >= 5 && qty < 10 ) {
				newPrice = 7.95 }
			if (qty >= 10 && qty < 15) {
				newPrice = 6.95 }
			if (qty >= 15 && qty < 25 ) {
				newPrice = 6.50}
			if (qty >= 25 && qty < 50) {
				newPrice = 6.25 }
			if (qty >= 50 && qty < 100) {
				newPrice = 5.95 }
			if (qty >= 100) {
				newPrice = 5.25 }
			}
		}
		
		if (item == "UBIE-T924")
		{	
			if (qty < 5)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nUBuildIt Directional Signs have a minimum quantity of 5. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 1;
			} else {
			if (qty >= 5 && qty < 10 ) {
				newPrice = 7.95 }
			if (qty >= 10 && qty < 15) {
				newPrice = 6.95 }
			if (qty >= 15 && qty < 25 ) {
				newPrice = 6.50}
			if (qty >= 25 && qty < 50) {
				newPrice = 6.25 }
			if (qty >= 50 && qty < 100) {
				newPrice = 5.95 }
			if (qty >= 100) {
				newPrice = 5.25 }
			}
		}		
//=============

		if (item == "UBCH-S624")
		{	
			if (qty < 1)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nUBuildIt Message Panels have a minimum quantity of 1. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 0;
			} else {
			if (qty >= 1 ) {
				newPrice = 5.95 }
			}
		}

		if (item == "UBRM-S624")
		{	
			if (qty < 1)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nUBuildIt Message Panels have a minimum quantity of 1. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 0;
			} else {
			if (qty >= 1 ) {
				newPrice = 5.95 }
			}
		}

		if (item == "UBIE-S624")
		{	
			if (qty < 1)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nUBuildIt Message Panels have a minimum quantity of 1. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 0;
			} else {
			if (qty >= 1 ) {
				newPrice = 5.95 }
			}
		}

		if (item == "UBAST-S624")
		{	
			if (qty < 1)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nUBuildIt Message Panels have a minimum quantity of 1. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 0;
			} else {
			if (qty >= 1 ) {
				newPrice = 29.95 }
			}
		}

		if (item == "UBCS-RG")
		{	
			if (qty < 5)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nUBuildIt Stakes have a minimum quantity of 5. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 0;
			} else {
			if (qty >= 5 ) {
				newPrice = 1.25 }
			}
		}
		
		if (item == "UBCS-HD")
		{	
			if (qty < 5)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nUBuildIt Stakes have a minimum quantity of 5. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 0;
			} else {
			if (qty >= 5 ) {
				newPrice = 2.00 }
			}
		}		

		if (item == "UBCS-SD")
		{	
			if (qty < 5)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nUBuildIt Stakes have a minimum quantity of 5. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 0;
			} else {
			if (qty >= 5 ) {
				newPrice = 4.50 }
			}
		}
		
		if (item == "UBP-EZPost")
		{	
			if (qty < 1)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nUBuildIt E Z Posts have a minimum quantity of 1. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 0;
			} else {
			if (qty >= 1 ) {
				newPrice = 54.88 }
			}
		}
		
		if (item == "UBBADP")
		{	
			if (qty < 1)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nUBuildIt Banners have a minimum quantity of 1. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 0;
			} else {
			if (qty >= 1 && qty < 3) {
				newPrice = 95.00 }
			if (qty >= 3) {
				newPrice = 75.00 }
			}
		}

		if (item == "UBINFO")
		{	
			if (qty < 1)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nUBuildIt TriFold dispensers have a minimum quantity of 1. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 0;
			} else {
			if (qty >= 1 ) {
				newPrice = 14.98 }
			}
		}

		if (item == "UBSOLAR")
		{	
			if (qty < 1)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nUBuildIt Solar dispensers have a minimum quantity of 1. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 0;
			} else {
			if (qty >= 1 ) {
				newPrice = 19.98 }
			}
		}	
//Smart Sales Tools JO 3/20/007		



		if (item == "SSTSP-T1824")
		{	
			if (qty < 10)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nSmart Sales Tools Sign Panels have a minimum quantity of 10. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 1;
			} else {
			if (qty >= 10 && qty < 15 ) {
				newPrice = 14.95 }
			if (qty >= 15 && qty < 25 ) {
				newPrice = 10.95 }
			if (qty >= 25 && qty < 50) {
				newPrice = 7.5 }
			if (qty >= 50) {
				newPrice = 5.25 }
			}
		}

		if (item == "SSTOH-T924")
		{	
			if (qty < 10)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nSST Panels have a minimum quantity of 10. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 0;
			} else {
			if (qty >= 10 && qty < 15 ) {
				newPrice = 9.50 }
			if (qty >= 15 && qty < 25 ) {
				newPrice = 6.75 }
			if (qty >= 25 && qty < 50) {
				newPrice = 5.95 }
			if (qty >= 50) {
				newPrice = 4.95 }
			}
		}

		if (item == "SSTR-T624-CF")
		{	
			if (qty < 10)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nSST Riders have a minimum quantity of 10. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 0;
			} else {
			if (qty >= 10 && qty < 15 ) {
				newPrice = 8.50 }
			if (qty >= 15 && qty < 25 ) {
				newPrice = 5.95 }
			if (qty >= 25 && qty < 50) {
				newPrice = 5.5 }
			if (qty >= 50) {
				newPrice = 4.50 }
			}
		}

		if (item == "SSTR-T624-F24")
		{	
			if (qty < 10)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nSST Riders have a minimum quantity of 10. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 0;
			} else {
			if (qty >= 10 && qty < 15 ) {
				newPrice = 8.50 }
			if (qty >= 15 && qty < 25 ) {
				newPrice = 5.95 }
			if (qty >= 25 && qty < 50) {
				newPrice = 5.5 }
			if (qty >= 50) {
				newPrice = 4.50 }
			}
		}

		if (item == "SST-Handy")
		{	
			if (qty < 4)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nHandy Post have a minimum quantity of 4. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 0;
			} else {
			if (qty >= 4 ) {
				newPrice = 19.98 }
			}
		}

		if (item == "SST-Colonial")
		{	
			if (qty < 4)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nColonial Post have a minimum quantity of 4. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 0;
			} else {
			if (qty >= 4 ) {
				newPrice = 24.98 }
			}
		}
		
		if (item == "SSTCS-RG")
		{	
			if (qty < 1)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nCoro Stakes have a minimum quantity of 1. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 0;
			} else {
			if (qty >= 1 ) {
				newPrice = 1.25 }
			}
		}		

		if (item == "SSTCS-HD")
		{	
			if (qty < 1)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nCoro Stakes have a minimum quantity of 1. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 0;
			} else {
			if (qty >= 1 ) {
				newPrice = 2.50 }
			}
		}
		
		if (item == "SSTCS-SD")
		{	
			if (qty < 1)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nCoro Stakes have a minimum quantity of 1. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 0;
			} else {
			if (qty >= 1 ) {
				newPrice = 5.95 }
			}
		}		

		if (item == "SSTCS-R")
		{	
			if (qty < 1)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nNumber Sets have a minimum quantity of 1. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 0;
			} else {
			if (qty >= 1 ) {
				newPrice = 9.50 }
			}
		}


		if (item == "SSTCS-S")
		{	
			if (qty < 1)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nNumber Sets have a minimum quantity of 1. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 0;
			} else {
			if (qty >= 1 ) {
				newPrice = 9.50 }
			}
		}

//================READY

		if (item == "RRSP-S1824")
		{	
			if (qty < 5)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nReady Real Estate signs have a minimum quantity of 5. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 1;
			} else {
			if (qty >= 5 && qty < 10 ) {
				newPrice = 34.50 }
			if (qty >= 10 && qty < 15 ) {
				newPrice = 23.95 }
			if (qty >= 15 && qty < 25 ) {
				newPrice = 19.50 }
			if (qty >= 25 && qty < 50) {
				newPrice = 14.50 }
			if (qty >= 50 && qty < 100) {
				newPrice = 11.75 }
			if (qty >= 100) {
				newPrice = 9.95 }
			}
		}

		if (item == "RRSP-S2028")
		{	
			if (qty < 5)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nReady Real Estate signs have a minimum quantity of 5. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 1;
			} else {
			if (qty >= 5 && qty < 10 ) {
				newPrice = 38.95 }
			if (qty >= 10 && qty < 15 ) {
				newPrice = 31.5 }
			if (qty >= 15 && qty < 25 ) {
				newPrice = 22.95 }
			if (qty >= 25 && qty < 50) {
				newPrice = 18.25 }
			if (qty >= 50 && qty < 100) {
				newPrice = 14.75 }
			if (qty >= 100) {
				newPrice = 13.95 }
			}
		}

		if (item == "RRSP-R1824")
		{	
			if (qty < 5)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nReady Real Estate signs have a minimum quantity of 5. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 1;
			} else {
			if (qty >= 5 && qty < 10 ) {
				newPrice = 49.95 }
			if (qty >= 10 && qty < 15 ) {
				newPrice = 39.95 }
			if (qty >= 15 && qty < 25 ) {
				newPrice = 35.50 }
			if (qty >= 25 && qty < 50) {
				newPrice = 29.95 }
			if (qty >= 50 && qty < 100) {
				newPrice = 27.75 }
			if (qty >= 100) {
				newPrice = 25.95 }
			}
		}

		if (item == "RRSP-R2028")
		{	
			if (qty < 5)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nReady Real Estate signs have a minimum quantity of 5. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 1;
			} else {
			if (qty >= 5 && qty < 10 ) {
				newPrice = 59.95 }
			if (qty >= 10 && qty < 15 ) {
				newPrice = 53.50 }
			if (qty >= 15 && qty < 25 ) {
				newPrice = 46.95 }
			if (qty >= 25 && qty < 50) {
				newPrice = 39.95 }
			if (qty >= 50 && qty < 100) {
				newPrice = 37.50 }
			if (qty >= 100) {
				newPrice = 35.95 }
			}
		}

		if (item == "RRCA-S1824")
		{	
			if (qty < 5)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nReady Real Estate combos have a minimum quantity of 5. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 1;
			} else {
			if (qty >= 5 && qty < 10 ) {
				newPrice = 48.50 }
			if (qty >= 10 && qty < 15 ) {
				newPrice = 37.95 }
			if (qty >= 15 && qty < 25 ) {
				newPrice = 33.50 }
			if (qty >= 25 && qty < 50) {
				newPrice = 28.50 }
			if (qty >= 50 && qty < 100) {
				newPrice = 25.75 }
			if (qty >= 100) {
				newPrice = 23.95 }
			}
		}

		if (item == "RRCA-S2028")
		{	
			if (qty < 5)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nReady Real Estate combos have a minimum quantity of 5. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 1;
			} else {
if (qty >= 5 && qty < 10 ) {
				newPrice = 54.95 }
			if (qty >= 10 && qty < 15 ) {
				newPrice = 47.50 }
			if (qty >= 15 && qty < 25 ) {
				newPrice = 38.95 }
			if (qty >= 25 && qty < 50) {
				newPrice = 34.25 }
			if (qty >= 50 && qty < 100) {
				newPrice = 30.75 }
			if (qty >= 100) {
				newPrice = 29.25 }
			}
		}

		if (item == "RRCA-R1824")
		{	
			if (qty < 5)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nReady Real Estate combos have a minimum quantity of 5. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 1;
			} else {
			if (qty >= 5 && qty < 10 ) {
				newPrice = 63.95 }
			if (qty >= 10 && qty < 15 ) {
				newPrice = 53.95 }
			if (qty >= 15 && qty < 25 ) {
				newPrice = 49.50 }
			if (qty >= 25 && qty < 50) {
				newPrice = 43.95 }
			if (qty >= 50 && qty < 100) {
				newPrice = 41.75 }
			if (qty >= 100) {
				newPrice = 39.95 }
			}
		}

		if (item == "RRCA-R2028")
		{	
			if (qty < 5)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nReady Real Estate combos have a minimum quantity of 5. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 1;
			} else {
			if (qty >= 5 && qty < 10 ) {
				newPrice = 75.95 }
			if (qty >= 10 && qty < 15 ) {
				newPrice = 69.50 }
			if (qty >= 15 && qty < 25 ) {
				newPrice = 62.95 }
			if (qty >= 25 && qty < 50) {
				newPrice = 55.95 }
			if (qty >= 50 && qty < 100) {
				newPrice = 53.50 }
			if (qty >= 100) {
				newPrice = 51.95 }
			}
		}

		if (item == "RRDAFS")
		{	
			if (qty < 5)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nReady Real Estate DIRECTIONALS have a minimum quantity of 5. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 1;
			} else {
			if (qty >= 5 && qty < 10 ) {
				newPrice = 18.95 }
			if (qty >= 10 && qty < 15 ) {
				newPrice = 13.95 }
			if (qty >= 15 && qty < 25 ) {
				newPrice = 11.95 }
			if (qty >= 25 && qty < 50) {
				newPrice = 8.95 }
			if (qty >= 50) {
				newPrice = 6.75 }
			}
		}
		
		if (item == "RRDAOH")
		{	
			if (qty < 5)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nReady Real Estate DIRECTIONALS have a minimum quantity of 5. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 1;
			} else {
			if (qty >= 5 && qty < 10 ) {
				newPrice = 18.95 }
			if (qty >= 10 && qty < 15 ) {
				newPrice = 13.95 }
			if (qty >= 15 && qty < 25 ) {
				newPrice = 11.95 }
			if (qty >= 25 && qty < 50) {
				newPrice = 8.95 }
			if (qty >= 50) {
				newPrice = 6.75 }
			}
		}		

		if (item == "RRDAFS_I")
		{	
			if (qty < 5)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nReady Real Estate DIRECTIONALS have a minimum quantity of 5. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 1;
			} else {
			if (qty >= 5 && qty < 10 ) {
				newPrice = 24.95 }
			if (qty >= 10 && qty < 15 ) {
				newPrice = 17.50 }
			if (qty >= 15 && qty < 25 ) {
				newPrice = 13.95 }
			if (qty >= 25 && qty < 50) {
				newPrice = 9.50 }
			if (qty >= 50) {
				newPrice = 6.75 }
			}
		}

		if (item == "RRDAOH_I")
		{	
			if (qty < 5)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nReady Real Estate DIRECTIONALS have a minimum quantity of 5. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 1;
			} else {
			if (qty >= 5 && qty < 10 ) {
				newPrice = 24.95 }
			if (qty >= 10 && qty < 15 ) {
				newPrice = 17.50 }
			if (qty >= 15 && qty < 25 ) {
				newPrice = 13.95 }
			if (qty >= 25 && qty < 50) {
				newPrice = 9.50 }
			if (qty >= 50) {
				newPrice = 6.75 }
			}
		}

		if (item == "RRDHFS")
		{	
			if (qty < 5)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nReady Real Estate DIRECTIONALS have a minimum quantity of 5. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 1;
			} else {
			if (qty >= 5 && qty < 10 ) {
				newPrice = 18.95 }
			if (qty >= 10 && qty < 15 ) {
				newPrice = 13.95 }
			if (qty >= 15 && qty < 25 ) {
				newPrice = 11.95 }
			if (qty >= 25 && qty < 50) {
				newPrice = 8.95 }
			if (qty >= 50) {
				newPrice = 6.75 }
			}
		}
		
		if (item == "RRDHOH")
		{	
			if (qty < 5)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nReady Real Estate DIRECTIONALS have a minimum quantity of 5. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 1;
			} else {
			if (qty >= 5 && qty < 10 ) {
				newPrice = 18.95 }
			if (qty >= 10 && qty < 15 ) {
				newPrice = 13.95 }
			if (qty >= 15 && qty < 25 ) {
				newPrice = 11.95 }
			if (qty >= 25 && qty < 50) {
				newPrice = 8.95 }
			if (qty >= 50) {
				newPrice = 6.75 }
			}
		}		

		if (item == "RRDHFS_I")
		{	
			if (qty < 5)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nReady Real Estate DIRECTIONALS have a minimum quantity of 5. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 1;
			} else {
			if (qty >= 5 && qty < 10 ) {
				newPrice = 24.95 }
			if (qty >= 10 && qty < 15 ) {
				newPrice = 17.50 }
			if (qty >= 15 && qty < 25 ) {
				newPrice = 13.95 }
			if (qty >= 25 && qty < 50) {
				newPrice = 9.50 }
			if (qty >= 50) {
				newPrice = 6.75 }
			}
		}

		if (item == "RRDHOH_I")
		{	
			if (qty < 5)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nReady Real Estate DIRECTIONALS have a minimum quantity of 5. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 1;
			} else {
			if (qty >= 5 && qty < 10 ) {
				newPrice = 24.95 }
			if (qty >= 10 && qty < 15 ) {
				newPrice = 17.50 }
			if (qty >= 15 && qty < 25 ) {
				newPrice = 13.95 }
			if (qty >= 25 && qty < 50) {
				newPrice = 9.50 }
			if (qty >= 50) {
				newPrice = 6.75 }
			}
		}

		if (item == "RRDRFS")
		{	
			if (qty < 5)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nReady Real Estate DIRECTIONALS have a minimum quantity of 5. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 1;
			} else {
			if (qty >= 5 && qty < 10 ) {
				newPrice = 16.95 }
			if (qty >= 10 && qty < 15 ) {
				newPrice = 12.50}
			if (qty >= 15 && qty < 25 ) {
				newPrice = 9.95 }
			if (qty >= 25 && qty < 50) {
				newPrice = 7.25 }
			if (qty >= 50) {
				newPrice = 5.95 }
			}
		}
		
		if (item == "RRDROH")
		{	
			if (qty < 5)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nReady Real Estate DIRECTIONALS have a minimum quantity of 5. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 1;
			} else {
			if (qty >= 5 && qty < 10 ) {
				newPrice = 16.95 }
			if (qty >= 10 && qty < 15 ) {
				newPrice = 12.50}
			if (qty >= 15 && qty < 25 ) {
				newPrice = 9.95 }
			if (qty >= 25 && qty < 50) {
				newPrice = 7.25 }
			if (qty >= 50) {
				newPrice = 5.95 }
			}
		}		

		if (item == "RRDRFS_I")
		{	
			if (qty < 5)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nReady Real Estate DIRECTIONALS have a minimum quantity of 5. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 1;
			} else {
			if (qty >= 5 && qty < 10 ) {
				newPrice = 22.95 }
			if (qty >= 10 && qty < 15 ) {
				newPrice = 15.95 }
			if (qty >= 15 && qty < 25 ) {
				newPrice = 11.50 }
			if (qty >= 25 && qty < 50) {
				newPrice = 7.95 }
			if (qty >= 50) {
				newPrice = 5.95 }
			}
		}

		if (item == "RRDROH_I")
		{	
			if (qty < 5)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nReady Real Estate DIRECTIONALS have a minimum quantity of 5. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 1;
			} else {
			if (qty >= 5 && qty < 10 ) {
				newPrice = 22.95 }
			if (qty >= 10 && qty < 15 ) {
				newPrice = 15.95 }
			if (qty >= 15 && qty < 25 ) {
				newPrice = 11.50 }
			if (qty >= 25 && qty < 50) {
				newPrice = 7.95 }
			if (qty >= 50) {
				newPrice = 5.95 }
			}
		}

		if (item == "RRCAM")
		{	
			if (qty < 2)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nReady Real Estate MAGNETICS have a minimum quantity of 2. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 1;
			} else {
			if (qty >= 2 && qty < 4 ) {
				newPrice = 24.50 }
			if (qty >= 4 && qty < 10 ) {
				newPrice = 21.95 }
			if (qty >= 10 && qty < 18 ) {
				newPrice = 17.50 }
			if (qty >= 18 && qty < 24) {
				newPrice = 12.95 }
			if (qty >= 24 && qty < 50) {
				newPrice = 9.50 }				
			if (qty >= 50) {
				newPrice = 6.50 }
			}
		}

		if (item == "RRAAM")
		{	
			if (qty < 2)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nReady Real Estate MAGNETICS have a minimum quantity of 2. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 1;
			} else {
			if (qty >= 2 && qty < 4 ) {
				newPrice = 24.50 }
			if (qty >= 4 && qty < 10 ) {
				newPrice = 21.95 }
			if (qty >= 10 && qty < 18 ) {
				newPrice = 17.50 }
			if (qty >= 18 && qty < 24) {
				newPrice = 12.95 }
			if (qty >= 24 && qty < 50) {
				newPrice = 9.50 }				
			if (qty >= 50) {
				newPrice = 6.50 }
			}
		}

		if (item == "RRPAM")
		{	
			if (qty < 2)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nReady Real Estate MAGNETICS have a minimum quantity of 2. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 1;
			} else {
			if (qty >= 2 && qty < 4 ) {
				newPrice = 29.50 }
			if (qty >= 4 && qty < 6 ) {
				newPrice = 23.50 }			
			if (qty >= 6) {
				newPrice = 19.95 }
			}
		}

		if (item == "RROHC")
		{	
			if (qty < 5)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nReady Real Estate DIRECTIONALS have a minimum quantity of 5. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 1;
			} else {
			if (qty >= 5 && qty < 10 ) {
				newPrice = 39.95 }
			if (qty >= 10 && qty < 15 ) {
				newPrice = 35.00 }
			if (qty >= 15 && qty < 25 ) {
				newPrice = 31.95 }
			if (qty >= 25 && qty < 50) {
				newPrice = 29.95 }
			if (qty >= 50) {
				newPrice = 28.50 }
			}
		}

		if (item == "RROHC_I")
		{	
			if (qty < 5)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nReady Real Estate DIRECTIONALS have a minimum quantity of 5. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 1;
			} else {
			if (qty >= 5 && qty < 10 ) {
				newPrice = 49.50 }
			if (qty >= 10 && qty < 15 ) {
				newPrice = 39.95 }
			if (qty >= 15 && qty < 25 ) {
				newPrice = 35.00 }
			if (qty >= 25 && qty < 50) {
				newPrice = 31.50 }
			if (qty >= 50) {
				newPrice = 29.95 }
			}
		}

		if (item == "RRCA-1824")
		{	
			if (qty < 5)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nReady Real Estate Frames have a minimum quantity of 5. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 0;
			} else {
			if (qty >= 5 ) {
				newPrice = 14.00 }
			}
		}

		if (item == "RRCA-2028")
		{	
			if (qty < 5)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nReady Real Estate Frames have a minimum quantity of 5. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 0;
			} else {
			if (qty >= 5 ) {
				newPrice = 16.00 }
			}
		}

		if (item == "RRCS-RG")
		{	
			if (qty < 1)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nReady Real Estate Stakes have a minimum quantity of 1. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 0;
			} else {
			if (qty >= 1 ) {
				newPrice = 1.25 }
			}
		}

		if (item == "RRCS-HD")
		{	
			if (qty < 1)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nReady Real Estate Stakes have a minimum quantity of 1. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 0;
			} else {
			if (qty >= 1 ) {
				newPrice = 2.50 }
			}
		}

		if (item == "RRCS-SD")
		{	
			if (qty < 1)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nReady Real Estate Stakes have a minimum quantity of 1. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 0;
			} else {
			if (qty >= 1 ) {
				newPrice = 5.95 }
			}
		}

		if (item == "RRP-EZPost")
		{	
			if (qty < 1)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nReady Real Estate Posts have a minimum quantity of 1. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 0;
			} else {
			if (qty >= 1 ) {
				newPrice = 54.88 }
			}
		}

		if (item.substr(0,5) == "RRSNR")
		{	
			if (qty < 5)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nReady Real Estate Name Riders have a minimum quantity of 5. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 1;
			} else {
			if (qty >= 5 && qty < 10 ) {
				newPrice = 9.75 }
			if (qty >= 10 && qty < 15 ) {
				newPrice = 8.75 }
			if (qty >= 15 && qty < 25 ) {
				newPrice = 7.75 }
			if (qty >= 25 && qty < 50) {
				newPrice = 5.75 }
			if (qty >= 50) {
				newPrice = 4.95 }
			}
		}

		if (item.substr(0,5) == "RRRNR")
		{	
			if (qty < 5)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nReady Real Estate Name Riders have a minimum quantity of 5. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 1;
			} else {
			if (qty >= 5 && qty < 10 ) {
				newPrice = 16.95 }
			if (qty >= 10 && qty < 15 ) {
				newPrice = 15.95 }
			if (qty >= 15 && qty < 25 ) {
				newPrice = 14.95 }
			if (qty >= 25 && qty < 50) {
				newPrice = 12.95 }
			if (qty >= 50) {
				newPrice = 11.95 }
			}
		}

		if (item == "RRPNR-CMS")
		{	
			if (qty < 5)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nReady Real Estate Name Riders have a minimum quantity of 5. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 1;
			} else {
			if (qty >= 5 && qty < 10 ) {
				newPrice = 23.25 }
			if (qty >= 10 && qty < 15 ) {
				newPrice = 21.75 }
			if (qty >= 15 && qty < 25 ) {
				newPrice = 20.75 }
			if (qty >= 25 && qty < 50) {
				newPrice = 18.95 }
			if (qty >= 50) {
				newPrice = 16.95 }
			}
		}

		if (item == "RRPNR-CMR")
		{	
			if (qty < 5)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nReady Real Estate Name Riders have a minimum quantity of 5. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 1;
			} else {
			if (qty >= 5 && qty < 10 ) {
				newPrice = 30.45 }
			if (qty >= 10 && qty < 15 ) {
				newPrice = 28.95 }
			if (qty >= 15 && qty < 25 ) {
				newPrice = 27.95 }
			if (qty >= 25 && qty < 50) {
				newPrice = 26.15 }
			if (qty >= 50) {
				newPrice = 23.95 }
			}
		}





	
//-----------------------------------------------------------------------------------------------------


	//CODED BY ALF FOR FLAT RATE 07/13/06
		if (item == "FRYSP")
		{	
			if (qty < 15)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nFlat Rate Yard Sign Panels have a minimum quantity of 15. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 1;
			} else {
			if (qty >= 15 && qty < 25 ) {
				newPrice = 48.95 }
			if (qty >= 25 && qty < 50) {
				newPrice = 37.20 }
			if (qty >= 50) {
				newPrice = 29.95 }
			}
		}
		if (item == "FROHSP")
		{	
			if (qty < 10)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nFlat Rate Open House Sign Panels have a minimum quantity of 10. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 1;
			} else {
			if (qty >= 10 && qty < 15 ) {
				newPrice = 26.20 }
			if (qty >= 15 && qty < 25) {
				newPrice = 21.20 }
			if (qty >= 25) {
				newPrice = 16.00 }
			}
		}
		if (item == "FROHSC")
		{	if (qty >= 10 && qty < 15 ) {
				newPrice = 42.70 }
			if (qty >= 15 && qty < 25) {
				newPrice = 37.50 }
			if (qty >= 25) {
				newPrice = 32.50 }
		}
		if (item == "FREDHC")
		{	if (qty >= 25 && qty < 50 ) {
				newPrice = 10.95 }
			if (qty >= 50 && qty < 100) {
				newPrice = 2.50 }
			if (qty >= 100) {
				newPrice = 6.95 }
		}
		if (item == "FREDAC")
		{	if (qty >= 25 && qty < 50 ) {
				newPrice = 10.95 }
			if (qty >= 50 && qty < 100) {
				newPrice = 8.50 }
			if (qty >= 100) {
				newPrice = 6.95 }
		}
		
		if (item == "PEZPost")
		{	if (qty >= 2 && qty < 4 ) {
				newPrice = 59.95 }
			if (qty >= 4) {
				newPrice = 54.88 }
		}
		if (item == "INFOPAK")
		{	if (qty >= 1 && qty < 5 ) {
				newPrice = 6.99 }
			if (qty >= 5 && qty < 10) {
				newPrice = 5.99 }
			if (qty >= 10 && qty < 24) {
				newPrice = 5.50 }
			if (qty >= 24 ) {
				newPrice = 4.99 }
		}
	// --------------------------------------
	if (item == "FRNRF")
		{
			if (qty < 5)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nFlat Rate Name Rider Style F have a minimum quantity of 5. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 1;
			} else {
			if (qty >= 5 && qty < 10 ) {
				newPrice = 9.75 }
			if (qty >= 10 && qty < 15) {
				newPrice = 8.75 }
			if (qty >= 15 && qty < 25) {
				newPrice = 7.75 }
			if (qty >= 25) {
				newPrice = 5.75 }
			}
		}
		
		if (item == "FRNRG")
		{
			if (qty < 5)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nFlat Rate Name Rider Style G have a minimum quantity of 5. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 1;
			} else {
			if (qty >= 5 && qty < 10 ) {
				newPrice = 9.75 }
			if (qty >= 10 && qty < 15) {
				newPrice = 8.75 }
			if (qty >= 15 && qty < 25) {
				newPrice = 7.75 }
			if (qty >= 25) {
				newPrice = 5.75 }
			}
		}
		
		if (item == "FRNRH")
		{
			if (qty < 5)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nFlat Rate Name Rider Style H have a minimum quantity of 5. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 1;
			} else {
			if (qty >= 5 && qty < 10 ) {
				newPrice = 9.75 }
			if (qty >= 10 && qty < 15) {
				newPrice = 8.75 }
			if (qty >= 15 && qty < 25) {
				newPrice = 7.75 }
			if (qty >= 25) {
				newPrice = 5.75 }
			}
		}
		
		if (item == "FRNRI")
		{
			if (qty < 5)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nFlat Rate Name Rider Style I have a minimum quantity of 5. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 1;
			} else {
			if (qty >= 5 && qty < 10 ) {
				newPrice = 9.75 }
			if (qty >= 10 && qty < 15) {
				newPrice = 8.75 }
			if (qty >= 15 && qty < 25) {
				newPrice = 7.75 }
			if (qty >= 25) {
				newPrice = 5.75 }
			}
		}
		
		if (item == "FRNRFR")
		{
			if (qty < 5)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nFlat Rate Reflective Name Rider Style F have a minimum quantity of 5. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 1;
			} else {
			if (qty >= 5 && qty < 10 ) {
				newPrice = 16.95 }
			if (qty >= 10 && qty < 15) {
				newPrice = 15.95 }
			if (qty >= 15 && qty < 25) {
				newPrice = 14.95 }
			if (qty >= 25) {
				newPrice = 12.95 }
			}
		}
		
		if (item == "FRNRGR")
		{
			if (qty < 5)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nFlat Rate Reflective Name Rider Style G have a minimum quantity of 5. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 1;
			} else {
			if (qty >= 5 && qty < 10 ) {
				newPrice = 16.95 }
			if (qty >= 10 && qty < 15) {
				newPrice = 15.95 }
			if (qty >= 15 && qty < 25) {
				newPrice = 14.95 }
			if (qty >= 25) {
				newPrice = 12.95 }
			}
		}
		
		if (item == "FRNRHR")
		{
			if (qty < 5)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nFlat Rate Reflective Name Rider Style H have a minimum quantity of 5. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 1;
			} else {
			if (qty >= 5 && qty < 10 ) {
				newPrice = 16.95 }
			if (qty >= 10 && qty < 15) {
				newPrice = 15.95 }
			if (qty >= 15 && qty < 25) {
				newPrice = 14.95 }
			if (qty >= 25) {
				newPrice = 12.95 }
			}
		}
		
		if (item == "FRNRIR")
		{
			if (qty < 5)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nFlat Rate Reflective Name Rider Style I have a minimum quantity of 5. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 1;
			} else {
			if (qty >= 5 && qty < 10 ) {
				newPrice = 16.95 }
			if (qty >= 10 && qty < 15) {
				newPrice = 15.95 }
			if (qty >= 15 && qty < 25) {
				newPrice = 14.95 }
			if (qty >= 25) {
				newPrice = 12.95 }
			}
		}
		
		if (item == "FRPNR")
		{
			if (qty < 5)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nFlat Rate Photo Name Rider have a minimum quantity of 5. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 1;
			} else {
			if (qty >= 5 && qty < 10 ) {
				newPrice = 19.95 }
			if (qty >= 10 && qty < 15) {
				newPrice = 18.50 }
			if (qty >= 15 && qty < 25) {
				newPrice = 17.95 }
			if (qty >= 25) {
				newPrice = 15.95 }
			}
		}	
	// --------------------------------------
	//Coded by Alf 11/06/05
	if (item == "UCMG-0820")
		{
			if (qty >=1 && qty <3) {
				newPrice = 28.00 }
			if (qty >=3 && qty <5)  {
				newPrice = 18.00 }
			if (qty >=5)  {
				newPrice = 12.00 }
		}
	//Coded by Alf 11/20/05
	if (item == "UCCPOH-1824")
		{
			if (qty >=1 && qty <6) {
				newPrice = 12.50 }
			if (qty >=6 && qty <11)  {
				newPrice = 9.95 }
			if (qty >=11 && qty <16)  {
				newPrice = 7.95 }
			if (qty >=16 && qty <26)  {
				newPrice = 6.95 }
			if (qty >=26)  {
				newPrice = 5.95 }
		}
	//Coded by Alf 11/20/05
	if (item == "UCCPFS-1824")
		{
			if (qty >=1 && qty <6) {
				newPrice = 12.50 }
			if (qty >=6 && qty <11)  {
				newPrice = 9.95 }
			if (qty >=11 && qty <16)  {
				newPrice = 7.95 }
			if (qty >=16 && qty <26)  {
				newPrice = 6.95 }
			if (qty >=26)  {
				newPrice = 5.95 }
		}
	//Coded by Alf 11/20/05
	if (item == "UCCPOH-1824-S")
		{
			if (qty >=1 && qty <6) {
				newPrice = 14.50 }
			if (qty >=6 && qty <11)  {
				newPrice = 11.95 }
			if (qty >=11 && qty <16)  {
				newPrice = 9.95 }
			if (qty >=16 && qty <26)  {
				newPrice = 8.95 }
			if (qty >=26)  {
				newPrice = 7.95 }
		}
	//Coded by Alf 11/20/05
	if (item == "UCCPFS-1824-S")
		{
			if (qty >=1 && qty <6) {
				newPrice = 14.50 }
			if (qty >=6 && qty <11)  {
				newPrice = 11.95 }
			if (qty >=11 && qty <16)  {
				newPrice = 9.95 }
			if (qty >=16 && qty <26)  {
				newPrice = 8.95 }
			if (qty >=26)  {
				newPrice = 7.95 }
		}
	//Coded by Alf 11/20/05
	if (item == "UCHFS-S")
		{
			if (qty >=1 && qty <6) {
				newPrice = 14.95 }
			if (qty >=6 && qty <11)  {
				newPrice = 12.50 }
			if (qty >=11 && qty <16)  {
				newPrice = 10.95 }
			if (qty >=16 && qty <26)  {
				newPrice = 8.95 }
			if (qty >=26)  {
				newPrice = 6.95 }
		}
	//Coded by Alf 11/20/05
	if (item == "UCHOH-S")
		{
			if (qty >=1 && qty <6) {
				newPrice = 14.95 }
			if (qty >=6 && qty <11)  {
				newPrice = 12.50 }
			if (qty >=11 && qty <16)  {
				newPrice = 10.95 }
			if (qty >=16 && qty <26)  {
				newPrice = 8.95 }
			if (qty >=26)  {
				newPrice = 6.95 }
		}
	//Coded by Alf 11/20/05
	if (item == "UCAFS-S")
		{
			if (qty >=1 && qty <6) {
				newPrice = 14.95 }
			if (qty >=6 && qty <11)  {
				newPrice = 12.50 }
			if (qty >=11 && qty <16)  {
				newPrice = 10.95 }
			if (qty >=16 && qty <26)  {
				newPrice = 8.95 }
			if (qty >=26)  {
				newPrice = 6.95 }
		}
	//Coded by Alf 11/20/05
	if (item == "UCAOH-S")
		{
			if (qty >=1 && qty <6) {
				newPrice = 14.95 }
			if (qty >=6 && qty <11)  {
				newPrice = 12.50 }
			if (qty >=11 && qty <16)  {
				newPrice = 10.95 }
			if (qty >=16 && qty <26)  {
				newPrice = 8.95 }
			if (qty >=26)  {
				newPrice = 6.95 }
		}
	//Coded by Alf 11/06/05
	if (item == "UCOHSP")
		{
			if (qty >=1 && qty <6) {
				newPrice = 19.95 }
			if (qty >=6 && qty <11)  {
				newPrice = 15.95 }
			if (qty >=11 && qty <16)  {
				newPrice = 13.95 }
			if (qty >=16 && qty <26)  {
				newPrice = 12.95 }
			if (qty >=26)  {
				newPrice = 10.50 }
		}
	//Coded by Alf 11/06/05
	if (item == "UCOHSC")
		{
			if (qty >=1 && qty <6) {
				newPrice = 32.95 }
			if (qty >=6 && qty <11)  {
				newPrice = 28.95 }
			if (qty >=11 && qty <16)  {
				newPrice = 25.95 }
			if (qty >=16 && qty <26)  {
				newPrice = 24.95 }
			if (qty >=26)  {
				newPrice = 22.50 }
		}
	//Coded by Alf 11/17/05
	if (item == "UCSP-1824")
		{
			if (qty >=1 && qty <6) {
				newPrice = 14.95 }
			if (qty >=6 && qty <11)  {
				newPrice = 10.95 }
			if (qty >=11 && qty <16)  {
				newPrice = 9.50 }
			if (qty >=16 && qty <26)  {
				newPrice = 8.95 }
			if (qty >=26)  {
				newPrice = 7.50 }
		}
	//Coded by Alf 11/17/05
	if (item == "UCSP-2028")
		{
			if (qty >=1 && qty <6) {
				newPrice = 16.50 }
			if (qty >=6 && qty <11)  {
				newPrice = 13.50 }
			if (qty >=11 && qty <16)  {
				newPrice = 12.50 }
			if (qty >=16 && qty <26)  {
				newPrice = 11.95 }
			if (qty >=26)  {
				newPrice = 10.25 }
		}
	//Coded by Alf 11/17/05
	if (item == "UCSP-2436")
		{
			if (qty >=1 && qty <6) {
				newPrice = 52.95 }
			if (qty >=6 && qty <11)  {
				newPrice = 39.95 }
			if (qty >=11 && qty <16)  {
				newPrice = 33.50 }
			if (qty >=16 && qty <26)  {
				newPrice = 25.95 }
			if (qty >=26)  {
				newPrice = 18.95 }
		}
	//Coded by Alf 11/17/05
	if (item == "UCES-1824")
		{
			if (qty >=1 && qty <6) {
				newPrice = 26.95 }
			if (qty >=6 && qty <11)  {
				newPrice = 20.95 }
			if (qty >=11 && qty <16)  {
				newPrice = 19.95 }
			if (qty >=16 && qty <26)  {
				newPrice = 18.95 }
			if (qty >=26)  {
				newPrice = 16.95 }
		}
	//Coded by Alf 11/17/05
	if (item == "UCES-2028")
		{
			if (qty >=1 && qty <6) {
				newPrice = 29.95 }
			if (qty >=6 && qty <11)  {
				newPrice = 24.50 }
			if (qty >=11 && qty <16)  {
				newPrice = 22.50 }
			if (qty >=16 && qty <26)  {
				newPrice = 21.95 }
			if (qty >=26)  {
				newPrice = 19.95 }
		}
	//Coded by Alf 11/17/05
	if (item == "UCCA-1824")
		{
			if (qty >=1 && qty <6) {
				newPrice = 29.95 }
			if (qty >=6 && qty <11)  {
				newPrice = 24.50 }
			if (qty >=11 && qty <16)  {
				newPrice = 22.50 }
			if (qty >=16 && qty <26)  {
				newPrice = 21.95 }
			if (qty >=26)  {
				newPrice = 19.95 }
		}
	//Coded by Alf 11/17/05
	if (item == "UCCA-2028")
		{
			if (qty >=1 && qty <6) {
				newPrice = 33.95 }
			if (qty >=6 && qty <11)  {
				newPrice = 26.50 }
			if (qty >=11 && qty <16)  {
				newPrice = 25.50 }
			if (qty >=16 && qty <26)  {
				newPrice = 24.95 }
			if (qty >=26)  {
				newPrice = 22.95 }
		}
	//Coded by Alf 11/17/05
	if (item == "UCCA-2436")
		{
			if (qty >=1 && qty <6) {
				newPrice = 74.95 }
			if (qty >=6 && qty <11)  {
				newPrice = 59.95 }
			if (qty >=11 && qty <16)  {
				newPrice = 51.50 }
			if (qty >=16 && qty <26)  {
				newPrice = 43.95 }
			if (qty >=26)  {
				newPrice = 36.95 }
		}
	//Coded by Alf 11/17/05
	if (item == "UCCR-1824")
		{
			if (qty >=1 && qty <6) {
				newPrice = 31.95 }
			if (qty >=6 && qty <11)  {
				newPrice = 26.50 }
			if (qty >=11 && qty <16)  {
				newPrice = 24.95 }
			if (qty >=16 && qty <26)  {
				newPrice = 23.95 }
			if (qty >=26)  {
				newPrice = 21.95 }
		}
	//Coded by Alf 11/17/05
	if (item == "UCCR-2028")
		{
			if (qty >=1 && qty <6) {
				newPrice = 34.95 }
			if (qty >=6 && qty <11)  {
				newPrice = 28.50 }
			if (qty >=11 && qty <16)  {
				newPrice = 26.95 }
			if (qty >=16 && qty <26)  {
				newPrice = 25.95 }
			if (qty >=26)  {
				newPrice = 23.95 }
		}
	//Coded by Alf 11/20/05
	if (item == "UCDPOH-0924")
		{
			if (qty >=1 && qty <6) {
				newPrice = 14.95 }
			if (qty >=6 && qty <11)  {
				newPrice = 12.50 }
			if (qty >=11 && qty <16)  {
				newPrice = 10.95 }
			if (qty >=16 && qty <26)  {
				newPrice = 8.95 }
			if (qty >=26)  {
				newPrice = 6.95 }
		}
	//Coded by Alf 11/20/05
	if (item == "UCDPFS-0924")
		{
			if (qty >=1 && qty <6) {
				newPrice = 14.95 }
			if (qty >=6 && qty <11)  {
				newPrice = 12.50 }
			if (qty >=11 && qty <16)  {
				newPrice = 10.95 }
			if (qty >=16 && qty <26)  {
				newPrice = 8.95 }
			if (qty >=26)  {
				newPrice = 6.95 }
		}
	//Coded by Alf 11/20/05
	if (item == "UCDPOH-0924-S")
		{
			if (qty >=1 && qty <6) {
				newPrice = 19.95 }
			if (qty >=6 && qty <11)  {
				newPrice = 17.50 }
			if (qty >=11 && qty <16)  {
				newPrice = 14.95 }
			if (qty >=16 && qty <26)  {
				newPrice = 12.95 }
			if (qty >=26)  {
				newPrice = 10.95 }
		}
	//Coded by Alf 11/20/05
	if (item == "UCDPFS-0924-S")
		{
			if (qty >=1 && qty <6) {
				newPrice = 19.95 }
			if (qty >=6 && qty <11)  {
				newPrice = 17.50 }
			if (qty >=11 && qty <16)  {
				newPrice = 14.95 }
			if (qty >=16 && qty <26)  {
				newPrice = 12.95 }
			if (qty >=26)  {
				newPrice = 10.95 }
		}
	//Coded by Alf 11/20/05
	if (item == "UCNR-F")
		{
			if (qty >=1 && qty <6) {
				newPrice = 8.95 }
			if (qty >=6 && qty <11)  {
				newPrice = 6.50 }
			if (qty >=11 && qty <16)  {
				newPrice = 5.95 }
			if (qty >=16)  {
				newPrice = 5.25 }
		}
	//Coded by Alf 11/20/05
	if (item == "UCNR-J")
		{
			if (qty >=1 && qty <6) {
				newPrice = 9.95 }
			if (qty >=6 && qty <11)  {
				newPrice = 7.50 }
			if (qty >=11 && qty <16)  {
				newPrice = 6.95 }
			if (qty >=16)  {
				newPrice = 6.25 }
		}
	//Coded by Alf 11/20/05
	if (item == "UCNR-FR")
		{
			if (qty >=1 && qty <6) {
				newPrice = 16.95 }
			if (qty >=6 && qty <11)  {
				newPrice = 15.95 }
			if (qty >=11 && qty <16)  {
				newPrice = 14.95 }
			if (qty >=16)  {
				newPrice = 12.95 }
		}
	//Coded by Alf 11/20/05
	if (item == "UCNR-JR")
		{
			if (qty >=1 && qty <6) {
				newPrice = 17.95 }
			if (qty >=6 && qty <11)  {
				newPrice = 16.95 }
			if (qty >=11 && qty <16)  {
				newPrice = 15.95 }
			if (qty >=16)  {
				newPrice = 13.95 }
		}
	//Coded by Alf 11/20/05
	if (item == "UCBOH")
		{
			if (qty >=1 && qty <3) {
				newPrice = 95.00 }
			if (qty >=3 && qty <5)  {
				newPrice = 75.00 }
			if (qty >=5 && qty <7)  {
				newPrice = 65.00 }
			if (qty >=7 && qty <13)  {
				newPrice = 59.95 }
			if (qty >=13)  {
				newPrice = 46.95 }
		}
	//Coded by Alf 11/20/05
	if (item == "UCBFS")
		{
			if (qty >=1 && qty <3) {
				newPrice = 95.00 }
			if (qty >=3 && qty <5)  {
				newPrice = 75.00 }
			if (qty >=5 && qty <7)  {
				newPrice = 65.00 }
			if (qty >=7 && qty <13)  {
				newPrice = 59.95 }
			if (qty >=13)  {
				newPrice = 46.95 }
		}
	//Coded by Alf 11/20/05
	if (item == "UCCP-3248")
		{
			if (qty >=1 && qty <3) {
				newPrice = 90.00 }
			if (qty >=3 && qty <5)  {
				newPrice = 66.00 }
			if (qty >=5 && qty <7)  {
				newPrice = 53.40 }
			if (qty >=7 && qty <13)  {
				newPrice = 35.95 }
			if (qty >=13)  {
				newPrice = 21.50 }
		}
	//Coded by Alf 11/20/05
	if (item == "UCCP-4848")
		{
			if (qty >=1 && qty <3) {
				newPrice = 107.95 }
			if (qty >=3 && qty <5)  {
				newPrice = 78.00 }
			if (qty >=5 && qty <7)  {
				newPrice = 66.00 }
			if (qty >=7 && qty <13)  {
				newPrice = 47.50 }
			if (qty >=13)  {
				newPrice = 28.95 }
		}
	//Coded by Alf 11/20/05
	if (item == "UCCP-4896")
		{
			if (qty >=1 && qty <3) {
				newPrice = 132.00 }
			if (qty >=3 && qty <5)  {
				newPrice = 114.00 }
			if (qty >=5 && qty <7)  {
				newPrice = 102.00 }
			if (qty >=7 && qty <13)  {
				newPrice = 71.95 }
			if (qty >=13)  {
				newPrice = 41.95 }
		}
	//Coded by Alf 11/20/05
	if (item == "UCWD-3248")
		{
			if (qty >=1 && qty <3) {
				newPrice = 99.50 }
			if (qty >=3 && qty <5)  {
				newPrice = 90.00 }
			if (qty >=5 && qty <7)  {
				newPrice = 75.00 }
			if (qty >=7 && qty <13)  {
				newPrice = 55.00 }
			if (qty >=13)  {
				newPrice = 45.00 }
		}
	//Coded by Alf 11/20/05
	if (item == "UCWD-4848")
		{
			if (qty >=1 && qty <3) {
				newPrice = 125.50 }
			if (qty >=3 && qty <5)  {
				newPrice = 115.00 }
			if (qty >=5 && qty <7)  {
				newPrice = 105.00 }
			if (qty >=7 && qty <13)  {
				newPrice = 80.00 }
			if (qty >=13)  {
				newPrice = 62.50 }
		}
	//Coded by Alf 11/20/05
	if (item == "UCWD-4896")
		{
			if (qty >=1 && qty <3) {
				newPrice = 245.50 }
			if (qty >=3 && qty <5)  {
				newPrice = 225.00 }
			if (qty >=5 && qty <7)  {
				newPrice = 195.00 }
			if (qty >=7 && qty <13)  {
				newPrice = 145.00 }
			if (qty >=13)  {
				newPrice = 110.00 }
		}
	//Coded by Alf 11/20/05
	if (item == "UCMS-3248-F")
		{
			if (qty >=1 && qty <3) {
				newPrice = 159.95 }
			if (qty >=3 && qty <5)  {
				newPrice = 139.50 }
			if (qty >=5 && qty <7)  {
				newPrice = 125.00 }
			if (qty >=7 && qty <13)  {
				newPrice = 115.00 }
			if (qty >=13)  {
				newPrice = 105.00 }
		}
	//aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
	
	if (whichitem == "INFOLine")
		{	if (item == "call_rider")
			{	if (qty >= 1 && qty <= 3) {
					newPrice = 9.95 }
				if (qty >= 4 && qty <= 6) {
					newPrice = 7.95 }
				if (qty >= 7 && qty <= 12) {
					newPrice = 5.95 }
				if (qty >= 13 && qty <= 18) {
					newPrice = 5.50 }														
				if (qty >= 25 ) {
					newPrice = 4.75 }
			}	
				
			if (item == "Info Line Rider")
			{	if (qty >= 1 && qty <= 3) {
					newPrice = 9.95 }
				if (qty >= 4 && qty <= 6) {
					newPrice = 7.95 }
				if (qty >= 7 && qty <= 12) {
					newPrice = 5.95 }
				if (qty >= 13 && qty <= 18) {
					newPrice = 5.50 }														
				if (qty >= 25 ) {
					newPrice = 4.75 }
			}

			if (item == "info3726")
			{	if (qty >= 1 && qty <= 3) {
					newPrice = 9.95 }
				if (qty >= 4 && qty <= 6) {
					newPrice = 7.95 }
				if (qty >= 7 && qty <= 12) {
					newPrice = 5.95 }
				if (qty >= 13 && qty <= 18) {
					newPrice = 5.50 }														
				if (qty >= 25 ) {
					newPrice = 4.75 }
			}

			if (item == "info4636")
			{	if (qty >= 1 && qty <= 3) {
					newPrice = 9.95 }
				if (qty >= 4 && qty <= 6) {
					newPrice = 7.95 }
				if (qty >= 7 && qty <= 12) {
					newPrice = 5.95 }
				if (qty >= 13 && qty <= 18) {
					newPrice = 5.50 }														
				if (qty >= 25 ) {
					newPrice = 4.75 }
			}

			if (item == "info7653")
			{	if (qty >= 1 && qty <= 3) {
					newPrice = 9.95 }
				if (qty >= 4 && qty <= 6) {
					newPrice = 7.95 }
				if (qty >= 7 && qty <= 12) {
					newPrice = 5.95 }
				if (qty >= 13 && qty <= 18) {
					newPrice = 5.50 }														
				if (qty >= 25 ) {
					newPrice = 4.75 }
			}

			if (item == "info3751")
			{	if (qty >= 1 && qty <= 3) {
					newPrice = 9.95 }
				if (qty >= 4 && qty <= 6) {
					newPrice = 7.95 }
				if (qty >= 7 && qty <= 12) {
					newPrice = 5.95 }
				if (qty >= 13 && qty <= 18) {
					newPrice = 5.50 }														
				if (qty >= 25 ) {
					newPrice = 4.75 }
			}

			if (item == "info6060" || item == "info-EXIT" || item == "info-ERA" || item == "info-REMAX")
			{	if (qty >= 1 && qty <= 3) {
					newPrice = 9.95 }
				if (qty >= 4 && qty <= 6) {
					newPrice = 7.95 }
				if (qty >= 7 && qty <= 12) {
					newPrice = 5.95 }
				if (qty >= 13 && qty <= 18) {
					newPrice = 5.50 }														
				if (qty >= 25 ) {
					newPrice = 4.75 }
			}

			if (item == "infocust_rider")
			{	if (qty >= 1 && qty <= 11) {
					newPrice = 8.95 }
				if (qty >= 12 && qty <= 17) {
					newPrice = 6.95 }
				if (qty >= 18 && qty <= 24) {
					newPrice = 6.50 }														
				if (qty >= 25 ) {
					newPrice = 5.25 }
			}	

			if (item == "number_set")
			{	newPrice = 8.95
			}


	
		}
	
	
	
	
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@	
	
	
	
	if (whichitem == "Accessories")
		{	if (item == "INFOPAK")
			{	if (qty >= 1 && qty <= 2) {
					newPrice = 6.99 }
				if (qty >= 3 ) {
					newPrice = 5.99 }
			}
			
			if (item == "INFOTUBE")
			{	if (qty >= 1 && qty <= 2) {
					newPrice = 9.95 }
				if (qty >= 3 ) {
					newPrice = 8.99 }
			}
			
			if (item == "ARROWS")
			{	newPrice = 3.95
			}

			if (item == "SLIPCOVER")
			{	if (qty >= 1 && qty <= 5) {
					newPrice = 3.99 }
				if (qty >= 6 ) {
					newPrice = 2.99 }
			}
	
			if (item == "FASTENERS")
			{	newPrice = 3.99
			}
			if (item == "INFO TO GO")
			{	if (qty >= 1 && qty <= 2) {
					newPrice = 19.95 }
				if (qty >= 3 ) {
					newPrice = 17.95 }
			}
			if (item == "INFO BOX")
			{	if (qty >= 1 && qty <= 2) {
					newPrice = 14.95 }
				if (qty >= 3 && qty <= 5) {
					newPrice = 12.95 }				
				if (qty >= 6 ) {
					newPrice = 7.88 }
			}
			if (item == "FLYER DISPENSER")
			{	if (qty >= 1 && qty <= 2) {
					newPrice = 14.95 }
				if (qty >= 3 ) {
					newPrice = 12.95 }
			}
			if (item == "INFO BOX with STAKE")
			
			// validates minimum INFO BOX with STAKE qty
			if (qty < 3)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nINFO BOX with STAKE have a minimum quantity of 3 each. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0; }
			else					
			{	if (qty >= 1 && qty <= 2) {
					newPrice = 22.98 }
				if (qty >= 3 && qty <= 5) {
					newPrice = 18.98 }				
				if (qty >= 6 ) {
					newPrice = 12.98 }
			}
			if (item == "SHURLOK")
			{	if (qty >= 1 && qty <= 2) {
					newPrice = 19.88 }
				if (qty >= 3 ) {
					newPrice = 14.88 }
			}
			if (item == "ShurLok Lever Grip")
			{	newPrice = 3.95
			}
			if (item == "ShurLok Message Tag")
			{	newPrice = 1.95
			}
			if (item == "Card Caddie")
			{	newPrice = 14.95
			}									
			
			if (item == "BrightFlyer")
			{	if (qty >= 1 && qty <= 5) {
					newPrice = 29.95 }
				if (qty >= 6 && qty <= 23) {
					newPrice = 27.95 }					
				if (qty >= 24 ) {
					newPrice = 21.95 }
			}			

			if (item == "House Flyer Dispenser")
			{	newPrice = 4.88
			}

			if (item == "Banner Hanger Kit")
			{	newPrice = 14.95
			}



			if (item == "USA Stake")
				{newPrice = 1.50 }
			if (item == "USA Frame")
				{newPrice = 10.95 }	


			if (item == "COLONIAL POST")
			{	if (qty >= 1 && qty <= 3) {
					newPrice = 34.95 }	
				if (qty >= 4 ) {
					newPrice = 24.95 }
			}
			if (item == "HANDY POST")
			{	if (qty >= 1 && qty <= 3) {
					newPrice = 29.88 }	
				if (qty >= 4 ) {
					newPrice = 19.88 }
			}
			
			if (item == "E Z POST")
			// validates minimum E Z POST qty		
	//		if (qty = -2 ) //Price change JO 2/28/2007 remove groups of 2
 //
//			{
//				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nE Z POSTS must be ordered in GROUPS OF 2. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
//				newPrice = 0; }
//			else					
			{	if (qty >= 1 && qty <=3) {
					newPrice = 59.95 }	
				if (qty >= 4 ) {
					newPrice = 54.88 }
			}		
			//##################################################
			//Coded by JO 3/24/06 to change Quantities & Prices			
	
	
			if (item == "call_rider")
			{	if (qty >= 1 && qty <= 3) {
					newPrice = 9.95 }
				if (qty >= 4 && qty <= 6) {
					newPrice = 7.95 }
				if (qty >= 7 && qty <= 12) {
					newPrice = 5.95 }
				if (qty >= 13 && qty <= 18) {
					newPrice = 5.50 }														
				if (qty >= 25 ) {
					newPrice = 4.75 }
			}

			if (item == "info_line_rider")
			{	if (qty >= 1 && qty <= 3) {
					newPrice = 9.95 }
				if (qty >= 4 && qty <= 6) {
					newPrice = 7.95 }
				if (qty >= 7 && qty <= 12) {
					newPrice = 5.95 }
				if (qty >= 13 && qty <= 18) {
					newPrice = 5.50 }														
				if (qty >= 25 ) {
					newPrice = 4.75 }
			}

			if (item == "infocust_rider")
			{	if (qty >= 6 && qty <= 11) {
					newPrice = 8.95 }
				if (qty >= 12 && qty <= 17) {
					newPrice = 6.95 }
				if (qty >= 18 && qty <= 24) {
					newPrice = 6.50 }														
				if (qty >= 25 ) {
					newPrice = 5.75 }
			}

			if (item == "number_set")
			{	newPrice = 2.99
			}






		if (item == "FSBO_local_Combo")


			// validates minimum FSBO_local_combo qty
			if (qty < 10)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nFSBO Local Products have a minimum quantity of 10 each. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0; }
			else
					
			{	if (qty >= 10 && qty <= 24) {
					newPrice = 23.25 }
				if (qty >= 25 && qty <= 49) {
					newPrice = 22.25 }				
				if (qty >= 50 ) {
					newPrice = 21.25 }
			}
			//Coded by JO 3/24/06 to change Quantities & Prices			
			if (item == "FSBO_Advertised")

			// validates minimum FSBO_local products qty
			if (qty < 10)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nFSBO Local Products have a minimum quantity of 10 each. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0; }
			else
					
			{	if (qty >= 10 && qty <= 24) {
					newPrice = 3.50 }
				if (qty >= 25 && qty <= 49) {
					newPrice = 3.00 }				
				if (qty >= 50 ) {
					newPrice = 2.50 }
			}
			//Coded by JO 3/24/06 to change Quantities & Prices			
			if (item == "FSBO_Open_House")

			// validates minimum FSBO_local products qty
			if (qty < 10)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nFSBO Local Products have a minimum quantity of 10 each. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0; }
			else

					
			{	if (qty >= 10 && qty <= 24) {
					newPrice = 3.50 }
				if (qty >= 25 && qty <= 49) {
					newPrice = 3.00 }				
				if (qty >= 50 ) {
					newPrice = 2.50 }
			}
			
			//Coded by JO 3/24/06 to change Quantities & Prices
			if (item == "step_stake")


			// validates minimum FSBO_local products qty
			if (qty < 10)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nFSBO Local Products have a minimum quantity of 10 each. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0; }
			else
					
			{	if (qty >= 10 && qty <= 24) {
					newPrice = 1.40 }
				if (qty >= 25 && qty <= 49) {
					newPrice = 1.30 }				
				if (qty >= 50 ) {
					newPrice = 1.25 }
			}
			//Coded by JO 3/24/06 to change Quantities & Prices			
			if (item == "HD_step_stake")

			// validates minimum FSBO_local products qty
			if (qty < 10)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nFSBO Local Products have a minimum quantity of 10 each. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0; }
			else
					
			{	if (qty >= 10 && qty <= 24) {
					newPrice = 2.50 }
				if (qty >= 25 && qty <= 49) {
					newPrice = 2.25 }				
				if (qty >= 50 ) {
					newPrice = 1.95 }
			}
			//Coded by JO 3/24/06 to change Quantities & Prices			
			if (item == "sold_rider")

			// validates minimum FSBO_local products qty
			if (qty < 10)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nFSBO Local Products have a minimum quantity of 10 each. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0; }
			else
			
					
			{	if (qty >= 10 && qty <= 24) {
					newPrice = 2.25 }
				if (qty >= 25 && qty <= 49) {
					newPrice = 2.00 }				
				if (qty >= 50 ) {
					newPrice = 1.75 }
			}
			//Coded by JO 3/24/06 to change Quantities & Prices			
			if (item == "blank_rider")

			// validates minimum FSBO_local products qty
			if (qty < 10)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nFSBO Local Products have a minimum quantity of 10 each. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0; }
			else
			
								
			{	if (qty >= 10 && qty <= 24) {
					newPrice = .40 }
				if (qty >= 25 && qty <= 49) {
					newPrice = .40 }				
				if (qty >= 50 ) {
					newPrice = .40 }
			}
			//Coded by JO 3/24/06 to change Quantities & Prices			
			if (item == "num_0")

			// validates minimum FSBO_local products qty
			if (qty < 50)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nVinyl Numbers have a minimum quantity of 50 each. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0; }
			else
			{	if (qty >= 50 && qty <=99) {
					newPrice = .09 }	
				if (qty >= 100 ) {
					newPrice = .09 }
			}		
			//Coded by JO 3/24/06 to change Quantities & Prices			
			if (item == "num_1")

			// validates minimum FSBO_local products qty
			if (qty < 50)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nVinyl Numbers have a minimum quantity of 50 each. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0; }
			else
			{	if (qty >= 50 && qty <=99) {
					newPrice = .09 }	
				if (qty >= 100 ) {
					newPrice = .09 }
			}		
			//Coded by JO 3/24/06 to change Quantities & Prices			
			if (item == "num_2")

			// validates minimum FSBO_local products qty
			if (qty < 50)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nVinyl Numbers have a minimum quantity of 50 each. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0; }
			else
			{	if (qty >= 50 && qty <=99) {
					newPrice = .09 }	
				if (qty >= 100 ) {
					newPrice = .09 }
			}		
			
			//Coded by JO 3/24/06 to change Quantities & Prices
			if (item == "num_3")

			// validates minimum FSBO_local products qty
			if (qty < 50)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nVinyl Numbers have a minimum quantity of 50 each. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0; }
			else
			{	if (qty >= 50 && qty <=99) {
					newPrice = .09 }	
				if (qty >= 100 ) {
					newPrice = .09 }
			}		
			
			//Coded by JO 3/24/06 to change Quantities & Prices
			if (item == "num_4")

			// validates minimum FSBO_local products qty
			if (qty < 50)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nVinyl Numbers have a minimum quantity of 50 each. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0; }
			else
			{	if (qty >= 50 && qty <=99) {
					newPrice = .09 }	
				if (qty >= 100 ) {
					newPrice = .09 }
			}		
			//Coded by JO 3/24/06 to change Quantities & Prices			
			if (item == "num_5")

			// validates minimum FSBO_local products qty
			if (qty < 50)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nVinyl Numbers have a minimum quantity of 50 each. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0; }
			else
			{	if (qty >= 50 && qty <=99) {
					newPrice = .09 }	
				if (qty >= 100 ) {
					newPrice = .09 }
			}		
			//Coded by JO 3/24/06 to change Quantities & Prices			
			if (item == "num_6")

			// validates minimum FSBO_local products qty
			if (qty < 50)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nVinyl Numbers have a minimum quantity of 50 each. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0; }
			else
			{	if (qty >= 50 && qty <=99) {
					newPrice = .09 }	
				if (qty >= 100 ) {
					newPrice = .09 }
			}		
			//Coded by JO 3/24/06 to change Quantities & Prices			
			if (item == "num_7")

			// validates minimum FSBO_local products qty
			if (qty < 50)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nVinyl Numbers have a minimum quantity of 50 each. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0; }
			else
			{	if (qty >= 50 && qty <=99) {
					newPrice = .09 }	
				if (qty >= 100 ) {
					newPrice = .09 }
			}		
			//Coded by JO 3/24/06 to change Quantities & Prices			
			if (item == "num_8")

			// validates minimum FSBO_local products qty
			if (qty < 50)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nVinyl Numbers have a minimum quantity of 50 each. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0; }
			else
			{	if (qty >= 50 && qty <=99) {
					newPrice = .09 }	
				if (qty >= 100 ) {
					newPrice = .09 }
			}	
			//Coded by JO 3/24/06 to change Quantities & Prices				
			if (item == "num_9")
			// validates minimum FSBO_local products qty

			if (qty < 50)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nVinyl Numbers have a minimum quantity of 50 each. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0; }
			else
			{	if (qty >= 50 && qty <=99) {
					newPrice = .09 }	
				if (qty >= 100 ) {
					newPrice = .09 }
			}		
			
			if (item == "cifsbo_combo")

			// validates minimum FSBO_local products qty
			if (qty < 50)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nFSBO Local Products have a minimum quantity of 50 each. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0; }
			else
			
			{	newPrice = 21.25
			}

			
			if (item == "cifsbo_advertised")

			// validates minimum FSBO_local products qty
			if (qty < 50)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nFSBO Local Products have a minimum quantity of 50 each. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0; }
			else
			
			{	newPrice = 2.50
			}

			if (item == "cifsbo_open_house")

			// validates minimum FSBO_local products qty
			if (qty < 50)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nFSBO Local Products have a minimum quantity of 50 each. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0; }
			else
			
			{	newPrice = 2.50
			}
			
			if (item == "cbanner")
			
			{	newPrice = 85.50
			}
			
			if (item == "cmagnetic")
			
			// validates minimum FSBO_local products qty
			if (qty < 2)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nFSBO Local Magnetic have a minimum quantity of 2 each. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0; }
			else
			
			{	newPrice = 24.95
			}
			//Coded by JO 3/24/06 to change Quantities & Prices			
			if (item == "cbuilder")

			// validates minimum FSBO_local products qty
			if (qty < 10)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nFSBO Local Products have a minimum quantity of 10 each. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0; }
			else
			
					
			{	if (qty >= 10 && qty <= 24) {
					newPrice = 9.95 }
				if (qty >= 25 && qty <= 49) {
					newPrice = 8.50 }				
				if (qty >= 50 ) {
					newPrice = 7.50 }
			}
			//Coded by JO 3/24/06 to change Quantities & Prices						
			if (item == "cbumper")

			// validates minimum FSBO_local products qty
			if (qty < 10)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nFSBO Local Products have a minimum quantity of 10 each. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0; }
			else
			
					
			{	if (qty >= 10 && qty <= 24) {
					newPrice = 2.00 }
				if (qty >= 25 && qty <= 49) {
					newPrice = 1.50 }				
				if (qty >= 50 ) {
					newPrice = 1.00 }
			}
		}

	
		//######################################################

//alert(whichitem + '  line 6616  ' + item);
// on 3/7/2010 remove minimums on frames by changing quantities to (1) in total qty and alert statements also commented out turnitemred and invalidqty
		if (whichitem == "Frames")
		{
	 		totalCastleFqty = getCookie('totalCastleFqty');
	 		totalCrownFqty = getCookie('totalCrownFqty');
	 		totalEsquireFqty = getCookie('totalEsquireFqty');
	 		totalUtilityFqty = getCookie('totalUtilityFqty');
	 		totalCoroFqty = getCookie('totalCoroFqty');
	 		
			if (isNaN(parseInt(totalCastleFqty)))  totalCastleFqty = 0;
			if (isNaN(parseInt(totalCrownFqty)))   totalCrownFqty = 0;
			if (isNaN(parseInt(totalEsquireFqty))) totalEsquireFqty = 0;
			if (isNaN(parseInt(totalUtilityFqty))) totalUtilityFqty = 0;
			if (isNaN(parseInt(totalCoroFqty))) totalCoroFqty = 0;			

			totalqty = parseInt(totalCastleFqty) + parseInt(totalCrownFqty) + parseInt(totalEsquireFqty) + parseInt(totalUtilityFqty);


			if (item == "USA1824")
			{	newPrice = 10.95;
			}
			if (item == "USA1218")
			{	newPrice = 1.50;
			}			
  
			if (item.substr(0,3) == "CAF")
			{

	 			totalCastleFqty = getCookie('totalCastleFqty');

				// validates Castle Frames qty
				if (parseInt(totalqty) <1)
				{
					alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nYou need to order '+(1 - parseInt(totalqty))+' additional Frames to meet the minimum quantity of 5.  \nYou will not be allowed to checkout until this is corrected.  \n \nPlease enter a valid quantity and hit the "UPDATE" feature on the shopping cart OR return to the Frames order page to add additional products.');
					// sets flag for incorrect qty
//					turnItemRed = 1;
//					invalidQty = 1;
				 } else
				 {
					
					switch (item) {
						case "CAF1824" : {
							 newPrice = 14.00;
							 break;
						}
			 			case "CAF1830" : {
							 newPrice = 16.00;
							 break;
						}
				 		case "CAF2028" : {
							 newPrice = 16.00;
							 break;
						}
				 		case "CAF2424" : {
							 newPrice = 16.00;
							 break;
						}
        	                 		case "CAF2436" : {
							 newPrice = 18.50;
							 break;
						}
				 		case "CAF2418" : {
							 newPrice = 16.50;
							 break;
						}
					}
				 	
				 }
			}

			if (item.substr(0,3) == "CRF")
			{
	 			totalCrownFqty = getCookie('totalCrownFqty');

				// validates Crown Frames qty
				if (parseInt(totalqty) < 1)
				{
					alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nYou need to order '+(1 - parseInt(totalqty))+' additional Frames to meet the minimum quantity of 5.  \nYou will not be allowed to checkout until this is corrected.  \n \nPlease enter a valid quantity and hit the "UPDATE" feature on the shopping cart OR return to the Frames order page to add additional products.');
					// sets flag for incorrect qty
//					turnItemRed = 1;
//					invalidQty = 1;
				} else {
					switch (item) {
						case "CRF1824" : {
							 newPrice = 17.00;
							 break;
						}
						case "CRF2028" : {
							 newPrice = 18.00;
							 break;
						}
 	 	                		case "CRF2424" : {
							 newPrice = 18.50;
							 break;
						}
			        		case "CRF2418" : {
							 newPrice = 20.00;
							 break;
						}
					}
				}
			}
	
			if (item.substr(0,2) == "ES")
			{
	 			totalEsquireFqty = getCookie('totalEsquireFqty');

				// validates Esquire Frames qty
				if (parseInt(totalqty) < 1)
				{
					alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nYou need to order '+(1 - parseInt(totalqty))+' additional Frames to meet the minimum quantity of 5.  \nYou will not be allowed to checkout until this is corrected.  \n \nPlease enter a valid quantity and hit the "UPDATE" feature on the shopping cart OR return to the Frames order page to add additional products.');
					// sets flag for incorrect qty
//					turnItemRed = 1;
//					invalidQty = 1;
				} else {
					switch (item) {
						case "ES1218" : {
							 newPrice = 12.00;
							 break;
						}
						case "ES1824" : {
							 newPrice = 12.50;
							 break;
						}
			        		case "ES2028" : {
							 newPrice = 14.00;
							 break;
						}
			        		case "ES2418" : {
							 newPrice = 16.00;
							 break;
						}
					}
		 		}
			}
		
			if (item.substring(0,4) == "STK0")
			{
	 			totalUtilityFqty = getCookie('totalUtilityFqty');
	
				// validates Utility Frames qty
				if (parseInt(totalqty) < 1)
				{
					alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nYou need to order '+(1 - parseInt(totalqty))+' additional Frames to meet the minimum quantity of 5.  \nYou will not be allowed to checkout until this is corrected.  \n \nPlease enter a valid quantity and hit the "UPDATE" feature on the shopping cart OR return to the Frames order page to add additional products.');
					// sets flag for incorrect qty
//					turnItemRed = 1;
//					invalidQty = 1;
				} 
				  else {
					switch (item) {
						case "STK012" : {
							 newPrice = 16.50;
							 break;
						}
						case "STK002" : {
							 newPrice = 9.75;
							 break;
						}
		        			case "STK003" : {
							 newPrice = 5.50;
							 break;
						}
		        			case "STK004" : {
							 newPrice = 8.50;
							 break;
						}
						case "STK013" : {
							 newPrice = 1.40;
							 break;
						}
						
					}
				}
			 }
			 
			if (item.substring(0,4) == "Coro" || item.substring(0,4) == "STKM")
			{
	 			totalUtilityFqty = getCookie('totalUtilityFqty');
	
				// validates Utility Frames qty
				if (parseInt(totalqty) < 1)
				{
//					alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nYou need to order '+(5 - parseInt(totalqty))+' additional Frames to meet the minimum quantity of 5.  \nYou will not be allowed to checkout until this is corrected.  \n \nPlease enter a valid quantity and hit the "UPDATE" feature on the shopping cart OR return to the Frames order page to add additional products.');
					// sets flag for incorrect qty
//					turnItemRed = 1;
//					invalidQty = 1;
				} 
				  else {
					switch (item) {
						case "CoroStakeRG" : {
							 newPrice = 1.40;
							 break;
						}
						case "CoroStakeHD" : {
							 newPrice = 2.50;
							 break;
						}
		        			case "CoroStakeSD" : {
							 newPrice = 5.95;
							 break;
						}
						case "STKMPS" : {
							 newPrice = 3.95;
							 break;
						}						

					}
				}
			 }			 
			 	
		}		
		
//alert(whichitem + '  line 6819  ' + item);
		
		if (whichitem == "Coro-Stakes")
		{
			if (item == "CoroStakeRG")
			{	newPrice = 1.40;
			}
			if (item == "CoroStakeHD")
			{	newPrice = 2.50;
			}
			if (item == "CoroStakeSD")
			{	newPrice = 5.95;
			}						
		}

		if (whichitem == "Posts")
		{
			if (item == "Colonial Post")
			{	if (qty >= 1 && qty <= 3) {
					newPrice = 34.95 }	
				if (qty >= 4 ) {
					newPrice = 24.95 }
			}
			if (item == "Handy Post")
			{	if (qty >= 1 && qty <= 3) {
					newPrice = 29.88 }	
				if (qty >= 4 ) {
					newPrice = 19.88 }
			}
			if (item == "E-Z Post")
			{	if (qty >= 1 && qty <= 3) {
					newPrice = 69.95 }	
				if (qty >= 4 ) {
					newPrice = 59.88 }
			}
			if (item == "1824 E-Z Frame")
			{	newPrice = 49.95;
			}
			if (item == "2028 E-Z Frame")
			{	newPrice = 54.95;
			}									
		}
		if (whichitem == "Decals")
		
		{	totalDecalsqty = getCookie('totalDecalsqty');

			if (totalDecalsqty >= 1 && totalDecalsqty <= 2) {
				newPrice = 4.99 }
			if (totalDecalsqty >= 3 && totalDecalsqty <= 4) {
				newPrice = 3.99 }
			if (totalDecalsqty >= 5 && totalDecalsqty <= 9) {
				newPrice = 3.50 }
			if (totalDecalsqty >= 10 ) {
				newPrice = 2.99 }
		}


		// formats output to 2 decimals using formatDecimal()
		newPrice = formatDecimal(newPrice, true, 2);
		return newPrice;
	}
//-------------------------------------------------------------------------------------------------------------------------------
	// getPhoto() calculates price as a function of qty and size and color
	function getPhoto(qty,size,color)
	{
		newPrice = 0;
		if (whichitem == "Photo Riders")
		{					

			// validates minimum agent rider qty
			if (qty < 5)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nPhoto riders have a minimum quantity of 5. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
				newPrice = 0;
	
				// sets flags for incorrect qty
				turnItemRed = 1;
				invalidQty = 1;
			} else
			{
//PNR-BWM			
				if ((qty >= 5) && (qty <= 9) && (size == "6x24") && (color == "Black & White")) {
					newPrice = 15.50 }
				if ((qty >= 10) && (qty <= 14) && (size == "6x24") && (color == "Black & White")) {
					newPrice = 13.95 }
				if ((qty >= 15) && (qty <= 24) && (size == "6x24") && (color == "Black & White")) {
					newPrice = 12.95 }
				if ((qty >= 25) && (size == "6x24") && (color == "Black & White")) {
					newPrice = 11.95 }
//PNR-CM
				if ((qty >= 5) && (qty <= 9) && (size == "6x24") && (color == "Color ")) {
					newPrice = 23.25 }
				if ((qty >= 10) && (qty <= 14) && (size == "6x24") && (color == "Color ")) {
					newPrice = 21.75 }
				if ((qty >= 15) && (qty <= 24) && (size == "6x24") && (color == "Color ")) {
					newPrice = 20.75 }
				if ((qty >= 25) && (size == "6x24") && (color == "Color ")) {
					newPrice = 18.95 }
//PNR-CL			
				if ((qty >= 5) && (qty <= 9) && (size == "8x24") && (color == "Color ")) {
					newPrice = 24.95 }
				if ((qty >= 10) && (qty <= 14) && (size == "8x24") && (color == "Color ")) {
					newPrice = 23.75 }
	       		        if ((qty >= 15) && (qty <= 24) && (size == "8x24") && (color == "Color ")) {
					newPrice = 22.50 }
				if ((qty >= 25) && (size == "8x24") && (color == "Color ")) {
					newPrice = 20.75 }
			
				if ((qty >= 5) && (qty <= 9) && (size == "8x24") && (color == "Black & White")) {
					newPrice = 17.95 }
				if ((qty >= 10) && (qty <= 14) && (size == "8x24") && (color == "Black & White")) {
					newPrice = 16.50 }
	       		        if ((qty >= 15) && (qty <= 24) && (size == "8x24") && (color == "Black & White")) {
					newPrice = 14.95 }
				if ((qty >= 25) && (size == "8x24") && (color == "Black & White")) {
					newPrice = 13.95 }
			}
 		} 

		// formats output to 2 decimals using formatDecimal()
		newPrice = formatDecimal(newPrice, true, 2);
		return newPrice;
        }

//-------------------------------------------------------------------------------------------------------------------------------
	// getPriceDir() calculates price as a function of qty, size, item, and copy2
	function getPriceDir(qty,size,item,copy)
	{
		newPrice = 0;

		if (whichitem == "Directionals")
		{	

			// validates Directionals qty
				
			if (size == "ESQUIRE")
			{
				totalEsquireqty = getCookie('totalEsquireqty');
				qty = totalEsquireqty;
	
				// validates minimum directional qty
				if (totalEsquireqty < 5)
				{
					// alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nDirectionals have a minimum quantity of 5. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
					newPrice = 0;
	
					// sets flags for incorrect qty
					turnItemRed = 1;
					invalidQty = 1;
				} else
				{
					if (totalEsquireqty  >= 5 && totalEsquireqty  <= 9) { 
					 	if (item == "Combo") {newPrice = 19.75 }
						if (item == "Frame") {newPrice = 11.50 }
					}
					if (totalEsquireqty  >= 10 && totalEsquireqty <= 14) {
					 	if (item == "Combo") {newPrice = 17.55 }
						if (item == "Frame") {newPrice = 10.95 }
					}
					if (totalEsquireqty  >= 15 && totalEsquireqty <= 24) {
					 	if (item == "Combo") {newPrice = 16.45 }
						if (item == "Frame") {newPrice = 9.95 }
					}
					if (totalEsquireqty  >= 25 && totalEsquireqty <= 49){
					 	if (item == "Combo") {newPrice = 15.35 }
						if (item == "Frame") {newPrice = 9.50 }
					}

					if (totalEsquireqty  >= 50) {
					 	if (item == "Combo") {newPrice = 14.50 }
						if (item == "Frame") {newPrice = 9.50 }
					}

				}
			}

			if (size == "SIDEWALK")
			{
				totalSidewalkqty = getCookie('totalSidewalkqty');
				qty = totalSidewalkqty;

				// validates minimum directional qty
				if (totalSidewalkqty < 5)
				{
					 alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nDirectionals have a minimum quantity of 5. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
					newPrice = 0;
	
					// sets flags for incorrect qty
					turnItemRed = 1;
					invalidQty = 1;
				} else
				{
					if (totalSidewalkqty  >= 5 && totalSidewalkqty <= 9) { 
					 	if (item == "Combo") {newPrice = 23.95 }
						if (item == "Frame") {newPrice = 12.50 }
					}
					if (totalSidewalkqty  >= 10 && totalSidewalkqty <= 14) {
					 	if (item == "Combo") {newPrice = 22.95 }
						if (item == "Frame") {newPrice = 12.00 }
					}
					if (totalSidewalkqty  >= 15 && totalSidewalkqty <= 24) {
					 	if (item == "Combo") {newPrice = 21.75 }
						if (item == "Frame") {newPrice = 11.75 }
					}
					if (totalSidewalkqty  >= 25 && totalSidewalkqty <= 49) {
					 	if (item == "Combo") {newPrice = 20.65 }
						if (item == "Frame") {newPrice = 11.25 }
					}
						if (totalSidewalkqty  >= 50) {
					 	if (item == "Combo") {newPrice = 19.95 }
						if (item == "Frame") {newPrice = 11.25 }

					}
				}
			}

			if (size == "CASTLE")
			{
				totalCastleqty = getCookie('totalCastleqty');
				qty = totalCastleqty;


				// validates minimum directional qty
				if (totalCastleqty < 5)
				{
					// alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nDirectionals have a minimum quantity of 5. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');
					newPrice = 0;
	
					// sets flags for incorrect qty
					turnItemRed = 1;
					invalidQty = 1;
				} else
					{
					if (totalCastleqty >= 5 && totalCastleqty <= 9) { 
				 		if (item == "Combo") {newPrice = 22.95 }
						if (item == "Frame") {newPrice = 11.95 }
					}
					if (totalCastleqty >= 10 && totalCastleqty <= 14) {
				 		if (item == "Combo") {newPrice = 20.65 }
						if (item == "Frame") {newPrice = 10.95 }
					}
					if (totalCastleqty >= 15 && totalCastleqty <= 24) {
				 		if (item == "Combo") {newPrice = 19.50 }
						if (item == "Frame") {newPrice = 10.50 }
					}
					if (totalCastleqty >= 25 && totalCastleqty <= 49) {
				 		if (item == "Combo") {newPrice = 18.35 }
						if (item == "Frame") {newPrice = 9.95 }
					}
					if (totalCastleqty >= 50) {
				 		if (item == "Combo") {newPrice = 17.50 }
						if (item == "Frame") {newPrice = 9.95 }
					}
				}
			}	
		
			if (size == "ECONOMY")
			{
				totalEconomyqty = getCookie('totalEconomyqty');
				qty = totalEconomyqty;

				// validates minimum directional qty
				if (totalEconomyqty < 5)
				{
					// alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nDirectionals have a minimum quantity of 5. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.'); 
					newPrice = 0;
	
					// sets flags for incorrect qty
					turnItemRed = 1;
					invalidQty = 1;
				} else
					{
					if (totalEconomyqty >= 5 && totalEconomyqty <= 9) { 
				 		if (item == "Combo") {newPrice = 12.60 }
						if (item == "Frame") {newPrice = 5.50 }
					}
					if (totalEconomyqty >= 10 && totalEconomyqty <=14) {
				 		if (item == "Combo") {newPrice = 11.50 }
						if (item == "Frame") {newPrice = 4.50 }
					}
					if (totalEconomyqty >= 15 && totalEconomyqty <=24) {
					 	if (item == "Combo") {newPrice = 10.95 }
						if (item == "Frame") {newPrice = 4.00 }
					}
					if (totalEconomyqty >= 25 && totalEconomyqty <=49) {
					 	if (item == "Combo") {newPrice = 10.25 }
						if (item == "Frame") {newPrice = 3.50 }
					}
					if (totalEconomyqty >= 50) {
					 	if (item == "Combo") {newPrice = 9.50 }
						if (item == "Frame") {newPrice = 3.50 }

					}
				}
			}

			if (size == "BUDGET")
			{
				totalBudgetqty = getCookie('totalBudgetqty');
				qty = totalBudgetqty;

				// validates minimum directional qty
				if (totalBudgetqty < 5)
				{
					// alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nDirectionals have a minimum quantity of 5. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.'); 
					newPrice = 0;
	
					// sets flags for incorrect qty
					turnItemRed = 1;
					invalidQty = 1;
				} else
					{
			
					if (totalBudgetqty >= 5 && totalBudgetqty <= 9) { 
				 		if (item == "Combo") {newPrice = 15.35 }
						if (item == "Frame") {newPrice = 8.95 }
					}
					if (totalBudgetqty >= 10 && totalBudgetqty <=14) {
					 	if (item == "Combo") {newPrice = 14.25 }
						if (item == "Frame") {newPrice = 8.50 }
					}
					if (totalBudgetqty >= 15 && totalBudgetqty <=24) {
				 		if (item == "Combo") {newPrice = 13.75 }
						if (item == "Frame") {newPrice = 8.00 }
					}
					if (totalBudgetqty >= 25 && totalBudgetqty <=49) {
					 	if (item == "Combo") {newPrice = 12.65 }
						if (item == "Frame") {newPrice = 7.50 }
					}
					if (totalBudgetqty >= 50) {
					 	if (item == "Combo") {newPrice = 11.95 }
						if (item == "Frame") {newPrice = 7.50 }

					}
				}
			}

			if (size == "9x24")
			{
				total9x24qty = getCookie('total9x24qty');
				qty = total9x24qty;

				// validates minimum directional qty
				if (total9x24qty < 5)
				{
					/*alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nDirectionals have a minimum quantity of 5. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');*/
					newPrice = 0;
	
					// sets flags for incorrect qty
					turnItemRed = 1;
					invalidQty = 1;
				} else
					{
			       	 	if (total9x24qty >= 5 && total9x24qty <= 9) { 
				 		newPrice = 7.70 					
					}
					if (total9x24qty >= 10 && total9x24qty <=14) {
				 		newPrice = 6.60 					
					}
					if (total9x24qty >= 15 && total9x24qty <=24) {
				 		newPrice = 5.95 					
					}
					if (total9x24qty >= 25 && total9x24qty <=49) {
				 		newPrice = 5.50 					
					}
					if (total9x24qty >= 50) {
				 		newPrice = 5.00
					}
				}
			}
				
			if (size == "12x18")
			{
				total12x18qty = getCookie('total12x18qty');
				qty = total12x18qty;

				// validates minimum directional qty
				if (total12x18qty < 5)
				{
					/*alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nDirectionals have a minimum quantity of 5. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');*/
					newPrice = 0;
	
					// sets flags for incorrect qty
					turnItemRed = 1;
					invalidQty = 1;
				} else
					{
					if (total12x18qty >= 5 && total12x18qty <= 9) { 
				 		newPrice = 7.70 					
					}
					if (total12x18qty >= 10 && total12x18qty <=14) {
					 	newPrice = 6.60 					
					}
					if (total12x18qty >= 15 && total12x18qty <=24) {
					 	newPrice = 5.95 					
					}
					if (total12x18qty >= 25 && total12x18qty <=49) {
				 		newPrice = 5.50 					
					}
					if (total12x18qty >= 50) {
				 		newPrice = 5.00
					}

				}
			}

			if (size == "18x24")
			{
				total18x24qty = getCookie('total18x24qty');
				qty = total18x24qty;

				// validates minimum directional qty
				if (total18x24qty < 5)
				{
					/*alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nDirectionals have a minimum quantity of 5. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart.');*/
					newPrice = 0;
	
					// sets flags for incorrect qty
					turnItemRed = 1;
					invalidQty = 1;
				} else
					{
					if (total18x24qty  >= 5 && total18x24qty  <= 9) { 
				 		newPrice = 8.25 					
					}
					if (total18x24qty  >= 10 && total18x24qty  <=14) {
					 	newPrice = 7.70 					
					}
					if (total18x24qty  >= 15 && total18x24qty  <=24) {
					 	newPrice = 7.15 					
					}
					if (total18x24qty  >= 25 && total18x24qty  <=49) {
					 	newPrice = 6.60					
					}
					if (total18x24qty  >= 50) {
					 	newPrice = 6.00
					}

				}
			}
		
			// perform IMPRINT pricing for directionals
			if (item != "Frame" && copy != "" && copy != " ")
			{
				if (qty >= 5 && qty <= 9) { 
			 		newPrice = newPrice + 4.50 }
				if (qty >= 10 && qty <=14) {
				 	newPrice = newPrice + 3.50 }
				if (qty >= 15 && qty <=24) {
			 		newPrice = newPrice + 2.50 }
				if (qty >= 25 && qty <=49) {
			 		newPrice = newPrice + 1.50 }
				if (qty >= 50) {
			 		newPrice = newPrice + 1.00 }
			}
			
		} 
	
		// formats output to 2 decimals using formatDecimal()
		newPrice = formatDecimal(newPrice, true, 2);
		return newPrice;
        }
//-------------------------------------------------------------------------------------------------------------------------------
// getPriceHot() calculates price as a function of qty 
	function getPriceHot(qty)
	{
		newPrice = 0;
		if (whichitem == "Hot Products")
		{
	 		totalHotqty = getCookie('totalHotqty');

			// validates Hot Products qty
			if (totalHotqty < 5)
			{
				alert('INVALID QUANTITY for Item # '+(itemlist+1)+'. \nYou need to order '+(5 - parseInt(totalHotqty))+' additional Hot Products to meet the minimum quantity of 5. You will not be allowed to checkout until this is corrected. Please enter a valid quantity and hit the "UPDATE" feature on the shopping cart OR return to the Hot Products order page to add additional products.');
				// sets flag for incorrect qty
				turnItemRed = 1;
				invalidQty = 1;
			} else
			{ 
				if (totalHotqty >= 5 && totalHotqty < 10 ) {
					newPrice = 9.95 }
				if (totalHotqty >= 10 && totalHotqty < 14) {
					newPrice = 8.75 }
				if (totalHotqty >= 15 && totalHotqty < 24) {
					newPrice = 7.75 }
				if (totalHotqty >= 25 && totalHotqty < 49) {
					newPrice = 7.25 }
				if (totalHotqty >= 50) {
					newPrice = 6.95 }
			}
						
		}
	
 
		
		// formats output to 2 decimals using formatDecimal()
		newPrice = formatDecimal(newPrice, true, 2);
		return newPrice;
	}
//-------------------------------------------------------------------------------------------------------------------------------
	// clearCart() - removes all items from the basket
	function clearCart()
	{
		if (confirm('Empty the Shopping Cart?'))
		{

			delCookie('totalEsquireqty');
			delCookie('totalSidewalkqty');
			delCookie('totalCastleqty');
			delCookie('totalBudgetqty');
			delCookie('totalEconomyqty');
			delCookie('total9x24qty');
			delCookie('total12x18qty');
			delCookie('total18x24qty');
			delCookie('totalMsgqty18');
			delCookie('totalMsgqty24');
			delCookie('totalMsgqty28');			
			delCookie('totalCastleFqty');
			delCookie('totalCrownFqty');
			delCookie('totalEsquireFqty');
			delCookie('totalCoroFqty');
			
			delCookie('totalUtilityFqty');
			delCookie('totalHotqty');
			delCookie('totalDecalsqty');
			delCookie('totalOHPPqty');

			//CODED BY ALF 07/09/06
			delCookie('totalFRYSPqty');
			delCookie('totalFROHSPqty');
			delCookie('totalFROHSCqty');
			delCookie('totalFREDHCqty');
			delCookie('totalFREDACqty');
			delCookie('PEZPost');
			delCookie('INFOPAK');
			delCookie('INFOPAK');
			
			delCookie('totalFRNRFqty');
			delCookie('totalFRNRGqty');
			delCookie('totalFRNRHqty');
			delCookie('totalFRNRIqty');
			delCookie('totalFRNRFRqty');
			delCookie('totalFRNRGRqty');
			delCookie('totalFRNRHRqty');
			delCookie('totalFRNRIRqty');
			delCookie('totalFRPNRqty');
			
			setCookie('subtot', '0.00 ');
			
			
			//CODED BY JO 03/11/007
/*
 			delCookie('totalUBSPqty');
 			delCookie('totalUBSPTqty');
 			delCookie('totalUBSCqty');
 			delCookie('totalUBSCPqty'); 
 			delCookie('totalUBCHDqty');
 			delCookie('totalUBRMDqty');
 			delCookie('totalUBIEDqty'); 			
 			delCookie('totalUBCHMqty'); 
 			delCookie('totalUBRMMqty');
 			delCookie('totalUBIEMqty');
 			delCookie('totalUBASTMqty');
 			delCookie('totalUBCSRGqty'); 
 			delCookie('totalUBCSHDqty');
 			delCookie('totalUBCSSDqty');
 			delCookie('totalUBPEZqty'); 			
 			delCookie('totalUBBADPqty');
 			delCookie('totalUBINFOqty'); 			
 			delCookie('totalUBSOLARqty');
 			
 			delCookie('totalSSTSTPqty');
   			delCookie('totalSSTOHTqty'); 			
   			delCookie('totalSSTRCFqty');			
  			delCookie('totalSSTRFRqty');			
 			delCookie('totalSSTHANqty');
 			delCookie('totalSSTCOLqty'); 			
 			delCookie('totalSSTCSRqty');
 			delCookie('totalSSTCSHqty'); 			
 			delCookie('totalSSTCSSqty');
 			delCookie('totalSSTNSRqty');			
  			delCookie('totalSSTNSSqty'); 			
			
 			delCookie('totalRRSP_S1824qty'); 			
 			delCookie('totalRRSP_S2028qty');
 			delCookie('totalRRSP_R1824qty');			
  			delCookie('totalRRSP_R2028qty');
 			delCookie('totalRRCA_S1824qty'); 			
 			delCookie('totalRRCA_S2028qty');
 			delCookie('totalRRCA_R1824qty');			
  			delCookie('totalRRCA_R2028qty');
//----------------  			
*/			
			
			delCookie('ShopCart');
			setCookie('ShopCart', 'null');
			self.location = "shop_view_cart.htm";
		}
	}
//-------------------------------------------------------------------------------------------------------------------------------
	// clearCartc21() - removes all items from the basket
	function clearCartc21()
	{
		if (confirm('Empty the Shopping Cart?'))
		{
			delCookie('totalEsquireqty');
			delCookie('totalSidewalkqty');
			delCookie('totalCastleqty');
			delCookie('totalBudgetqty');
			delCookie('totalEconomyqty');
			delCookie('total9x24qty');
			delCookie('total12x18qty');
			delCookie('total18x24qty');
			delCookie('totalMsgqty18');
			delCookie('totalMsgqty24');
			delCookie('totalMsgqty28');			
			delCookie('totalCastleFqty');
			delCookie('totalCrownFqty');
			delCookie('totalEsquireFqty');
			delCookie('totalUtilityFqty');
			delCookie('totalCoroFqty');				
			delCookie('totalHotqty');
			delCookie('totalDecalsqty');
			delCookie('totalOHPPqty');
			delCookie('totalMVSqty');
			delCookie('totaluED1qty');
			delCookie('totaluED2qty');
			delCookie('totaluED3qty');
			delCookie('totaluED4qty');
			delCookie('totaluED5qty');
			delCookie('totaluED6qty');
			delCookie('totaluED7qty');
			delCookie('totaluED8qty');
			delCookie('totaluDD1qty');
			delCookie('totaluDD2qty');
			delCookie('totaluDD3qty');
			delCookie('totaluDD4qty');
			delCookie('totaluOH1qty');
			delCookie('totaluOH2qty');
			delCookie('totaluYS1qty');
			delCookie('totaluYS2qty');
			delCookie('totaluYS3qty');
			delCookie('totaluYS4qty');
			delCookie('totaluYS5qty');
			delCookie('totaluYS6qty');
			delCookie('totaluYS7qty');
			delCookie('totaluYS8qty');
			delCookie('totaluYS9qty');
			delCookie('totaluYS10qty');
			delCookie('totaluANR1qty');
			delCookie('totaluANR2qty');
			delCookie('totaluANR3qty');
			delCookie('totaluANR4qty');
			delCookie('totaluFS1qty');
			delCookie('totaluFS2qty');
			delCookie('totaluP1qty');
			delCookie('totaluP2qty');
			delCookie('totaluP3qty');
			delCookie('totaluW1qty');
			delCookie('totaluW2qty');
			delCookie('totaluW3qty');
			delCookie('totaluMqty');




			//CODED BY JO 03/11/007

 			delCookie('totalUBSPqty');
 			delCookie('totalUBSPTqty');
 			delCookie('totalUBSPRqty');			
 			delCookie('totalUBSCqty');
 			delCookie('totalUBSCPqty'); 
 			delCookie('totalUBCHDqty');
 			delCookie('totalUBRMDqty');
 			delCookie('totalUBIEDqty'); 			
 			delCookie('totalUBCHMqty'); 
 			delCookie('totalUBRMMqty');
 			delCookie('totalUBIEMqty');
 			delCookie('totalUBASTMqty');
 			delCookie('totalUBCSRGqty'); 
 			delCookie('totalUBCSHDqty');
 			delCookie('totalUBCSSDqty');
 			delCookie('totalUBPEZqty');
 			delCookie('totalUBEFqty'); 			 			
 			delCookie('totalUBBADPqty');
 			delCookie('totalUBINFOqty'); 			
 			delCookie('totalUBSOLARqty');
 			
 			delCookie('totalSSTSTPqty');
   			delCookie('totalSSTOHTqty'); 			
   			delCookie('totalSSTRCFqty');			
  			delCookie('totalSSTRFRqty');			
 			delCookie('totalSSTHANqty');
 			delCookie('totalSSTCOLqty'); 			
 			delCookie('totalSSTCSRqty');
 			delCookie('totalSSTCSHqty'); 			
 			delCookie('totalSSTCSSqty');
 			delCookie('totalSSTNSRqty');			
  			delCookie('totalSSTNSSqty'); 			
			
 			delCookie('totalRRSP_S1824qty'); 			
 			delCookie('totalRRSP_S2028qty');
 			delCookie('totalRRSP_R1824qty');			
  			delCookie('totalRRSP_R2028qty');
 			delCookie('totalRRCA_S1824qty'); 			
 			delCookie('totalRRCA_S2028qty');
 			delCookie('totalRRCA_R1824qty');			
  			delCookie('totalRRCA_R2028qty');  			
 			delCookie('totalRRDAFSqty'); 			
 			delCookie('totalRRDAOHqty');
 			delCookie('totalRRDAFS_Iqty');			
  			delCookie('totalRRDAOH_Iqty');
 			delCookie('totalRRDHFSqty'); 			
 			delCookie('totalRRDHOHqty');
 			delCookie('totalRRDHFS_Iqty');			
  			delCookie('totalRRDHOH_Iqty');
 			delCookie('totalRRDRFSqty'); 			
 			delCookie('totalRRDROHqty');
 			delCookie('totalRRDRFS_Iqty');			
  			delCookie('totalRRDROH_Iqty');
 			delCookie('totalRRCAMqty');
 			delCookie('totalRRAAMqty');			
  			delCookie('totalRRPAMqty');
 			delCookie('totalRROHCqty');
 			delCookie('totalRROHC_Iqty');
  			delCookie('totalRRCA1824qty');
 			delCookie('totalRRCA2024qty');
 			delCookie('totalRRCSRGqty');			
  			delCookie('totalRRCSHDqty');
 			delCookie('totalRRCSSDqty');
 			delCookie('totalRREZqty');

 			delCookie('totalRRSNRFqty');
 			delCookie('totalRRSNRGqty');
 			delCookie('totalRRSNRHqty');
 			delCookie('totalRRSNRIqty'); 			
 			delCookie('totalRRSNRFqty');
 			delCookie('totalRRRNRGqty');
 			delCookie('totalRRRNRHqty');
 			delCookie('totalRRRNRFqty');
 			delCookie('totalRRSPNRqty');
 			delCookie('totalRRRPNRqty'); 
 			
			 			 			 			 			 			
			delCookie('totalInfoRider2_qty');






			
			//CODED BY ALF 07/09/06
			delCookie('totalFRYSPqty');
			delCookie('totalFROHSPqty');
			delCookie('totalFROHSCqty');
			delCookie('totalFREDHCqty');
			delCookie('totalFREDACqty');
			delCookie('PEZPost');
			delCookie('INFOPAK');
			
			delCookie('totalFRNRFqty');
			delCookie('totalFRNRGqty');
			delCookie('totalFRNRHqty');
			delCookie('totalFRNRIqty');
			delCookie('totalFRNRFRqty');
			delCookie('totalFRNRGRqty');
			delCookie('totalFRNRHRqty');
			delCookie('totalFRNRIRqty');
			delCookie('totalFRPNRqty');
			delCookie('ShopCart');
			setCookie('ShopCart', 'null');
			self.location = "shop_view_cart_C21.htm";
		}
	}
//-------------------------------------------------------------------------------------------------------------------------------
	function validQty(check)
	{
		valid = chkForNum(check);
		if (!valid)
		{
			alert('Please enter only numeric quantity values.');
			thequantity = 0;
			return false;
		} 

		if (check <= 0)
		{
			alert('Quantity must be greater than zero.');
			return false;
		}

		return true;
	}
//-------------------------------------------------------------------------------------------------------------------------------
	function checkOut()
	{
		// checks for empty cart
		if (areItems == 0)
		{
			alert('You cannot checkout with an empty shopping cart.');
			return;
		}

		// invalidQty is set in getPrice
		if (invalidQty == 1)
		{
			alert('You cannot checkout until all quantities are valid. If the item is highlighted in red, you need to purchase the minimum quanitity for that product.');
			return;
		}
		totalEsquireqty = getCookie('totalEsquireqty');
		totalSidewalkqty = getCookie('totalSidewalkqty');
		totalCastleqty = getCookie('totalCastleqty');
		totalBudgetqty = getCookie('totalBudgetqty');
		totalEconomyqty = getCookie('totalEconomyqty');
		total9x24qty = getCookie('total9x24qty');
		total12x18qty = getCookie('total12x18qty');
		total18x24qty = getCookie('total18x24qty');
		totalMsgqty18 = getCookie('totalMsgqty18');
		totalMsgqty24 = getCookie('totalMsgqty24');
		totalMsgqty28 = getCookie('totalMsgqty28');		
		totalCastleFqty = getCookie('totalCastleFqty');
		totalCrownFqty = getCookie('totalCrownFqty');
		totalEsquireFqty = getCookie('totalEsquireFqty');
		totalCoroFqty = getCookie('totalCoroFqty');
		totalUtilityFqty = getCookie('totalUtilityFqty');		
		totalHotqty = getCookie('totalHotqty');
		totalDecalsqty = getCookie('totalDecalsqty');
		totalOHPPqty = getCookie('totalOHPPqty');
		totalMVSqty = getCookie('totalMVSqty');
		totaluED1qty = getCookie('totaluED1qty');
		totaluED2qty = getCookie('totaluED2qty');
		totaluED3qty = getCookie('totaluED3qty');
		totaluED4qty = getCookie('totaluED4qty');
		totaluED5qty = getCookie('totaluED5qty');
		totaluED6qty = getCookie('totaluED6qty');
		totaluED7qty = getCookie('totaluED7qty');
		totaluED8qty = getCookie('totaluED8qty');
		totaluDD1qty = getCookie('totaluDD1qty');
		totaluDD2qty = getCookie('totaluDD2qty');
		totaluDD3qty = getCookie('totaluDD3qty');
		totaluDD4qty = getCookie('totaluDD4qty');
		totaluOH1qty = getCookie('totaluOH1qty');
		totaluOH2qty = getCookie('totaluOH2qty');
		totaluYS1qty = getCookie('totaluYS1qty');
		totaluYS2qty = getCookie('totaluYS2qty');
		totaluYS3qty = getCookie('totaluYS3qty');
		totaluYS4qty = getCookie('totaluYS4qty');
		totaluYS5qty = getCookie('totaluYS5qty');
		totaluYS6qty = getCookie('totaluYS6qty');
		totaluYS7qty = getCookie('totaluYS7qty');
		totaluYS8qty = getCookie('totaluYS8qty');
		totaluYS9qty = getCookie('totaluYS9qty');
		totaluYS10qty = getCookie('totaluYS10qty');
		totaluANR1qty = getCookie('totaluANR1qty');
		totaluANR2qty = getCookie('totaluANR2qty');
		totaluANR3qty = getCookie('totaluANR3qty');
		totaluANR4qty = getCookie('totaluANR4qty');
		totaluFS1qty = getCookie('totaluFS1qty');
		totaluFS2qty = getCookie('totaluFS2qty');
		totaluP1qty = getCookie('totaluP1qty');
		totaluP2qty = getCookie('totaluP2qty');
		totaluP3qty = getCookie('totaluP3qty');
		totaluW1qty = getCookie('totaluW1qty');
		totaluW2qty = getCookie('totaluW2qty');
		totaluW3qty = getCookie('totaluW3qty');
		totaluMqty = getCookie('totaluMqty');

		//CODED BY JO 03/11/007
 		totalUBSPqty = getCookie('totalUBSPqty');
 		totalUBSPTqty = getCookie('totalUBSPTqty');
 		totalUBSPRqty = getCookie('totalUBSPRqty'); 		
 		totalUBSCqty = getCookie('totalUBSCqty');
 		totalUBSCPqty = getCookie('totalUBSCPqty'); 		
 		totalUBCHDqty = getCookie('totalUBCHDqty');
 		totalUBRMDqty = getCookie('totalUBRMDqty');
 		totalUBIEDqty = getCookie('totalUBIEDqty'); 
 		totalUBCHMqty = getCookie('totalUBCHMqty');
 		totalUBRMMqty = getCookie('totalUBRMMqty');
 		totalUBIEMqty = getCookie('totalUBIEMqty');
 		totalUBASTMqty = getCookie('totalUBASTMqty');
 		totalUBCSRGqty = getCookie('totalUBCSRGqty');
 		totalUBCSHDqty = getCookie('totalUBCSHDqty');
 		totalUBCSSDMqty = getCookie('totalUBCSSDqty');
 		totalUBPEZqty = getCookie('totalUBPEZqty');
 		totalUBEFqty = getCookie('totalUBEFqty'); 		
 		totalUBBADPqty = getCookie('totalUBBADPqty'); 
  		totalUBINFOqty = getCookie('totalUBINFOMqty');
 		totalUBSOLARqty = getCookie('totalUBSOLARqty');	
 		
//CODED BY JO 03/20/007
 		totalSSTSTPqty = getCookie('totalSSTSTPqty');
  		totalSSTOHTqty = getCookie('totalSSTOHTqty'); 		
  		totalSSTRCFqty = getCookie('totalSSTRCFqty');		
  		totalSSTRFRqty = getCookie('totalSSTRFRqty'); 				
 		totalSSTHANqty = getCookie('totalSSTHANqty');
 		totalSSTCOLqty = getCookie('totalSSTCOLqty');
 		totalSSTCSRPqty = getCookie('totalSSTCSRqty'); 
  		totalSSTCSHqty = getCookie('totalSSTCSHqty');
 		totalSSTCSSqty = getCookie('totalSSTCSSqty');	
 		totalSSTNSRqty = getCookie('totalSSTNSRqty');			
 		totalSSTNSSqty = getCookie('totalSSTNSSqty');	
 		
  		totalRRSP_S1824qty = getCookie('totalRRSP_S1824qty');
  		totalRRSP_S2028qty = getCookie('totalRRSP_S2028qty');  		
  		totalRRSP_R1824qty = getCookie('totalRRSP_R1824qty');
  		totalRRSP_R2028qty = getCookie('totalRRSP_R2028qty');
  		totalRRCA_S1824qty = getCookie('totalRRCA_S1824qty');
  		totalRRCA_S2028qty = getCookie('totalRRCA_S2028qty');  		
  		totalRRCA_R1824qty = getCookie('totalRRCA_R1824qty');
  		totalRRCA_R2028qty = getCookie('totalRRCA_R2028qty');   		 
  		totalRRDAFSqty = getCookie('totalRRDAFSqty');
  		totalRRDAOHqty = getCookie('totalRRDAOHqty');  		
  		totalRRDAFS_Iqty = getCookie('totalRRDAFS_Iqty');
  		totalRRDAOH_Iqty = getCookie('totalRRDAOH_Iqty');
  		totalRRDHFSqty = getCookie('totalRRDHFSqty');
  		totalRRDHOHqty = getCookie('totalRRDHOHqty');  		
  		totalRRDHFS_Iqty = getCookie('totalRRDHFS_Iqty');
  		totalRRDHOH_Iqty = getCookie('totalRRDHOH_Iqty');  		
  		totalRRDRFSqty = getCookie('totalRRDRFSqty');
  		totalRRDROHqty = getCookie('totalRRDROHqty');  		
  		totalRRDRFS_Iqty = getCookie('totalRRDRFS_Iqty');
  		totalRRDROH_Iqty = getCookie('totalRRDROH_Iqty');  		
  		totalRRCAMqty = getCookie('totalRRCAMqty');  		
  		totalRRAAMqty = getCookie('totalRRAAMqty');
  		totalRRPAMqty = getCookie('totalRRPAMqty');  		  		
  		totalRROHCqty = getCookie('totalRROHCqty');  		
  		totalRROHC_Iqty = getCookie('totalRROHC_Iqty');

  		totalRRCA1824ty = getCookie('totalRRCA1824qty');  		
  		totalRRCA2028qty = getCookie('totalRRCA2028qty');  		
  		totalRRCSRGqty = getCookie('totalRRCSRGqty');
  		totalRRCSHDqty = getCookie('totalRRCSHDqty');  		  		
  		totalRRCSSDqty = getCookie('totalRRCSSDqty');  		
  		totalRREZqty = getCookie('totalRREZqty');


  		totalRRSNRFqty = getCookie('totalRRSNRFqty');
  		totalRRSNRGqty = getCookie('totalRRSNRGqty');
  		totalRRSNRHqty = getCookie('totalRRSNRHqty');
  		totalRRSNRIqty = getCookie('totalRRSNRIqty');
  		totalRRRNRFqty = getCookie('totalRRRNRFqty');
  		totalRRRNRGqty = getCookie('totalRRRNRGqty');
  		totalRRRNRHqty = getCookie('totalRRRNRHqty');
  		totalRRRNRIqty = getCookie('totalRRRNRIqty');  		  		  		  		  		  		  		
  		totalRRSPNRqty = getCookie('totalRRSPNRqty');
  		totalRRRPNRqty = getCookie('totalRRSRNRqty');  		  

  		totalInfoRider2_qty = getCookie('totalInfoRider2_qty');
	
 			
//--------------------------------------------------------------------------
		
		//CODED BY ALF 07/09/06
		totalFRYSPqty = getCookie('totalFRYSPqty');
		totalFROHSPqty = getCookie('totalFROHSPqty');
		totalFROHSCqty = getCookie('totalFROHSCqty');
		totalFREDHCqty = getCookie('totalFREDHCqty');
		totalFREDACqty = getCookie('totalFREDACqty');
		totalPEZPost = getCookie('PEZPost');
		totalINFOPAK = getCookie('INFOPAK');
		
		totalFRNRFqty = getCookie('totalFRNRFqty');
		totalFRNRGqty = getCookie('totalFRNRGqty');
		totalFRNRHqty = getCookie('totalFRNRHqty');
		totalFRNRIqty = getCookie('totalFRNRIqty');
		totalFRNRFRqty = getCookie('totalFRNRFRqty');
		totalFRNRGRqty = getCookie('totalFRNRGRqty');
		totalFRNRHRqty = getCookie('totalFRNRHRqty');
		totalFRNRIRqty = getCookie('totalFRNRIRqty');
		totalFRPNRqty = getCookie('totalFRPNRqty');

		params = totalEsquireqty + "$" + totalSidewalkqty + "$" + totalCastleqty + "$" + totalBudgetqty + "$" + totalEconomyqty + "$" + total9x24qty + "$" + total12x18qty + "$" + total18x24qty + "$" + totalHotqty + "$" + totalMsgqty18 + "$" + totalMsgqty24 + "$" + totalCastleFqty + "$" + totalCrownFqty + "$" + totalEsquireFqty + "$" + totalUtilityFqty + "$" + totalCoroFqty + "$" +  totalDecalsqty + "$" +  totalOHPPqty + "$" + totalMsgqty28 + "$" + fulllist;
		nextstop = "https://cc.aswi.com/realtysignxpress/public_html/shop_check_out.htm?" + escape(params) + "$source=eCatalog";
		top.location.href=nextstop;			 
	}

//-->