// JavaScript Document
function affichemaxi(chemin,popup_height,popup_width,titre)
{
	if (!titre) titre="Agrandissement photo";
	var html = '<HTML><HEAD><TITLE>'+titre+'</TITLE></HEAD><BODY LEFTMARGIN=0 MARGINWIDTH=0 TOPMARGIN=0 MARGINHEIGHT=0><IMG SRC="'+chemin+'"></BODY></HTML>';
	popupImage = window.open('','_blank','toolbar=0,location=0,directories=0,menuBar=0,scrollbars=0,resizable=0,height='+popup_height+',width='+popup_width );
	popupImage.document.open();
	popupImage.document.write(html);
	popupImage.document.close();
}

function affichemaxi2(chemin,popup_height,popup_width,titre)
{
	if (!titre) titre="Agrandissement photo";
	var html = '<HTML><HEAD><TITLE>'+titre+'</TITLE></HEAD><BODY LEFTMARGIN=0 MARGINWIDTH=0 TOPMARGIN=0 MARGINHEIGHT=0><IMG SRC="'+chemin+'"></BODY></HTML>';
	popupImage = window.open('','_blank','toolbar=0,location=0,directories=0,menuBar=0,scrollbars=1,resizable=0,height='+popup_height+',width='+popup_width );
	popupImage.document.open();
	popupImage.document.write(html);
	popupImage.document.close();
}

function verif_projet(email) 
{
	var p = document.projet;
	var arobase = email.indexOf("@");
	var point = email.lastIndexOf(".");
	if (p.nom.value=="" || p.prenom.value=="" || p.rs.value=="" || p.cp.value=="" || p.ville.value=="" || p.tel.value=="" || p.Description.value=="")
		{
			alert("Veuillez remplir tous les champs marqués d'une étoile");
			return false;
		}
	else 
	{ 
		if((arobase < 2)||(point + 2 > email.length)||(point < arobase+2)) 
		{ 
		alert("Cet Email est erroné !");
		return false; 
		}
		else
		{
			return true;
		}
	}
}

function favoris() {
	if ( navigator.appName != 'Microsoft Internet Explorer' ){ 
		window.sidebar.addPanel("Axecibles","http://www.axecibles.com",""); 
	}
	else{
		window.external.AddFavorite("http://www.axecibles.com","Axecibles"); 
	} 
}

// Fonction qui ouvre une popup
function ouvre_popup()
{
	window.open('../mentions-legales.php','info','top="200,left=200,width=350,height=350,resizable=no,scrollbars=yes,fullscreen=no');
}