﻿// Adjusts the image locations on the treenode to the top

    function adjust_treenodes()
    {
        var divs = document.getElementsByTagName("div");

        var i,j;

        for(i=0;i<divs.length;++i)
        {
            //first search for all the <div> for treeview nodes

            if(divs[i].id.indexOf("TreeView") != -1)
            {

         //then  set the vertical alignment for each <td> nested inside the treenode div

            var tds =  divs[i].getElementsByTagName("td");
            for(j=0;j<tds.length;++j) tds[j].style.verticalAlign="top";

            }
        }
    }

