function checkFields(test)
{
var which_phone = document.forms[0].Which_Phone.length;

//Case ID field
if (document.forms[0].Name.value == "")
	{
		alert("Please enter your name ");
		document.forms[0].Name.focus();
		return false;
	}

// Weapon system

else if (document.forms[0].Age.value == "")
	{
		alert("Please enter your Age");
		document.forms[0].Age.focus();
		return false;
	}
	
else if (document.forms[0].Relate.options[document.forms[0].Relate.selectedIndex].text == "Yes" && document.forms[0].Co_Name.value != "")
	{
		alert("Please tell us your relationship to the co-applicant.");
		document.forms[0].Relate.focus();
		return false;
	}
else if (document.forms[0].Co_Name.value != "" && document.forms[0].Co_Age.value == "")
	{
		alert("Please enter the co-applicants age");
		document.forms[0].Co_Age.focus();
		return false;
	}

		
else if (document.forms[0].Address.value == "")
	{
		alert("Please enter your Address");
		document.forms[0].Address.focus();
		return false;
	}
	
else if (document.forms[0].City.value == "")
	{
		alert("Please enter your City");
		document.forms[0].City.focus();
		return false;
	}
	
else if (document.forms[0].State.value == "")
	{
		alert("Please enter your State");
		document.forms[0].State.focus();
		return false;
	}
	
else if (document.forms[0].Zip.value == "")
	{
		alert("Please enter your Zip Code");
		document.forms[0].Zip.focus();
		return false;
	}
else if (document.forms[0].County.value == "")
	{
		alert("Please enter your County");
		document.forms[0].County.focus();
		return false;
	}
	
else if (document.forms[0].Phone_Day.value == "")
	{
		alert("Please enter your Day-time phone number");
		document.forms[0].Phone_Day.focus();
		return false;
	}

else if (document.forms[0].Phone_Evening.value == "")
	{
		alert("Please enter your evening phone number");
		document.forms[0].Phone_Evening.focus();
		return false;
	}

else if (document.forms[0].Which_Phone.options[document.forms[0].Which_Phone.selectedIndex].text == "")
	{
		alert("Please tell us which phone number is best to reach you.");
		document.forms[0].Which_Phone.focus();
		return false;
	}
		
	
else if (document.forms[0].Email.value == "")
	{
		alert("Please enter your email address");
		document.forms[0].Email.focus();
		return false;
	}

else if (document.forms[0].Pet_For.options[document.forms[0].Pet_For.selectedIndex].text == "")
	{
		alert("Please select for whom this pet is for.");
		document.forms[0].Pet_For.focus();
		return false;
	}

else if (document.forms[0].Child_YN.options[document.forms[0].Child_YN.selectedIndex].text == "")
	{
		alert("Please tell us if you have any children.");
		document.forms[0].Child_YN.focus();
		return false;
	}

else if (document.forms[0].Child_YN.options[document.forms[0].Child_YN.selectedIndex].text == "Yes" && document.forms[0].Child_QTY.value == "")
	{
		alert("Please tell us how many children you have.");
		document.forms[0].Child_QTY.focus();
		return false;
	}

else if (document.forms[0].Child_YN.options[document.forms[0].Child_YN.selectedIndex].text == "Yes" && document.forms[0].Child_AG.value == "")
	{
		alert("Please tell us the age and gender of the children you have.");
		document.forms[0].Child_AG.focus();
		return false;
	}

else if (document.forms[0].Allergy.options[document.forms[0].Allergy.selectedIndex].text == "")
	{
		alert("Please tell us if anyone in your family has allergies.");
		document.forms[0].Allergy.focus();
		return false;
	}

else if (document.forms[0].Asthma.options[document.forms[0].Asthma.selectedIndex].text == "")
	{
		alert("Please tell us if anyone in your family has asthma.");
		document.forms[0].Asthma.focus();
		return false;
	}
else if (document.forms[0].Own_Rent.options[document.forms[0].Own_Rent.selectedIndex].text == "")
	{
		alert("Please tell us if you own or rent.");
		document.forms[0].Own_Rent.focus();
		return false;
	}
else if (document.forms[0].Fence.options[document.forms[0].Fence.selectedIndex].text == "")
	{
		alert("Please tell us if you have a fence.");
		document.forms[0].Fence.focus();
		return false;
	}
else if (document.forms[0].Fence.options[document.forms[0].Fence.selectedIndex].text == "Yes" && document.forms[0].Fence_Ht.value == "")
	{
		alert("Please tell us how big your fence is.");
		document.forms[0].Fence_Ht.focus();
		return false;
	}
	
else if (document.forms[0].Fence.options[document.forms[0].Fence.selectedIndex].text == "Yes" && document.forms[0].Fence_Type.value == "")
	{
		alert("Please tell us what type of fence you have.");
		document.forms[0].Fence_Type.focus();
		return false;
	}

else if (document.forms[0].Yd_Dim.value == "")
	{
		alert("Please enter your Yard Dimensions");
		document.forms[0].Yd_Dim.focus();
		return false;
	}
else if (document.forms[0].Pet_Kept.value == "")
	{
		alert("Please tell us where your pet will be kept.");
		document.forms[0].Pet_Kept.focus();
		return false;
	}
else if (document.forms[0].At_Home.value == "")
	{
		alert("Please tell us if anyone is home during the day.");
		document.forms[0].At_Home.focus();
		return false;
	}
	
else if (document.forms[0].Primary.value == "")
	{
		alert("Please tell us who will be the primary care giver of the golden.");
		document.forms[0].Primary.focus();
		return false;
	}
else if (document.forms[0].First_Dog.options[document.forms[0].First_Dog.selectedIndex].text == "")
	{
		alert("Please tell us if this is your first dog.");
		document.forms[0].First_Dog.focus();
		return false;
	}	
else if (document.forms[0].First_GR.options[document.forms[0].First_GR.selectedIndex].text == "")
	{
		alert("Please tell us if this is your first golden retriever.");
		document.forms[0].First_GR.focus();
		return false;
	}
else if (document.forms[0].Other_Pets.options[document.forms[0].Other_Pets.selectedIndex].text == "")
	{
		alert("Please tell us if you currently have other pets.");
		document.forms[0].Other_Pets.focus();
		return false;
	}	
else if (document.forms[0].Pet_Age.options[document.forms[0].Pet_Age.selectedIndex].text == "")
	{
		alert("Please tell us what age you will consider.");
		document.forms[0].Pet_Age.focus();
		return false;
	}	
else if (document.forms[0].Sex.options[document.forms[0].Sex.selectedIndex].text == "")
	{
		alert("Please tell us what sex you will consider.");
		document.forms[0].Sex.focus();
		return false;
	}	
else if (document.forms[0].Pairs.options[document.forms[0].Pairs.selectedIndex].text == "")
	{
		alert("Please tell us if you would consider a Pair of Goldens.");
		document.forms[0].Pairs.focus();
		return false;
	}
else if (document.forms[0].Special.options[document.forms[0].Special.selectedIndex].text == "")
	{
		alert("Please tell us if you would you consider a Golden with special needs (medical or other)?.");
		document.forms[0].Special.focus();
		return false;
	}
else if (document.forms[0].Ref.value == "")
	{
		alert("Please provide a reference.");
		document.forms[0].Ref.focus();
		return false;
	}
else if (document.forms[0].Ref_Phone.value == "")
	{
		alert("Please provide the Reference Phone Number.");
		document.forms[0].Ref_Phone.focus();
		return false;
	}	
else if (document.forms[0].Ref_Relate.value == "")
	{
		alert("Please tell us how the reference is related to you.");
		document.forms[0].Ref_Relate.focus();
		return false;
	}	
else if (document.forms[0].Check_1.options[document.forms[0].Check_1.selectedIndex].text == "")
	{
		alert("Please Read and Check Each of the Items to Acknowledge Your Agreement with GRRI-NJ's Terms of Adoption. .");
		document.forms[0].Check_1.focus();
		return false;
	}	
else if (document.forms[0].Check_2.options[document.forms[0].Check_2.selectedIndex].text == "")
	{
		alert("Please Read and Check Each of the Items to Acknowledge Your Agreement with GRRI-NJ's Terms of Adoption. .");
		document.forms[0].Check_2.focus();
		return false;
	}
else if (document.forms[0].Check_3.options[document.forms[0].Check_3.selectedIndex].text == "")
	{
		alert("Please Read and Check Each of the Items to Acknowledge Your Agreement with GRRI-NJ's Terms of Adoption. .");
		document.forms[0].Check_3.focus();
		return false;
	}
else if (document.forms[0].Check_4.options[document.forms[0].Check_4.selectedIndex].text == "")
	{
		alert("Please Read and Check Each of the Items to Acknowledge Your Agreement with GRRI-NJ's Terms of Adoption. .");
		document.forms[0].Check_4.focus();
		return false;
	}
else if (document.forms[0].Check_5.options[document.forms[0].Check_5.selectedIndex].text == "")
	{
		alert("Please Read and Check Each of the Items to Acknowledge Your Agreement with GRRI-NJ's Terms of Adoption. .");
		document.forms[0].Check_5.focus();
		return false;
	}
else if (document.forms[0].Check_6.options[document.forms[0].Check_6.selectedIndex].text == "")
	{
		alert("Please Read and Check Each of the Items to Acknowledge Your Agreement with GRRI-NJ's Terms of Adoption. .");
		document.forms[0].Check_6.focus();
		return false;
	}
else if (document.forms[0].Check_7.options[document.forms[0].Check_7.selectedIndex].text == "")
	{
		alert("Please Read and Check Each of the Items to Acknowledge Your Agreement with GRRI-NJ's Terms of Adoption. .");
		document.forms[0].Check_7.focus();
		return false;
	}
else if (document.forms[0].Check_8.options[document.forms[0].Check_8.selectedIndex].text == "")
	{
		alert("Please Read and Check Each of the Items to Acknowledge Your Agreement with GRRI-NJ's Terms of Adoption. .");
		document.forms[0].Check_8.focus();
		return false;
	}
else if (document.forms[0].Check_9.options[document.forms[0].Check_9.selectedIndex].text == "")
	{
		alert("Please Read and Check Each of the Items to Acknowledge Your Agreement with GRRI-NJ's Terms of Adoption. .");
		document.forms[0].Check_9.focus();
		return false;
	}
else if (document.forms[0].Check_10.options[document.forms[0].Check_10.selectedIndex].text == "")
	{
		alert("Please Read and Check Each of the Items to Acknowledge Your Agreement with GRRI-NJ's Terms of Adoption. .");
		document.forms[0].Check_10.focus();
		return false;
	}
else if (document.forms[0].Check_11.options[document.forms[0].Check_11.selectedIndex].text == "" && document.forms[0].Check_12.options[document.forms[0].Check_12.selectedIndex].text == "")
	{
		alert("Please Select the adoption fee payment option - Check or Pay Pal.");
		document.forms[0].Check_11.focus();
		return false;
	}
else if (document.forms[0].Home_Visit.options[document.forms[0].Home_Visit.selectedIndex].text == "")
	{
		alert("Please tell us if you agree to a home visit.");
		document.forms[0].Home_Visit.focus();
		return false;
	}	
else
{ 
	return true;

}
};
//************************************************************************************// JavaScript Document