
function formcheck(checkform) {
      
   if (checkform.FirstName.value == ""){
   alert( "First Name is required.\n");  checkform.FirstName.focus();  return false;}
   
   if (checkform.FirstName.value.length < 2){
   alert( "First Name must be at least two characters.\n");  checkform.FirstName.focus();  return false;}
   
   if (checkform.LastName.value == ""){
   alert( "Last Name is required.\n");  checkform.LastName.focus();  return false;}
   
   if (checkform.LastName.value.length < 3){
   alert( "Last Name must be at least three characters.\n");  checkform.LastName.focus();  return false;}
   
   if (checkform.Degree.value == ""){
   alert( "Degree is required.\n");  checkform.Degree.focus();  return false;}
   
   if (checkform.Degree.value.length < 2){
   alert( "Degree must be at least two characters.\n");  checkform.Degree.focus();  return false;}
   
   if (checkform.YearofGrad.value == ""){
   alert( "Year of Graduation is required.\n");  checkform.YearofGrad.focus();  return false;}
   
   if (checkform.YearofGrad.value.length < 4){
   alert( "Year of Graduation must be at least four digits.\n");  checkform.YearofGrad.focus();  return false;}
  
   return true; 

   }
    