function stopError() {
  return true;
}

window.onerror = stopError;

function checkSelected(){
	listener();
	saveOrder();
	checkText();
	checkZip();
}

function listener(){
	var standardWeight = "40";
	var oversizedWeight = "53";
	box = document.order_form.stonetype
	stone_styletype = box.options[box.selectedIndex].value;
	// BEGIN TEST ORDER
	//if(stone_styletype == "testorder"){
	//	document.order_form.weight.value = standardWeight;
	//	saveOrder();
	//}
	if (stone_styletype == "Standard_Beveled" ||
		 stone_styletype == "Standard_Chicago" ||
		 stone_styletype == "Standard_Classic" ||
		 stone_styletype == "Standard_Oxford" ||
		 stone_styletype == "Standard_Plain" ||
		 stone_styletype == "Standard_Plain_Border_Antique" ||
		 stone_styletype == "Standard_Plain_Border_Decorative" ||
		 stone_styletype == "Standard_Plain_Border_Modern" ||
		 stone_styletype == "Standard_Plain_Border_Ornament"){
		   additional_text.className = "hide";
				standard_single_lineDiv.className	= "show";
				oversized_single_lineDiv.className 	= "hide";
				standard_1st_lineDiv.className 		= "hide";
	 			standard_2nd_lineDiv.className 		= "hide";
	 			oversized_1st_lineDiv.className		= "hide";
	 			oversized_2nd_lineDiv.className		= "hide";
	 			document.getElementById("blocklengthDiv").innerHTML = "<img src='_images/place_order/standard_length.gif'><br>Thickness of this natural Indiana Limestone address block is 4\".<br>Standard size address block is for application with modular brick.";
	 			document.getElementById("blockheightDiv").innerHTML = "<img src='_images/place_order/standard_height.gif'>";
	 		AddressBlock.className = "show";
			AddressBlockBG.className = stone_styletype;
	 		document.order_form.weight.value = standardWeight;
	 		document.order_form.extratext.value="";
	 		saveOrder();
	}
	if (stone_styletype == "Oversized_Beveled" ||
		 stone_styletype == "Oversized_Chicago" ||
		 stone_styletype == "Oversized_Classic" ||
		 stone_styletype == "Oversized_Oxford" ||
		 stone_styletype == "Oversized_Plain" ||
		 stone_styletype == "Oversized_Plain_Border_Antique" ||
		 stone_styletype == "Oversized_Plain_Border_Decorative" ||
		 stone_styletype == "Oversized_Plain_Border_Modern" ||
		 stone_styletype == "Oversized_Plain_Border_Ornament"){
		 	additional_text.className = "hide";
				standard_single_lineDiv.className	= "hide";
				oversized_single_lineDiv.className 	= "show";
				standard_1st_lineDiv.className 		= "hide";
				standard_2nd_lineDiv.className 		= "hide";
				oversized_1st_lineDiv.className		= "hide";
				oversized_2nd_lineDiv.className		= "hide";
	 			document.getElementById("blocklengthDiv").innerHTML = "<img src='_images/place_order/oversized_length.gif'><br>Thickness of this natural Indiana Limestone address block is 4\".<br>Oversized address block is for application with oversized brick.";
	 			document.getElementById("blockheightDiv").innerHTML = "<img src='_images/place_order/oversized_height.gif'>";
			AddressBlock.className = "show";
			AddressBlockBG.className = stone_styletype;
			document.order_form.weight.value = oversizedWeight;
			document.order_form.extratext.value= "";
			saveOrder();
	}
	if (stone_styletype == "Standard_Beveled_Extra_Text" ||
		 stone_styletype == "Standard_Classic_Extra_Text" ||
		 stone_styletype == "Standard_Oxford_Extra_Text" ||
		 stone_styletype == "Standard_Plain_Extra_Text" ||
		 stone_styletype == "Standard_Plain_Border_Antique_Extra_Text" ||
		 stone_styletype == "Standard_Plain_Border_Decorative_Extra_Text" ||
		 stone_styletype == "Standard_Plain_Border_Modern_Extra_Text" ||
		 stone_styletype == "Standard_Plain_Border_Ornament_Extra_Text"){
		 	additional_text.className = "show";
				standard_single_lineDiv.className	= "hide";
				oversized_single_lineDiv.className 	= "hide";
				standard_1st_lineDiv.className 		= "show";
	 			standard_2nd_lineDiv.className 		= "show";
	 			oversized_1st_lineDiv.className		= "hide";
	 			oversized_2nd_lineDiv.className		= "hide";
	 			document.getElementById("blocklengthDiv").innerHTML = "<img src='_images/place_order/standard_length.gif'><br>Thickness of this natural Indiana Limestone address block is 4\".<br>Standard size address block is for application with modular brick.";
	 			document.getElementById("blockheightDiv").innerHTML = "<img src='_images/place_order/standard_height.gif'>";
	 		AddressBlock.className = "show";
			AddressBlockBG.className = stone_styletype;
	 		document.order_form.weight.value = standardWeight;
	 		saveOrder();
	}
	if (stone_styletype == "Oversized_Beveled_Extra_Text" ||
		 stone_styletype == "Oversized_Classic_Extra_Text" ||
		 stone_styletype == "Oversized_Oxford_Extra_Text" ||
		 stone_styletype == "Oversized_Plain_Extra_Text" ||
		 stone_styletype == "Oversized_Plain_Border_Antique_Extra_Text" ||
		 stone_styletype == "Oversized_Plain_Border_Decorative_Extra_Text" ||
		 stone_styletype == "Oversized_Plain_Border_Modern_Extra_Text" ||
		 stone_styletype == "Oversized_Plain_Border_Ornament_Extra_Text"){
		 	additional_text.className = "show";
				standard_single_lineDiv.className	= "hide";
				oversized_single_lineDiv.className 	= "hide";
				standard_1st_lineDiv.className 		= "hide";
	 			standard_2nd_lineDiv.className 		= "hide";
	 			oversized_1st_lineDiv.className		= "show";
	 			oversized_2nd_lineDiv.className		= "show";
	 			document.getElementById("blocklengthDiv").innerHTML = "<img src='_images/place_order/oversized_length.gif'><br>Thickness of this natural Indiana Limestone address block is 4\".<br>Oversized address block is for application with oversized brick.";
	 			document.getElementById("blockheightDiv").innerHTML = "<img src='_images/place_order/oversized_height.gif'>";
			AddressBlock.className = "show";
	 		AddressBlockBG.className = stone_styletype;
	 		document.order_form.weight.value = oversizedWeight;
	 		saveOrder();
	}

	if(stone_styletype == "Standard_Plain_Border_Antique"){
			if(document.order_form.fontcolor.options[document.order_form.fontcolor.selectedIndex].value == "#000000"){
				AddressBlockBG.className = stone_styletype + "_black";
			}
			if(document.order_form.fontcolor.options[document.order_form.fontcolor.selectedIndex].value == "#AB7D5C"){
				AddressBlockBG.className = stone_styletype + "_brown";
			}
			if(document.order_form.fontcolor.options[document.order_form.fontcolor.selectedIndex].value == "#0000B0"){
				AddressBlockBG.className = stone_styletype + "_blue";
			}
			saveOrder();
	}
	if(stone_styletype == "Standard_Plain_Border_Decorative"){
			if(document.order_form.fontcolor.options[document.order_form.fontcolor.selectedIndex].value == "#000000"){
				AddressBlockBG.className = stone_styletype + "_black";
			}
			if(document.order_form.fontcolor.options[document.order_form.fontcolor.selectedIndex].value == "#AB7D5C"){
				AddressBlockBG.className = stone_styletype + "_brown";
			}
			if(document.order_form.fontcolor.options[document.order_form.fontcolor.selectedIndex].value == "#0000B0"){
				AddressBlockBG.className = stone_styletype + "_blue";
			}
			saveOrder();
	}
	if(stone_styletype == "Standard_Plain_Border_Modern"){
			if(document.order_form.fontcolor.options[document.order_form.fontcolor.selectedIndex].value == "#000000"){
				AddressBlockBG.className = stone_styletype + "_black";
			}
			if(document.order_form.fontcolor.options[document.order_form.fontcolor.selectedIndex].value == "#AB7D5C"){
				AddressBlockBG.className = stone_styletype + "_brown";
			}
			if(document.order_form.fontcolor.options[document.order_form.fontcolor.selectedIndex].value == "#0000B0"){
				AddressBlockBG.className = stone_styletype + "_blue";
			}
			saveOrder();
	}
	if(stone_styletype == "Standard_Plain_Border_Ornament"){
			if(document.order_form.fontcolor.options[document.order_form.fontcolor.selectedIndex].value == "#000000"){
				AddressBlockBG.className = stone_styletype + "_black";
			}
			if(document.order_form.fontcolor.options[document.order_form.fontcolor.selectedIndex].value == "#AB7D5C"){
				AddressBlockBG.className = stone_styletype + "_brown";
			}
			if(document.order_form.fontcolor.options[document.order_form.fontcolor.selectedIndex].value == "#0000B0"){
				AddressBlockBG.className = stone_styletype + "_blue";
			}
			saveOrder();
	}
	if(stone_styletype == "Standard_Plain_Border_Antique_Extra_Text"){
			if(document.order_form.fontcolor.options[document.order_form.fontcolor.selectedIndex].value == "#000000"){
				AddressBlockBG.className = stone_styletype + "_black";
			}
			if(document.order_form.fontcolor.options[document.order_form.fontcolor.selectedIndex].value == "#AB7D5C"){
				AddressBlockBG.className = stone_styletype + "_brown";
			}
			if(document.order_form.fontcolor.options[document.order_form.fontcolor.selectedIndex].value == "#0000B0"){
				AddressBlockBG.className = stone_styletype + "_blue";
			}
			saveOrder();
	}
	if(stone_styletype == "Standard_Plain_Border_Decorative_Extra_Text"){
			if(document.order_form.fontcolor.options[document.order_form.fontcolor.selectedIndex].value == "#000000"){
				AddressBlockBG.className = stone_styletype + "_black";
			}
			if(document.order_form.fontcolor.options[document.order_form.fontcolor.selectedIndex].value == "#AB7D5C"){
				AddressBlockBG.className = stone_styletype + "_brown";
			}
			if(document.order_form.fontcolor.options[document.order_form.fontcolor.selectedIndex].value == "#0000B0"){
				AddressBlockBG.className = stone_styletype + "_blue";
			}
			saveOrder();
	}
	if(stone_styletype == "Standard_Plain_Border_Modern_Extra_Text"){
			if(document.order_form.fontcolor.options[document.order_form.fontcolor.selectedIndex].value == "#000000"){
				AddressBlockBG.className = stone_styletype + "_black";
			}
			if(document.order_form.fontcolor.options[document.order_form.fontcolor.selectedIndex].value == "#AB7D5C"){
				AddressBlockBG.className = stone_styletype + "_brown";
			}
			if(document.order_form.fontcolor.options[document.order_form.fontcolor.selectedIndex].value == "#0000B0"){
				AddressBlockBG.className = stone_styletype + "_blue";
			}
			saveOrder();
	}
	if(stone_styletype == "Standard_Plain_Border_Ornament_Extra_Text"){
			if(document.order_form.fontcolor.options[document.order_form.fontcolor.selectedIndex].value == "#000000"){
				AddressBlockBG.className = stone_styletype + "_black";
			}
			if(document.order_form.fontcolor.options[document.order_form.fontcolor.selectedIndex].value == "#AB7D5C"){
				AddressBlockBG.className = stone_styletype + "_brown";
			}
			if(document.order_form.fontcolor.options[document.order_form.fontcolor.selectedIndex].value == "#0000B0"){
				AddressBlockBG.className = stone_styletype + "_blue";
			}
			saveOrder();
	}
	if(stone_styletype == "Oversized_Plain_Border_Antique"){
			if(document.order_form.fontcolor.options[document.order_form.fontcolor.selectedIndex].value == "#000000"){
				AddressBlockBG.className = stone_styletype + "_black";
			}
			if(document.order_form.fontcolor.options[document.order_form.fontcolor.selectedIndex].value == "#AB7D5C"){
				AddressBlockBG.className = stone_styletype + "_brown";
			}
			if(document.order_form.fontcolor.options[document.order_form.fontcolor.selectedIndex].value == "#0000B0"){
				AddressBlockBG.className = stone_styletype + "_blue";
			}
			saveOrder();
	}
	if(stone_styletype == "Oversized_Plain_Border_Decorative"){
			if(document.order_form.fontcolor.options[document.order_form.fontcolor.selectedIndex].value == "#000000"){
				AddressBlockBG.className = stone_styletype + "_black";
			}
			if(document.order_form.fontcolor.options[document.order_form.fontcolor.selectedIndex].value == "#AB7D5C"){
				AddressBlockBG.className = stone_styletype + "_brown";
			}
			if(document.order_form.fontcolor.options[document.order_form.fontcolor.selectedIndex].value == "#0000B0"){
				AddressBlockBG.className = stone_styletype + "_blue";
			}
			saveOrder();
	}
	if(stone_styletype == "Oversized_Plain_Border_Modern"){
			if(document.order_form.fontcolor.options[document.order_form.fontcolor.selectedIndex].value == "#000000"){
				AddressBlockBG.className = stone_styletype + "_black";
			}
			if(document.order_form.fontcolor.options[document.order_form.fontcolor.selectedIndex].value == "#AB7D5C"){
				AddressBlockBG.className = stone_styletype + "_brown";
			}
			if(document.order_form.fontcolor.options[document.order_form.fontcolor.selectedIndex].value == "#0000B0"){
				AddressBlockBG.className = stone_styletype + "_blue";
			}
			saveOrder();
	}
	if(stone_styletype == "Oversized_Plain_Border_Ornament"){
			if(document.order_form.fontcolor.options[document.order_form.fontcolor.selectedIndex].value == "#000000"){
				AddressBlockBG.className = stone_styletype + "_black";
			}
			if(document.order_form.fontcolor.options[document.order_form.fontcolor.selectedIndex].value == "#AB7D5C"){
				AddressBlockBG.className = stone_styletype + "_brown";
			}
			if(document.order_form.fontcolor.options[document.order_form.fontcolor.selectedIndex].value == "#0000B0"){
				AddressBlockBG.className = stone_styletype + "_blue";
			}
			saveOrder();
	}
	if(stone_styletype == "Oversized_Plain_Border_Antique_Extra_Text"){
			if(document.order_form.fontcolor.options[document.order_form.fontcolor.selectedIndex].value == "#000000"){
				AddressBlockBG.className = stone_styletype + "_black";
			}
			if(document.order_form.fontcolor.options[document.order_form.fontcolor.selectedIndex].value == "#AB7D5C"){
				AddressBlockBG.className = stone_styletype + "_brown";
			}
			if(document.order_form.fontcolor.options[document.order_form.fontcolor.selectedIndex].value == "#0000B0"){
				AddressBlockBG.className = stone_styletype + "_blue";
			}
			saveOrder();
	}
	if(stone_styletype == "Oversized_Plain_Border_Decorative_Extra_Text"){
			if(document.order_form.fontcolor.options[document.order_form.fontcolor.selectedIndex].value == "#000000"){
				AddressBlockBG.className = stone_styletype + "_black";
			}
			if(document.order_form.fontcolor.options[document.order_form.fontcolor.selectedIndex].value == "#AB7D5C"){
				AddressBlockBG.className = stone_styletype + "_brown";
			}
			if(document.order_form.fontcolor.options[document.order_form.fontcolor.selectedIndex].value == "#0000B0"){
				AddressBlockBG.className = stone_styletype + "_blue";
			}
			saveOrder();
	}
	if(stone_styletype == "Oversized_Plain_Border_Modern_Extra_Text"){
			if(document.order_form.fontcolor.options[document.order_form.fontcolor.selectedIndex].value == "#000000"){
				AddressBlockBG.className = stone_styletype + "_black";
			}
			if(document.order_form.fontcolor.options[document.order_form.fontcolor.selectedIndex].value == "#AB7D5C"){
				AddressBlockBG.className = stone_styletype + "_brown";
			}
			if(document.order_form.fontcolor.options[document.order_form.fontcolor.selectedIndex].value == "#0000B0"){
				AddressBlockBG.className = stone_styletype + "_blue";
			}
			saveOrder();
	}
	if(stone_styletype == "Oversized_Plain_Border_Ornament_Extra_Text"){
			if(document.order_form.fontcolor.options[document.order_form.fontcolor.selectedIndex].value == "#000000"){
				AddressBlockBG.className = stone_styletype + "_black";
			}
			if(document.order_form.fontcolor.options[document.order_form.fontcolor.selectedIndex].value == "#AB7D5C"){
				AddressBlockBG.className = stone_styletype + "_brown";
			}
			if(document.order_form.fontcolor.options[document.order_form.fontcolor.selectedIndex].value == "#0000B0"){
				AddressBlockBG.className = stone_styletype + "_blue";
			}
			saveOrder();
	}
	if (stone_styletype == ""){
		 	additional_text.className = "hide";
				standard_single_lineDiv.className	= "hide";
				oversized_single_lineDiv.className 	= "hide";
				standard_1st_lineDiv.className 		= "hide";
	 			standard_2nd_lineDiv.className 		= "hide";
	 			oversized_1st_lineDiv.className		= "hide";
	 			oversized_2nd_lineDiv.className		= "hide";
	 		AddressBlock.className = "hidden";
			AddressBlockBG.className = "";
			saveOrder();
	}
	if(document.order_form.stonetype.options[document.order_form.stonetype.selectedIndex].value != "" ||
			document.order_form.usertext.value != "" ||
			document.order_form.extratext.value != "" ||
			document.order_form.fontcolor.options[document.order_form.fontcolor.selectedIndex].value != ""){
			addblocklink.className="show";
			showPrice();
		 	saveOrder();
	}
	if(document.order_form.stonetype.options[document.order_form.stonetype.selectedIndex].value == "" ||
			document.order_form.usertext.value == "" ||
			document.order_form.fontselect.options[document.order_form.fontselect.selectedIndex].value == "" ||
			document.order_form.fontcolor.options[document.order_form.fontcolor.selectedIndex].value == ""){
			addblocklink.className="hidden";
			showPrice();
			saveOrder();
	}
	if (stone_styletype == "Standard_Beveled_Extra_Text" ||
		 stone_styletype == "Standard_Classic_Extra_Text" ||
		 stone_styletype == "Standard_Oxford_Extra_Text" ||
		 stone_styletype == "Standard_Plain_Extra_Text" ||
		 stone_styletype == "Standard_Plain_Border_Antique_Extra_Text" ||
		 stone_styletype == "Standard_Plain_Border_Decorative_Extra_Text" ||
		 stone_styletype == "Standard_Plain_Border_Modern_Extra_Text" ||
		 stone_styletype == "Standard_Plain_Border_Ornament_Extra_Text" ||
		 stone_styletype == "Oversized_Beveled_Extra_Text" ||
		 stone_styletype == "Oversized_Classic_Extra_Text" ||
		 stone_styletype == "Oversized_Oxford_Extra_Text" ||
		 stone_styletype == "Oversized_Plain_Extra_Text" ||
		 stone_styletype == "Oversized_Plain_Border_Antique_Extra_Text" ||
		 stone_styletype == "Oversized_Plain_Border_Decorative_Extra_Text" ||
		 stone_styletype == "Oversized_Plain_Border_Modern_Extra_Text" ||
		 stone_styletype == "Oversized_Plain_Border_Ornament_Extra_Text"){
		 	if(document.order_form.extratext.value == ""){
		 		addblocklink.className = "hidden";
		 	}
		 saveOrder();
		 showPrice();
	}


// display text on block
	document.order_form.standard_single_line.value			=		(document.order_form.usertext.value);
	document.order_form.standard_1st_line.value				=		(document.order_form.usertext.value);
	document.order_form.standard_2nd_line.value				=		(document.order_form.extratext.value);

	document.order_form.oversized_single_line.value			=		(document.order_form.usertext.value);
	document.order_form.oversized_1st_line.value				=		(document.order_form.usertext.value);
	document.order_form.oversized_2nd_line.value				=		(document.order_form.extratext.value);

// set font family
	document.getElementById("standard_single_line").style.fontFamily 	= (document.order_form.fontselect.options[document.order_form.fontselect.selectedIndex].value);
	document.getElementById("standard_1st_line").style.fontFamily 		= (document.order_form.fontselect.options[document.order_form.fontselect.selectedIndex].value);
	document.getElementById("standard_2nd_line").style.fontFamily 		= (document.order_form.fontselect.options[document.order_form.fontselect.selectedIndex].value);
	document.getElementById("oversized_single_line").style.fontFamily = (document.order_form.fontselect.options[document.order_form.fontselect.selectedIndex].value);
	document.getElementById("oversized_1st_line").style.fontFamily	 	= (document.order_form.fontselect.options[document.order_form.fontselect.selectedIndex].value);
	document.getElementById("oversized_2nd_line").style.fontFamily 	= (document.order_form.fontselect.options[document.order_form.fontselect.selectedIndex].value);

// set font and font sizes
	document.getElementById("standard_single_lineDiv").style.color 	= (document.order_form.fontcolor.options[document.order_form.fontcolor.selectedIndex].value);
	document.getElementById("standard_1st_lineDiv").style.color 		= (document.order_form.fontcolor.options[document.order_form.fontcolor.selectedIndex].value);
	document.getElementById("standard_2nd_lineDiv").style.color 		= (document.order_form.fontcolor.options[document.order_form.fontcolor.selectedIndex].value);
	document.getElementById("oversized_single_lineDiv").style.color 	= (document.order_form.fontcolor.options[document.order_form.fontcolor.selectedIndex].value);
	document.getElementById("oversized_1st_lineDiv").style.color 		= (document.order_form.fontcolor.options[document.order_form.fontcolor.selectedIndex].value);
	document.getElementById("oversized_2nd_lineDiv").style.color 		= (document.order_form.fontcolor.options[document.order_form.fontcolor.selectedIndex].value);
	checkText();
	saveOrder();
}

