function Validate(theForm){
  var invalDat="00/00/00";
  var valDat="^([0-9]{2})/([0-9]{2})/([0-9]{4})$";
  var invalChars=/[\\\?\"\[\]@<>]/;
  
  if (theForm.a_Title){
	  if (theForm.a_Title.value == "" || theForm.a_Title.value.search(invalChars)!=-1 || theForm.a_Title.value.length<2){
		alert("Please enter your Title.");
		theForm.a_Title.select();
		return (false);
	  }
  }
  if (theForm.b_Forename){
	  if (theForm.b_Forename.value == "" || theForm.b_Forename.value.search(invalChars)!=-1 || theForm.b_Forename.value.length<2){
		alert("Please enter your Forename.");
		theForm.b_Forename.select();
		return (false);
	  }
  }
  if (theForm.b_Surname){
	  if (theForm.b_Surname.value == "" || theForm.b_Surname.value.search(invalChars)!=-1 || theForm.b_Surname.value.length<2){
		alert("Please enter your Surname.");
		theForm.b_Surname.select();
		return (false);
	  }
  }
  if (theForm.b_Name){
	  if (theForm.b_Name.value == "" || theForm.b_Name.value.search(invalChars)!=-1 || theForm.b_Name.value.length<2){
		alert("Please enter your Name.");
		theForm.b_Name.select();
		return (false);
	  }
  }
  if (theForm.c_Company){
	  if (theForm.c_Company.value == "" || theForm.c_Company.value.search(invalChars)!=-1 || theForm.c_Company.value.length<2){
		alert("Please enter your Company name.");
		theForm.c_Company.select();
		return (false);
	  }
  }
  if (theForm.e_Address1){
	  if (theForm.e_Address1.value == "" || theForm.e_Address1.value.search(invalChars)!=-1 || theForm.e_Address1.value.length<2){
		alert("Please enter your Street Address.");
		theForm.e_Address1.select();
		return (false);
	  }
  }
  if (theForm.g_Town){
	  if (theForm.g_Town.value == "" || theForm.g_Town.value.search(invalChars)!=-1 || theForm.g_Town.value.length<2){
		alert("Please enter your Town.");
		theForm.g_Town.select();
		return (false);
	  }
  }
  if (theForm.j_Phone){
	  if (theForm.j_Phone.value == "" || theForm.j_Phone.value.search(invalChars)!=-1 || theForm.j_Phone.value.length<2){
		alert("Please enter your Phone Number.");
		theForm.j_Phone.select();
		return (false);
	  }

  }
  if (theForm.l_Email){
	  if (theForm.l_Email.value == ""){
		alert("Please enter a valid email address.");
		theForm.l_Email.select();
		return (false);
	  }

  }
  if (theForm.z_DPN){
	  if (theForm.z_DPN.checked == false){
		alert("Please make sure that you read and agree to the terms in our Data Protection Notice.");
		theForm.DPNText.select();
		return (false);
	  }
  }
  
  
  
  
  
  
  
  
  if (theForm.b_BusinessName){
	  if (theForm.b_BusinessName.value == ""){
		alert("Please enter the buisness name.");
		theForm.b_BusinessName.select();
		return (false);
	  }

  }
  
  if (theForm.c_Address1){
	  if (theForm.c_Address1.value == ""){
		alert("Please enter the address.");
		theForm.c_Address1.select();
		return (false);
	  }

  }
  
  if (theForm.d_Address2){
	  if (theForm.d_Address2.value == ""){
		alert("Please enter the address.");
		theForm.d_Address2.select();
		return (false);
	  }

  }
  
  if (theForm.e_Town){
	  if (theForm.e_Town.value == ""){
		alert("Please enter town.");
		theForm.e_Town.select();
		return (false);
	  }

  }
  
  if (theForm.f_County){
	  if (theForm.f_County.value == ""){
		alert("Please enter the county.");
		theForm.f_County.select();
		return (false);
	  }

  }  
  
  if (theForm.g_PostCode){
	  if (theForm.g_PostCode.value == ""){
		alert("Please enter the post code.");
		theForm.g_PostCode.select();
		return (false);
	  }

  } 
  
  if (theForm.h_contact_name){
	  if (theForm.h_contact_name.value == ""){
		alert("Please enter the contact name.");
		theForm.h_contact_name.select();
		return (false);
	  }

  } 
  
  if (theForm.h_email){
	  if (theForm.h_email.value == ""){
		alert("Please enter the email address.");
		theForm.h_email.select();
		return (false);
	  }

  } 
  
  if (theForm.h_telephone){
	  if (theForm.h_telephone.value == ""){
		alert("Please enter the telephone number.");
		theForm.h_telephone.select();
		return (false);
	  }

  } 
  
  if (theForm.i_fax){
	  if (theForm.i_fax.value == ""){
		alert("Please enter the fax number.");
		theForm.i_fax.select();
		return (false);
	  }

  } 
  
  
  if (theForm.i_poistion_within_company){
	  if (theForm.i_poistion_within_company.value == ""){
		alert("Please enter the poisition within company.");
		theForm.i_poistion_within_company.select();
		return (false);
	  }

  } 
  

  
  if (theForm.j_Address1){
	  if (theForm.j_Address1.value == ""){
		alert("Please enter the address.");
		theForm.j_Address1.select();
		return (false);
	  }

  } 
  
  if (theForm.j_Address2){
	  if (theForm.j_Address2.value == ""){
		alert("Please enter the address.");
		theForm.j_Address2.select();
		return (false);
	  }

  } 
  
  if (theForm.j_Town){
	  if (theForm.j_Town.value == ""){
		alert("Please enter the town.");
		theForm.j_Town.select();
		return (false);
	  }

  } 
  
  if (theForm.k_County){
	  if (theForm.k_County.value == ""){
		alert("Please enter the county.");
		theForm.k_County.select();
		return (false);
	  }

  } 
  
  
  if (theForm.l_PostCode){
	  if (theForm.l_PostCode.value == ""){
		alert("Please enter the postcode.");
		theForm.l_PostCode.select();
		return (false);
	  }

  } 
  
  if (theForm.m_CurrentSaleValue){
	  if (theForm.m_CurrentSaleValue.value == ""){
		alert("Please enter the current sale value.");
		theForm.m_CurrentSaleValue.select();
		return (false);
	  }

  } 
  
  if (theForm.n_OutstandingMortgages){
	  if (theForm.n_OutstandingMortgages.value == ""){
		alert("Please enter the outstanding mortgages value.");
		theForm.n_OutstandingMortgages.select();
		return (false);
	  }

  } 
  
  if (theForm.o_name_of_lenders){
	  if (theForm.o_name_of_lenders.value == ""){
		alert("Please enter the name of the lenders.");
		theForm.o_name_of_lenders.select();
		return (false);
	  }

  } 
  
  
       
  
  if (theForm.p_BusinessType){
	  if (theForm.p_BusinessType.value == ""){
		alert("Please enter the buisness type.");
		theForm.p_BusinessType.select();
		return (false);
	  }

  }  
  
  if (theForm.p_WhoOwnsBusiness){
	  if (theForm.p_WhoOwnsBusiness.value == ""){
		alert("Please enter who owns the buisness.");
		theForm.p_WhoOwnsBusiness.select();
		return (false);
	  }

  }  
  
  if (theForm.q_LockUpOrAccommodation){
	  if (theForm.q_LockUpOrAccommodation.value == ""){
		alert("Please enter whether a lock-up or accommodation.");
		theForm.q_LockUpOrAccommodation.select();
		return (false);
	  }

  }  
  
  if (theForm.q_WhoLivesThere){
	  if (theForm.q_WhoLivesThere.value == ""){
		alert("Please enter who lives in the property.");
		theForm.q_WhoLivesThere.select();
		return (false);
	  }

  } 
  
  if (theForm.r_purchase_price){
	  if (theForm.r_purchase_price.value == ""){
		alert("Please enter the purchase price.");
		theForm.r_purchase_price.select();
		return (false);
	  }

  } 
  
  
  if (theForm.s_EstimatedSaleValue){
	  if (theForm.s_EstimatedSaleValue.value == ""){
		alert("Please enter the estimated sale value.");
		theForm.s_EstimatedSaleValue.select();
		return (false);
	  }

  }  
  
  if (theForm.s_RemainingLease){
	  if (theForm.s_RemainingLease.value == ""){
		alert("Please enter the amount of remaining lease.");
		theForm.s_RemainingLease.select();
		return (false);
	  }

  }  
  
  if (theForm.t_CurrentAnnualRent){
	  if (theForm.t_CurrentAnnualRent.value == ""){
		alert("Please enter the current annual rent.");
		theForm.t_CurrentAnnualRent.select();
		return (false);
	  }

  } 
  
  if (theForm.u_CurrentRent){
	  if (theForm.u_CurrentRent.value == ""){
		alert("Please enter the current rent.");
		theForm.u_CurrentRent.select();
		return (false);
	  }

  }  
  
  if (theForm.t_WeeklyTakings){
	  if (theForm.t_WeeklyTakings.value == ""){
		alert("Please enter the weekly takings value.");
		theForm.t_WeeklyTakings.select();
		return (false);
	  }

  }  
  
  if (theForm.u_Accounts){
	  if (theForm.u_Accounts.value == ""){
		alert("Please enter whether you have accounts.");
		theForm.u_Accounts.select();
		return (false);
	  }

  }  
  
  if (theForm.v_WhichYears){
	  if (theForm.v_WhichYears.value == ""){
		alert("Please enter for which years you have accounts.");
		theForm.v_WhichYears.select();
		return (false);
	  }

  }  
  
  

  
  
  if (theForm.w_ContributeCash){
	  if (theForm.w_ContributeCash.value == ""){
		alert("Please enter how much cash can be contributed by the client(s).");
		theForm.w_ContributeCash.select();
		return (false);
	  }

  } 
  
  
  if (theForm.y_FundSource){
	  if (theForm.y_FundSource.value == ""){
		alert("Please enter the source of funds.");
		theForm.y_FundSource.select();
		return (false);
	  }

  }  
  
 
  if (theForm.z_LoanRequired){
	  if (theForm.z_LoanRequired.value == ""){
		alert("Please enter the the loan amount required.");
		theForm.z_LoanRequired.select();
		return (false);
	  }

  } 
  
  



//	Enable this for radio buttons if required

//  if (!(theForm.radioname[0].checked || theForm.radioname[1].checked)){
//    alert("Please indicate your radioname.");
//    theForm.radioname[0].focus();
//    return (false);
//  }


  if (theForm.l_Email){
  	return (emailCheck(theForm.l_Email.value)); 								//validate using routines in validemail.js
  }
  return (true);
}

