function tab_select(tabset, tabnum, obj, additional) {
		var x = 1;
		var onoff, tab;

		x = 1;
		while(tab = document.getElementById("tab" + tabset + "_" + x)) {
			onoff = x == tabnum ? "on" : "off";
			tab.className = printf("tab%s_%s tab%s_%s_%s", [tabset, onoff, tabset, x, onoff]);
			document.getElementById("tabcontent" + tabset + "_" + x).className = x == tabnum ? "tab_vis" : "tab_hid";
			x++; 
		}

		if(obj) obj.blur(); // Remove focus from the link

		return false;
	}


	function printf(S, L) { 
		var nS = "";
		var tS = S.split("%s");
		for(var i=0; i<L.length; i++) nS += tS[i] + L[i];
		return nS + tS[tS.length-1]; 
	} 
	
	//Bottom Tabs Function
	function showCon(ConToShow){
	    for (var i=1; i<=3; i++) {
	    var dv = document.getElementById("tabCon"+i);
		        if(i==ConToShow)
		        {
		            dv.style.display = 'block';
		            var tab = document.getElementById("tab"+i);
		            tab.className = 'activeTab';
		        }
		        else
		        {
		            dv.style.display = 'none';
		            var tab = document.getElementById("tab"+i);
		            tab.className = 'tabStrip';
		        }
	    }
	}