    var imgClosedGif    = "/est/images/plus.gif";
    var imgOpenGif      = "/est/images/minus.gif";

    function viewList(e, containerId)
    {
        var container = document.getElementById(containerId);
        if (e.src.indexOf(imgOpenGif) != -1)
        {
            e.src = imgClosedGif;
            if (container != null)
            {
                container.style.visibility = "hidden";
                container.style.overflow = "hidden";
                container.style.height = "2px";
            }
        }
        else
        {
            e.src = imgOpenGif;
            if (container != null)
            {
                container.style.visibility = "visible";
                container.style.overflow = "visible";
                container.style.height = "auto";
            }
        }
    }
    function expand(show)
    {
        //var iframe = document.all.sortingScreen.childNodes(0);// = document.all.sortingScreen.getElementsByTagName("iframe");
        //alert(iframe.src);
        //iframe.src = "interimDisplay.jsp?msg=expanding";
        document.all.loadingScreen.style.pixelTop = (document.body.scrollTop + 250);
        document.all.loadingScreen.style.visibility="visible";
        window.setTimeout('doExpand("' + show + '")',1);
    }


    function doExpand(show)
    {
        var divs = document.getElementsByTagName("div");
            for (i=0; i<divs.length;i++)
            {
                var container = divs[i];
                if (show == "false")
                {
                    if (container.style.visibility == "visible" && container.style.overflow == "visible" && container.style.height == "auto")
                    {
                        container.style.visibility = "hidden";
                        container.style.overflow = "hidden";
                        container.style.height = "2px";
                    }
                }
                else if (show == "true")
                {
                    if (container.style.visibility == "hidden" && container.style.overflow == "hidden" && container.style.height == "2px")
                    {
                        container.style.visibility = "visible";
                        container.style.overflow = "visible";
                        container.style.height = "auto";
                    }
                }
            }
            setArrowImage(show);
        document.all.loadingScreen.style.visibility="hidden";
    }

    function setArrowImage(show)
    {
        var images = document.getElementsByTagName("img");
        for (i=0; i<images.length;i++)
        {
            var e = images[i];
            if (e.src.indexOf("plus.gif") != -1 || e.src.indexOf("minus.gif") != -1)
            {
                if (e.id != "exclude")
                {
                    if (show == "true")
                        e.src = imgOpenGif;
                    else
                        e.src = imgClosedGif;
                }
            }
       }
    }

    function showDates(elem)
    {
        var container = document.getElementById("div_milestone");
        if(elem.src.indexOf("showSnapshots.gif") != -1)
        //if(elem.innerHTML == "show other dates")
        {
            elem.src = "/est/images/hideSnapshots.gif";
            container.style.position = "absolute";
            container.style.left = elem.offsetLeft + 10;
            container.style.top = container.offsetTop + 18;
            container.style.height = "auto";
            container.style.visibility = "visible";
            //container.style.overflow = "auto";
        }
        else
        {
            //elem.innerHTML = "show other dates";
            elem.src = "/est/images/showSnapshots.gif";
            container.style.left = elem.offsetLeft - 10;
            container.style.top = container.offsetTop - 18;
            container.style.height = "1px";
            container.style.visibility = "hidden";
            //container.style.overflow = "hidden";
        }
    }

    function hoverMs(elem)
    {
        //alert(elem.style.backgroundColor);
        if(elem.style.backgroundColor.toString() == "#cc9" || elem.style.backgroundColor == "#CC9")
            elem.style.backgroundColor = "#FC9";
        else
            elem.style.backgroundColor = "#CC9";
    }