function echeck(str) {
	var at="@"
	var dot="."
	var lat=str.indexOf(at)
	var lstr=str.length
	var ldot=str.indexOf(dot)
	if (str.indexOf(at)==-1){
	   alert("Invalid E-mail ID")
	   return false
	}

	if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){
	   alert("Invalid E-mail ID")
	   return false
	}

	if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){
		alert("Invalid E-mail ID")
		return false
	}

	 if (str.indexOf(at,(lat+1))!=-1){
		alert("Invalid E-mail ID")
		return false
	 }

	 if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){
		alert("Invalid E-mail ID")
		return false
	 }

	 if (str.indexOf(dot,(lat+2))==-1){
		alert("Invalid E-mail ID")
		return false
	 }
	
	 if (str.indexOf(" ")!=-1){
		alert("Invalid E-mail ID")
		return false
	 }
	 return true					
}


function agent_form_valiate()
{

//alert(act);

if(document.agent_det.fname.value=="")
	{
     alert("Please mention name"); 
	 document.agent_det.fname.focus();
	 return false;
	}


if (document.agent_det.fname.value!="")
{
	
	//check for fname
	nwstl=document.agent_det.fname.value;

	if (nwstl==0 || nwstl==null)
	{
	alert("Please enter proper value");
	document.agent_det.fname.focus();
	return false;
	}
}


if(document.agent_det.fname.value !="")
	{
var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789.@_/,- \n\r";
  var checkStr = document.agent_det.fname.value;
  var allValid = true;
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
  }
  if (!allValid)
  {
    alert('Data are invalid.Only a-z 0-9 @ _ . , /   are allowed');
    document.agent_det.fname.select();
    return false;
  }
}

if(document.agent_det.fname.value!="")
	{

		if(document.agent_det.fname.value.length > 100)
		{
					alert("Name cannot be greater than 100 Characters");
					document.agent_det.fname.focus();
					return false;
		}
	}	
	


if(document.agent_det.comp_name.value=="")
	{
     alert("Please mention name of organisation"); 
	 document.agent_det.comp_name.focus();
	 return false;
	}


if (document.agent_det.comp_name.value!="")
{
	
	//check for fname
	nwstl=document.agent_det.comp_name.value;

	if (nwstl==0 || nwstl==null)
	{
	alert("Please enter proper value");
	document.agent_det.comp_name.focus();
	return false;
	}
}


if(document.agent_det.comp_name.value !="")
	{
var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789.@_/,- \n\r";
  var checkStr = document.agent_det.comp_name.value;
  var allValid = true;
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
  }
  if (!allValid)
  {
    alert('Data are invalid.Only a-z 0-9 @ _ . , /   are allowed');
    document.agent_det.comp_name.select();
    return false;
  }
}

if(document.agent_det.comp_name.value!="")
	{

		if(document.agent_det.comp_name.value.length > 200)
		{
					alert("Organisation name cannot be greater than 200 Characters");
					document.agent_det.comp_name.focus();
					return false;
		}
	}	

	


if(document.agent_det.addr.value=="")
	{
     alert("Please mention address"); 
	 document.agent_det.addr.focus();
	 return false;
	}


if (document.agent_det.addr.value!="")
{
	
	//check for fname
	nwstl=document.agent_det.addr.value;

	if (nwstl==0 || nwstl==null)
	{
	alert("Please enter proper value");
	document.agent_det.addr.focus();
	return false;
	}
}


if(document.agent_det.addr.value !="")
	{
var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789.@_/,- \n\r";
  var checkStr = document.agent_det.addr.value;
  var allValid = true;
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
  }
  if (!allValid)
  {
    alert('Data are invalid.Only a-z 0-9 @ _ . , /   are allowed');
    document.agent_det.addr.select();
    return false;
  }
}

if(document.agent_det.addr.value!="")
	{

		if(document.agent_det.addr.value.length > 500)
		{
					alert("Address cannot be greater than 500 Characters");
					document.agent_det.addr.focus();
					return false;
		}
	}	

	


