function addEnquiry(abc)
  { 
     if(abc.full_name.value=="")
       {
          alert("Select Full Name !");
          abc.full_name.focus();
          return false;
       }
	  else
	  if(abc.day.value=="10001")
       {
          alert("Date of birth required !");
          abc.day.focus();
          return false;
       }
	  else
	  if(abc.month.value=="10001")
       {
          alert("Date of birth required !");
          abc.month.focus();
          return false;
       }
	  else
	  if(abc.year.value=="10001")
       {
          alert("Date of birth required !");
          abc.year.focus();
          return false;
       }
	  else
	  if(abc.religion.value=="10001")
       {
          alert("Religion Select required !");
          abc.religion.focus();
          return false;
       }
	  else
	  if(abc.mother_tongue.value=="10001")
       {
          alert("Mother tongue selection required !");
          abc.mother_tongue.focus();
          return false;
       }
	  else
	  if(abc.state.value=="10001")
       {
          alert("State of Domicile selection required !");
          abc.state.focus();
          return false;
       }
	  else
	  if(abc.appointment_date.value=="")
       {
            alert("Please enter valid appointment date !");
            abc.appointment_date.focus();
            return false;
       }
	 else
	 if(abc.counselling.value=="10001")
       {
            alert("Selection required !");
            abc.counselling.focus();
            return false;
       }
	  else
	  if(abc.address.value=="")
       {
          alert("Enter Address !");
          abc.address.focus();
          return false;
       }
	  else
	  if(abc.native_city.value=="")
       {
          alert("Your native city required !");
          abc.native_city.focus();
          return false;
       }  
	  var emailfilter=/^\w+[\+\.\w-]*@([\w-]+\.)*\w+[\w-]*\.([a-z]{2,4}|\d+)$/i
      var returnval=emailfilter.test(abc.email.value)
      if (returnval==false)
       {
           alert("Please Enter Your Valid Email address !");
           abc.email.focus();
           return false;
       }  
	  if(abc.mobile_no.value=="")
       {
           alert("Enter Mobile No !");
           abc.mobile_no.focus();
           return false;
       } 
	  if (abc.mobile_no.value == null || !abc.mobile_no.value.toString().match(/^[-]?\d*\.?\d*$/))
	   {
	       alert("Please Enter Numeric Value of Mobile No !");
		   abc.mobile_no.focus();
	       return false;
	   } 	
	  else
	  if(abc.examination.value=="")
       {
            alert("Examination name required !");
            abc.examination.focus();
            return false;
       } 
	  else
	  if(abc.total_obtained.value=="")
       {
           alert("Total obtained marks required !");
           abc.total_obtained.focus();
           return false;
       } 
	  if (abc.total_obtained.value == null || !abc.total_obtained.value.toString().match(/^[-]?\d*\.?\d*$/))
	   {
	       alert("Please Enter Numeric value of marks !");
		   abc.total_obtained.focus();
	       return false;
	   }
	  else
	  if(abc.total_outof.value=="")
       {
           alert("Total Outof marks required !");
           abc.total_outof.focus();
           return false;
       } 
	  else
	  if (abc.total_outof.value == null || !abc.total_outof.value.toString().match(/^[-]?\d*\.?\d*$/))
	   {
	       alert("Please Enter Numeric value of marks !");
		   abc.total_outof.focus();
	       return false;
	   }
	  else
	  if (abc.pcm_obtained.value == null || !abc.pcm_obtained.value.toString().match(/^[-]?\d*\.?\d*$/))
	   {
	       alert("Please Enter Numeric value of marks !");
		   abc.pcm_obtained.focus();
	       return false;
	   }
	  else
	  if (abc.pcm_outof.value == null || !abc.pcm_outof.value.toString().match(/^[-]?\d*\.?\d*$/))
	   {
	       alert("Please Enter Numeric value of marks !");
		   abc.pcm_outof.focus();
	       return false;
	   }
	  else
	  if (abc.entrance_score.value == null || !abc.entrance_score.value.toString().match(/^[-]?\d*\.?\d*$/))
	   {
	       alert("Please Enter Numeric value of marks !");
		   abc.entrance_score.focus();
	       return false;
	   }
	  else
	  if(abc.pref_college1.value=="10001")
       {
            alert("College Preference required !");
            abc.pref_college1.focus();
            return false;
       }
	  
   return true;     
  }
  
function coun()
  {
     var c = document.getElementById('counselling');
	 var o = document.getElementById('other');
	 if(c.value == 'Other')
	  {
	     o.disabled = false;
	  }
	 else	 
	  {
	     o.disabled = true;
		 o.value = '';
	  }
	  
	 if(c.value == 'Counseller')
	  {
	     o.disabled = false;
	  }
	 
  }  