function writeFlash(fichier,_width,_height) {
	document.write('<object type="application/x-shockwave-flash" data="'+fichier+'" width="'+_width+'" height="'+_height+'">');
	document.write('	<param name="movie" value="'+fichier+'" />');
	document.write('	<param name="quality" value="high" />');
	document.write('	<param name="scale" value="noscale" />');
	document.write('	<param name="menu" value="false" />');
	document.write(' 	<embed src="'+fichier+'" quality="high" width="'+_width+'" height="'+_height+'" scale="noscale" menu="false"></embed>');
	document.write('</object>');	
}
function verif_form_add(theForm)
	{

	//**************************************************
	//**************************************************
	if (autographe.nom.value=="")
		{
		alert("Indique ton nom !");
		theForm.login.focus();
		return false;
		}
		
		
	if (!checkMail(autographe.mail))
		{
		alert("Veuillez indiquer un email valide.");
		theForm.email.focus();
		return false;
		}

	return true;
	
	
	}
	
function checkMail(champs){

		var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz&#402;&#352;&#338;&#381;&#353;&#339;&#382;&#376;ÀÁÂÃÆÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝßáâåëìíîïñóôøúýþÿ0123456789-@-_.";
		var checkStr = champs.value;
		var allValid = true;
		for (i = 0;  i < checkStr.length;  i++)
			{
			ch = checkStr.charAt(i);
			for (j = 0;  j < checkOK.length;  j++)
			if (ch == checkOK.charAt(j))
						break;
			if (j == checkOK.length)
				{
				allValid = false;
					break;
				}
			}
	
		if (!allValid)
			{
			//alert("Entrez seulement de caractères, numéros et \".@_-\" pour le champ \"e-mail\".");
			champs.focus();
			return false;
			}
	
			adresse = champs.value;
			var place = adresse.indexOf("@",1);
			var point = adresse.indexOf(".",place+1);
			if (!((place > -1)&&(adresse.length >2)&&(point > 1)))
			{
			//alert('Veuillez entrer une adresse E-mail valide !\r Exemple: nom@domaine.com');
			champs.focus();
			return false;
			}
			
		return true;

}

function clik(objet){
	if(objet.value == 'Inscris ton prénom ici !'){
		objet.value = '';
		}
}

//Popup*******************************************************************************************
function OpenPopup(page,nom,taille) {
       window.open(page,nom,taille + " resizable=no, location=no,  menubar=no, status=no, scrollbars=no, menubar=no");
}	

