function resizeElems () {
	// définition de la largeur d'affichage du site (ici totale - largeur de l'ascenseur)
	var lg = (document.documentElement.clientWidth - 200) + "px";
	var ht = (document.documentElement.clientHeight - 162) + "px";
	if (document.getElementById("liste")) document.getElementById("liste").style.height = ht;
	if (document.getElementById("corps")) {
		document.getElementById("corps").style.display = "none";
		document.getElementById("corps").style.width = lg;
		document.getElementById("corps").style.height = ht;
		document.getElementById("corps").style.display = "block";
	}
}

function CtrlEvt()
{

}

function BlurLinks () {
	if (document.getElementById) {
		lnks = document.getElementsByTagName ('a');
		for (i = 0; i < lnks.length; i++) lnks [i].onfocus = new Function ("if (this.blur) this.blur ()");
	}
	if (document.getElementById) {
		lnks = document.getElementsByTagName ('img');
		for (i = 0; i < lnks.length; i++) lnks [i].onfocus = new Function ("if (this.blur) this.blur ()");
	}
	if (document.getElementById) {
		lnks = document.getElementsByTagName ('area');
		for (i = 0; i < lnks.length; i++) lnks [i].onfocus = new Function ("if (this.blur) this.blur ()");
	}

	if(showError())	showError();

	startBlink();

}

var CURRENT_OBJ, CURRENT_OBJ2;
function tabRollOver(id,imgon)
{
	if(imgon)
	{
		document.getElementById(id).style.backgroundColor="#93AAD3";
		document.getElementById(id).style.color="white";
		document.getElementById(id).style.cursor="pointer";
	}
	else
	{
		if (CURRENT_OBJ != id) {
			document.getElementById(id).style.backgroundColor="transparent";
			document.getElementById(id).style.color="black";
			document.getElementById(id).style.cursor="cross";
		}
	}
}

function tabRollOver2(id,imgon)
{
	if(imgon)
	{
		document.getElementById(id).style.backgroundColor="#93AAD3";
		document.getElementById(id).style.color="white";
		document.getElementById(id).style.cursor="pointer";
	}
	else
	{
		if (CURRENT_OBJ2 != id) {
			document.getElementById(id).style.backgroundColor="transparent";
			document.getElementById(id).style.color="black";
			document.getElementById(id).style.cursor="cross";
		}
	}
}

var COBJ
function highlightError (o) {
	COBJ = o;
	tmp = o.style.background;
	tmp2 = o.style.color;
	tmp3 = o.style.fontWeight;
	o.style.background = "#C30";
	o.style.color = "#FFF";
	o.style.fontWeight = "bold";
	setTimeout("restoreError(tmp, tmp2, tmp3)",1000);
	o.focus();
}
function restoreError (tmp, tmp2, tmp3) {
	COBJ.style.background = tmp;
	COBJ.style.color = tmp2;
	COBJ.style.fontWeight = tmp3;
}


// ------------------------------------------------
// Function isEmailAddressValid :
// Validate the specified e-mail address.
//
// Params :
//	- anAddress : the address to validate
//
// Returns : true if the address format is valid, and
// false if it is not valid.
// ------------------------------------------------
function isEmailAddressValid(anAddress) {
   var regExpr = /^[a-z0-9._-]+@[a-z0-9.-]{2,}[.][a-z]{2,3}$/
   return (regExpr.exec(anAddress)!=null);
}


// Before you reuse this script you may want to have your head examined
//
// Copyright 1999 InsideDHTML.com, LLC.

function doBlink() {
  // Blink, Blink, Blink...
  var blink = document.all.tags("BLINK")
  for (var i=0; i < blink.length; i++)
    blink[i].style.visibility = blink[i].style.visibility == "" ? "hidden" : ""
}

function startBlink() {
  // Make sure it is IE4
  if (document.all)
    setInterval("doBlink()",1000)
}
//Open popup window
//*****************
	var tmp;
	function openWin(name,src,lngWidth,lngHeight,bScroll) {
	  var xCoord;
	  var yCoord;
	  var strAgent=navigator.userAgent;
	  if(tmp)tmp.close();
	  if (strAgent.indexOf('Mozilla/3')==-1 && strAgent.indexOf('MSIE 3')==-1){
	    xCoord=(screen.width/2 - (lngWidth/2));
	    yCoord=(screen.height/2 - (lngHeight/2));
	  }
	  tmp=open(src,name,'top='+ yCoord +',left='+ xCoord +',directories=no,menubar=no,scrollbars='+bScroll+',resizable=no,location=no,toolbar=no,width='+lngWidth+',height='+lngHeight);
	  if (strAgent.indexOf('MSIE 3')==-1) tmp.focus();
	}
