// JavaScript Document

function ouvrirmentions()
{
	void(window.open('mentions-legales-site.php','','width=400,height=500,scrollbars=1,status=0'));
}
function redirection(page) {

}

function emailvalide(adresse)
{
	var str = new String(adresse);
	var point = str.lastIndexOf('.');
	var arobase = str.lastIndexOf('@');
	var espace = str.indexOf(' ');
	var lgtotal = str.length;
	
	if( (lgtotal-point <3) || point == -1 || arobase == -1 || espace != -1 || point < arobase)
		return false;
	else return true;
}
function imprimer_calculette()
{
	window.print();
}
