function NumvalidEntry(field,val) //this function acceptes fieldname as field and field value as val
{
string =val
values =""
n=string.length

//=========================================================================================
	for (i=0;i<n;i++)
	{
		//if(string.charCodeAt(i)!=32)
	//	{
		    if(string.charCodeAt(i)<47 && string.charCodeAt(i)!=46 && string.charCodeAt(i)!=45 && string.charCodeAt(i)!=44)		
			{	
    			alert(string.charAt(i)+"  Numeric Only")
//				document.all.item(field).value=values;
//				document.all.item(field).focus();
                document.getElementById(field).value=values;
                document.getElementById(field).focus();
				return false;
			}
	//	}
	//=========================================================================================
		for(x=58;x<61;x++)		
		{
			if(string.charCodeAt(i)==x)
			{
				alert(string.charAt(i)+"  Numeric Only")
//				document.all.item(field).value=values;
//				document.all.item(field).focus();
				document.getElementById(field).value=values;
	            document.getElementById(field).focus();
				return false;
			}
		}

		for(x=63;x<256;x++)		
		{
			if(string.charCodeAt(i)==x)
			{
				alert(string.charAt(i)+" Numeric Only")
//				document.all.item(field).value=values;
//				document.all.item(field).focus();
				document.getElementById(field).value=values;
                document.getElementById(field).focus();
				return false;
			}
		}
		
		values=values+string.charAt(i)
	}
//=========================================================================================
}

