function TabbedPane() {
  
  this.activeTab = '';  
  this.setTab = tabSetTab;   
	this.unsetTab = tabUnsetTab;
}
  
  

function tabSetTab(activateTab,Mainpara) {
    
  if (activateTab == this.activeTab)
    return;


  document.getElementById(activateTab).style.display = 'block'; 
  document.getElementById(activateTab).style.left= document.getElementById(Mainpara).offsetLeft+'px';
  document.getElementById(Mainpara).style.backgroundColor= '#008000';
  document.getElementById(Mainpara).style.color= '#ffffff';
  

   
  if (this.activeTab != '' ) {
    document.getElementById(this.activeTab).style.display = 'none';
    document.getElementById(this.Mainpara).style.backgroundColor= '#ffffff';
    document.getElementById(this.Mainpara).style.color= '#000000'; 
  }
  

  this.activeTab = activateTab;
  this.Mainpara = Mainpara
  

  return; 		 
}

function tabUnsetTab() {
	if (this.activeTab != '') {
    document.getElementById(this.activeTab).style.display = 'none';
    document.getElementById(this.Mainpara).style.backgroundColor= '#ffffff';
    document.getElementById(this.Mainpara).style.color= '#000000'; 
	}
	
  this.activeTab = '';
		
	return;
}


function set_action()
{
  if ( document.forms[0].SearchText.value != "" )
    document.forms[0].action = "/search/search/?&SearchText="+document.forms[0].SearchText.value;
}
