rem: var isEmpty = (theField.value.replace(/\s/g, '') == '') ? 1 : 0; 
add: var space_re = new RegExp('\\s+'); var isEmpty  = (theField.value.replace(space_re, '') == '') ? 1 : 0; 
context: function emptyFormElements(theForm, theFieldName){    var theField = theForm.elements[theFieldName];    // Whether the replace function (js1.2) is supported or not    var isRegExp = (typeof(theField.value.replace) != 'undefined');    if (!isRegExp) {        var isEmpty = (theField.value == '') ? 1 : 0;    } else {        var isEmpty = (theField.value.replace(/\s/g, '') == '') ? 1 : 0;    }    if (isEmpty) {        theForm.reset();        theField.select();        alert(errorMsg0);        theField.focus();        return false;    }    return true;} // end of the 'emptyFormElements()' function
meta: 6623	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6623/007bb0b607af05b49b9708f9cfda384167f8604d/functions.js/clean/functions.js