function getposition(p)
{
	position_x = (navigator.appName.substring(0,3) == "Net") ? p.pageX : event.x+document.body.scrollLeft;
	position_y = (navigator.appName.substring(0,3) == "Net") ? p.pageY : event.y+document.body.scrollTop;
	document.getElementById("divnote").style.left = position_x+10;
	document.getElementById("divnote").style.top = position_y+15;
}
function mmover(id)
{
	var minfo = "";
	switch(id) {
		case 1:
			minfo = "<?=$phrase1?>";
			break;
		case 2:
			minfo = "<?=$phrase2?>";
			break;
	}
	//if(ie) { posdif = 0; } else { posdif = 7; }
	document.getElementById("divnote").innerHTML = minfo;
	document.getElementById("divnote").style.left = position_x+10;
	document.getElementById("divnote").style.top = position_y+15;
	document.getElementById("divnote").style.display = "block";
}

function mmout()
{
	document.getElementById("divnote").style.display = "none";
}
function ConfirmSubscribeNL()
{
	if(TestvalidEmail(document.subscribenlform.nlsubscribe.value)) {
		document.subscribenlform.submit();
	} else { alert("L'adresse E-mail est invalide"); }
}

function TestvalidEmail(emailAddr) {
	var re = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/; 
	if(!re.test(emailAddr)){ return false;}return true;}
		


document.onmousemove = getposition;
