function hov(loc,cls){ if(loc.className) loc.className=cls; } function change(that, fgcolor, bgcolor){ that.style.color = fgcolor; that.style.backgroundColor = bgcolor; }