<!--


// buyItem - adds an item to the shopping basket
function buyItemAbq(itemNo, qty) 
{
// set up variables for message riders
//alert("itemNo = " + itemNo + 'line 8 function buyItem    ' + itemNo, qty);
		var whichitem;
		var whichitem2;
		var size;
		var color = "";
		var bgcolor = "";
		var copy1 = "";
		var copy2 = "";
//alert (itemNo + ' line 15  ' + itemNo.substr(3,5));		

		if (itemNo.substr(0,3) == "RMB")
		{ 
			whichitem = "ABQ Ready Made Banner";
			color = "Red";
			bgcolor = "White";
			
			if (itemNo.substr(6,2) == "05")
			{
				size = "3'x5'";
			}
			if (itemNo.substr(6,2) == "10")
			{
				size = "3'x10'";
			}
			if (itemNo.substr(6,2) == "20")
			{
				size = "3'x20'";
			}
			if (itemNo.substr(6,2) == "99")
			{
				whichitem = "ABQ Ready Made Pennant";
				size = "100'";
				color = "Red, White, Blue";
				bgcolor = "";
			}
		}
		if (itemNo.substr(0,3) == "FIB")
		{ 
			whichitem = "ABQ 'Fill In' Banner";
			color = "Red";
			bgcolor = "White";
			if (itemNo.substr(3,2) == "31")
			{			
				copy1 = "For Rent"
			}
			else if (itemNo.substr(3,2) == "32")
			{			
				copy1 = "For Sale"
			}
			else if (itemNo.substr(3,2) == "33")
			{			
				copy1 = "For Lease"
			}						
			
			if (itemNo.substr(6,2) == "05")
			{
			size = "3'x5'";			}
			if (itemNo.substr(6,2) == "10")
			{
				size = "3'x10'";
			}
				if (itemNo.substr(8,2) == "-I")
			{
				copy2 = document.getElementById("Banner_field1").value;
			}
			
		}

		if (itemNo.substr(4,2) == "AP")
		{ 
			whichitem = "ABQ Impact Apartment Sign";
			size = '18" x 24"';
			copy1 = document.getElementById("Impact_field1").value;
		}
		if (itemNo.substr(4,2) == "Au")
		{ 
			whichitem = "ABQ Impact Auction Sign";
			if (itemNo.substr(0,8) == "IMP-Au05")
			{
			size = '6" x 24"';
			copy1 = document.getElementById("Impact_field1").value;
			}
			else
			{
			size = '18" x 24"';
			copy1 = document.getElementById("Impact_field1").value;			
			}
		}
		if (itemNo.substr(4,2) == "Fo")
		{ 
			whichitem = "ABQ Impact Foreclosure Sign";
			size = '18" x 24"';
			copy1 = document.getElementById("Impact_field1").value;	
		}
		if (itemNo.substr(4,2) == "Hy")
		{ 
			whichitem = "ABQ Impact Handy Man Sign";
			size = '18" x 24"';
			copy1 = document.getElementById("Impact_field1").value;	
		}
		if (itemNo.substr(4,2) == "HB")
		{ 
			whichitem = "ABQ Impact Homebased Biz Sign";
			size = '18" x 24"';
			copy1 = document.getElementById("Impact_field1").value;	
		}				
		if (itemNo.substr(4,2) == "La")
		{ 
			whichitem = "ABQ Impact Landscaping Sign";
			size = '18" x 24"';
			copy1 = document.getElementById("Impact_field1").value;	
		}
		if (itemNo.substr(4,2) == "Lw")
		{ 
			whichitem = "ABQ Impact Lawn Care Sign";
			size = '18" x 24"';
			copy1 = document.getElementById("Impact_field1").value;	
		}
		if (itemNo.substr(4,2) == "Mo")
		{ 
			whichitem = "ABQ Impact Mortgage Sign";
			size = '18" x 24"';
			copy1 = document.getElementById("Impact_field1").value;	
		}
		if (itemNo.substr(4,2) == "Mv")
		{ 
			whichitem = "ABQ Impact Moving Sign";
			size = '18" x 24"';
			copy1 = document.getElementById("Impact_field1").value;	
		}
		if (itemNo.substr(4,2) == "Pa")
		{ 
			whichitem = "ABQ Impact Painter Sign";
			size = '18" x 24"';
			copy1 = document.getElementById("Impact_field1").value;	
		}
		if (itemNo.substr(4,2) == "Ri")
		{ 
			whichitem = "ABQ Impact Investor Sign";
			size = '18" x 24"';
			copy1 = document.getElementById("Impact_field1").value;	
		}
		if (itemNo.substr(4,2) == "Ro")
		{ 
			whichitem = "ABQ Impact Roofer's Sign";
			size = '18" x 24"';
			copy1 = document.getElementById("Impact_field1").value;	
		}	
			
		if (itemNo == 'A-Frame')
		{ 
			whichitem = "ABQ Changeable A-Frame Sign";
			whichitem2 = "Business";
			size = '21" x 36"';
			color = "White";
			copy1 = "Letters Included.";	
		}	
		if (itemNo == 'Signcade')
		{ 
			whichitem = "ABQ Sidewalk Signcade";
			whichitem2 = "Business";
			size = '25" x 45"';
			color = "White";
			copy1 = "Graphics Included.";	
		}				
		if (itemNo == 'B-Reader')
		{ 
			whichitem = "ABQ Changeable Big Readerboard";
			size = '44" x 21"';
			whichitem2 = "Business";
			color = "White";
			copy1 = "Letters Included.";	
		}		
		if (itemNo == 'Compact')
		{ 
			whichitem = "ABQ Changeable Compact Readerboard";
			whichitem2 = "Business";
			size = '15" x 30"';
			color = "White";
			copy1 = "Letters Included.";	
		}
		if (itemNo == 'Marquis')
		{ 
			whichitem = "ABQ Changeable Marquis Sign";
			whichitem2 = "Business";
			size = '21" x 36"';
			color = "White";
			copy1 = "Letters Included.";	
		}
		if (itemNo == 'Open-1')
		{ 
			whichitem = "ABQ 'OPEN' Sign";
			whichitem2 = "Business";
			size = '11" x 20"';
			color = "Red, Blue";
			bgcolor = " on Black";
			copy1 = "Neon Like";	
		}						
		
		
		if (itemNo == "MPB-1218-SP")
		{ 
			whichitem = "ABQ McCain Yard Sign";
			size = '12" x 18"';
			color = "Blue";
			bgcolor = "White";
		}
		if (itemNo == "MPB-1824-SP")
		{ 
			whichitem = "ABQ McCain Yard Sign";
			size = '18" x 24"';
			color = "Blue";
			bgcolor = "White";
		}
		if (itemNo == "MPB-1218-CS")
		{ 
			whichitem = "ABQ McCain Yard Sign W/CoroStake";
			size = '12" x 18"';
			color = "Blue";
			bgcolor = "White";
		}
		if (itemNo == "MPB-1824-CS")
		{ 
			whichitem = "ABQ McCain Yard Sign W/CoroStake";
			size = '18" x 24"';
			color = "Blue";
			bgcolor = "White";
		}	
		
		if (itemNo == "BOB-1218-SP")
		{ 
			whichitem = "ABQ OBAMA Yard Sign";
			size = '12" x 18"';
			color = "Blue";
			bgcolor = "White";
		}
		if (itemNo == "BOB-1824-SP")
		{ 
			whichitem = "ABQ OBAMA Yard Sign";
			size = '18" x 24"';
			color = "Blue";
			bgcolor = "White";
		}
		if (itemNo == "BOB-1218-CS")
		{ 
			whichitem = "ABQ OBAMA Yard Sign W/CoroStake";
			size = '12" x 18"';
			color = "Blue";
			bgcolor = "White";
		}
		if (itemNo == "BOB-1824-CS")
		{ 
			whichitem = "ABQ OBAMA Yard Sign W/CoroStake";
			size = '18" x 24"';
			color = "Blue";
			bgcolor = "White";
		}
		if (itemNo.substr(0,7) == "rsx")
		
		if (itemNo == "BOR-1218-SP")
		{ 
			whichitem = "ABQ OBAMA Yard Sign";
			size = '12" x 18"';
			color = "Blue, Red";
			bgcolor = "White";
		}
		if (itemNo == "BOR-1824-SP")
		{ 
			whichitem = "ABQ OBAMA Yard Sign";
			size = '18" x 24"';
			color = "Blue, Red";
			bgcolor = "White";
		}
		if (itemNo == "BOR-1218-CS")
		{ 
			whichitem = "ABQ OBAMA Yard Sign W/CoroStake";
			size = '12" x 18"';
			color = "Blue, Red";;
			bgcolor = "White";
		}
		if (itemNo == "BOR-1824-CS")
		{ 
			whichitem = "ABQ OBAMA Yard Sign W/CoroStake";
			size = '18" x 24"';
			color = "Blue, Red";
			bgcolor = "White";
		}
		
//alert(itemNo.substr(0,7) + 'line 85 shop  ' + itemNo.substr(8,2));

		if (itemNo.substr(0,7) == "rsxSpc9")
		{ 
			whichitem = "Special Card Caddie";
			size = '';
			color = "";
			bgcolor = "";
			
			if (itemNo.substr(8,2) == "BE")
			{ 	
				bgcolor = "Blue";
			}	
			if (itemNo.substr(8,2) == "BK")
			{ 	
				bgcolor = "Black";
			}
			if (itemNo.substr(8,2) == "RD")
			{ 	
				bgcolor = "RED";
			}
			if (itemNo.substr(8,2) == "WH")
			{ 	
				bgcolor = "White";
			}									
				
		}		

		if (itemNo == "rsxSp10")
		{ 
			whichitem = "Special 'HOME FOR SALE' Panel";
			size = '18" x 24"';
			color = "Red";
			bgcolor = "White  ";
		}

		if (itemNo.substr(0,7) == "rsxSp11")
		{ 
			whichitem = "Special 'REALTOR' Jewelry (Magnetic Back)";
			size = '1" x 3/4"';
			color = "Gold";
			bgcolor = " ";
			if (itemNo.substr(8,3) == "Pin")
			{ 	
			whichitem = "Special 'REALTOR' Jewelry (Pin Backing)";
			}							
		}
		if (itemNo.substr(0,8) == "rsxSp12A" || itemNo.substr(0,8) == "rsxSp12B")
		{ 
			whichitem = "Special 'REALTOR' Card Holder";
			size = '4 x 2-1/2"';
			color = "Two-Tone Silver";
			bgcolor = "  ";
			if (itemNo.substr(0,8) == "rsxSp12A")
			{copy1 = "W/O ENGRAVING";
			 Copy2 = "";
			}			
			if (itemNo.substr(0,8) == "rsxSp12B")
			{copy1 = document.getElementById("Engrave_name1").value;
			 copy2 = '*** Same Text On Each Card Holder ***';
			}			
		}		
	
		if (itemNo.substr(0,7) == "rsxSp13")
		{ 
			whichitem = "Special 'REALTOR' License Plate Holder";
			size = ' ';
			color = "Blue Letters";
			bgcolor = "White";
			if (itemNo.substr(8,2) == "BK")
			{ 	
				color = "Gold Letters";
				bgcolor = "Black";				
			}							
		}											
		
		oldCart = getCookie('ShopCart');
		newCart = "["+itemNo+"|"+whichitem+"|"+size+"|"+color+"|"+bgcolor+"|"+copy1+"|"+copy2+"|"+whichitem2+"|"+qty+"]";
		cartFull = oldCart + newCart;
		setCookie('ShopCart',cartFull);	
		
		viewCart();
}

