function addToCart(productID)
{
	obj.action='cart_process.php?opt=add&id='+productID;
	//obj.action='product_details.php?id='+productID;
	obj.submit();
}
function showResult(retVal)
{
	if(retVal == 'SUCCESS')
	{
		alert('Thank you for your interest.\n\nWe have received your request and will be in touch with you very soon.');
		//Clear the form
		obj.full_name.value = '';
		obj.company.value = '';
		obj.address.value = '';
		obj.city.value = '';
		obj.state.value = '';
		obj.zip.value = '';
		obj.phone.value = '';
		obj.email.value = '';
		obj.comments.value = '';
		obj.addl_info.checked = false;
		obj.ask_visit.checked = false;
	}
	else
	{
		alert('Sorry, your request could not be processed.\nPlease try again later.');
	}
	//Enable the submit button
	obj.btn_submit.disabled = false;
}

function changePrice()
{
	var extraPrice = 0;
	for(var i = 0; i < obj.elements.length; i++)
	{
		if(obj.elements[i].type == "select-one" && obj.elements[i].name.substring(0,15) == "product_option_")
		{
			arrTemp = obj.elements[i].value.split("|");
			switch(arrTemp[1].substring(0,1))
			{
				case "+":
					extraPrice += parseFloat(arrTemp[1].substring(1));
					break;
				case "-":
					extraPrice -= parseFloat(arrTemp[1].substring(1));
					break;
			}
		}
	}
	newPrice = parseFloat(obj.base_price.value) + extraPrice;
	document.getElementById("prod_price").innerHTML = "$" + newPrice.toFixed(2);
	obj.new_price.value = newPrice;
}

