<!--
function dp(a, b) {
 a *= Math.pow(10, b);
 a = Math.floor(a);
 a /=  Math.pow(10, b);
 return a;
}

function cal(proceed, inches, cm) {
	var cost;
	
	if ((isNaN(document.quote.width.value)==true)||(isNaN(document.quote.height.value)==true)) {
  		window.alert("Please enter numbers greater than 0 for your width and height\n"); }

	var area=(document.quote.width.value)*(document.quote.height.value);
	
	// CM
	if (document.quote.dimension.value=="cm") {
		cost=dp(((area*cm)/10000),2); }
	// INCHES
	else if (document.quote.dimension.value=="inches") {
		cost=dp(((area*inches)/144),2); } 
	
		
	// CHANGE COST ON PAGE AND CHANGE HIDDEN INPUT VALUE
	if (cost>0) {
		//document.getElementById('show_product_cost').innerHTML=dp((cost+9.50),2);
		document.getElementById('show_product_cost').innerHTML=dp((cost),2);
		document.quote.cost.value=dp(cost,2); }
	
	else {
		if (
				((proceed==0)&&(document.quote.width.value==0)&&(document.quote.height.value==0))
				||
				((proceed==1)&&((document.quote.width.value==0)||(document.quote.height.value==0)))
			) {
			alert('Please enter a height and a width.              '); }
		return false; }
		
		
		
	}

// Must choose style when 'Please Choose' as part as one of the values
function chooser() {
	var style_value=document.getElementById('style').value;
	if ((style_value.search('Please Choose'))>=0) {
		alert ('Please choose your style.');
		return false; }
	}
//-->
