function inputCheck(){

	var msg = "Sorry...the following fields need completing:\n\n\n";
	var obj;
	var ret = true;

	if(document.quote.title.value=="Please select"){
			msg += '- Title \n';
			obj = document.quote.title;
			ret = false;
	}
	if(document.quote.firstname.value==""){
			msg += '- Firstname \n';
			obj = document.quote.firstname;
			ret = false;
	}
	if(document.quote.surname.value==""){
			msg += '- Surname \n';
			obj = document.quote.surname;
			ret = false;
	}
	if(document.quote.dob.value==""){
			msg += '- Date of Birth \n';
			obj = document.quote.dob;
			ret = false;
	}
  if(document.quote.occupation.value==""){
			msg += '- Occupation \n';
			obj = document.quote.occupation;
			ret = false;
	}
  if(document.quote.address.value==""){
			msg += '- Address \n';
			obj = document.quote.address;
			ret = false;
	}
  if(document.quote.postcode.value==""){
			msg += '- Postcode \n';
			obj = document.quote.postcode;
			ret = false;
	}
  if(document.quote.contactDay.value=="Please select"){
			msg += '- Preferred Day of Contact \n';
			obj = document.quote.contactDay;
			ret = false;
	}
  if(document.quote.contactTime.value=="Please select"){
			msg += '- Preferred Time of Contact \n';
			obj = document.quote.contactTime;
			ret = false;
	}
  if(document.quote.tel.value==""){
			msg += '- Telephone \n';
			obj = document.quote.tel;
			ret = false;
	}
  else if (IsNumeric(document.quote.tel.value) == false){
      msg += '- Telephone Number must be numeric \n';
      obj = document.quote.tel;
      ret = false;
  }
  if(document.quote.email.value==""){
			msg += '- Email Address \n';
			obj = document.quote.email;
			ret = false;
	}
  if(document.quote.model.value==""){
			msg += '- Vehicle Model \n';
			obj = document.quote.model;
			ret = false;
	}
  if(document.quote.engineSize.value==""){
			msg += '- Engine Size \n';
			obj = document.quote.engineSize;
			ret = false;
	}
  if(document.quote.coverType.value=="Please select"){
	    msg += '- Cover Type \n';
			obj = document.quote.coverType;
			ret = false;
	}
  if(document.quote.coverDate.value==""){
			msg += '- Date Cover Required \n';
			obj = document.quote.coverDate;
			ret = false;
	}
  if(document.quote.claims.value=="Please select"){
	    msg += '- Number of Claim Free Years \n';
			obj = document.quote.coverType;
			ret = false;
	}  
	
    
  if (!ret) {
   alert(msg);
  }
  return ret;
}

function IsNumeric(strString)
{
 //  check for valid numeric strings	
 var strValidChars = "0123456789 ";
 var strChar;
 var blnResult = true;

 if (strString.length == 0) return false;

 //  test strString consists of valid characters listed above
 for (i = 0; i < strString.length && blnResult == true; i++)
 {
  strChar = strString.charAt(i);
  if (strValidChars.indexOf(strChar) == -1)
  {
   blnResult = false;
  }
 }
 return blnResult;
}
