function checkFields() 
{
   missinginfo = "";

   if (document.orderForm.Name.value == "") 
   {
	missinginfo += "\n     -  Name";
   }

   if ((document.orderForm.Email.value == "") || 
   (document.orderForm.Email.value.indexOf('@') == -1) || 
   (document.orderForm.Email.value.indexOf('.') == -1)) 
   {
	missinginfo += "\n     -  Email address";
   }

   if (document.orderForm.Phone.value == "") 
   {
	missinginfo += "\n     -  Telephone Number";
   }

   if (document.orderForm.Address.value == "") 
   {
	missinginfo += "\n     -  Address";
   }

   if (document.orderForm.Cost.selectedIndex == "") 
   {
	missinginfo += "\n     -  Property Cost";
   }

   if (document.orderForm.Type.selectedIndex == "") 
   {
	missinginfo += "\n     -  Property Type";
   }

   if (document.orderForm.Freehold.selectedIndex == "") 
   {
	missinginfo += "\n     -  The property is";
   }

   if (document.orderForm.Selling.selectedIndex == "") 
   {
	missinginfo += "\n     -  I am selling";
   }

   if (document.orderForm.Capacity.selectedIndex == "") 
   {
	missinginfo += "\n     -  Capacity of the seller";
   }

   if (document.orderForm.Property.value == "") 
   {
	missinginfo += "\n     -  Property Address";
   }

   if (document.orderForm.Postcode.value == "") 
   {
	missinginfo += "\n     -  Property Postcode";
   }

   if (document.orderForm.City.value == "") 
   {
	missinginfo += "\n     -  Property City";
   }

   if (document.orderForm.Bedrooms.selectedIndex == "") 
   {
	missinginfo += "\n     -  Number of Bedrooms";
   }


   if (missinginfo != "") 
   {
	missinginfo ="_____________________________\n" + "You failed to correctly fill in your:\n" + missinginfo + "\n_____________________________" + "\nPlease re-enter and submit again!";
	alert(missinginfo);
	return false;
   }
   else return true;
}