<!-- trim function
String.prototype.trim = function () {
    return this.replace(/^\s*/, "").replace(/\s*$/, "");
}

function trim_text_inputs(oForm) {
var el, i = 0; 
while (el = oForm.elements[i++]) if (el.type == 'text') el.value=el.value.trim();
}