if(document.agent_det.city.value=="")
	{
     alert("Please mention city"); 
	 document.agent_det.city.focus();
	 return false;
	}


if (document.agent_det.city.value!="")
{
	
	//check for fname
	nwstl=document.agent_det.city.value;

	if (nwstl==0 || nwstl==null)
	{
	alert("Please enter proper value");
	document.agent_det.city.focus();
	return false;
	}
}


if(document.agent_det.city.value !="")
	{
var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789.@_/,- \n\r";
  var checkStr = document.agent_det.city.value;
  var allValid = true;
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
  }
  if (!allValid)
  {
    alert('Data are invalid.Only a-z 0-9 @ _ . , /   are allowed');
    document.agent_det.city.select();
    return false;
  }
}

if(document.agent_det.city.value!="")
	{

		if(document.agent_det.city.value.length > 200)
		{
					alert("City cannot be greater than 200 Characters");
					document.agent_det.city.focus();
					return false;
		}
	}	




if(document.agent_det.state.value=="")
	{
     alert("Please mention state"); 
	 document.agent_det.state.focus();
	 return false;
	}


if (document.agent_det.state.value!="")
{
	
	//check for fname
	nwstl=document.agent_det.state.value;

	if (nwstl==0 || nwstl==null)
	{
	alert("Please enter proper value");
	document.agent_det.state.focus();
	return false;
	}
}


if(document.agent_det.state.value !="")
	{
var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789.@_/,- \n\r";
  var checkStr = document.agent_det.state.value;
  var allValid = true;
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
  }
  if (!allValid)
  {
    alert('Data are invalid.Only a-z 0-9 @ _ . , /   are allowed');
    document.agent_det.state.select();
    return false;
  }
}

if(document.agent_det.state.value!="")
	{

		if(document.agent_det.state.value.length > 200)
		{
					alert("State cannot be greater than 200 Characters");
					document.agent_det.state.focus();
					return false;
		}
	}	




if(document.agent_det.zip.value=="")
	{
     alert("Please mention pincode"); 
	 document.agent_det.zip.focus();
	 return false;
	}


if (document.agent_det.zip.value!="")
{
	
	//check for fname
	nwstl=document.agent_det.zip.value;

	if (nwstl==0 || nwstl==null)
	{
	alert("Please enter proper value");
	document.agent_det.zip.focus();
	return false;
	}
}


if(document.agent_det.zip.value!="")
	{
var checkOK = "0123456789 ";
  var checkStr = document.agent_det.zip.value;
  var allValid = true;
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
  }
  if (!allValid)
  {
    alert('Data are invalid.Only 0-9 allowed');
    document.agent_det.zip.select();
    return false;
  }
}

if(document.agent_det.zip.value!="")
	{

		if(document.agent_det.zip.value.length > 15)
		{
					alert("Pin cannot be greater than 15 Characters");
					document.agent_det.zip.focus();
					return false;
		}
	}	




if(document.agent_det.country.value=="")
	{
     alert("Please mention country"); 
	 document.agent_det.country.focus();
	 return false;
	}


if (document.agent_det.country.value!="")
{
	
	//check for fname
	nwstl=document.agent_det.country.value;

	if (nwstl==0 || nwstl==null)
	{
	alert("Please enter proper value");
	document.agent_det.country.focus();
	return false;
	}
}


if(document.agent_det.country.value!="")
	{
var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789.@_/,- \n\r";
  var checkStr = document.agent_det.country.value;
  var allValid = true;
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
  }
  if (!allValid)
  {
    alert('Data are invalid.Only a-z 0-9 @ _ . , /   are allowed');
    document.agent_det.country.select();
    return false;
  }
}

if(document.agent_det.country.value!="")
	{

		if(document.agent_det.country.value.length > 100)
		{
					alert("Country cannot be greater than 100 Characters");
					document.agent_det.country.focus();
					return false;
		}
	}	





