
<!--
var image1 = new Image();
image1.src="images/accueil/calle0.gif";
var image1_r = new Image();
image1_r.src="images/accueil/calle2.gif";

function Set_Image(Url,ObjImage){
	/* Version 1.0 */
	/* Marc */

		if(typeof(ObjImage)=="object"){
				ObjImage.src=Url;
		}
}

function is_NomImage(Nom){
	/* Version 1.0 */
	/* Marc */

	var result=false;
	if(typeof(eval("document.images."+Nom))=="object"){
		result=eval("document.images."+Nom);
	}
	else{
		//dmc_Debug("document.images."+Nom+" n'est pas un objet");
	}
	return result;
}

function voircalque(){
	my_layer.set_posx(my_layer.is_object("Layer1"),placelayer());
}

function placelayer(){
  if(my_layer.navigateur=="net" || my_layer.navigateur=="net6"){
    var ecran=parseInt(window.innerWidth)-40;
   }
   else{
    var ecran=parseInt(document.body.clientWidth);
   }
	return (ecran/2)+(250-(780/2));
 
}
function Ecran(){
 /* Version 1.0 */
 /* Création Marc alias DMC */
 this.getWidth=Dmc_getWidth;
 this.getHeigth=Dmc_getHeigth;
 this.debug=false;
 this.debuger=dmc_Debug;
 
}
 
function dmc_Debug(chaine){
 if(this.debug){
  alert(chaine);
 }
}
 
function Dmc_getHeigth(){
 /* Version 1.0 */
 /* Création Marc alias DMC */
 
 var ecranx=false;
 if(typeof(screen)=="object"){
  ecranx=parseInt(screen.height-50);
 }
 else{
  this.debuger("Impossible de savoir la taille");
 }
 return ecranx;
}
 
function Dmc_getWidth(){
 /* Version 1.0 */
 /* Création Marc alias DMC */
 
 var ecrany=false;
 if(typeof(screen)=="object"){
  ecrany=parseInt(screen.width);
 }
 else{
  this.debuger("Impossible de savoir la taille");
 }
 return ecrany;
}
var Dmc_Ecran = new Ecran();
 
function popup(adr,nompop,larg,haut,res){window.open(adr,nompop,'width='+larg+',height='+haut+',scrollbars=1,toolbar=0,location=0,status=0,menubar=0,resizable='+res);}
function imgPopup(nomPop,img,fond,txt,css){
   imgPop = window.open("",nomPop,"scrollbars=yes,width=511,height=392");
   imgPop.document.write("<html>\n\n");
   imgPop.document.write("<head><title>Apercu d'image</title></head>\n\n");
   imgPop.document.write("<body bgcolor=\""+fond+"\">\n");
   imgPop.document.write("  <table border=\"0\" cellpadding=\"0\" cellspacing=\"2\" width=\"100%\">\n");
   imgPop.document.write("    <tr><td align=\"center\"><img src=\"ressources/"+img+"\"></td></tr>\n");
   imgPop.document.write("    <tr><td align=\"center\">\n");
   imgPop.document.write("      <table border=\"0\" cellpadding=\"0\" cellspacing=\"2\">\n");
   imgPop.document.write("        <tr><td><span style=\""+css+"\">"+txt+"</span></td></tr>\n");
   imgPop.document.write("      </table>\n");
   imgPop.document.write("    </td></tr>\n");
   imgPop.document.write("  </table>\n");
   imgPop.document.write("</body>\n\n");
   imgPop.document.write("</html>");
}
function Makepop(url,my_l,my_h,my_s,my_status,my_resize,my_name){
	/* Version 1.0 */
	/* Creation Marc alias DMC */
	addPop=window.open(url,my_name,"width="+my_l+",height="+my_h+",scrollbars="+my_s+",toolbar=0,location=0,status="+my_status+",menubar=no,resizable="+my_resize);addPop.focus();
}

/* ////////////////////////////////////////////// */
/*	Test un ensemble de caract .res                */
/*	@return true ou false                         */
/* ////////////////////////////////////////////// */
function defendu(string) {
if (!string){return false;}

   var iChars = "abcdefghijklmnopqrstuvwxyz@-_.~0123456789";
   for (var i = 0; i < string.length; i++) {
		if (iChars.indexOf(string.charAt(i).toLowerCase()) == -1){
			return false;
		}
   }
   return true;
} 
/* ////////////////////////////////////////////// */
/*	Test l'email                                  */
/*	@return false ou String                       */
/* ////////////////////////////////////////////// */
function is_Email(emails){
	if (emails.indexOf("@") != -1 && emails.indexOf("..")==-1 && defendu(emails)==true){
			var longueur = emails.split("@");
			if((longueur.length==2) && (longueur[0]!="" && longueur[1]!="")){
				var taille=longueur[1].lastIndexOf(".");
				if(taille!=-1){
					if((longueur[1].length-1-taille)==2 || (longueur[1].length-1-taille)==3 ){
						return true;
					}
					return false;
				}
				return false;
			}
			return false;
	}
	return false;		
}

//-->
