// JavaScript Document

function checkvalidation()
{
	if(document.reserve.billing_name.value=="")
	{
		alert("Provide the name");
		document.reserve.billing_name.focus();
		return false;
	}
	if(document.reserve.billing_address.value=="")
	{
		alert("Provide the billing address");
		document.reserve.billing_address.focus();
		return false;
	}
	if(document.reserve.billing_city.value=="")
	{
		alert("Provide the billing city");
		document.reserve.billing_city.focus();
		return false;
	}
	if(document.reserve.billing_zip.value=="")
	{
		alert("Provide the billing zip code");
		document.reserve.billing_zip.focus();
		return false;
	}
	if(document.reserve.billing_phone.value=="")
	{
		alert("Provide the phone number");
		document.reserve.billing_phone.focus();
		return false;
	}
	if(document.reserve.billing_email.value=="")
	{
		alert("Provide the E-mail address");
		document.reserve.billing_email.focus();
		return false;
	}
	if(document.reserve.infomation_hear.value=="")
	{
		alert("Provide the hear information");
		document.reserve.infomation_hear.focus();
		return false;
	}
	if(document.reserve.first_choice.value=="")
	{
		alert("Provide the first choice");
		document.reserve.first_choice.focus();
		return false;
	}
	if(document.reserve.second_choice.value=="")
	{
		alert("Provide the second choice");
		document.reserve.second_choice.focus();
		return false;
	}
	if(document.reserve.min_choice.value=="")
	{
		alert("Provide the Mini Sign Choice");
		document.reserve.min_choice.focus();
		return false;
	}
	if(document.reserve.occasion.value=="")
	{
		alert("Provide the occasion");
		document.reserve.occasion.focus();
		return false;
	}
	if(document.reserve.delivery_date.value=="")
	{
		alert("Provide the Date Yard Celebration Needed");
		document.reserve.delivery_date.focus();
		return false;
	}
	if(document.reserve.delivery_address.value=="")
	{
		alert("Provide the delivery address");
		document.reserve.delivery_address.focus();
		return false;
	}
	if(document.reserve.delivery_city.value=="")
	{
		alert("Provide the delivery city");
		document.reserve.delivery_city.focus();
		return false;
	}
	if(document.reserve.delivery_zip.value=="")
	{
		alert("Provide the delivery zip code");
		document.reserve.delivery_zip.focus();
		return false;
	}
	if(document.reserve.comment.value=="")
	{
		alert("Provide the comment");
		document.reserve.comment.focus();
		return false;
	}
	
}



function checkcontion()
{
	if(document.reserve.check_bill.checked==true)
	{
		document.reserve.delivery_address.value=document.reserve.billing_address.value;
		document.reserve.delivery_city.value=document.reserve.billing_city.value;
		document.reserve.delivery_zip.value=document.reserve.billing_zip.value;
	}
	else
	{
		document.reserve.delivery_address.value='';
		document.reserve.delivery_city.value='';
		document.reserve.delivery_zip.value='';	
	}
	
	
	
}