// Modèle d'email
var modele_email = /^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9]+)*$/i;

/*function afficher_bloc(nom_bloc) {
	document.getElementById(nom_bloc).style.display="block";
	document.getElementById(nom_bloc).style.margin-top = getMouseLoc(e)+10;
	//timer_affichage = setTimeout("CacheInfosPublieur()", 5000);
	}

function cacher_bloc(nom_bloc) {
	//clearTimeout(timer_affichage);
	document.getElementById(nom_bloc).style.display="none";
	}
*/

function afficher_bloc(nom_bloc) {
	document.getElementById(nom_bloc).style.display="block";
	}

function cacher_bloc(nom_bloc) {
	document.getElementById(nom_bloc).style.display="none";
	}


/* 
Example:
function test()
{
  if (document.layers) getMouseLoc;     //NS
  else if (document.all) getMouseLoc(); //IE
  alert(mouseLocation.x+","+mouseLocation.y);
}
in the BODY:
<a href="#" onmouseover="test()">test</a>
*/
function Point(x,y) {  this.x = x; this.y = y; }
mouseLocation = new Point(-500,-500);
function getMouseLoc(e)
{
  if(!document.all)  //NS
  {
    mouseLocation.x = e.pageX;
    mouseLocation.y = e.pageY;
  }
  else               //IE
  {
    mouseLocation.x = event.x + document.body.scrollLeft;
    mouseLocation.y = event.y + document.body.scrollTop;
  }
  return true;
}
//NS init:
if(document.layers){ document.captureEvents(Event.MOUSEMOVE); document.onMouseMove = getMouseLoc; }