//-------------------------------------------------------------------------------------------------------------------------------
// validate form fields
function addItemAbq(itemNoField, Commercialqty)
{

		// validates Commercialqty
		if (Commercialqty == "" || Commercialqty == " ")
        {
		//alert(selectQtyValue);
		    alert('Please enter a quantity.');
			return;
		}
		isNo = chkForNum(Commercialqty);
		if (!isNo)
		{
			alert('Please enter only numeric values');
			return;
		}
		
//alert(itemNoField + '  line 123');		
		if (itemNoField.substr(0,7) == "Auction" || itemNoField.substr(0,7) == "Foreclo")
		{ 			
			if (Commercialqty < 1 )
			{
				alert('Please select a quantity.');
				return;
			}
			// validate Textbox Options
			if (document.getElementById("Impact_field1").value == "" ||
				document.getElementById("Impact_field1").value == " ")
				{
					alert("Please enter Phone Number and/or URL.");
					return;
				}
		}
		
		if (itemNoField.substr(0,9) == "rsxSpc102" || itemNoField.substr(0,9) == "rsxSpc103")
		{ 			
			if (Commercialqty < 1 )
			{
				alert('Please select a quantity.');
				return;
			}
			// validate Textbox Options
			if (document.getElementById("Engrave_name1").value == "" ||
				document.getElementById("Engrave_name1").value == " ")
				{
					alert("Please enter Key Ring Text into Box 1.");
					return;
				}
		}		
		if (itemNoField.substr(0,8) == "rsxSp12B")
		{ 			
			if (Commercialqty < 1 )
			{
				alert('Please select a quantity.');
				return;
			}
			// validate Textbox Options
			if (document.getElementById("Engrave_name1").value == "" ||
				document.getElementById("Engrave_name1").value == " ")
				{
					alert("Please enter Text to ENGRAVED.");
					return;
				}
		}


	// adds item info into cart
	 buyItemAbq(itemNoField, Commercialqty)
}

