function fixChars(element) { element.value = element.value.replace(/-/mg,"-"); }