/**************************************
	class.SelectBox.js
	Wheeler Street Design

	Notes:
	- requires WSD_common_page.js
	- Objectified by paulr 20060101
	
**************************************/

function SelectBox() {
  this.str_id = "" ;
	this.obj_tab = new Object();
	this.obj_tab_content = new Array();
	this.init();
}


SelectBox.prototype.init = function() {
   
}

SelectBox.prototype.setTab = function( str_tab_index, str_tab_label ) {
	this.obj_tab[str_tab_index] = str_tab_label;
}

SelectBox.prototype.switchTab = function( str_tab_index ) {
	
	for(var index in this.obj_tab ) {
		var tmp_tab  = document.getElementById('tab_'+index);
		var tmp_tab_content = document.getElementById('div_tab_'+index);
		if(index == str_tab_index ) {
			tmp_tab.className = 'active';
			tmp_tab_content.style.display = 'block';
		} else {
			
			tmp_tab.className = null;
			tmp_tab_content.style.display = 'none';
		}
	}
	
}
