<!--

{
        btn1On = new Image()
        btn1On.src ="images/m1_acueil_off.gif"
        btn1Off = new Image()
        btn1Off.src ="images/m1_acueil.gif"   
		
		btn2On = new Image()
        btn2On.src ="images/m2_services_off.gif"
        btn2Off = new Image()
        btn2Off.src ="images/m2_services.gif" 
		
		btn3On = new Image()
        btn3On.src ="images/m3_clips_off.gif"
        btn3Off = new Image()
        btn3Off.src ="images/m3_clips.gif"
		
		btn4On = new Image()
        btn4On.src ="images/m4_archives_off.gif"
        btn4Off = new Image()
        btn4Off.src ="images/m4_archives.gif"  
		
		btn5On = new Image()
        btn5On.src ="images/m5_sitesinteret_off.gif"
        btn5Off = new Image()
        btn5Off.src ="images/m5_sitesinteret.gif" 
		
		btn6On = new Image()
        btn6On.src ="images/m6_profil_off.gif"
        btn6Off = new Image()
        btn6Off.src ="images/m6_profil.gif"  
		
		btn7On = new Image()
        btn7On.src ="images/m7_nousjoindre_off.gif"
        btn7Off = new Image()
        btn7Off.src ="images/m7_nousjoindre.gif"                             
}

function switchOn(imageName) {
  if (document.images)
     document.images[imageName].src = eval(imageName + 'On.src');
}
                 
function switchOff(imageName) {
  if (document.images)
     document.images[imageName].src = eval(imageName + 'Off.src');
}


var popupWin = null;
	
function openWindow(url,WIDTH,HEIGHT) {

	TOP = (screen.height/2) - ( HEIGHT/2);
	LEFT = (screen.width/2) - ( WIDTH/2);
		
	url;
		
	if(!popupWin || popupWin.closed){
		popupWin = window.open( url , 'cplt', 'scrollbars=yes,top = ' + TOP + ',left = ' + LEFT + ',resizable=0,width=' + WIDTH + ',height=' + HEIGHT)
		popupWin.focus();
	} else {
		popupWin.close();
		openWindow(url ,WIDTH,HEIGHT);
	}
}

// Sortir d'un frame si la condition est vraie
//if (window != top ) {top.location=window.location;}


// fonction de controle de la longueur*/
function CheckLen(Texte) {
	StrLen = document.form.Description.value.length;
	if (StrLen > 1000 ) {
		document.form.Description.value = document.form.Description.value.substring(0,1000);
		CharsLeft = 1000;
	} else {
		CharsLeft = StrLen;
	}
	document.form.caractere.value = CharsLeft;
}

function pop(url,strWidth,strHeight,strScroll){
 	w = strWidth;
	h = strHeight;
	pw = parseInt((screen.width-w)/2);
	ph = parseInt((screen.height-h)/2);
  	storywin = window.open(''+ url +'','','width='+ strWidth +',height='+ strHeight +',scrollbars='+ strScroll +',resizable=no,screenX='+ pw +',screenY='+ ph +',left='+ pw +',top='+ ph +''); 

 	if (eval('storywin.focus()')) {
	win.moveTo(pw, ph);
	} 
}



// Fonction pour valider un formulaire
function Verif(){     

	var pass = true;
	var missinginfo = "";
	var box = "";
	
	if (document.form.Login.value == ""){            
		missinginfo += "\n- Nom d'usager";
		if (box==""){box="Login";}
  		pass = false;
	} 
	
	if (document.form.Password.value == ""){            
		missinginfo += "\n- Mot de passe";
		if (box==""){box="Password";}
  		pass = false;
	} 
	
	if (missinginfo != ""){
		missinginfo = "absent ou invalide : \n" + missinginfo;
		alert(missinginfo);
		document.form[box].focus();
		return false;
	} else 
		document.form.Submit.disabled = true;
		//document.form.btnModifier.value = "PATIENCE...";
		return true;


}

function favoris() {
if ( navigator.appName != 'Microsoft Internet Explorer' )
{ window.sidebar.addPanel("AntillesLocation.com","http://www.antilleslocation.com/",""); }
else { window.external.AddFavorite("http://www.antilleslocation.com/","AntillesLocation.com"); } }
//-->
