<!--

function SubmitOrder()
{
	var sHowHeard="";	

	if (document.order.bill_name.value!="" && document.order.bill_addr_1.value!="" && 
	document.order.bill_city.value!="" && document.order.bill_state.value!="" && 
	document.order.bill_country.value!="" && document.order.confirm_email.value!="" && 
	document.order.bill_tel.value!="" &&
	document.order.bill_post_code.value!="" && document.order.bill_email.value!="" && document.order.terms.checked == true) 
	{
		if (document.order.bill_email.value == document.order.confirm_email.value)
		{
	
			var sOrder;
		
			sOrder="<b>Property</b> <br>";
			if (document.order.Oats.checked == true)
			{
			    sOrder+= "Oats ";
			}
			if (document.order.Barley.checked == true)
			{		
			    sOrder+= "Barley ";
			}
			if (document.order.Wheat.checked == true)
			{    
			    sOrder+= "Wheat ";
			}
			if (document.order.Wren.checked == true)
			{
			    sOrder+= "Wren ";
			}
			if (document.order.Heron.checked == true)
			{
			    sOrder+= "Heron ";
			}
			if (document.order.Robin.checked == true)
			{
			    sOrder+= "Robin ";
			}
			if (document.order.Swallow.checked == true)
			{    
			    sOrder+= "Swallow ";
			}
			if (document.order.Corner.checked == true)
			{    
			    sOrder+= "Corner ";
			}

			if (document.order.Forge.checked == true)
			{    
			    sOrder+= "Forge ";
			}
			
			sOrder+="<br>";

			var j=document.order.how_heard.length;
			for (i=0; i<j; i++)
			{
				if(document.order.how_heard[i].checked) 
				{
					sHowHeard = document.order.how_heard[i].value;
				}
			}	
			
			if (sHowHeard != "")
			{
				if (sHowHeard=="website")
				{
					sHowHeard+= "-" + document.order.Which_website.value ;
				}
				else if (sHowHeard=="publication")
				{
					sHowHeard+= "-" + document.order.Which_publication.value;
				}
				else if (sHowHeard=="other")
				{
					sHowHeard+= "-" + document.order.How_heard_other.value;
				}
			}
		
			sOrder+="<b>Details</b><br>";
			sOrder+="Adults: " + document.order.Number_Adults.value + "<br>";
			sOrder+="Children: " + document.order.Number_Children.value + "<br>";
			sOrder+="Dogs: " + document.order.Number_Dogs.value + "<br>";
			sOrder+="Arrival Date: " + document.order.Arrival_Date.value + "<br>";
			sOrder+="Departure Date: " + document.order.Departure_Date.value + "<br>";
			sOrder+="Nights: " + document.order.Number_of_Nights.value + "<br>";
			sOrder+="Other Reqs: " + document.order.textarea.value + "<br>";
			sOrder+="How Heard: " + sHowHeard + "<br>";
			
			document.order.order.value = "prod=" + sOrder + ",item_amount=100.00x1";
			
			var dtNow = new Date();
			var sTransID = 'NF' + dtNow.getHours() + '' + dtNow.getMinutes() + '' + dtNow.getSeconds() + '' + dtNow.getMilliseconds();
			document.order.trans_id.value = sTransID;
		}
		else
		{
			alert("Email and Confirm Email address fields do not match.");
		}
	}
	else
	{
	 alert("Required information is missing\nPlease enter all fields marked with a *");
	 return false;
	}

	return true;

}

//-->

