function imprime_zone(titre, obj) 
 
{
// Définie la zone à imprimer
var zi = document.getElementById(obj).innerHTML;
 
// Ouvre une nouvelle fenetre
var f = window.open("", "ZoneImpr", "height=500", "width=600",
"toolbar=0", "menubar=0", "scrollbars=1", "resizable=1",
"status=0", "location=0", "left=10", "top=10");
 
// Définit le Style de la page
f.document.body.style.color = '#000000';
f.document.body.style.backgroundColor = '#FFFFFF';
f.document.body.style.padding = "10px";
 
// Ajoute les Données
f.document.title = titre;
f.document.body.innerHTML += "" + zi + "";
 
// Imprime et ferme la fenetre
f.window.print();
//f.window.close();
return true;
} 
 
   /*  function PSR_imprimer () {
     var PSR_f1 = null;
     var PSR_content=document.getElementById('PSR_print').parentNode.innerHTML;
     var PSR_title=document.getElementsByTagName('title')[0].innerText;
     if (PSR_f1) {if(!PSR_f1.closed) PSR_f1.close();}
     PSR_f1 = window.open ('',"PSR_f1", "height=500,width=600,menubar=yes,scrollbars=yes,resizable=yes,,left=10,top=10"); ;
     PSR_f1.document.open();
     PSR_f1.document.write("<html><head><title>" + PSR_title + "</title></head><body bgcolor='#ffffff'>"+PSR_content+"</body></html>");
     PSR_f1.document.close();
     PSR_f1.document.getElementById('PSR_print').style.visibility='hidden';
     PSR_f1.focus();
     }
     if ( window.name != "PSR_f1" && document.body.parentNode ) {
     document.write ("<div align='right' id='PSR_print'><input onclick='PSR_imprimer();' type='button' style='font-family:verdana; font-size:11px' value='Imprimer cette page'></div>");
     }
	 */
	 function impression() 
	 { 
	 no_print.style.visibility = 'hidden'; // Rend invisible le div
 window.print(); // Lance l'impression
 no_print.style.visibility = 'visible'; // Remet la visibilité du document
} 
function PopupCentrer(page,largeur,hauteur) {
   //var top=0;//(screen.height-hauteur)/2
  //var left=0;
  var top=(screen.height-hauteur)/2;
  var left=(screen.width-largeur)/2; 
  window.open(page,"","top="+top+",left="+left+",width="+largeur+",scrollbars=1,resizable=0,menubar=0,height="+hauteur);
}

//*****************verifier form + alert au format div bien style
/*
function verif_email(email) {
            var arobase = email.indexOf("@"); 
            var point = email.lastIndexOf(".")
            if((arobase < 3)||(point + 2 > email.length)||(point < arobase+3)) 
            return false;
            else
            return true;
}

//var msg  =  ' Your E-mail is not valid !' ;
function verifForm2()

{
//msg =  ' Votre E-mail est Invalide !' ;
if(!verif_email(document.getElementById('email').value)) {  /*on detecte si email est vide */
//confirm(" Votre E-mail est Invalide !");
//document.form2.email.focus();

//------------------------------------------------------------------------

