﻿document.write('<script src="App_Scripts/jquery.js" type="text/javascript"></script>');

function highlight(id)
{
//    if ($("div .highlight[highlighted]"))
//    {
//        $("div .highlight[highlighted]").css("background-color", "White")
//        $("div .highlight[highlighted]").removeAttr("highlighted");
//    }
    $("div .highlight").each(function() {
    if ($(this).css("background-color").toLowerCase() == "rgb(229, 255, 229)" ||
        $(this).css("background-color").toLowerCase() == "#e5ffe5")
        {
            //alert('removing color');
            $(this).css("background-color", $(this).attr("origBgColor"));
            $(this).removeAttr("origBgColor");
        }
    });
    //alert('adding color');
    $("div #" + id).attr("origBgColor", $("div #" + id).css("background-color"));
    $("div #" + id).css("background-color", "#E5FFE5");
}

function highlightText(id)
{
    $("div .highlight").each( function() {
        if ($(this).css("color") == "Green")
        {
            $(this).css("color", $(this).attr("origTextColor"));
            $(this).removeAttr("origTextColor");
        }
    });
    $("div #" + id).attr("origTextColor", $("div #" + id).css("color"));
    $("div #" + id).css("color", "Green");
}
