rem: } if (ok == "no") { field.value = field.value.substring(0, (field.value.length) - 1); 
add:  if (ok == "no") { field.value = field.value.substring(0, i); } 
context: function doInputCheck(field,valid) {        var ok = "yes";        var temp;        for (var i=0; i<field.value.length; i++) {        	temp = "" + field.value.substring(i, i+1);                if (valid.indexOf(temp) == "-1") ok = "no";        }        if (ok == "no") {                field.value = field.value.substring(0, (field.value.length) - 1);        }}
meta: 5314	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5314/fdeb18009654aa170a5f4208913665bce7e25823/inputCheck.js/buggy/www/extras/inputCheck.js