/*

ejs_al_start();
return false;

}
else
{
document.form2.action="newslettre.php";
document.form2.submit();
return false;
}
}
//----------------------


 //var ejs_al_mess = msg ;
 var ejs_al_mess = 'Your E-mail is not valid !';
 var ejs_al_background = '#BABBBD'
 var ejs_al_bordure = '#626A75'
 var ejs_al_police = 'Verdana'
 var ejs_al_police_taille = '10'
 var ejs_al_police_color = '#CC0000'
 var ejs_al_hauteur = 80
 var ejs_al_largeur = 200
 var ejs_al_box2 = 0;
 
 // CADRES
 ejs_al_classe = 'border-color:'+ejs_al_bordure+';border-style:solid;border-width:1px;background:'+ejs_al_background+';font-family:'+ejs_al_police+';font-size:'+ejs_al_police_taille+'px;color:'+ejs_al_police_color;
 if(document.getElementById)
     {
     document.write('<DIV ID=ejs_al_box1 STYLE="position:absolute;visibility:hidden;'+ejs_al_classe+';width:20;height:'+(ejs_al_hauteur+20)+';z-index:10"></DIV>');
     document.write('<DIV ID=ejs_al_box2 STYLE="position:absolute;visibility:hidden;'+ejs_al_classe+';width:'+ejs_al_box2+';height:'+ejs_al_hauteur+';z-index:5');
     if(document.all)
         document.write(';padding:10');
     document.write('"></DIV>');
     document.write('<DIV ID=ejs_al_box3 STYLE="position:absolute;visibility:hidden;'+ejs_al_classe+';width:20;height:'+(ejs_al_hauteur+20)+';z-index:10"></DIV>');
     // TAILLE DE L'ECRAN
     ejs_al_Y = document.body.clientHeight;
     ejs_al_X = document.body.clientWidth;
     ejs_al_posX = Math.round(ejs_al_X/2);
     ejs_al_posY = Math.round(ejs_al_Y/2)-Math.round(ejs_al_hauteur/2);
     }
 
 function ejs_al_deplace()
     {
     // PLACEMENT
     document.getElementById("ejs_al_box1").style.left = ejs_al_posX-20-(ejs_al_box2/2);
     document.getElementById("ejs_al_box3").style.left = ejs_al_posX+(ejs_al_box2/2);
     document.getElementById("ejs_al_box2").style.left = ejs_al_posX-(ejs_al_box2/2)-5;
     document.getElementById("ejs_al_box2").style.width = ejs_al_box2+10;
     ejs_al_box2 += 5;
     if(ejs_al_box2<ejs_al_largeur)
         setTimeout("ejs_al_deplace()",10);
     else
         {
         document.getElementById("ejs_al_box2").innerHTML = '<CENTER><br />'+ejs_al_mess+'<BR><BR><B><A HREF=javascript:ejs_al_close()><FONT COLOR='+ejs_al_police_color+'>OK</FONT></A></B></CENTER>'
         }
     }
 
 function ejs_al_start()
     {
     if(document.getElementById)
         {    
         document.getElementById("ejs_al_box1").style.visibility = 'visible'    
         document.getElementById("ejs_al_box2").style.visibility = 'visible'    
         document.getElementById("ejs_al_box3").style.visibility = 'visible'    
         document.getElementById("ejs_al_box1").style.top = ejs_al_posY-10
         document.getElementById("ejs_al_box2").style.top = ejs_al_posY
         document.getElementById("ejs_al_box3").style.top = ejs_al_posY-10
         ejs_al_deplace();
         }
     }    
 
 function ejs_al_close()
     {
     if(document.getElementById)
         {    
         document.getElementById("ejs_al_box1").style.visibility = 'hidden'    
         document.getElementById("ejs_al_box2").style.visibility = 'hidden'    
         document.getElementById("ejs_al_box3").style.visibility = 'hidden'    
         document.getElementById("ejs_al_box1").style.top = -600
         document.getElementById("ejs_al_box2").style.top = -600
         document.getElementById("ejs_al_box3").style.top = -600
         ejs_al_deplace();
         }
     }    
     
 //window.onload = ejs_al_start;
 

 /****************Fonction Imprimer************************************/
 
 var f ="";
function imprime()
    {
var Headers = '<!DOCTYPE HTML PUBLIC ><HTML><HEAD><TITLE>Mobinets : Mobile Networks Solutions</TITLE><link href="script/skin.css" rel="stylesheet" type="text/css" media="screen"></HEAD><BODY  onload="window.print();window.close()">';
    var Footers = "</body></html>";
    var zi = "<hr>"+document.getElementById("mondiv2").innerHTML+"<hr>";

    var f = window.open("", "ZoneImpr", "height=300, width=1000,toolbar=1, menubar=1, scrollbars=1, resizable=1, status=0, location=0, left=10, top=10");

    f.document.write ("" + Headers + zi +Footers);
    f.document.close();
    return;
    }
	