if(document.agent_det.business.value=="")
	{
     alert("Please mention nature of business "); 
	 document.agent_det.business.focus();
	 return false;
	}


if (document.agent_det.business.value!="")
{
	
	//check for fname
	nwstl=document.agent_det.business.value;

	if (nwstl==0 || nwstl==null)
	{
	alert("Please enter proper value");
	document.agent_det.business.focus();
	return false;
	}
}


if(document.agent_det.business.value!="")
	{
var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789.@_/,- \n\r";
  var checkStr = document.agent_det.business.value;
  var allValid = true;
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
  }
  if (!allValid)
  {
    alert('Data are invalid.Only a-z 0-9 @ _ . , /   are allowed');
    document.agent_det.business.select();
    return false;
  }
}

if(document.agent_det.business.value!="")
	{

		if(document.agent_det.business.value.length > 200)
		{
					alert("Nature of Business cannot be greater than 200 Characters");
					document.agent_det.business.focus();
					return false;
		}
	}	





if(document.agent_det.phone.value=="")
	{
     alert("Please mention phone"); 
	 document.agent_det.phone.focus();
	 return false;
	}


if (document.agent_det.phone.value!="")
{
	
	//check for fname
	nwstl=document.agent_det.phone.value;

	if (nwstl==0 || nwstl==null)
	{
	alert("Please enter proper value");
	document.agent_det.phone.focus();
	return false;
	}
}


if(document.agent_det.phone.value!="")
	{
var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789.@_/,- \n\r";
  var checkStr = document.agent_det.phone.value;
  var allValid = true;
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
  }
  if (!allValid)
  {
    alert('Data are invalid.Only a-z 0-9 @ _ . , /   are allowed');
    document.agent_det.phone.select();
    return false;
  }
}

if(document.agent_det.phone.value!="")
	{

		if(document.agent_det.phone.value.length > 50)
		{
					alert("Phone cannot be greater than 50 Characters");
					document.agent_det.phone.focus();
					return false;
		}
	}	


if(document.agent_det.email.value=="")
	{
     alert("Please mention email"); 
	 document.agent_det.email.focus();
	 return false;
	}


if (document.agent_det.email.value!="")
{
	
	//check for fname
	nwstl=document.agent_det.email.value;

	if (nwstl==0 || nwstl==null)
	{
	alert("Please enter proper value");
	document.agent_det.email.focus();
	return false;
	}
}


if(document.agent_det.email.value !="")
	{
var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789.@_/,- \n\r";
  var checkStr = document.agent_det.email.value;
  var allValid = true;
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
  }
  if (!allValid)
  {
    alert('Data are invalid.Only a-z 0-9 @ _ . , /   are allowed');
    document.agent_det.email.select();
    return false;
  }
}

if(document.agent_det.email.value!="")
	{

		if(document.agent_det.email.value.length > 100)
		{
					alert("Email cannot be greater than 100 Characters");
					document.agent_det.email.focus();
					return false;
		}
	
		var str=document.agent_det.email.value;
		var valid=echeck(str);

		if (valid==0)
		{
			//alert('Invalid email id');
			document.agent_det.email.focus();
			return false;
		}

	
	}	

if(document.agent_det.security_code.value=="")
	{
     alert("Please mention security code"); 
	 document.agent_det.security_code.focus();
	 return false;
	}


if (document.agent_det.security_code.value!="")
{
	
	//check for fname
	nwstl=document.agent_det.security_code.value;

	if (nwstl==0 || nwstl==null)
	{
	alert("Please enter proper value");
	document.agent_det.security_code.focus();
	return false;
	}
}

}


