/* Scrub the Search */ function checkSearch(anId) { ok = false; term = document.getElementById(anId); if (term != null && term.value.length > 0) { var stuff = new RegExp("[^a-zA-Z0-9_ .*~-]","g"); term.value = term.value.replace(stuff,""); term.value = term.value + "*"; ok = true; } return ok; }