//-----------------------------------------------------------------------------
// Receives a number that is tied to tab and content block, the class name
// to apply to the tab clicked, and the class to apply to the tab NOT clicked.
// Only works for situations with two tabs. DRM 1/16/2006.
//-----------------------------------------------------------------------------

function toggleTab(tabRef,tabClassOn,tabClassOff) {
	
	var tabOnObj = eval(docObj + ("tab" + tabRef) + "')");
	var contentOnObj = eval(docObj + ("tabContent" + tabRef) + "')");
	
	tabOnObj.className = tabClassOn; 
	contentOnObj.style.display = "block"
		
	if(tabRef == 1) {
		tabOffObj = eval(docObj + ("tab" + 2) + "')");
		contentOffObj = eval(docObj + ("tabContent" + 2) + "')");
	}
	else {
		tabOffObj = eval(docObj + ("tab" + 1) + "')");
		contentOffObj = eval(docObj + ("tabContent" + 1) + "')");
	}
	tabOffObj.className = tabClassOff;
	contentOffObj.style.display = "none"
}
	
