﻿function tabs_hideAll() {
    document.getElementById("tabPanel1").className = "tabPanel";
    document.getElementById("tabPanel2").className = "tabPanel";
    document.getElementById("tabPanel3").className = "tabPanel";
    
    document.getElementById("tab1").className = "tabStripItem";
    document.getElementById("tab2").className = "tabStripItem";
    document.getElementById("tab3").className = "tabStripItem";
}
function showTab(objTab, tabPanelId) {
    tabs_hideAll();
    if (objTab) objTab.className = "tabStripItemActive";
    document.getElementById(tabPanelId).className = "tabPanel panelActive";
}
function setCheckedValue(radioObj, newValue) {
	if(!radioObj) return;
	var radioLength = radioObj.length;
	if(radioLength == undefined) {
		radioObj.checked = (radioObj.value == newValue.toString());
	} else {
	    for(var i=0; i<radioLength; i++) {
		    radioObj[i].checked = false;
		    if(radioObj[i].value == newValue.toString()) radioObj[i].checked = true;
	    }
	}
}
function showRoomTab(li,id){
	var ul=li.parentNode;var lis=ul.getElementsByTagName('li');
	for(var j=0,max=lis.length;j<max;j++)lis[j].className=(lis[j]==li?'active':'');
	var divs=['hi_WhatsIn','hi_Types','hi_Map'];
	for(var i=0,max=divs.length;i<max;i++)document.getElementById(divs[i]).style.display=(divs[i]==id?'block':'none');
}
function showFullDesc(){$get('fullDesc').style.display='';$get('shortDesc').style.display='none';}
function showShortDesc(){$get('shortDesc').style.display='';$get('fullDesc').style.display='none';}
function ppn3RemoveNewRow(){$get('ppn3NewRow').style.display='none';}
function ppn3Invalidate(){$get('ppn3Message').style.display='';}

