说明:
在一个表单中利用js验证其中的内容不为空
验证通过后提交服务器(使用的开发平台时VS2003)
遇到的问题是当我的文本框内容为空时提交会出现 “对象不支持此属性或方法”的警告对话框
 function check() 
 {
 
          var strSign=true;
   
if(document.Form1.txtCautionerBiryhday.value=="")
       {
alert("出生日期不能为空");
document.Form1.txtCautionerBiryhday.focus();
event.returnValue=false;
strSign=false; 
   }
if(document.Form1.txtCautionerTime.value=="")
 {
alert("担保人签字日期不能为空");
document.Form1.txtCautionerTime.focus();
strSign=false;//false;
event.returnValue=false;
}
    if(document.Form1.txtVoucheeTime.value=="")
{
alert("被担保人签字日期不能为空");
document.Form1.txtVoucheeTime.focus();
event.returnValue=false;
    strSign=false;
      }
     
  if(strSign==true)
{
    event.returnValue=true;
__doPostBack('btnSave','');
}
else
{
   document.getElementById("Form1").onSubmit();
  
}
}
请教高手该如何解决