var FormUtil = new Object;

FormUtil.focusOnFirst = function () {
    if (document.forms.length > 1) {  //changed from 0 to 1 to allow the search field..
        for (var i=0; i < document.forms[1].elements.length; i++) { //changed from 0 to 1 to allow the search field..
            var oField = document.forms[1].elements[i]; //changed from 0 to 1 to allow the search field..
            if (oField.type == "text") {
                oField.focus();
                return;
            }
        }
    }
};




