﻿
//<!--<![CDATA[

function createMenu() 
{

    var objTH = document.getElementsByTagName("th");
    for (var x = 0; x < objTH.length; x++) {
                if (objTH.item(x).className.indexOf("Tab") > -1) {
                    objTH.item(x).setAttribute("onmouseover", "javascript:tab_hig_lite(this);");
                    objTH.item(x).setAttribute("onmouseout", "javascript:tab_low_lite(this);");
                    objTH.item(x).setAttribute("onclick", "javascript:tab_click(this);");
                }
            }


    var objInput = document.getElementsByTagName("input");
    var objTextArea = document.getElementsByTagName("textarea");
    
    for (var x = 0; x < objInput.length; x++)
    {
        if (objInput.item(x).type.indexOf("text") > -1)
        {
            objInput.item(x).setAttribute("onfocus", "javascript:input_hig_lite(this);");
            objInput.item(x).setAttribute("onblur", "javascript:input_low_lite(this);");
        }
    }
    for (var x = 0; x < objTextArea.length; x++) {
        if (objTextArea.item(x).type.indexOf("text") > -1) {
            objTextArea.item(x).setAttribute("onfocus", "javascript:input_hig_lite(this);");
            objTextArea.item(x).setAttribute("onblur", "javascript:input_low_lite(this);");
        }
    }

    //RowHigh

    var objTR = document.getElementsByTagName("tr");
    for (var x = 0; x < objTR.length; x++) {
        if (objTR.item(x).className == "RowHigh") {
            objTR.item(x).setAttribute("onmouseover", "javascript:row_hig_lite(this);");
            objTR.item(x).setAttribute("onmouseout", "javascript:row_low_lite(this);");
            objTR.item(x).setAttribute("onclick", "javascript:row_click(this);");
        }
    }

  
}

    var tabliteclassName;

    // function preserves certain styles and style class of element for mouse out
    function tab_hig_lite(element) {if (element.className != "TabSelected"){tabliteclassName = element.className;element.className = 'TabHover';}}
    function tab_low_lite(element){if (element.className != "TabSelected") element.className = tabliteclassName;}
    function tab_click(element) {window.location = element.getAttribute("post");}

    // functions add style to input and text area
    function input_hig_lite(element){element.className = 'InputLight';}
    function input_low_lite(element){element.className = 'ao';}

    var tableliteclassName;

    // function preserves certain styles and style class of element for mouse out
    function row_hig_lite(element) { tableliteclassName = element.className; element.className = 'RowLight'; }
    function row_low_lite(element) { element.className = tableliteclassName; }
    function row_click(element) { window.location = element.getAttribute("post"); }
    
//]]>-->