rem: for (var i = 1; i <= in_pass.length; i++) { unicode_charcode = in_pass.charCodeAt(i); if (unicode_charcode > 127) { alert("Only ASCII letters are allowed!"); return false; } } 
add: if (check_ascii_only(in_pass) == false) { return false } 
context: function get_plaintext_pass(object_id) {    try {        in_pass = document.getElementById(object_id).value;        debug("in_pass:" + in_pass);        if (in_pass.length<8) {            alert("Password min len 8! - current len:" + in_pass.length);            return false;        }        for (var i = 1; i <= in_pass.length; i++) {           unicode_charcode = in_pass.charCodeAt(i);           if (unicode_charcode > 127) {               alert("Only ASCII letters are allowed!");               return false;           }        }        return in_pass;    } catch (e) {        alert("get_plaintext_pass() error:" + e);        return false;    }}
meta: 8758	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/8758/44d35ce329ceac40b464337e3c91d32e67136c89/shared_sha_tools.js/clean/branches/0.8(django)/media/PyLucid/shared_sha_tools.js