// this is designed to fix some style issues in the forum */


function fixStyles() {
	// loop all the children WITHIN the contents div
	loopChildren(document.getElementById('contents_sm'));
}


function loopChildren(obj) {
	var children = obj.childNodes;
	for(var i=0; i<children.length; i++) {
		childObj = children[i]; 
		// set all button objects to have "button" class
		if(childObj.type == "button") {
			setClassName(childObj,"button");
		}
		// set all submit objects to have "button" class
		if(childObj.type == "submit") {
			setClassName(childObj,"button");
		}
		// set all radio objects to have "button" class
		if(childObj.type == "radio") {
			setClassName(childObj,"radio");
		}
		// set all radio objects to have "button" class
		if(childObj.type == "checkbox") {
			setClassName(childObj,"checkbox");
		}
		
		// now loop this item's children
		if(obj.childNodes) {
			loopChildren(childObj);	
		}
	}
}

// set obj to have a particular class name
function setClassName(obj,newClass) {
	obj.className = newClass;
}