function career_validate()
{

//alert(act);

if(document.career_det.fname.value=="")
	{
     alert("Please mention first name"); 
	 document.career_det.fname.focus();
	 return false;
	}


if (document.career_det.fname.value!="")
{
	
	//check for fname
	nwstl=document.career_det.fname.value;

	if (nwstl==0 || nwstl==null)
	{
	alert("Please enter proper value");
	document.career_det.fname.focus();
	return false;
	}
}


if(document.career_det.fname.value !="")
	{
var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789.@_/,- \n\r";
  var checkStr = document.career_det.fname.value;
  var allValid = true;
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
  }
  if (!allValid)
  {
    alert('Data are invalid.Only a-z 0-9 @ _ . , /   are allowed');
    document.career_det.fname.select();
    return false;
  }
}

if(document.career_det.fname.value!="")
	{

		if(document.career_det.fname.value.length > 100)
		{
					alert("First Name cannot be greater than 100 Characters");
					document.career_det.fname.focus();
					return false;
		}
	}	
	

if(document.career_det.lname.value=="")
	{
     alert("Please mention last name"); 
	 document.career_det.lname.focus();
	 return false;
	}


if (document.career_det.lname.value!="")
{
	
	//check for fname
	nwstl=document.career_det.lname.value;

	if (nwstl==0 || nwstl==null)
	{
	alert("Please enter proper value");
	document.career_det.lname.focus();
	return false;
	}
}


if(document.career_det.lname.value !="")
	{
var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789.@_/,- \n\r";
  var checkStr = document.career_det.lname.value;
  var allValid = true;
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
  }
  if (!allValid)
  {
    alert('Data are invalid.Only a-z 0-9 @ _ . , /   are allowed');
    document.career_det.lname.select();
    return false;
  }
}

if(document.career_det.lname.value!="")
	{

		if(document.career_det.lname.value.length > 100)
		{
					alert("Last Name cannot be greater than 100 Characters");
					document.career_det.lname.focus();
					return false;
		}
	}	
	


if(document.career_det.dd.value=="#")
	{
     alert("Please mention date of birth"); 
	 document.career_det.dd.focus();
	 return false;
	}


if(document.career_det.mm.value=="#")
	{
     alert("Please mention month of birth"); 
	 document.career_det.mm.focus();
	 return false;
	}


if(document.career_det.yyyy.value=="#")
	{
     alert("Please mention year of birth"); 
	 document.career_det.yyyy.focus();
	 return false;
	}



if(document.career_det.addr.value=="")
	{
     alert("Please mention address"); 
	 document.career_det.addr.focus();
	 return false;
	}


if (document.career_det.addr.value!="")
{
	
	//check for fname
	nwstl=document.career_det.addr.value;

	if (nwstl==0 || nwstl==null)
	{
	alert("Please enter proper value");
	document.career_det.addr.focus();
	return false;
	}
}


if(document.career_det.addr.value !="")
	{
var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789.@_/,- \n\r";
  var checkStr = document.career_det.addr.value;
  var allValid = true;
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
  }
  if (!allValid)
  {
    alert('Data are invalid.Only a-z 0-9 @ _ . , /   are allowed');
    document.career_det.addr.select();
    return false;
  }
}

if(document.career_det.addr.value!="")
	{

		if(document.career_det.addr.value.length > 500)
		{
					alert("Address cannot be greater than 500 Characters");
					document.career_det.addr.focus();
					return false;
		}
	}	

	


if(document.career_det.city.value=="")
	{
     alert("Please mention city"); 
	 document.career_det.city.focus();
	 return false;
	}


if (document.career_det.city.value!="")
{
	
	//check for fname
	nwstl=document.career_det.city.value;

	if (nwstl==0 || nwstl==null)
	{
	alert("Please enter proper value");
	document.career_det.city.focus();
	return false;
	}
}


if(document.career_det.city.value !="")
	{
var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789.@_/,- \n\r";
  var checkStr = document.career_det.city.value;
  var allValid = true;
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
  }
  if (!allValid)
  {
    alert('Data are invalid.Only a-z 0-9 @ _ . , /   are allowed');
    document.career_det.city.select();
    return false;
  }
}

