// ===================================================================
// Author: L3DLP <opensource@l3dlp.com>
// WWW: http://www.l3dlp.com/
//

function popup(page,largeur,hauteur,scrollingam)
        {
        var top=(screen.height-hauteur)/2;
        var left=((screen.width-largeur)/1.1);

        var options="status=1,resizable=1,";

        if (scrollingam==1) window.open(page,"ajouter","top="+top+",left="+left+",width="+largeur+",height="+hauteur+",scrollbars=1,"+options);
        else window.open(page,"ajouter","top="+top+",left="+left+",width="+largeur+",height="+hauteur);
        }

function ChangeUrl(formulaire) {
        location.href = formulaire.ListeUrl.options[formulaire.ListeUrl.selectedIndex].value;
}

function valideInscription(formulaire) {
        adresse = formulaire.email.value;
        var place = adresse.indexOf("@",1);
        var point = adresse.indexOf(".", place + 3);
        if ( place > -1 && point > 1 && point +2 < adresse.length) {
                if (formulaire.nom.value!='') {
			return true;
		} else {
			alert('Entrez votre nom / Enter your name');
			formulaire.nom.focus();
			return false;
		}
        } else {
                alert('Entrez une adresse email valide svp / Please enter a correct email');
                formulaire.email.focus();
		return false;
        }
}








