var iChars = "!#$%^&*()+=[]\\\';/{}|\":<>?~"; 
function checkchar_app1()
{

// ************************************this is for checking app page**************************
   for (var i = 0; i < document.form1.fname.value.length; i++) {
  	if (iChars.indexOf(document.form1.fname.value.charAt(i)) != -1) {
  	  alert ("Your string has special characters. \nThese are not allowed.");
	  document.form1.fname.focus();
  	return false;
  	}
  }//fname
}//end of checkchar_app() 

function checkchar_app2()
{  
   for (var i = 0; i < document.form1.faname.value.length; i++) {
  	if (iChars.indexOf(document.form1.faname.value.charAt(i)) != -1) {
  	  alert ("Your string has special characters. \nThese are not allowed.");
	  document.form1.faname.focus();
  	return false;
  	}
  }//faname
}//end of checkchar_app()  
function checkchar_app3()
{ 
  for (var i = 0; i < document.form1.age.value.length; i++) {
  	if (iChars.indexOf(document.form1.age.value.charAt(i)) != -1) {
  	  alert ("Your string has special characters. \nThese are not allowed.");
	  document.form1.age.focus();
  	return false;
  	}
  }//age
}//end of checkchar_app()
function checkchar_app4()
{  
   for (var i = 0; i < document.form1.city.value.length; i++) {
  	if (iChars.indexOf(document.form1.city.value.charAt(i)) != -1) {
  	  alert ("Your string has special characters. \nThese are not allowed.");
	  document.form1.city.focus();
  	return false;
  	}
  }//city  
}//end of checkchar_app()
function checkchar_app5()
{  
   for (var i = 0; i < document.form1.pin.value.length; i++) {
  	if (iChars.indexOf(document.form1.pin.value.charAt(i)) != -1) {
  	  alert ("Your string has special characters. \nThese are not allowed.");
	  document.form1.pin.focus();
  	return false;
  	}
  }//pin  
}//end of checkchar_app()
function checkchar_app6()
{  
   for (var i = 0; i < document.form1.country.value.length; i++) {
  	if (iChars.indexOf(document.form1.country.value.charAt(i)) != -1) {
  	  alert ("Your string has special characters. \nThese are not allowed.");
	  document.form1.country.focus();
  	return false;
  	}
  }//nat  
}//end of checkchar_app()
function checkchar_app7()
{  
   for (var i = 0; i < document.form1.email.value.length; i++) {
  	if (iChars.indexOf(document.form1.email.value.charAt(i)) != -1) {
  	  alert ("Your string has special characters. \nThese are not allowed.");
	  document.form1.email.focus();
  	return false;
  	}
  }//email  
}//end of checkchar_app()
function checkchar_app8()
{  
   for (var i = 0; i < document.form1.aemail.value.length; i++) {
  	if (iChars.indexOf(document.form1.aemail.value.charAt(i)) != -1) {
  	  alert ("Your string has special characters. \nThese are not allowed.");
	  document.form1.aemail.focus();
  	return false;
  	}
  }//aemail  
}//end of checkchar_app()
function checkchar_app9()
{  
   for (var i = 0; i < document.form1.phr.value.length; i++) {
  	if (iChars.indexOf(document.form1.phr.value.charAt(i)) != -1) {
  	  alert ("Your string has special characters. \nThese are not allowed.");
	  document.form1.phr.focus();
  	return false;
  	}
  }//phr  
}//end of checkchar_app()
function checkchar_app10()
{  
   for (var i = 0; i < document.form1.pho.value.length; i++) {
  	if (iChars.indexOf(document.form1.pho.value.charAt(i)) != -1) {
  	  alert ("Your string has special characters. \nThese are not allowed.");
	  document.form1.pho.focus();
  	return false;
  	}
  }//pho  
}//end of checkchar_app()
function checkchar_app11()
{  
   for (var i = 0; i < document.form1.phm.value.length; i++) {
  	if (iChars.indexOf(document.form1.phm.value.charAt(i)) != -1) {
  	  alert ("Your string has special characters. \nThese are not allowed.");
	  document.form1.phm.focus();
  	return false;
  	}
  }//phm  
}//end of checkchar_app()


function checkchar_app12()
{  
   for (var i = 0; i < document.form1.yappno.value.length; i++) {
  	if (iChars.indexOf(document.form1.yappno.value.charAt(i)) != -1) {
  	  alert ("Your string has special characters. \nThese are not allowed.");
	  document.form1.yappno.focus();
  	return false;
  	}
  }//passno  
}//end of checkchar_app()

function checkchar_app13()
{  
   for (var i = 0; i < document.form1.yapdt.value.length; i++) {
  	if (iChars.indexOf(document.form1.yapdt.value.charAt(i)) != -1) {
  	  alert ("Your string has special characters. \nThese are not allowed.");
	  document.form1.yapdt.focus();
  	return false;
  	}
  }//statno  
}//end of checkchar_app()

function checkchar_app14()
{  
   for (var i = 0; i < document.form1.yapsc.value.length; i++) {
  	if (iChars.indexOf(document.form1.yapsc.value.charAt(i)) != -1) {
  	  alert ("Your string has special characters. \nThese are not allowed.");
	  document.form1.yapsc.focus();
  	return false;
  	}
  }//statno  
}//end of checkchar_app()