if(document.career_det.city.value!="")
	{

		if(document.career_det.city.value.length > 200)
		{
					alert("City cannot be greater than 200 Characters");
					document.career_det.city.focus();
					return false;
		}
	}	




if(document.career_det.state.value=="")
	{
     alert("Please mention state"); 
	 document.career_det.state.focus();
	 return false;
	}


if (document.career_det.state.value!="")
{
	
	//check for fname
	nwstl=document.career_det.state.value;

	if (nwstl==0 || nwstl==null)
	{
	alert("Please enter proper value");
	document.career_det.state.focus();
	return false;
	}
}


if(document.career_det.state.value !="")
	{
var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789.@_/,- \n\r";
  var checkStr = document.career_det.state.value;
  var allValid = true;
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
  }
  if (!allValid)
  {
    alert('Data are invalid.Only a-z 0-9 @ _ . , /   are allowed');
    document.career_det.state.select();
    return false;
  }
}

if(document.career_det.state.value!="")
	{

		if(document.career_det.state.value.length > 200)
		{
					alert("State cannot be greater than 200 Characters");
					document.career_det.state.focus();
					return false;
		}
	}	



if(document.career_det.country.value=="")
	{
     alert("Please mention country"); 
	 document.career_det.country.focus();
	 return false;
	}


if (document.career_det.country.value!="")
{
	
	//check for fname
	nwstl=document.career_det.country.value;

	if (nwstl==0 || nwstl==null)
	{
	alert("Please enter proper value");
	document.career_det.country.focus();
	return false;
	}
}


if(document.career_det.country.value!="")
	{
var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789.@_/,- \n\r";
  var checkStr = document.career_det.country.value;
  var allValid = true;
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
  }
  if (!allValid)
  {
    alert('Data are invalid.Only a-z 0-9 @ _ . , /   are allowed');
    document.career_det.country.select();
    return false;
  }
}

if(document.career_det.country.value!="")
	{

		if(document.career_det.country.value.length > 100)
		{
					alert("Country cannot be greater than 100 Characters");
					document.career_det.country.focus();
					return false;
		}
	}	

if(document.career_det.zip.value=="")
	{
     alert("Please mention pincode"); 
	 document.career_det.zip.focus();
	 return false;
	}


if (document.career_det.zip.value!="")
{
	
	//check for fname
	nwstl=document.career_det.zip.value;

	if (nwstl==0 || nwstl==null)
	{
	alert("Please enter proper value");
	document.career_det.zip.focus();
	return false;
	}
}


if(document.career_det.zip.value!="")
	{
var checkOK = "0123456789 ";
  var checkStr = document.career_det.zip.value;
  var allValid = true;
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
  }
  if (!allValid)
  {
    alert('Data are invalid.Only 0-9 allowed');
    document.career_det.zip.select();
    return false;
  }
}

if(document.career_det.zip.value!="")
	{

		if(document.career_det.zip.value.length > 15)
		{
					alert("Pin cannot be greater than 15 Characters");
					document.career_det.zip.focus();
					return false;
		}
	}	



if(document.career_det.email.value=="")
	{
     alert("Please mention email"); 
	 document.career_det.email.focus();
	 return false;
	}


if (document.career_det.email.value!="")
{
	
	//check for fname
	nwstl=document.career_det.email.value;

	if (nwstl==0 || nwstl==null)
	{
	alert("Please enter proper value");
	document.career_det.email.focus();
	return false;
	}
}


if(document.career_det.email.value !="")
	{
var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789.@_/,- \n\r";
  var checkStr = document.career_det.email.value;
  var allValid = true;
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
  }
  if (!allValid)
  {
    alert('Data are invalid.Only a-z 0-9 @ _ . , /   are allowed');
    document.career_det.email.select();
    return false;
  }
}