function showPrice(){
	//if(stone_styletype == "testorder"){
	//	document.order_form.blockPrice.value = "10.00";
	//	document.orderPreview.previewProdPrice.value = "10.00";
	//	previewProdName.innerHTML = "testorder";
	//	}
	if(stone_styletype == ""){
		document.order_form.blockPrice.value = "0.00";
		document.orderPreview.previewProdPrice.value = "0.00";
		previewProdName.innerHTML = "Cart Empty";
	}
	if(stone_styletype == "Standard_Beveled"){
		document.order_form.blockPrice.value = "98.00";
		document.orderPreview.previewProdPrice.value = "98.00";
		previewProdName.innerHTML = "Standard Beveled";
	}
	if(stone_styletype == "Standard_Chicago"){
		document.order_form.blockPrice.value = "110.00";
		document.orderPreview.previewProdPrice.value = "110.00";
		previewProdName.innerHTML = "Standard Chicago (inner bevel)";
	}
	if(stone_styletype == "Standard_Beveled_Extra_Text"){
		document.order_form.blockPrice.value = "108.00";
		document.orderPreview.previewProdPrice.value = "108.00";
		previewProdName.innerHTML = "Standard Beveled <br>2 lines of text";
	}
	if(stone_styletype == "Standard_Classic"){
		document.order_form.blockPrice.value = "126.00";
		document.orderPreview.previewProdPrice.value = "126.00";
		previewProdName.innerHTML = "Standard Classic";
	}
	if(stone_styletype == "Standard_Classic_Extra_Text"){
		document.order_form.blockPrice.value = "136.00";
		document.orderPreview.previewProdPrice.value = "136.00";
		previewProdName.innerHTML = "Standard Classicc <br>2 lines of text";
	}
	if(stone_styletype == "Standard_Oxford"){
		document.order_form.blockPrice.value = "108.00";
		document.orderPreview.previewProdPrice.value = "108.00";
		previewProdName.innerHTML = "Standard Oxford";
	}
	if(stone_styletype == "Standard_Oxford_Extra_Text"){
		document.order_form.blockPrice.value = "118.00";
		document.orderPreview.previewProdPrice.value = "118.00";
		previewProdName.innerHTML = "Standard Oxford <br>2 lines of text";
	}
	if(stone_styletype == "Standard_Plain"){
		document.order_form.blockPrice.value = "83.00";
		document.orderPreview.previewProdPrice.value = "83.00";
		previewProdName.innerHTML = "Standard Plain";
	}
	if(stone_styletype == "Standard_Plain_Extra_Text"){
		document.order_form.blockPrice.value = "93.00";
		document.orderPreview.previewProdPrice.value = "93.00";
		previewProdName.innerHTML = "Standard Plain <br>2 lines of text";
	}

// STANDARD PLAIN W/ BORDERS (BLOCK + 10.00)

	if(stone_styletype == "Standard_Plain_Border_Antique"){
		document.order_form.blockPrice.value = "93.00";
		document.orderPreview.previewProdPrice.value = "93.00";
		previewProdName.innerHTML = "Standard Plain <br>w/ Antique border";
	}
	if(stone_styletype == "Standard_Plain_Border_Antique_Extra_Text"){
		document.order_form.blockPrice.value = "103.00";
		document.orderPreview.previewProdPrice.value = "103.00";
		previewProdName.innerHTML = "Standard Plain <br>w/ Antique border<br>2 lines of text";
	}
	if(stone_styletype == "Standard_Plain_Border_Decorative"){
		document.order_form.blockPrice.value = "93.00";
		document.orderPreview.previewProdPrice.value = "93.00";
		previewProdName.innerHTML = "Standard Plain <br>w/ Decorative border";
	}
	if(stone_styletype == "Standard_Plain_Border_Decorative_Extra_Text"){
		document.order_form.blockPrice.value = "103.00";
		document.orderPreview.previewProdPrice.value = "103.00";
		previewProdName.innerHTML = "Standard Plain <br>w/ Decorative border<br>& 2 lines of text";
	}
	if(stone_styletype == "Standard_Plain_Border_Modern"){
		document.order_form.blockPrice.value = "93.00";
		document.orderPreview.previewProdPrice.value = "93.00";
		previewProdName.innerHTML = "Standard Plain <br>w/ Modern border";
	}
	if(stone_styletype == "Standard_Plain_Border_Modern_Extra_Text"){
		document.order_form.blockPrice.value = "103.00";
		document.orderPreview.previewProdPrice.value = "103.00";
		previewProdName.innerHTML = "Standard Plain <br>w/ Modern border<br>& 2 lines of text";
	}
	if(stone_styletype == "Standard_Plain_Border_Ornament"){
		document.order_form.blockPrice.value = "93.00";
		document.orderPreview.previewProdPrice.value = "93.00";
		previewProdName.innerHTML = "Standard Plain <br>w/ Ornament border";
	}
	if(stone_styletype == "Standard_Plain_Border_Ornament_Extra_Text"){
		document.order_form.blockPrice.value = "103.00";
		document.orderPreview.previewProdPrice.value = "103.00";
		previewProdName.innerHTML = "Standard Plain <br>w/ Ornament border<br>& 2 lines of text";
	}

//	OVERSIZED BLOCKS

	if(stone_styletype == "Oversized_Beveled"){
		document.order_form.blockPrice.value = "117.00";
		document.orderPreview.previewProdPrice.value = "117.00";
		previewProdName.innerHTML = "Oversized Beveled";
	}
	if(stone_styletype == "Oversized_Chicago"){
		document.order_form.blockPrice.value = "125.00";
		document.orderPreview.previewProdPrice.value = "125.00";
		previewProdName.innerHTML = "Oversized Chicago (inner bevel)";
	}
	if(stone_styletype == "Oversized_Beveled_Extra_Text"){
		document.order_form.blockPrice.value = "127.00";
		document.orderPreview.previewProdPrice.value = "127.00";
		previewProdName.innerHTML = "Oversized Beveled <br>2 lines of text";
	}
	if(stone_styletype == "Oversized_Classic"){
		document.order_form.blockPrice.value = "142.00";
		document.orderPreview.previewProdPrice.value = "142.00";
		previewProdName.innerHTML = "Oversized Classic";
	}
	if(stone_styletype == "Oversized_Classic_Extra_Text"){
		document.order_form.blockPrice.value = "152.00";
		document.orderPreview.previewProdPrice.value = "152.00";
		previewProdName.innerHTML = "Oversized Classid <br>2 lines of text";
	}
	if(stone_styletype == "Oversized_Oxford"){
		document.order_form.blockPrice.value = "123.00";
		document.orderPreview.previewProdPrice.value = "123.00";
		previewProdName.innerHTML = "Oversized Oxford";
	}
	if(stone_styletype == "Oversized_Oxford_Extra_Text"){
		document.order_form.blockPrice.value = "133.00";
		document.orderPreview.previewProdPrice.value = "133.00";
		previewProdName.innerHTML = "Oversized Oxford<br>2 lines of text";
	}
	if(stone_styletype == "Oversized_Plain"){
		document.order_form.blockPrice.value = "92.00";
		document.orderPreview.previewProdPrice.value = "92.00";
		previewProdName.innerHTML = "Oversized Plain";
	}
	if(stone_styletype == "Oversized_Plain_Extra_Text"){
		document.order_form.blockPrice.value = "102.00";
		document.orderPreview.previewProdPrice.value = "102.00";
		previewProdName.innerHTML = "Oversized Plain <br>2 lines of text";
	}


	if(stone_styletype == "Oversized_Plain_Border_Antique"){
		document.order_form.blockPrice.value = "102.00";
		document.orderPreview.previewProdPrice.value = "102.00";
		previewProdName.innerHTML = "Oversized Plain <br>w/ Antique border";
	}
	if(stone_styletype == "Oversized_Plain_Border_Antique_Extra_Text"){
		document.order_form.blockPrice.value = "112.00";
		document.orderPreview.previewProdPrice.value = "112.00";
		previewProdName.innerHTML = "Oversize Plain<br>w/ Antique border<br>& 2 lines of text";
	}
	if(stone_styletype == "Oversized_Plain_Border_Decorative"){
		document.order_form.blockPrice.value = "102.00";
		document.orderPreview.previewProdPrice.value = "102.00";
		previewProdName.innerHTML = "Oversized Plain <br>w/ Decorative border";
	}
	if(stone_styletype == "Oversized_Plain_Border_Decorative_Extra_Text"){
		document.order_form.blockPrice.value = "112.00";
		document.orderPreview.previewProdPrice.value = "112.00";
		previewProdName.innerHTML = "Oversized Plain<br>w/ Decorative border<br>& 2 lines of text";
	}
	if(stone_styletype == "Oversized_Plain_Border_Modern"){
		document.order_form.blockPrice.value = "102.00";
		document.orderPreview.previewProdPrice.value = "102.00";
		previewProdName.innerHTML = "Oversized Plain <br>w/ Modern border";
	}
	if(stone_styletype == "Oversized_Plain_Border_Modern_Extra_Text"){
		document.order_form.blockPrice.value = "112.00";
		document.orderPreview.previewProdPrice.value = "112.00";
		previewProdName.innerHTML = "Oversized Plain<br>w/ Modern border<br>& 2 lines of text";
	}
	if(stone_styletype == "Oversized_Plain_Border_Ornament"){
		document.order_form.blockPrice.value = "102.00";
		document.orderPreview.previewProdPrice.value = "102.00";
		previewProdName.innerHTML = "Oversized Plain <br>w/ Ornament border";
	}
	if(stone_styletype == "Oversized_Plain_Border_Ornament_Extra_Text"){
		document.order_form.blockPrice.value = "112.00";
		document.orderPreview.previewProdPrice.value = "112.00";
		previewProdName.innerHTML = "Oversized Plain <br>w/ Ornament border<br>& 2 lines of text";
	}
}

