/*
名称:keyPressInt,keyPressFlt
功能:限制文本框内的输入,前者只能输入数字
     后者能输入数字和一个小数点
参数:src,响应onkeypress事件的对象
作者:赵晓阳
*/
function keyPressInt(src){
var e=window.event;
code=e.keyCode;
if(code >=48 && code <=57)  return true;
else  {window.event.keyCode=null;return false;}
}
function keyPressFlt(src){
var e=window.event;
code=e.keyCode;
if(code >=48 && code <=57) return true;
else if(code == 46 && src.value.indexOf('.')==-1) return true;
else{  window.event.keyCode=null; return false; }
}