function hide(name){
	var obj = document.getElementById(name);
	if (obj){
		obj.style.display = 'none';
	}
}
function show(name){
	var obj = document.getElementById(name);
	if (obj){
		obj.style.display = 'block';
	}
}

var lastShow, lastHide;
function showNext(obj, objId){
	var obj2 = document.getElementById(objId);
	if (obj && obj2){
		if (lastShow){
			hide(lastShow);
		}
		if (lastHide){
			show(lastHide);
		}
		lastShow = objId;
		show(objId);
		lastHide = obj.id;
		hide(obj.id);
	}

}