function checknum(obj)
{
var vadainput = /^-?[1-9]*(.d*)?$|^-?0(.d*)?$/;
if (!vadainput .test(obj.value))
{
alert("非法数字");
obj.value="";
obj.focus();
return false;
}
}