var corpForm = '<form name="estimateForm" id="estimateForm" method="post" action="meetings-and-parites.php" ';
//var corpForm = '<form name="estimateForm" id="estimateForm" method="post" action="http://utilities/forms/process-php.asp" ';
corpForm += 'onsubmit="';
corpForm += 'this.Event_Date.date=true;';
corpForm += 'this.Location_ZIP.count=5;';
corpForm += 'this.Location_ZIP.numericRange=true;';
corpForm += 'this.Other_Type_of_Event.conditional=true;';
corpForm += 'this.Other_Type_of_Event.condition=\'Type_of_Event\';';
corpForm += 'this.Event_Start_Time.time=true;';
corpForm += 'this.Event_End_Time.time=true;';
corpForm += 'this.Number_of_Guests.numeric=true;';
corpForm += 'this.Preferred_Budget_Range.numericRange=true;';
corpForm += 'this.Contact_Phone_Number.phone=true;';
corpForm += 'this.Other_Contact_Phone_Type.conditional=true;';
corpForm += 'this.Other_Contact_Phone_Type.condition=\'Contact_Phone_Type\';';
corpForm += 'this.Alternate_Phone_Number.phone=true;';
corpForm += 'this.Other_Alternate_Phone_Type.conditional=true;';
corpForm += 'this.Other_Alternate_Phone_Type.condition=\'Alternate_Phone_Type\';';
corpForm += 'this.Email_Address.email=true;';
corpForm += 'this.Past_Client_Name.conditional=true;';
corpForm += 'this.Past_Client_Name.condition=32;';
corpForm += 'this.Billing_ZIP.count=5;';
corpForm += 'this.Billing_ZIP.numericRange=true;';
corpForm += 'this.Cold_Lunch_Type.conditional=true;';
corpForm += 'this.Cold_Lunch_Type.condition=38;';
corpForm += 'this.Hot_Lunch_Type.conditional=true;';
corpForm += 'this.Hot_Lunch_Type.condition=40;';
corpForm += 'this.Cold_Dinner_Buffet_Type.conditional=true;';
corpForm += 'this.Cold_Dinner_Buffet_Type.condition=44;';
corpForm += 'this.Hot_Dinner_Buffet_Type.conditional=true;';
corpForm += 'this.Hot_Dinner_Buffet_Type.condition=46;';
corpForm += 'this.Customer_Provided_Dinnerware.conditional=true;';
corpForm += 'this.Customer_Provided_Dinnerware.condition=\'Type_of_Dinnerware\';';
corpForm += 'this.Other_Type_of_Beverage.conditional=true;';
corpForm += 'this.Other_Type_of_Beverage.condition=66;';
corpForm += 'this.Additional_Type_of_Beverage.conditional=true;';
corpForm += 'this.Additional_Type_of_Beverage.condition=68;';
corpForm += 'this.Additional_Alcoholic_Beverage.conditional=true;';
corpForm += 'this.Additional_Alcoholic_Beverage.condition=70;';
corpForm += 'this.Type_of_Tablecloth_Shape.conditional=true;';
corpForm += 'this.Type_of_Tablecloth_Shape.condition=86;';
corpForm += 'this.Other_Tablecloth_Theme.conditional=true;';
corpForm += 'this.Other_Tablecloth_Theme.condition=\'Color_Theme_Tablecloth\';';
corpForm += 'this.Other_Type_of_Table_Decor.conditional=true;';
corpForm += 'this.Other_Type_of_Table_Decor.condition=103;';
corpForm += 'this.Comments.optional=true;';
corpForm += 'this.Appointment_Preference_Day.conditional=true;';
corpForm += 'this.Appointment_Preference_Day.condition=111;';
corpForm += 'this.Appointment_Preference_Time.conditional=true;';
corpForm += 'this.Appointment_Preference_Time.condition=111;';
corpForm += 'return verify(this);">';

