987456321

Help

Oct 19th, 2020
893
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!--系统公共脚本-->
  2. <script language="javascript" src="common.js"></script>
  3. <script language="javascript" type="text/javascript">
  4.  
  5. var cgi = new Object();
  6. /********************************************************************
  7. **          on document load
  8. ********************************************************************/
  9. function on_init()
  10. {}
  11.  
  12. function reset_para()
  13. {}
  14.  
  15. /********************************************************************
  16. **          on document submit
  17. ********************************************************************/
  18. function on_submit()
  19. {
  20.     with (document.forms[0]) {
  21.         if (oldPasswd.value.length <= 0) {
  22.             oldPasswd.focus();
  23.             alert("old Password can't be Empty, Input Password Again!");
  24.             return;
  25.         }
  26.         if (newPasswd.value.length <= 0) {
  27.             newPasswd.focus();
  28.             alert("new Password can't be Empty, Input Password Again!");
  29.             return;
  30.         }
  31.         if (newPasswd.value.length < 6) {
  32.             newPasswd.focus();
  33.             alert("The password must contain at least 6 characters.");
  34.             return;
  35.         }
  36.         if (newPasswd.value.length > 16) {
  37.             newPasswd.focus();
  38.             alert("The password must Input Max 16 charactors.");
  39.             return;
  40.         }
  41.         if (sji_checkusername(newPasswd.value, 1, 16) == false) {
  42.             newPasswd.focus();
  43.             alert("new Password Error, Input Password Again!");
  44.             return;
  45.         }
  46.         if (sji_checkLoginPsk(newPasswd.value, 1, 16) == false) {
  47.             newPasswd.focus();
  48.             alert("The password must contain at least two of the following combinations: 0-9,a-z,A-Z,._/@!~#$%^*()+=?");
  49.             return;
  50.         }
  51.         if (affirmPasswd.value.length <= 0) {
  52.             affirmPasswd.focus();
  53.             alert("Confirm Passwd Password can't be Empty, Input Password Again!");
  54.             return;
  55.         }
  56.         if (sji_checkusername(affirmPasswd.value, 1, 16) == false) {
  57.             affirmPasswd.focus();
  58.             alert("Confirm Passwd Password Error, Input Password Again!");
  59.             return;
  60.         }
  61.         submit();
  62.     }
  63. }
  64.  
  65. function on_submit_cancle()
  66. {
  67.     window.top.location.href = "/index_en.html";
  68.     return false;
  69. }
  70.  
  71. </script>
  72.  
RAW Paste Data