function switch_panel(num) 
 {
  for(i=0; i<num_h; i++)
  {
   //set_class( , );
    //set_class('sw' + i , "c0");
    if( start > i)
	  {
       set_class('h' + i , "h_empty h_bottom" + num);
	  }else
	  {
  	   set_class('h' + i , "header_t h_unselected h_bottom" + num);
	  }
   }
  set_class('h' + num , "header" + num + " h_bg" + num + " header_t h_selected");
  set_class('tab_main' , "main_tab header" + num + " h_bg" + num + " h_bottom" +num);
  for(i=0; i<num_h-1; i++)
     set_class('td_s' + i , "td_space h_bottom" + num);

  //set_class('sw' + num , "c1");
  //alert(path + num + '.html' );
  makeRequest(path + num + '.html','');
 }

/*
function switch_panel(num) 
 {
  for(i=0; i<num_h; i++)
  {
   //set_class( , );
   if(navigator.appName == 'Microsoft Internet Explorer')
    {

    if( start > i)
	  {
      
	  document.all['h' + i].className="h_empty h_bottom" + num;
	  }else
	  {
  	   document.all['h' + i].className="header_t h_unselected h_bottom" + num;
	  }
    }else
    {
     if( start > i)
	  {
	   document.getElementById('h' + i ).setAttribute('class',"h_empty h_bottom" + num);
	  }else
	  {
       document.getElementById('h' + i ).setAttribute('class',"header_t h_unselected h_bottom" + num);
	  }
    }
  }
  
 // alert( path + num + '.html' );
  if(navigator.appName == 'Microsoft Internet Explorer')
   {
    document.all['h' + num].className="header" + num + " h_bg" + num + " header_t h_selected";
	document.all['tab_main'].className="main_tab header" + num + " h_bg" + num + " h_bottom" +num;
//	document.all['tab_bottom'].className="tab_bottom header" + num + " h_bottom" +num;
	for(i=0; i<num_h-1; i++)
	 document.all['td_s' + i].className="td_space h_bottom" + num;
   }else
   {

   document.getElementById('h' + num ).setAttribute('class',"header" + num + " h_bg" + num + " header_t h_selected");
   document.getElementById('tab_main' ).setAttribute('class',"main_tab header" + num + " h_bg" + num + " h_bottom" +num);
//   document.getElementById('tab_bottom' ).setAttribute('class',"tab_bottom header" + num + " h_bottom" +num);

    for(i=0; i<num_h-1; i++)
	 document.getElementById('td_s' + i).setAttribute('class',"td_space h_bottom" + num);

   }

  makeRequest(path + num + '.html','');
 
 }

*/

/*


function test(id)
{
  var res;
  if(navigator.appName == 'Microsoft Internet Explorer')
    {
     res=document.all[id].className;
    }else
    {
     res=document.getElementById(id).getAttribute('class');
    }
 alert(res)	
}*/