rem: var pswd_index = 2; var pswd1_name = 'new_pw'; var pswd2_name = 'new_pw2'; 
add: pswd_index     = 2; pswd1_name     = 'new_pw'; pswd2_name     = 'new_pw2'; 
context: function checkPassword(the_form){    // Gets the elements pointers    if (the_form.name == 'addUserForm') {        var pswd_index = 1;        var pswd1_name = 'pma_pw';        var pswd2_name = 'pma_pw2';    } else {        var pswd_index = 2;        var pswd1_name = 'new_pw';        var pswd2_name = 'new_pw2';    }    // Validates    if (the_form.elements['nopass'][pswd_index].checked) {        if (the_form.elements[pswd1_name].value == '') {            alert(jsPasswordEmpty);            the_form.elements[pswd2_name].value = '';            the_form.elements[pswd1_name].focus();            return false;        } else if (the_form.elements[pswd1_name].value != the_form.elements[pswd2_name].value) {            alert(jsPasswordNotSame);            the_form.elements[pswd1_name].value  = '';            the_form.elements[pswd2_name].value = '';            the_form.elements[pswd1_name].focus();            return false;        } // end if...else if    } // end if    return true;} // end of the 'checkPassword()' function
meta: 8858	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8858/c357aa9976b524b045a841806670d877d8a45f45/user_details.js/buggy/libraries/user_details.js