// support functions for html framework
function jst_html_tab_panel(block_to_open, array_blocks_to_hide, tab_to_select, array_tabs_to_deselect) {
	var el = jst_dom_element(tab_to_select);
	if (el == null || el.className == 'selected') return;
	el.className = 'selected';
	jst_dom_switch(block_to_open, array_blocks_to_hide);
	for (var i in array_tabs_to_deselect) if (array_tabs_to_deselect[i] != tab_to_select) {
		el = jst_dom_element(array_tabs_to_deselect[i]);
		if (el != null) el.className = '';
	}
}