src/org/openbravo/erpCommon/ad_forms/Role.html
changeset 1028 8b85368639cc
parent 741 dc65b1ca408e
child 1044 8691bbc94032
equal deleted inserted replaced
1027:2e9052d7de0e 1028:8b85368639cc
    35 <script language="JavaScript" src="../../../../../web/js/default/MessageBox.js" type="text/javascript"></script>
    35 <script language="JavaScript" src="../../../../../web/js/default/MessageBox.js" type="text/javascript"></script>
    36 <script language="JavaScript" type="text/javascript">
    36 <script language="JavaScript" type="text/javascript">
    37 function depurar() {
    37 function depurar() {
    38   var frm = document.frmMain;
    38   var frm = document.frmMain;
    39   if (frm.inpClaveOld.value==null || frm.inpClaveOld.value=="") {
    39   if (frm.inpClaveOld.value==null || frm.inpClaveOld.value=="") {
    40     frm.inpClaveOld.focus();
    40     setWindowElementFocus(frm.inpClaveOld);
    41     mensaje(7);
    41     mensaje(7);
    42     return false;
    42     return false;
    43     } else if (frm.inpClaveNew.value==null || frm.inpClaveNew.value=="") {
    43     } else if (frm.inpClaveNew.value==null || frm.inpClaveNew.value=="") {
    44     frm.inpClaveNew.focus();
    44     setWindowElementFocus(frm.inpClaveNew);
    45     mensaje(7);
    45     mensaje(7);
    46     return false;
    46     return false;
    47     } else if (frm.inpClaveNew2.value==null || frm.inpClaveNew2.value=="") {
    47     } else if (frm.inpClaveNew2.value==null || frm.inpClaveNew2.value=="") {
    48     frm.inpClaveNew2.focus();
    48     setWindowElementFocus(frm.inpClaveNew2);
    49     mensaje(7);
    49     mensaje(7);
    50     return false;
    50     return false;
    51     } else if (frm.inpClaveNew.value != frm.inpClaveNew2.value) {
    51     } else if (frm.inpClaveNew.value != frm.inpClaveNew2.value) {
    52     frm.inpClaveNew.focus();
    52     setWindowElementFocus(frm.inpClaveNew);
    53     mensaje(20);
    53     mensaje(20);
    54     return false;
    54     return false;
    55   }
    55   }
    56   return true;
    56   return true;
    57 }
    57 }