function validate(theForm) {
  var tmpDate = theForm.dob.value
  var ary = new Array();
     
  //lastname 
  if (theForm.ln.value == '') {
    alert("Last Name is required.");
    theForm.ln.focus();
    return (false);      
  }  
  //DOB
  ary = tmpDate.split("/");
  var year = ary[2];
  var day = ary[1];
  var month = ary[0];
  if(!isDate(year, month, day)) {
	alert("Date entered is not valid.\nPlese enter the date in the following format without leading 0's:\nM/D/YY");
	theForm.dob.focus();
	return (false);      	
  }  
}