function validation()
{
***************************** Name Validatation ***************************************
var name = document.frm1.empname.value;
var len =name.length;
if(name=="")
{
alert("Plz enter the name ");
flag=false;
return false;
}
if(document.frm1.empname.value!="" || document.frm1.empname.value!=null)
{
var a1 = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' ";
for(i = 0; i
{
alert("Your name to lang plz do not enter more then 30 digit");
flag=false;
return false;
}
//**********************************Department Validation************************
{
alert("Please select from the drop-down list.\n");
return false;
}
var conlen =contact.length;
if(contact=="")
{
alert("Plz Enter the mobile number");
flag=false;
return false;
}
if(document.frm1.empmob.value!="" || document.frm1.empmob.value!=null)
{
var a1 = "0123456789";
for(i = 0; i
alert("Invalid Date Range date must be less then current date");
return false;
}
}