// JavaScript Document
function checkInfo(f) {
	
	if (f.firstname.value==""){
		alert("firstname can not be blank");
		f.firstname.focus();
		return false;
		}       
		 
    if (f.lastname.value==""){
			alert("lastname can not be blank");
			f.lastname.focus(); 
			return false;
		} 
		
		if (f.email.value==""){
		alert("email can not be blank");
		f.email.focus();
		return false;
		}       
		
		
		if (f.ppno.value==""){
		alert("ppno can not be blank");
		f.ppno.focus();
		return false;
		}       
		 
  	  if (f.Designation.value==""){
			alert("Designation can not be blank");
			f.Designation.focus();
			return false;
		} 
		
		if (f.Department.value==""){
		alert("Departmant can not be blank");
		f.Department.focus();
		return false;
		}      
		
		
		if (f.phoneno.value==""){
		alert("phoneno can not be blank");
		f.phoneno.focus();
		return false;
		}       
		 
  	  if (f.zone.value==""){
			alert("zone can not be blank");
			f.zone.focus();
			return false;
		} 
		
		if (f.Branch.value==""){
		alert("Branch can not be blank");
		f.Branch.focus();
		return false;
		}      
if (f.address.value.length > 255){
			alert("address content can not be more than 255 charters currentlty having "+f.contants.value.length+" characters");
			f.address.focus();
			return false;
		}   
		 
  		
if (f.loginid.value==""){
			alert("loginid can not be blank");
			f.loginid.focus();
			return false;
		} 
   
		
		if (f.upassword.value==""){
			alert("password content can not be blank");
			f.upassword.focus();
			return false;
		} 
		
		if (f.upassword.value.length < 6){
			alert("password can not be less then 6 characters");
			f.upassword.focus();
			return false;
		} 
if (f.fullname.value==""){
		alert("Fullname can not be blank");
		f.fullname.focus();
		return false; 
		}       
		 
    if (f.contants.value==""){
			alert("Message content can not be blank");
			f.contants.focus();
			return false;
		} 
		
	
    if (f.contants.value.length > 255){
			alert("Message content can not be more than 255 charters currentlty having "+f.contants.value.length+" characters");
			f.contants.focus();
			return false;
		}
		
	
	
	}
