
//For Digit Only
function chknum(e)
		{
			var key;
			key=e.keyCode;
			if(key>=48 && key<=57)
				{
				return true;
				}
			return false;
		}
		
//For Digit with comma(,)	
	
function chknumc(e)
		{
			var key;
			key=e.keyCode;
			if(key>=48 && key<=57 || key==44)
				{
				return true;
				}
			return false;
		}
		
		//For money	(. and ,)
//For Digit and dot(.)and comma(,)	

function chknump(e)
		{
			var key;
			key=e.keyCode;
			if(key>=48 && key<=57 || key==46 )
				{
				return true;
				}
			return false;
		}

// For Digit with dot(.)
function chknumd(e)
		{
			var key;
			key=e.keyCode;
			if(key>=48 && key<=57 || key==46)
				{
				return true;
				}
			return false;
		}
		
//For Characters only with space
// For names, country,nationality
function chkchr(e)
		{
			var key;
			key=e.keyCode;
			if((key>=65 && key<=90) ||(key>=97 && key<=122) || key==32 ||key==8 ||key==46)
				{
				return true;
				}
			return false;
		}
		
		
function validp()
			{
				var digits="0123456789-";
				var temp;
				for (var i=0;i<document.Form1.txtphone.value.length;i++)
				{
						temp=document.Form1.txtphone.value.substring(i,i+1);
						if (digits.indexOf(temp)==-1)
						{
								alert("Please Do not enter any symbol ");
								document.Form1.txtphone.value="";
								document.Form1.txtphone.focus;
								return false;
						}
				}
				return true;	
			}
			

 function valids()
			{
				var digits="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789.,; ";
				var temp;
				for (var i=0;i<document.Form1.txtdescription.value.length;i++)
				{
						temp=document.Form1.txtdescription.value.substring(i,i+1);
						if (digits.indexOf(temp)==-1)
						{
								alert("Please Do not enter any symbol ");
								document.Form1.txtdescription.value="";
								document.Form1.txtdescription.focus;
								return false;
						}
				}
				return true;	
			}



function validchar()
	{
	 var digits="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz. ";
	 var temp;
     for (var i=0;i<document.Form1.applicant.value.length;i++)
     {
               temp=document.Form1.applicant.value.substring(i,i+1);
               if (digits.indexOf(temp)==-1)
               {
                        alert("Please Do not enter any symbol ");
                        document.Form1.applicant.value="";
                        document.Form1.applicant.focus;
                        return false;
               }
      }
		return true;	
	}
