here's what I have that does numbers great, I just need to allow for a negative sign as the first input...
"...your mom goes to college..."
Code:
function checkcurrency(thefield,s) {
var iscur = /^\d+(\.\d\d)?$/.test(thefield.value);
if(iscur) {
thefield.style.backgroundColor = cok;
return true;
} else {
thefield.style.backgroundColor = cbad;
if (s != '') {
alert(s);
}
thefield.focus();
return false;
}
}
"...your mom goes to college..."