function montre_div(cach) {
document.getElementById(cach).style.visibility="hidden";
} 
//---------------------------------lyghtbox1----------------

			function startLytebox(href, title, rel) {
				var el   = document.getElementById('lytebox_misc');
				el.href  = href;
				el.title = title;
				el.rel	 = rel;
				
				myLytebox.start(el);
			}
			
			var theme = '';
			var slide = false;
			var nav = 1;
			var border = false;
			
			function changeTheme(arg) {
				theme = arg;
				restartLytebox('Lytebox is now using the "' + theme + '" theme!');
			}
			
			function changeNav(arg) {
				nav = (arg == "1" ? 1 : 2);
				restartLytebox('Lytebox is now using the "' + (nav == 1 ? 'top' : 'bottom') + '" navigation!');
			}
			
			function changeSlide(arg) {
				slide = (arg == "true" ? true : false);
				restartLytebox('Lytebox "Prev/Next" navigation ' + (slide ? 'enabled' : 'disabled') + ' for the slideshow!');
			}
			
			function showBorder(arg) {
				border = arg;
				restartLytebox('Lytebox is now using a border: "' + border + '"!');
			}
			
			function restartLytebox(sWhat) {				
				// Update configuration in the parent window Lytebox object			
				myLytebox = null;
				myLytebox = new LyteBox(theme, nav, slide, border);
				
				// Update configuration in the iframe window Lytebox object.
				frames['DisplayFrame'].myLytebox = null;
				frames['DisplayFrame'].myLytebox = new frames['DisplayFrame'].LyteBox(theme, nav, slide, border);
			}
			//---------------------------------lyghtbox2----------------

			function startLytebox(href, title, rel) {
				var el   = document.getElementById('lytebox_misc');
				el.href  = href;
				el.title = title;
				el.rel	 = rel;
				
				myLytebox.start(el);
			}
			
			var theme = '';
			var slide = false;
			var nav = 1;
			var border = false;
			
			function changeTheme(arg) {
				theme = arg;
				restartLytebox('Lytebox is now using the "' + theme + '" theme!');
			}
			
			function changeNav(arg) {
				nav = (arg == "1" ? 1 : 2);
				restartLytebox('Lytebox is now using the "' + (nav == 1 ? 'top' : 'bottom') + '" navigation!');
			}
			
			function changeSlide(arg) {
				slide = (arg == "true" ? true : false);
				restartLytebox('Lytebox "Prev/Next" navigation ' + (slide ? 'enabled' : 'disabled') + ' for the slideshow!');
			}
			
			function showBorder(arg) {
				border = arg;
				restartLytebox('Lytebox is now using a border: "' + border + '"!');
			}
			
			function restartLytebox(sWhat) {				
				// Update configuration in the parent window Lytebox object			
				myLytebox = null;
				myLytebox = new LyteBox(theme, nav, slide, border);
				
				// Update configuration in the iframe window Lytebox object.
				frames['DisplayFrame_1'].myLytebox = null;
				frames['DisplayFrame_1'].myLytebox = new frames['DisplayFrame_1'].LyteBox(theme, nav, slide, border);
			}
			
						//---------------------------------lyghtbox3----------------

			function startLytebox(href, title, rel) {
				var el   = document.getElementById('lytebox_misc');
				el.href  = href;
				el.title = title;
				el.rel	 = rel;
				
				myLytebox.start(el);
			}
			
			var theme = '';
			var slide = false;
			var nav = 1;
			var border = false;
			
			function changeTheme(arg) {
				theme = arg;
				restartLytebox('Lytebox is now using the "' + theme + '" theme!');
			}
			
			function changeNav(arg) {
				nav = (arg == "1" ? 1 : 2);
				restartLytebox('Lytebox is now using the "' + (nav == 1 ? 'top' : 'bottom') + '" navigation!');
			}
			
			function changeSlide(arg) {
				slide = (arg == "true" ? true : false);
				restartLytebox('Lytebox "Prev/Next" navigation ' + (slide ? 'enabled' : 'disabled') + ' for the slideshow!');
			}
			
			function showBorder(arg) {
				border = arg;
				restartLytebox('Lytebox is now using a border: "' + border + '"!');
			}
			
			function restartLytebox(sWhat) {				
				// Update configuration in the parent window Lytebox object			
				myLytebox = null;
				myLytebox = new LyteBox(theme, nav, slide, border);
				
				// Update configuration in the iframe window Lytebox object.
				frames['DisplayFrame_2'].myLytebox = null;
				frames['DisplayFrame_2'].myLytebox = new frames['DisplayFrame_2'].LyteBox(theme, nav, slide, border);
			}