if(document.career_det.email.value!="")
	{

		if(document.career_det.email.value.length > 100)
		{
					alert("Email cannot be greater than 100 Characters");
					document.career_det.email.focus();
					return false;
		}
	
		var str=document.career_det.email.value;
		var valid=echeck(str);

		if (valid==0)
		{
			//alert('Invalid email id');
			document.career_det.email.focus();
			return false;
		}

	
	}	


if(document.career_det.res_phone.value=="")
	{
     alert("Please mention home phone"); 
	 document.career_det.res_phone.focus();
	 return false;
	}


if (document.career_det.res_phone.value!="")
{
	
	//check for fname
	nwstl=document.career_det.res_phone.value;

	if (nwstl==0 || nwstl==null)
	{
	alert("Please enter proper value");
	document.career_det.res_phone.focus();
	return false;
	}
}


if(document.career_det.res_phone.value!="")
	{
var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789.@_/,- \n\r";
  var checkStr = document.career_det.res_phone.value;
  var allValid = true;
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
  }
  if (!allValid)
  {
    alert('Data are invalid.Only a-z 0-9 @ _ . , /   are allowed');
    document.career_det.res_phone.select();
    return false;
  }
}

if(document.career_det.res_phone.value!="")
	{

		if(document.career_det.res_phone.value.length > 50)
		{
					alert("Phone cannot be greater than 50 Characters");
					document.career_det.res_phone.focus();
					return false;
		}
	}	




if(document.career_det.phone_work.value=="")
	{
     alert("Please mention work phone"); 
	 document.career_det.phone_work.focus();
	 return false;
	}


if (document.career_det.phone_work.value!="")
{
	
	//check for fname
	nwstl=document.career_det.phone_work.value;

	if (nwstl==0 || nwstl==null)
	{
	alert("Please enter proper value");
	document.career_det.phone_work.focus();
	return false;
	}
}


if(document.career_det.phone_work.value!="")
	{
var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789.@_/,- \n\r";
  var checkStr = document.career_det.phone_work.value;
  var allValid = true;
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
  }
  if (!allValid)
  {
    alert('Data are invalid.Only a-z 0-9 @ _ . , /   are allowed');
    document.career_det.phone_work.select();
    return false;
  }
}

if(document.career_det.phone_work.value!="")
	{

		if(document.career_det.phone_work.value.length > 50)
		{
					alert("Phone cannot be greater than 50 Characters");
					document.career_det.phone_work.focus();
					return false;
		}
	}	




if(document.career_det.school.value=="")
	{
     alert("Please mention school name & location"); 
	 document.career_det.school.focus();
	 return false;
	}


if (document.career_det.school.value!="")
{
	
	//check for fname
	nwstl=document.career_det.school.value;

	if (nwstl==0 || nwstl==null)
	{
	alert("Please enter proper value");
	document.career_det.school.focus();
	return false;
	}
}


if(document.career_det.school.value!="")
	{
var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789.@_/,- \n\r";
  var checkStr = document.career_det.school.value;
  var allValid = true;
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
  }
  if (!allValid)
  {
    alert('Data are invalid.Only a-z 0-9 @ _ . , /   are allowed');
    document.career_det.school.select();
    return false;
  }
}

if(document.career_det.school.value!="")
	{

		if(document.career_det.school.value.length > 1000)
		{
					alert("School Name & Location cannot be greater than 1000 Characters");
					document.career_det.school.focus();
					return false;
		}
	}	



if(document.career_det.college.value=="")
	{
     alert("Please mention college name & location"); 
	 document.career_det.college.focus();
	 return false;
	}


if (document.career_det.college.value!="")
{
	
	//check for fname
	nwstl=document.career_det.college.value;

	if (nwstl==0 || nwstl==null)
	{
	alert("Please enter proper value");
	document.career_det.college.focus();
	return false;
	}
}


if(document.career_det.college.value!="")
	{
var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789.@_/,- \n\r";
  var checkStr = document.career_det.college.value;
  var allValid = true;
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
  }
  if (!allValid)
  {
    alert('Data are invalid.Only a-z 0-9 @ _ . , /   are allowed');
    document.career_det.college.select();
    return false;
  }
}

