﻿// JScript File
var current;

function setCurrent(id,doc)
{
    current = id;
    
    // set the On image
    doc.getElementById(id).color = '#000000';
}

function highLight(id,doc)
{
    if (id != current)
        doc.getElementById(id).color = "yellow";
}

function resetImage(id,doc)
{
    if (id != current)
        doc.getElementById(id).src = buttonUpImage[x];
    else
        doc.getElementById(id).src = buttonOnImage[x];
}