
function link(url, texte, style) {

   if (!style) style = 'link';
   
   if (url.indexOf('?') != -1)
      urlink = url + '&_s=' + s;
   else
      urlink = url + '?_s=' + s;
      
   document.write('<a href="' + urlink + '' + add_link + '" onMouseOver="javascript:window.status=\'http://' + dns + url + '\'; return true;" onMouseOut="javascript:window.status=\'\'; return true;" class="' + style + '">' + texte + '</a>');
      
}




function get_select() {

   for (var i = 0; i < document.hmenu.select_t1.options.length; i++) {
   
       if (document.hmenu.select_t1.options[i].value == _t)
          document.hmenu.select_t1.options[i].selected = 1;
	  
   }

   for (var j=0; j< document.hmenu.select_r1.options.length; j++) {
      
       if (document.hmenu.select_r1.options[j].value == _r)       
          document.hmenu.select_r1.options[j].selected = 1;
	  
   }
   
   for (var i = 0; i < document.hmenu.select_t2.options.length; i++) {
   
       if (document.hmenu.select_t2.options[i].value == _t)
          document.hmenu.select_t2.options[i].selected = 1;
	  
   }

   for (var j=0; j< document.hmenu.select_r2.options.length; j++) {
      
       if (document.hmenu.select_r2.options[j].value == _r)       
          document.hmenu.select_r2.options[j].selected = 1;
	  
   }

   return true;
   
}


function go_select_t(value) {

    location = 'main.php?_t=' + value + '&_r=' + _r + '&_s=' + s;
    
}


function go_select_r(value) {

    location = 'main.php?_t=' + _t + '&_r=' + value + '&_s=' + s;
    
}