if(document.career_det.college.value!="")
	{

		if(document.career_det.college.value.length > 1000)
		{
					alert("College Name & Location cannot be greater than 1000 Characters");
					document.career_det.college.focus();
					return false;
		}
	}	




if(document.career_det.digree.value=="")
	{
     alert("Please mention highest degree"); 
	 document.career_det.digree.focus();
	 return false;
	}


if (document.career_det.digree.value!="")
{
	
	//check for fname
	nwstl=document.career_det.digree.value;

	if (nwstl==0 || nwstl==null)
	{
	alert("Please enter proper value");
	document.career_det.digree.focus();
	return false;
	}
}


if(document.career_det.digree.value !="")
	{
var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789.@_/,- \n\r";
  var checkStr = document.career_det.digree.value;
  var allValid = true;
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
  }
  if (!allValid)
  {
    alert('Data are invalid.Only a-z 0-9 @ _ . , /   are allowed');
    document.career_det.digree.select();
    return false;
  }
}

if(document.career_det.digree.value!="")
	{

		if(document.career_det.digree.value.length > 200)
		{
					alert("Degree cannot be greater than 200 Characters");
					document.career_det.digree.focus();
					return false;
		}
	}	



if(document.career_det.spec.value=="")
	{
     alert("Please mention area of specialisation"); 
	 document.career_det.spec.focus();
	 return false;
	}


if (document.career_det.spec.value!="")
{
	
	//check for fname
	nwstl=document.career_det.spec.value;

	if (nwstl==0 || nwstl==null)
	{
	alert("Please enter proper value");
	document.career_det.spec.focus();
	return false;
	}
}


if(document.career_det.spec.value !="")
	{
var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789.@_/,- \n\r";
  var checkStr = document.career_det.spec.value;
  var allValid = true;
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
  }
  if (!allValid)
  {
    alert('Data are invalid.Only a-z 0-9 @ _ . , /   are allowed');
    document.career_det.spec.select();
    return false;
  }
}

if(document.career_det.spec.value!="")
	{

		if(document.career_det.spec.value.length > 200)
		{
					alert("Degree cannot be greater than 200 Characters");
					document.career_det.spec.focus();
					return false;
		}
	}	



if(document.career_det.exp_yr.value=="")
	{
     alert("Please mention total years of work experience"); 
	 document.career_det.exp_yr.focus();
	 return false;
	}


if (document.career_det.exp_yr.value!="")
{
	
	//check for fname
	nwstl=document.career_det.exp_yr.value;

	if (nwstl==0 || nwstl==null)
	{
	alert("Please enter proper value");
	document.career_det.exp_yr.focus();
	return false;
	}
}



if(document.career_det.exp_yr.value!="")
	{

		if(document.career_det.exp_yr.value.length > 200)
		{
					alert("total years of work experience cannot be greater than 200 Characters");
					document.career_det.exp_yr.focus();
					return false;
		}
	}	




if(document.career_det.job_yr.value=="")
	{
     alert("Please mention years in present job"); 
	 document.career_det.job_yr.focus();
	 return false;
	}


if (document.career_det.job_yr.value!="")
{
	
	//check for fname
	nwstl=document.career_det.job_yr.value;

	if (nwstl==0 || nwstl==null)
	{
	alert("Please enter proper value");
	document.career_det.job_yr.focus();
	return false;
	}
}



if(document.career_det.job_yr.value!="")
	{

		if(document.career_det.job_yr.value.length > 200)
		{
					alert("Years in present job cannot be greater than 200 Characters");
					document.career_det.job_yr.focus();
					return false;
		}
	}	





if(document.career_det.desig.value=="")
	{
     alert("Please mention designation"); 
	 document.career_det.desig.focus();
	 return false;
	}


