rem: var isEmpty          = (sqlQuery1.value == '') ? 1 : 0; 
add: var isEmpty  = (sqlQuery1.value == '') ? 1 : 0; 
context: function emptySqlQuery(theForm){    var sqlQuery1 = theForm.elements['sql_query'];    var isRegExp  = (typeof(sqlQuery1.value.replace) != 'undefined');    // The replace function (js1.2) isn't supported -> basic tests    if (!isRegExp) {        var isEmpty          = (sqlQuery1.value == '') ? 1 : 0;        if (isEmpty && typeof(theForm.elements['sql_file']) != 'undefined') {            isEmpty          = (theForm.elements['sql_file'].value == '') ? 1 : 0;        }        if (isEmpty && typeof(theForm.elements['id_bookmark']) != 'undefined') {            isEmpty          = (theForm.elements['id_bookmark'].value == '') ? 1 : 0;        }    }    // js1.2+ -> validation with regular expressions     else {        var isEmpty          = (sqlQuery1.value.replace(/\s/g, '') == '') ? 1 : 0;        if (isEmpty && typeof(theForm.elements['sql_file']) != 'undefined') {            isEmpty          = (theForm.elements['sql_file'].value.replace(/\s/g, '') == '') ? 1 : 0;        }        if (isEmpty && typeof(theForm.elements['id_bookmark']) != 'undefined') {            isEmpty          = (theForm.elements['id_bookmark'].value == '') ? 1 : 0;        }        if (isEmpty) {            theForm.reset();        }    }    if (isEmpty) {        sqlQuery1.select();        alert(errorMsg0);        sqlQuery1.focus();        return false;    }    return true;} // end of the 'emptySqlQuery()' function
meta: 6623	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6623/007bb0b607af05b49b9708f9cfda384167f8604d/functions.js/clean/functions.js