随笔-22  评论-6  文章-17  trackbacks-0
有这样的一个脚本:
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 阅读(178) 评论(0)  编辑  收藏

只有注册用户登录后才能发表评论。


网站导航: