/**************************************************//* generic javascript functions for use site-wide *//**************************************************/function maxLength(obj,len) {  if (obj.value.length > len);  obj.value=obj.value.substring(0,len);}function makeSafe(obj,type) {  switch (type) {      /* strip anything that isn't alphanumeric or an underscore */    case 1:      var text = obj.value;      text = text.replace(/\W/g, '');      obj.value = text;      break;    default:      break;  }}