<!--

// Image POP-DIV  --- DEBUT ---
function getposOffset(overlay, offsettype){
var totaloffset=(offsettype=="left")? overlay.offsetLeft : overlay.offsetTop;
var parentEl=overlay.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}

function overlay(curobj, subobj){
if (document.getElementById){
var subobj=document.getElementById(subobj)
subobj.style.left=getposOffset(curobj, "left")+100+"px"
subobj.style.top=getposOffset(curobj, "top")-60+"px"
subobj.style.display="block"
return false
}
else
return true
}

function overlayclose(subobj){
document.getElementById(subobj).style.display="none"
}
// Image POP-DIV  --- FIN ---

var buttoncheck = "false";
function check(field)
{
  if (buttoncheck == "false")
  {
    for(i = 0; i < field.length; i++)
    {
      field[i].checked = true;
    }
    buttoncheck = "true";
    return "Aucun";
  }
  else
  {
    for (i = 0; i < field.length; i++)
    {
      field[i].checked = false;
    }
    buttoncheck = "false";
    return " Tous ";
  }
  alert('') ;
}


function chat()
{

	// the size of the popup window
	var width = 700;
	var height = 500;

	// the x,y position of the popup window
	// NOTE: this formula will auto-center the popup on the screen
	var y = (screen.height - height) / 2;
	var x = (screen.width - width) / 2;
	var url = 'chat.php'
	var options = 'width=' + width + ',height=' + height + ',top=' + y + ',left=' + x + ',noresizable';

	// open the chat window as a popup, instead of embedded in webpage
	window.open( url, 'chat', options );
}

// Fonction de rederection de l'utilisateur
function exec_refresh()
{
  if(typeof(url)!="undefined")
  {
  var timerID = setTimeout("exec_refresh();", 100);
  window.status = "Redirection . . ." + myvar;
  myvar = myvar + " .";

    if (timeout > 0)
    {
    	timeout -= 1;
    }
    else
    {
    	clearTimeout(timerID);
    	window.status = "";
    	window.location = url;
    }
  }
}
  var myvar = "";
  var timeout = 20 ;
//-->
