/*------------------- showtab -------------- tabbed table -------------------------------- */	// global values to be set  in dispJSTabs field - defined as associateve array / list, identifier of the tabbed table as list tagvar lstCurrentTab = new Object;			// used as associative array/list   lstCurrentTab("tabid") will hold the current tabname for tabbed table <tabid>var lstActiveTabImageURL = new Object;		// URL of active image for tabbed table <tabid>var lstInactiveTabImageURL = new Object;		// URL of inactive image for tabbed table <tabid>var lstTotTabs = new Object;		// URL of inactive image for tabbed table <tabid>var lstAllTabs = new Object;	function showtab(tabnum, strTabID, checkButtons, strClassPrefix) {	tabname = strTabID + tabnum; 	if ( tabname != lstCurrentTab[strTabID] ) {		if (window.document.layers) {			handle="window.document.layers";			stylevar="";			eval(handle+'["'+lstCurrentTab[strTabID]+'"]'+stylevar+'.display = "none"');			eval(handle+'["'+tabname+'"]'+stylevar+'.display = "block"');		} else {			stylevar=".style";			if (document.getElementById) {				handle="document.getElementById";				eval(handle+'("'+lstCurrentTab[strTabID]+'")'+stylevar+'.display = "none"');				eval(handle+'("'+tabname+'")'+stylevar+'.display = "block"');			} else {				handle="document.all";				eval(handle+'["'+lstCurrentTab[strTabID]+'"]'+stylevar+'.display = "none"');				eval(handle+'["'+tabname+'"]'+stylevar+'.display = "block"');			}		}				// check if Buttons on this tab are visible or not by reading the checkbox with the same ID --------------------------		if (checkButtons)		{	   		   	var objTab=document.getElementById(tabname);	     	var objButtons = objTab.getElementsByTagName("input");			for (var i=0; i<(objButtons.length); i++){	     		if (objButtons[i].type=="button"){	     			var strButtonID= (objButtons[i].id);					if (strButtonID.search(/Button/) != -1) {	     				var strCheckBoxID = strButtonID.replace(/Button/,"CheckBox");	     			}					if (strButtonID.search(/RemBtn/) != -1) {    								var strCheckBoxID = strButtonID.replace(/RemBtn/,"CheckBox");		     			}		   				var objCheckbox = document.getElementById(strCheckBoxID)	   				if (objCheckbox) {	     				if (objCheckbox.checked==true){	     					objButtons[i].style.visibility="hidden"	     				}else{	     					objButtons[i].style.visibility="visible"	     				}	     			}	     		}			}		}		// ------------------------------------------------------------------------------------------------------------------	     			for (var i=0;i<lstTotTabs[strTabID];i++)		{			if(lstAllTabs[strTabID][i]==tabnum)			{				document.getElementById(strTabID+"tab"+lstAllTabs[strTabID][i]).className = strClassPrefix + "-tabactive";			} else {				document.getElementById(strTabID+"tab"+lstAllTabs[strTabID][i]).className = strClassPrefix + "-tabinactive";			}		}		     	lstCurrentTab[strTabID] = tabname;     }     return false;		// will be returned to onclick event, i.e. do not follow the href}function GetValues(obj){	var res = '';	res += 'Objekt: '+obj+'\n\n';	for(temp in obj)	{		res += temp +': '+obj[temp]+'\n';	}	alert(res);}/*------------------- tabfocus -------------- tabbed table -------------------------------- *//* switch class of current tab on mouse over */function tabfocus(tabnum, strTabID, strClassPrefix){	if ((strTabID + tabnum) != lstCurrentTab[strTabID])	{		document.getElementById(strTabID+"tab"+tabnum).className = strClassPrefix + "-tabactive";	}	return false;}/*------------------- tabblur -------------- tabbed table -------------------------------- *//* switch class of current tab on mouse out */function tabblur(tabnum, strTabID, strClassPrefix){	if ((strTabID + tabnum) != lstCurrentTab[strTabID])	{		document.getElementById(strTabID+"tab"+tabnum).className = strClassPrefix + "-tabinactive";	}	return false;}
