var strUserAgent = navigator.userAgent.toLowerCase(); 
var isIE = strUserAgent.indexOf("msie") > -1; 


function KeyPressNumeric(e) 
{             
	var iKeyCode=e.charCode? e.charCode : e.keyCode;
  
	
	if (iKeyCode==8)  return true;
	if (iKeyCode==9)  return true;
	if (iKeyCode==13) return true;
	if (iKeyCode==27) return true;
	if (iKeyCode==37) return true;
	if (iKeyCode==38) return true;
	if (iKeyCode==39) return true;
	if (iKeyCode==40) return true;
	if (iKeyCode==46) return true;
	if (iKeyCode==36) return true;
	if (iKeyCode==35) return true;
	if (iKeyCode==33) return true;
	if (iKeyCode==34) return true;
	if (iKeyCode==45) return true;

	if (iKeyCode<48||iKeyCode>57) return false;
	return true;
}
