// online form validation function
function checkForm(form){
     intro = 'Please provide the following information:\n\n';
     msg = '';
     regex = /^.+\@(\[?)[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,3}|[0-9]{1,3})(\]?)$/;
     if(form.txtTitle.options[form.txtTitle.selectedIndex].value=='#'){msg+='Title\n';}
     if(form.txtFirstName.value==''){msg+='First Name\n';}
     if(form.txtLastName.value==''){msg+='Last Name\n';}
     if(form.txtAddress.value==''){msg+='Address\n';}
	 if(form.txtTown.value==''){msg+='Town or city\n';}
  	 if(form.txtPostcode.value==''){msg+='Postcode\n';}
     if(form.txtCountry.value==''){msg+='Country\n';}
     if(form.txtTelephone.value==''){msg+='Telephone\n';}
     if(form.txtMobile.value==''){msg+='Mobile phone\n';}
     if(form.txtEmail.value==''){msg+='E-mail address\n';}
     if(form.txtBusinessName.value==''){msg+='Full trading name of business\n';}
     if(form.txtBusinessType.options[form.txtBusinessType.selectedIndex].value=='#'){msg+='Business type\n';}
     if(form.txtHowDidYouHear.options[form.txtHowDidYouHear.selectedIndex].value=='#'){msg+='How did you hear about Christie Insurance?\n';}
     if(msg==''){return true}
     else if (msg!= ''){alert(intro + '\n' + msg);return false;}
}

function checkform() 
{
	document.application_form.submit();
}