function changecss(theClass,element,value) {
	
	 var cssRules;
	 if (document.all) {
	  	cssRules = 'rules';
	 }
	 else if (document.getElementById) {
	  	cssRules = 'cssRules';
	 }
	 var added = false;
	 for (var S = 0; S < document.styleSheets.length; S++){
		
	 	 for (var R = 0; R < document.styleSheets[S][cssRules].length; R++) {
			
	   		if (document.styleSheets[S][cssRules][R].selectorText == theClass) {
	   			 if(document.styleSheets[S][cssRules][R].style[element]){
	    				document.styleSheets[S][cssRules][R].style[element] = value;
	    				added=true;
					break;
				    }
			   }
		  }
	}
	
}

function getElementByClass(theClass, theSClass) {
var strMClass = "";
var strSClass = "";
if (theClass !== undefined){
	strMClass = theClass;
}
if (theSClass !== undefined){
	strSClass = theSClass;
}

//Create Array of All HTML Tags
var allHTMLTags=document.getElementsByTagName("h1");

//Loop through all tags using a for loop
for (i=0; i<allHTMLTags.length; i++) {
    
	//Get all tags with the specified class name.
	if (allHTMLTags[i].className==strMClass || allHTMLTags[i].className==strSClass ) {

	    //allHTMLTags[i].setAttribute('onclick', 'javascript:location.href="/";');
	    allHTMLTags[i].onclick = function() { location.href = "/"; };
	    
	    
		break;
	}
}
}

