有这样的一个脚本:
function DoActionsCtr(lngActionID) 
{ 
      var blnContinue; //alert("dd");
       if(typeof(
DoUserValidate) != "undefined") 
      { 
            blnContinue = DoUserValidate(lngActionID); 
         //alert(blnContinue); 
         //DoUserValidate(lngActionID); 
      } 
      if(blnContinue != false) 
      { 
            GetFieldValues(lngActionID); 
      } 
}
function DoUserValidate(lngActionID)
{
    var elename;
    elename="ctrcmdAction"+lngActionID;
    if (window.document.frmWNotice.elements(elename).value=="退回修改")
    {
           if (window.document.frmWNotice.txtOpinion.value=="")
           {
               alert("请输入退回修改的处理意见");
               window.document.frmWNotice.txtOpinion.focus();
               return false;
            }
       }
}
	posted on 2006-08-04 14:50 
surffish 阅读(188) 
评论(0)  编辑  收藏