function changeUPS(){
	upsDiv.className = "show";
	checkBusRes();
	paypalDiv.className = "hide";
	document.getElementById("shippingFee").value = "0.00";
	document.orderPreview.previewProdShipping.value = "0.00";
	saveOrder();
}

function saveOrder(){
	var blockPrice = eval(document.order_form.blockPrice.value);
	var subtotalPrice = eval(document.orderPreview.previewProdSubtotal.value);
	var shippingPrice = eval(document.order_form.shippingFee.value);

	continueButton.className = "hide";

	if(document.order_form.blockPrice.value == ""){
		document.order_form.blockPrice.value = "0.00";
		}
	if(document.orderPreview.previewProdSubtotal.value == ""){
		document.orderPreview.previewProdSubtotal.value = "0.00";
		}
	if(document.order_form.shippingFee.value == ""){
		document.order_form.shippingFee.value = "0.00";
		}

	totalPrice = eval(subtotalPrice + shippingPrice);
	if(totalPrice == ""){
		totalPrice = "0.00";
		}
	document.paypal.item_name.value = document.order_form.stonetype.options[document.order_form.stonetype.selectedIndex].value;
	document.paypal.item_number.value = document.order_form.stonetype.options[document.order_form.stonetype.selectedIndex].value;
	document.paypal.amount.value = subtotalPrice;
	document.paypal.shipping.value = document.getElementById("shippingFee").value;
	document.paypal.os0.value=(document.order_form.usertext.value +" + "+ document.order_form.extratext.value +" + "+ document.order_form.fontselect.options[document.order_form.fontselect.selectedIndex].value +" + "+ document.order_form.fontcolor.options[document.order_form.fontcolor.selectedIndex].value +" - UPS: "+ document.order_form.shippingType.value);

	document.orderPreview.previewProdShipping.value = fmtPrice(shippingPrice);
	document.orderPreview.previewProdTotal.value = fmtPrice(totalPrice);
	document.showtotalprice.showpaypalTotal.value = fmtPrice(totalPrice);
}

