﻿function SetButtonActive(imgID)
{
    // Reset all options for this question
    var e = document.getElementsByTagName("*");
    var names="";

    for (i=0; i<e.length; i++)  {
        if (e[i].id.indexOf("EncSel" + imgID) >= 0)
        {
            e[i].src = "images/EncSel-" + imgID + "-over.gif";
            e[i].onmouseout = function(){};
            e[i].onmouseout = function onmouseout(event) { this.src='images/EncSel-' + imgID + '-over.gif'; };
        }
    }
}