//-------------------------------------------------------------------------------------------------------------------------------
// goes to view cart
function viewCart()
	{

		self.location.href="shop_view_cart_abq.htm"
	}
	
//===========================================================================

function getPriceAbq(itemNo, qty)
{
//alert (itemNo + ' itemNo line 1644SE - FUNCTION get price SE ');

	var thePrice = "";
	thePrice = getPriceABQAYS(itemNo, qty);
	if (thePrice.length == 0) thePrice = getPriceABQAYS(itemNo, qty);

	return thePrice;
}	
	
function getPriceABQAYS(itemNo, qty)	//Company yard sign prices
{

		if (itemNo.substr(0,3) == "RMB")
		{ 			
			if (itemNo.substr(6,2) == "05")
			{
				return "37.50";
			}
			if (itemNo.substr(6,2) == "10")
			{
				return "59.95";
			}
			if (itemNo.substr(6,2) == "20")
			{
				return "114.95";
			}
			else
			{
				return "14.99";
			}
		}
		if (itemNo.substr(0,3) == "FIB")
		{ 			
			if (itemNo.substr(6,2) == "05")
			{
				return "37.50";
			}
			if (itemNo.substr(6,2) == "10")
			{
				return "59.95";
			}
		}


	if(itemNo == "IMP-Au05-G")
	{
			return "2.99";
	}


	if(itemNo.substr(0,3) == "IMP" && itemNo.substr(8,2) == "-G")
	{	
			if (qty<25){ return "4.50"; }
			if (qty<50){ return "2.95"; }
			if (qty<100){ return "2.45"; }
			return "1.95";
	}

	if(itemNo.substr(0,3) == "IMP" && itemNo.substr(8,2) == "-I")
	{	
			if (qty<25){ return "7.95"; }
			if (qty<50){ return "4.95"; }
			if (qty<100){ return "3.45"; }
			return "2.45";
	}

	switch (itemNo)
	{
		case "A-Frame":				
			return "125.00";
		case "Signcade":				
			return "169.95";			
		case "B-Reader":				
			return "49.98";	
		case "Marquis":				
			return "175.00";
		case "Compact":				
			return "120.00";
		case "Open-1":				
			return "99.95";										
			
			
		case "MPB-1218-SP":				//1824 Steel sign panel
			if (qty<10){ return "4.50"; }
			if (qty<15){ return "3.95"; }
			if (qty<25){ return "3.50"; }
			if (qty<50){ return "2.95"; }
			if (qty<100){ return "2.25"; }
			return "1.75";
			
		case "MPB-1824-SP":				
			if (qty<10){ return "4.95"; }
			if (qty<15){ return "4.50"; }
			if (qty<25){ return "3.95"; }
			if (qty<50){ return "3.50"; }
			if (qty<100){ return "2.95"; }
			return "1.95";	
			
		case "BOB-1218-SP":				//1824 Steel sign panel
			if (qty<10){ return "4.50"; }
			if (qty<15){ return "3.95"; }
			if (qty<25){ return "3.50"; }
			if (qty<50){ return "2.95"; }
			if (qty<100){ return "2.25"; }
			return "1.75";
			
		case "BOB-1824-SP":				
			if (qty<10){ return "4.95"; }
			if (qty<15){ return "4.50"; }
			if (qty<25){ return "3.95"; }
			if (qty<50){ return "3.50"; }
			if (qty<100){ return "2.95"; }
			return "1.95";	
		case "BOR-1218-SP":				//1824 Steel sign panel
			if (qty<10){ return "7.25"; }
			if (qty<15){ return "6.25"; }
			if (qty<25){ return "5.75"; }
			if (qty<50){ return "4.75"; }
			if (qty<100){ return "3.50"; }
			return "2.75";
			
		case "BOR-1824-SP":				
			if (qty<10){ return "7.95"; }
			if (qty<15){ return "6.95"; }
			if (qty<25){ return "6.25"; }
			if (qty<50){ return "5.75"; }
			if (qty<100){ return "4.75"; }
			return "3.25";	
		case "MPB-1218-CS":				//1824 Steel sign panel
			if (qty<10){ return "5.50"; }
			if (qty<15){ return "4.95"; }
			if (qty<25){ return "4.50"; }
			if (qty<50){ return "3.95"; }
			if (qty<100){ return "3.25"; }
			return "2.75";
			
		case "MPB-1824-CS":				
			if (qty<10){ return "5.95"; }
			if (qty<15){ return "5.50"; }
			if (qty<25){ return "4.95"; }
			if (qty<50){ return "4.50"; }
			if (qty<100){ return "3.95"; }
			return "2.95";	
			
		case "BOB-1218-CS":				//1824 Steel sign panel
			if (qty<10){ return "5.50"; }
			if (qty<15){ return "4.95"; }
			if (qty<25){ return "4.50"; }
			if (qty<50){ return "3.95"; }
			if (qty<100){ return "3.25"; }
			return "2.75";
			
		case "BOB-1824-CS":				
			if (qty<10){ return "5.95"; }
			if (qty<15){ return "4.50"; }
			if (qty<25){ return "3.95"; }
			if (qty<50){ return "3.50"; }
			if (qty<100){ return "2.95"; }
			return "2.95";	
		case "BOR-1218-CS":				//1824 Steel sign panel
			if (qty<10){ return "8.25"; }
			if (qty<15){ return "7.25"; }
			if (qty<25){ return "6.75"; }
			if (qty<50){ return "5.75"; }
			if (qty<100){ return "4.50"; }
			return "3.75";
			
		case "BOR-1824-CS":				
			if (qty<10){ return "8.95"; }
			if (qty<15){ return "7.95"; }
			if (qty<25){ return "7.25"; }
			if (qty<50){ return "6.75"; }
			if (qty<100){ return "5.75"; }
			return "4.25";					
							
		default:
			return "";			
	}
}	 
/*
function getPriceABQ(itemNo, qty)
{
	switch(itemNo)
	{
		case "rsxSpc1":
			return "2.44";
		case "rsxSpc2":
			return "14.88";
		case "rsxSpc3":
			return "7.88"	
		case "rsxSpc4":
			return "4.88";	
		case "rsxSpc5":
			return "2.88";			
		case "rsxSpc61":
			return "3.66";
		case "rsxSp62":
			return "2.88";
		case "rsxSpc63":
			return "9.88";
		case "rsxSpc7":
			return "3.88";
		case "rsxSpc8":
			return "9.88";
		case "rsxSpc9-RD":
			return "5.88";
		case "rsxSpc9-BK":
			return "5.88";
		case "rsxSpc9-BE":
			return "5.88";
		case "rsxSpc9-WH":
			return "5.88";
		case "rsxSp10":
			return "2.88";
		case "rsxSp11-Mag":
			return "3.88";	
		case "rsxSp11-Pin":
			return "3.88";
		case "rsxSp12A":
			return "5.88";
		case "rsxSp12B":
			return "11.88";			
		case "rsxSp13-WT":
			return "2.88";	
		case "rsxSp13-BK":
			return "2.88";																																																			
		default:
			return "";
	}
	
}
*/
//-------------------------------------------------------------------------------------------------------------------------------