var weddingForm = '<form name="estimateForm" id="estimateForm" method="post" action="wedding.php" ';
weddingForm += 'onsubmit="';
weddingForm += 'this.Wedding_Date.date=true;';
weddingForm += 'this.Other_Ceremony_Location.conditional=true;';
weddingForm += 'this.Other_Ceremony_Location.condition=\'Wedding_Ceremony_Location\';';
weddingForm += 'this.Ceremony_Start_Time.time=true;';
weddingForm += 'this.Home_Reception_Location.optional=true;';
weddingForm += 'this.Other_Reception_Location.conditional=true;';
weddingForm += 'this.Other_Reception_Location.condition=\'Reception_Location\';';
weddingForm += 'this.Reception_Start_Time.time=true;';
weddingForm += 'this.Reception_End_Time.time=true;';
weddingForm += 'this.Number_of_Guests.numeric=true;';
weddingForm += 'this.Preferred_Budget_Range.numericRange=true;';
weddingForm += 'this.Billing_Address_2.optional=true;';
weddingForm += 'this.Billing_ZIP.count=5;';
weddingForm += 'this.Billing_ZIP.numericRange=true;';
weddingForm += 'this.Contact_Phone_Number.phone=true;';
weddingForm += 'this.Other_Contact_Phone_Type.conditional=true;';
weddingForm += 'this.Other_Contact_Phone_Type.condition=\'Contact_Phone_Type\';';
weddingForm += 'this.Alternate_Phone_Number.phone=true;';
weddingForm += 'this.Other_Alternate_Phone_Type.conditional=true;';
weddingForm += 'this.Other_Alternate_Phone_Type.condition=\'Alternate_Phone_Type\';';
weddingForm += 'this.Email_Address.email=true;';
weddingForm += 'this.Past_Client_Name.conditional=true;';
weddingForm += 'this.Past_Client_Name.condition=33;';
weddingForm += 'this.Previous_Guest_Name.conditional=true;';
weddingForm += 'this.Previous_Guest_Name.condition=36;';
weddingForm += 'Food_Palette_Other_Vegitarian.conditional=true;';
weddingForm += 'Food_Palette_Other_Vegitarian.condition=44;';
weddingForm += 'Food_Palette_Other_Vegan.conditional=true;';
weddingForm += 'Food_Palette_Other_Vegan.condition=46;';
weddingForm += 'Other_Food_Palette.conditional=true;';
weddingForm += 'Other_Food_Palette.condition=50;';
weddingForm += 'this.Cold_Lunch_Type.conditional=true;';
weddingForm += 'this.Cold_Lunch_Type.condition=56;';
weddingForm += 'this.Hot_Lunch_Type.conditional=true;';
weddingForm += 'this.Hot_Lunch_Type.condition=58;';
weddingForm += 'this.Cold_Dinner_Buffet_Type.conditional=true;';
weddingForm += 'this.Cold_Dinner_Buffet_Type.condition=61;';
weddingForm += 'this.Hot_Dinner_Buffet_Type.conditional=true;';
weddingForm += 'this.Hot_Dinner_Buffet_Type.condition=63;';
weddingForm += 'this.Customer_Provided_Dinnerware.conditional=true;';
weddingForm += 'this.Customer_Provided_Dinnerware.condition=\'Type_of_Dinnerware\';';
weddingForm += 'this.Other_Type_of_Beverage.conditional=true;';
weddingForm += 'this.Other_Type_of_Beverage.condition=82;';
weddingForm += 'this.Additional_Type_of_Beverage.conditional=true;';
weddingForm += 'this.Additional_Type_of_Beverage.condition=84;';
weddingForm += 'this.Additional_Alcoholic_Beverage.conditional=true;';
weddingForm += 'this.Additional_Alcoholic_Beverage.condition=86;';
weddingForm += 'this.Type_of_Tablecloth_Shape.conditional=true;';
weddingForm += 'this.Type_of_Tablecloth_Shape.condition=102;';
weddingForm += 'this.Other_Tablecloth_Theme.conditional=true;';
weddingForm += 'this.Other_Tablecloth_Theme.condition=\'Color_Theme_Tablecloth\';';
weddingForm += 'this.Other_Type_of_Table_Decor.conditional=true;';
weddingForm += 'this.Other_Type_of_Table_Decor.condition=119;';
weddingForm += 'this.Comments.optional=true;';
weddingForm += 'this.Appointment_Preference_Day.conditional=true;';
weddingForm += 'this.Appointment_Preference_Day.condition=127;';
weddingForm += 'this.Appointment_Preference_Time.conditional=true;';
weddingForm += 'this.Appointment_Preference_Time.condition=127;';
weddingForm += 'return verify(this);">';

function checkReceptionOption(whatOption)
{
	if(whatOption == 'Your Home Address')
	{
		changeObjectVisibility('receptionHomeBox','visible',10);
		document.getElementById('Home_Reception_Location').focus();
	}
	if(whatOption == 'Other')
	{
		changeObjectVisibility('receptionOtherBox','visible',10);
		document.getElementById('Other_Reception_Location').focus();
	}
	if(whatOption != 'Your Home Address')changeObjectVisibility('receptionHomeBox','hidden',1);
	if(whatOption != 'Other')changeObjectVisibility('receptionOtherBox','hidden',1);
}