﻿function AddClass(obj, classname) {
    if(!(obj==null)) {
	    obj.className += ' ' + classname;
    }
}
function RemoveClass(obj, classname) {
    /*October 3, 2005 Note_RC:
      I came across a bug when using this function that if you called the function to remove a class
      that wasn't there, and the object using the said class had a transparent background, IE would
      not "repaint" the screen.*/
    if(!(obj==null)) {
	    if (obj.className.match(new RegExp(classname, "g"))) {
		    obj.className = obj.className.replace(new RegExp(classname, "g"), "");
	    }
    }
}

//need the empty implementation so that other browsers will not throw an error
function HoverOn()	{
}
function HoverOff(){
}

function ChangeChildImageSrc(imgID, imgSrc)	{
    var obj = document.getElementById(imgID);
    if (!(obj==null)) {
        obj.src=imgSrc;
    }
}

