;
          // get the password box and checkbox elements
          var input = document.getElementById("pwd");
          var input2 = document.getElementById("pwd2");
          // check to see if the value is empty
          if ( input.value == "" ){
              passNotValid();
          }else if( input2.value == "" ){ //check if the value of the repeat field is empty
              passNotValid();
          }else if( input2.value != input.value ){ //check if the passwords don't match
              passDo