function sendOrder(){
	if(document.paypal.item_name.value == "" ||
		document.paypal.amount.value == "" ||
		document.paypal.shipping.value == ""){
			paypalDiv.className = "hide";
			upsDiv.className = "show";
			validateForm();
			alert("Please choose a UPS shipping method");
			return false;
	}
	if(document.paypal.item_name.value != "" ||
		document.paypal.amount.value != "" ||
		document.paypal.shipping.value != ""){
			upsDiv.className = "hide";
			paypalDiv.className="show";
			return true;
	}
}

function checkZip(){
	var z = document.order_form.shipping_zip.value;
	if (z == 0){
		document.orderPreview.previewProdTax.value = "$ 0.00";
		IL.className="hide";
	}
	if (z >= 60001 && z <= 62999){
		IL.className="show";
		compute();
	}
	else {
		IL.className="hide";
		document.orderPreview.previewProdSubtotal.value = document.orderPreview.previewProdPrice.value;
	}
}

function checkBusRes(){
		if (document.getElementById("radioBus").checked){
			 busDiv.className = "show";
			 resDiv.className = "hide";
		}
		if (document.getElementById("radioRes").checked){
			 resDiv.className = "show";
			 busDiv.className = "hide";
		}
}
function ups_winOpenBus(){
	width= "300";
	height="250";
	optionString = "scrollbars=yes,status=yes,menubar=no,resizable=yes,location=no,toolbar=no,width=" + width + ",height=" + height;
	//var country = document.order_form.shipping_country.options[document.order_form.shipping_country.selectedIndex].value;
	var zip = document.order_form.shipping_zip.value;
	var ServiceLevelCode = document.order_form.ServiceLevelCode.options[document.order_form.ServiceLevelCode.selectedIndex].value;
	var weight = document.order_form.weight.value;

	if(zip == "" ||
		zip.length < 5 ||
		zip.length > 5){
  		alert("Please enter the Zip Code your product will be shipped to.");
		document.order_form.elements.shipping_zip.focus();
		return false;
	}
	if(ServiceLevelCode == ""){
		alert("Please select a UPS Shipping Service.");
		document.order_form.elements.ServiceLevelCode.focus();
		return false;
	}
	if (document.getElementById("radioBus").checked){
		busDiv.className = "show";
		resDiv.className = "hide";
		if(document.order_form.ServiceLevelCode.options[document.order_form.ServiceLevelCode.selectedIndex].value == ""){
			alert('Please select a UPS Shipping Service');
			return false;
		}
	}
	if (document.getElementById("radioRes").checked){
		resDiv.className = "show";
		busDiv.className = "hide";
		if(document.order_form.ServiceLevelCode2.options[document.order_form.ServiceLevelCode2.selectedIndex].value == ""){
			alert('Please select a UPS Shipping Service');
			return false;
		}
	}
	if (document.getElementById("shippingFee").value == "" ||
		 document.getElementById("shippingFee").value == "0.00"){
		 	upsDiv.className			=  "show";
			paypalDiv.className		=	"hide";
	}

	//if(country ==""){
	//	alert("Please select ship-to Country.");
	//	document.order_form.elements.shipping_country.focus();
	//	return false;
	//}

  	self.name = "opener";
   var es_zip = escape(zip);
	//var es_country = escape(country);
	var es_weight = escape(weight);
	var es_service = escape(ServiceLevelCode);
	var	action = "../cgi-local/GetRateBusiness.pl?FromZip=60031&ToZip=" + es_zip + '&country=US' + '&service=' + es_service + '&pounds=' + es_weight;
	document.order_form.shippingType.value = document.order_form.ServiceLevelCode.options[document.order_form.ServiceLevelCode.selectedIndex].id;
	cartWindow = window.open(action,'cart',optionString);

	return true;
}

