Subversion Repositories cms

Rev

Rev 14 | Blame | Compare with Previous | Last modification | View Log | RSS feed

<SCRIPT>
// ---------------------------------------------------------------------- #
// Copyright: (C) 2002 Leader.IT S.r.l. <http://leader.it>
// Authors: Mario Claudio Pisoni <pisoni@leader.it>
//
// $Revision: 18 $
// ---------------------------------------------------------------------- #
</SCRIPT>
<script language="JavaScript">
ie = document.all?1:0;
ns4 = document.layers?1:0;

function SelectRow(myCheckBox){
        if (myCheckBox.checked)
                highlight(myCheckBox);
        else
                unHighLight(myCheckBox);
}

function highlight(E){
        if (ie)
        {
                while (E.tagName!="TR")
                        E = E.parentElement;
        }
        else
        {
                while (E.tagName!="TR")
                        E = E.parentNode;
        }
        E.className = "High";
}

function unHighLight(E)
{
        if (ie)
        {
                while (E.tagName != "TR")
                        E = E.parentElement;
        }
        else
        {
                while (E.tagName != "TR")
                        E = E.parentNode;
        }
        E.className = "";
}
</script>