/* addLoadEvent(function)
 * Add custom functions to on page load  
 */
function addLoadEvent(func) {
	var oldonload = window.onload;
	if (typeof window.onload != 'function') {
			window.onload = func;
	} else {
			window.onload = function() {
					if (oldonload) {
							oldonload();
					}
					func();
			}
	}
}

function changeStyleById(id,fw,fs,clr){
	if (document.getElementById) {
		 var nodeObj = document.getElementById(id)
		nodeObj.style.fontWeight = fw ;
		 nodeObj.style.fontStyle = fs;
		 nodeObj.style.color = clr ;
   }
}

function switchTab(parent, selecttab) {
 if(document.getElementById(parent).tabber != null) {
		var tabber = document.getElementById(parent).tabber
		for(i=0; i < tabber.tabs.length; i++) {
			if(tabber.tabs[i].div.id == selecttab) {
				tabber.tabShow(i);
			}
		}
	}
}