if (document.career_det.desig.value!="")
{
	
	//check for fname
	nwstl=document.career_det.desig.value;

	if (nwstl==0 || nwstl==null)
	{
	alert("Please enter proper value");
	document.career_det.desig.focus();
	return false;
	}
}


if(document.career_det.desig.value !="")
	{
var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789.@_/,- \n\r";
  var checkStr = document.career_det.desig.value;
  var allValid = true;
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
  }
  if (!allValid)
  {
    alert('Data are invalid.Only a-z 0-9 @ _ . , /   are allowed');
    document.career_det.desig.select();
    return false;
  }
}

if(document.career_det.desig.value!="")
	{

		if(document.career_det.desig.value.length > 200)
		{
					alert("Designation cannot be greater than 200 Characters");
					document.career_det.desig.focus();
					return false;
		}
	}	




if(document.career_det.comp_name.value=="")
	{
     alert("Please mention company name"); 
	 document.career_det.comp_name.focus();
	 return false;
	}


if (document.career_det.comp_name.value!="")
{
	
	//check for fname
	nwstl=document.career_det.comp_name.value;

	if (nwstl==0 || nwstl==null)
	{
	alert("Please enter proper value");
	document.career_det.comp_name.focus();
	return false;
	}
}


if(document.career_det.comp_name.value !="")
	{
var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789.@_/,- \n\r";
  var checkStr = document.career_det.comp_name.value;
  var allValid = true;
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
  }
  if (!allValid)
  {
    alert('Data are invalid.Only a-z 0-9 @ _ . , /   are allowed');
    document.career_det.comp_name.select();
    return false;
  }
}

if(document.career_det.comp_name.value!="")
	{

		if(document.career_det.comp_name.value.length > 200)
		{
					alert("Company name cannot be greater than 200 Characters");
					document.career_det.comp_name.focus();
					return false;
		}
	}	


var chkd=0;
for(i=22;i<=23;i++)
	{
	if(document.career_det.elements[i].checked)
		{
		chkd=1;
		}
	}
	if(chkd==0)
	{
		alert("Please mention type of application  : Full Time or Part Time");
		return false
	}




if(document.career_det.func_area.value=="")
	{
     alert("Please mention functional area"); 
	 document.career_det.func_area.focus();
	 return false;
	}


if (document.career_det.func_area.value!="")
{
	
	//check for fname
	nwstl=document.career_det.func_area.value;

	if (nwstl==0 || nwstl==null)
	{
	alert("Please enter proper value");
	document.career_det.func_area.focus();
	return false;
	}
}


if(document.career_det.func_area.value!="")
	{

		if(document.career_det.func_area.value.length > 200)
		{
					alert("Functional Area cannot be greater than 200 Characters");
					document.career_det.func_area.focus();
					return false;
		}
	}	


var cv1=document.career_det.cv_file.value;
var cv2=document.career_det.cv_details.value;

if(cv1=="" && cv2=="")
	{
     alert("Please upload you CV or paste CV details"); 
	 document.career_det.cv_file.focus();
	 return false;
	}

if (document.career_det.cv_file.value!="")
{
	
	//check for fname
	nwstl=document.career_det.cv_file.value;

	if (nwstl==0 || nwstl==null)
	{
	alert("Please enter proper value");
	document.career_det.cv_file.focus();
	return false;
	}
}


if (document.career_det.cv_details.value!="")
{
	
	//check for fname
	nwstl=document.career_det.cv_details.value;

	if (nwstl==0 || nwstl==null)
	{
	alert("Please enter proper value");
	document.career_det.cv_details.focus();
	return false;
	}
}

if(document.career_det.security_code.value=="")
	{
     alert("Please mention security code"); 
	 document.career_det.security_code.focus();
	 return false;
	}


if (document.career_det.security_code.value!="")
{
	
	//check for fname
	nwstl=document.career_det.security_code.value;

	if (nwstl==0 || nwstl==null)
	{
	alert("Please enter proper value");
	document.career_det.security_code.focus();
	return false;
	}
}

}