
function isMoney(s){ 
var regu = "^[0-9]+[\.]?[0-9]*$"; 
var re = new RegExp(regu); 
if (re.test(s)) { 
return true; 
} else { 
return false; 
} 
}
function Check(obj)
{ 
      var strR = "--出错提示信息--\n";
      if(document.aspnetForm.ctl00_ChildContent1_txtNZBDW.value.replace(/(^\s*)|(\s*$)/g,"") == "")
      {
          strR+="请填写拟中标单位\n";
      }      
//      if(document.aspnetForm.ctl00_ChildContent1_txtMoney.value.replace(/(^\s*)|(\s*$)/g,"") == "")
//      {
//          strR+="请填写中标金额\n";
//      }
//      else if(!isMoney(document.aspnetForm.ctl00_ChildContent1_txtMoney.value))
//      {
//          strR+="请正确填写中标金额\n";
//      }
      if(document.aspnetForm.ctl00_ChildContent1_txtPerson.value.replace(/(^\s*)|(\s*$)/g,"") == "")
      {
          strR+="请填写招标单位联系人\n";
      }
      if(document.aspnetForm.ctl00_ChildContent1_txtPhone.value.replace(/(^\s*)|(\s*$)/g,"") == "")
      {
          strR+="请填写联系电话\n";
      }
      
      if(!(document.aspnetForm.ctl00_ChildContent1_cboxFile_0.checked||document.aspnetForm.ctl00_ChildContent1_cboxFile_1.checked||document.aspnetForm.ctl00_ChildContent1_cboxFile_2.checked))
      {
          strR +="请选择相关附件\n";
      }

      if (strR != "--出错提示信息--\n" ) 
      {
		alert(strR);
		return false;	
	  }
	  else
	  {
	    obj.value = '正在提交…';
        obj.disabled='disabled';
        __doPostBack('ctl00$ChildContent1$Button1','')        
        return false;
	  }    
}
function FileCheck(obj)
{
    var strR = "--出错提示信息--\n";
    var filepath = document.aspnetForm.ctl00_ChildContent1_FileUpload1.value;
    if(filepath.replace(/(^\s*)|(\s*$)/g,"") == "")
    {
      strR+="请选择上传文件\n";
    }    
    if (strR != "--出错提示信息--\n" ) 
    {
       alert(strR);
        return false;	
    }
    else
    {
      obj.value = '正在上传,请稍后…';
      obj.disabled='disabled';
      __doPostBack('ctl00$ChildContent1$Button1','')        
      return false;
    }    
}
