function showhide(showthis, hidethis){
	if(showthis!=''){
		document.getElementById(showthis).style.display = 'block';
	}
	if(hidethis!=''){
		document.getElementById(hidethis).style.display = 'none';
	}
}

function switchtab(newtab, oldtab, tabon, taboff, tabstyleOn, tabstyleOff){
	if(newtab!=''){
		document.getElementById(newtab).style.display = 'block';
		document.getElementById(tabon).className = tabstyleOn;
	}
	if(oldtab!=''){
		document.getElementById(oldtab).style.display = 'none';
		document.getElementById(taboff).className = tabstyleOff;
	}
	
}

function changeClass(Elem, myClass) {
	alert("changeClass called with "+Elem+" | "+myClass);
	var elem;
	if(document.getElementById) {
		var elem = document.getElementById(Elem);
	} else if (document.all){
		var elem = document.all[Elem];
	}
	elem.className = myClass;
}


function callajax(url,val,next){
	loadXMLDoc(url+'?refid='+val, next);
}

function getURL(url){
	window.location = url;
}