function ups_winOpenRes(){
	width= "300";
	height="250";
	optionString = "scrollbars=yes,status=yes,menubar=no,resizable=yes,location=no,toolbar=no,width=" + width + ",height=" + height;
	//var country = document.order_form.elements.shipping_country.options[document.order_form.elements.shipping_country.selectedIndex].value;
	var zip = document.order_form.elements['shipping_zip'].value;
	var ServiceLevelCode2 = document.order_form.elements.ServiceLevelCode2.options[document.order_form.elements.ServiceLevelCode2.selectedIndex].value;
	var weight = document.order_form.elements['weight'].value;

	if(zip == "" ||
			zip.length < 5 ||
			zip.length > 5){
	  		alert("Please enter the Zip Code your product will be shipped to.");
			document.order_form.elements.shipping_zip.focus();
			return false;
		}
		if(ServiceLevelCode2 == ""){
			alert("Please select a UPS Shipping Service.");
			document.order_form.elements.ServiceLevelCode2.focus();
			return false;
		}
		if (document.getElementById("radioBus").checked){
			 busDiv.className = "show";
			 resDiv.className = "hide";
			 if(document.order_form.ServiceLevelCode.options[document.order_form.ServiceLevelCode.selectedIndex].value == ""){
			 	alert('Please select a UPS Shipping Service');
				return false;
			}
		}
		if (document.getElementById("radioRes").checked){
			 resDiv.className = "show";
			 busDiv.className = "hide";
			 if(document.order_form.ServiceLevelCode2.options[document.order_form.ServiceLevelCode2.selectedIndex].value == ""){
				 	alert('Please select a UPS Shipping Service');
					return false;
			 }
		}
		if (document.getElementById("shippingFee").value == "" ||
			 document.getElementById("shippingFee").value == "0.00"){
			 	upsDiv.className			=  "show";
			 	paypalDiv.className		=	"hide";
		}

	//if(country ==""){
	//	alert("Please select ship-to Country.");
	//	document.order_form.elements.shipping_country.focus();
	//	return false;
	//}

  	self.name = "opener";
   var es_zip = escape(zip);
	//var es_country = escape(country);
	var es_weight = escape(weight);
	var es_service = escape(ServiceLevelCode2);
	var	action = "../cgi-local/GetRateResidential.pl?FromZip=60031&ToZip=" + es_zip + '&country=US' + '&service=' + es_service + '&pounds=' + es_weight;
	document.order_form.shippingType.value = document.order_form.ServiceLevelCode2.options[document.order_form.ServiceLevelCode2.selectedIndex].id;
	cartWindow = window.open(action,'cart',optionString);

	return true;
}

setTimeout("checkSelected()", 1000);
