function swapImg(objId,objImgName)
{
   // Assumes 'off' and 'on' images are in the same directory.
   objStr = document.getElementById(objId).src;
   objPath = objStr.substr(0,objStr.lastIndexOf("/")) + "/";

   document.getElementById(objId).src = objPath + objImgName;
}

