/*  
example call:
checkStr(form1.txtName.value, " abcABC123\t\r\n\f") == false)

obj is value on form and str it what values are allowed
*/
function checkStr(obj,str){
checkOK = str;
var checkStr = obj;
var allValid = true;
for (i = 0;  i < checkStr.length;  i++){
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length){
      return (false);
      break;
    }
}
}