function cocher(thisfield,valeur,choixform)
{
checkSet=eval("document."+choixform+"."+thisfield);

for (i=0;i<checkSet.length;i++) if(checkSet[i].value==valeur) {checkSet[i].checked=!(checkSet[i].checked);}
}

function effaceOption(objet) {
	var j;
	for (j=objet.length-1; j>=0; j--) objet.options[j] = null;
}

var xhr = null;

function getXhr()
 {
  if(window.XMLHttpRequest) xhr = new XMLHttpRequest(); 
  else if(window.ActiveXObject)
   {  
    try
     {
      xhr = new ActiveXObject("Msxml2.XMLHTTP");
     }
    catch (e)
     {
      xhr = new ActiveXObject("Microsoft.XMLHTTP");
     }
   }
  else 
   { 
    alert("Votre navigateur ne supporte pas les objets XMLHTTPRequest, veuillez le mettre à jour"); 
    xhr = false; 
   } 
 }
 
/*******************************************************************/

function chargeOnglet(num) {
nbLi = document.getElementById('gliderControls').getElementsByTagName("li").length;

	for (i=1; i<nbLi+1; i++) {
		if (num == i ) {
		document.getElementById('control_'+i).style.backgroundPosition = '0 -128px';			
		} else {
		document.getElementById('control_'+i).style.backgroundPosition = '0 0';
		}
	}
}
       
/*******************************************************************/