ret不等于null啊
var time=document.all.txtTodayTime.value;
if(isNaN(time)){
//if(time.replace(/\d*/g,"")!="")
   alert("输入有误,分钟必须是数字字符。");
}这两者都OK