function viewInfo(infoType)
{
	if (infoType == 'rsxSpc5'){
		smallwin1 = window.open("rsx_spec5_popup.htm", "small1", "scrollbars,width=600,height=400");
		smallwin1.focus;
	} else if (infoType == 'Material'){
		smallwin2 = window.open("popouts/agent_material_popup.htm", "small2", "scrollbars,width=500,height=400");		
		smallwin2.focus;
	} else if (infoType == 'Product'){
		smallwin3 = window.open("popouts/product_popup.htm", "small3", "scrollbars,width=550,height=400");		
		smallwin3.focus;
	} else if (infoType == 'dShape'){
		smallwin4 = window.open("popouts/d_shape_popup.htm", "small4", "scrollbars,width=500,height=400");
	} else if (infoType == 'dStyle'){
		smallwin5 = window.open("popouts/d_style_popup.htm", "small5", "scrollbars,width=550,height=300");
	} else if (infoType == 'nrColor'){
		smallwin6 = window.open("popouts/nr_color_popup.htm", "small6", "scrollbars,width=550,height=300");
	} else if (infoType == 'nrMaterial'){
		smallwin7 = window.open("popouts/material_popup_nr.htm", "small7", "scrollbars,width=550,height=400");
	} else if (infoType == 'nrStyle'){
		smallwin8 = window.open("popouts/nr_style_popup.htm", "small8", "scrollbars,width=550,height=300");
	} else if (infoType == 'Signature'){
		smallwin9 = window.open("popouts/new_franchise_popup.htm", "small9", "scrollbars,width=475,height=400");
	} else if (infoType == 'dMaterial'){
		smallwin10 = window.open("popouts/d_material_popup.htm", "small10", "scrollbars,width=475,height=300");
	} else if (infoType == 'lfMaterial'){
		smallwin11 = window.open("popouts/material_popup_large_format.htm", "small11", "scrollbars,width=550,height=200");
	} else if (infoType == 'evName'){
		smallwin12 = window.open("popouts/name_conventions.htm", "small12", "scrollbars,width=450,height=300");
	}else if (infoType == 'evHouse'){
		smallwin13 = window.open("popouts/read_open_house.htm", "small13", "scrollbars,width=550,height=300");
	}
}

// -->	









