function init() {

    // Support Hover of table rows in IE
    if(document.getElementsByTagName && navigator.appVersion.indexOf("MSIE")!=-1) {
        (
            function() {
                var className = 'hovered';
                var pattern = new RegExp('(^|\\s+)' + className + '(\\s+|$)');
                var rows = document.getElementsByTagName('tr');
    
                for(var i = 0, n = rows.length; i < n; ++i) {
                    rows[i].onmouseover = function() {
                        this.className += ' ' + className;
                    };
                    rows[i].onmouseout = function() {
                        this.className = this.className.replace(pattern, ' ');
                    };
                }
                rows = null;
            }
        )();
    }
}

function goFocus(theForm) {
    if (!theForm) {
        theForm = document.forms[0];
    }
    for(i=0; i < theForm.length; i++) {
        if (((theForm.elements[i].type=="text") 
                || (theForm.elements[i].type=="password") 
                || (theForm.elements[i].type=="textarea")) 
                    && (theForm.elements[i].value=="")) {
            theForm.elements[i].focus();
            break;
        }
    }
}