// CHECK NUMERIC FORMAT
// provide one of the following:
// min=q; if the value is an ID, and you want it > q to be valid..
// max=r; if the value is an ID, and you want it < r to be valid..
if ((e.type == "text" || e.type == "textarea") && (e.numeric || (e.min != null) || (e.max != null)) && !isblank(e.value)) {
var v = parseFloat(e.value);
var v2 = e.value.replace(/,/, "");
if ((isNaN(v)) || (isNaN(v2)) || ((e.min != null) && (v < e.min)) || ((e.max != null) && (v > e.max))) {
errors += "- The field " + getDisplay(e) + " must be a number";
errorsf += "- Le champ " + getDisplay(e) + " doit Ítre un nombre";
if (e.min != null) {
errors += " that is greater than " + e.min;
errorsf += " c'est plus grand que " + e.min;
}
if (e.max != null && e.min != null) {
errors += " and less than " + e.max;
errorsf += " et moins que " + e.max;
} else if (e.max != null) {
errors += " that is less than " + e.max;
errorsf += " c'est moins que " + e.max;
}
errors += ".\n";
errorsf += ".\n";
}
}