function getElementsByClassName(tagname, classname) {
 
 if (!document.getElementById) return false;

 var TagElements = document.getElementsByTagName(tagname);
 var elementsByClassName = new Array();

 for (i=0; i<TagElements.length; i++) {
  if (TagElements[i].className == classname) {
    elementsByClassName[elementsByClassName.length] = TagElements[i];
    }
 }
  return elementsByClassName;
}


function changeclassstyle(tagname,classname,styleproperty,newstyle) {
 var tochange = getElementsByClassName(tagname,classname);
  for (k=0; k < tochange.length; k++) {
    eval("tochange[k].style." + styleproperty + " = " + "'" + newstyle + "'");
  }
}

function changetagstyle(tagname,styleproperty,newstyle) {
 if (!document.getElementById) return false;
var TagElements = document.getElementsByTagName(tagname);
 for (j = 0; j < TagElements.length; j++) {
   eval("TagElements[j].style."+ styleproperty + " = " + "'" + newstyle + "'");
  }
}

function changeidstyle(elemID,styleproperty,newstyle) {
if (!document.getElementById) return false;
var element = document.getElementById(elemID);
 eval("element.style." + styleproperty + " = " + "'" + newstyle + "'");
}

//NOTE CASESENSITIVE STYLEPROPERTY!!!!
//KK basic class swap..
function changeClass(whichID, whichClass) { 
if (!document.getElementById) return false;
var elem = document.getElementById(whichID); 
elem.className = whichClass; 
}