
var nfviewtools = {
	switchContent: function(theParentId, theNewContentNo, theTabId){
		for(i=0; i < document.getElementById(theParentId).childNodes[0].childNodes.length; i++){
			currentId = document.getElementById(theParentId).childNodes[0].childNodes[i].id;
			if(currentId)
			if(currentId.indexOf(theParentId) >= 0){
				document.getElementById(currentId).style.display = 'none';
			}
		}
		document.getElementById(theParentId+'-'+theNewContentNo).style.display = '';
		
		if(theTabId != ''){
			this.changeClass(theTabId, 'active-'+theNewContentNo);
		}
	},

	changeClass: function(theId, theNewClass){
		document.getElementById(theId).className = theNewClass;
	}
}