
function MM_reloadPage(init) {  
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);




function ChangeUrl(formulaire)
    {
    if (formulaire.ListeUrl.selectedIndex != 0)
        {
        location.href = formulaire.ListeUrl.options[formulaire.ListeUrl.selectedIndex].value;
         }
    else 
        {
        alert('Veuillez choisir une destination.');
        }
    }



url = window.location;
titre = document.title;
sujet = "SOS-planete";
function sendUrl(){ 
window.location = "mailto:"+prompt('Entrez l\'adresse email de la personne a qui vous désirez recommander ce site','')+"?subject="+sujet+"&body=Je vous recommande vivement cette page : "+titre+" "+url;
   } 




function AfficheHomePage()
    {
    if (document.all && document.getElementById)
        {
        document.write('<a href="#" onClick="HomePage(this);return(false);">SOS-planete en page de démarrage</A><br>');
        }
    }
function HomePage(obj)
    {
    obj.style.behavior='url(#default#homepage)';
    obj.setHomePage('http://terresacree.org/index.html');
    }




nav = navigator.appName.substring(0,3);
ver = navigator.appVersion.substring(0,1)
function addFav()
    {
    if (nav == "Mic" && ver >= 4)
        {
        url_site="http://terresacree.org";
        titre_site = "SOS-planete";
        document.write('<a href="#" onClick="window.external.AddFavorite(url_site, titre_site);return(false);">Le site dans vos favoris</A><br>')
        }
    else
        {
        document.write('Faites CTRL+D pour ajouter ce site Ã  vos favoris!')
        }
    }




function AfficheHomePage()
    {
    if (document.all && document.getElementById)
        {
        document.write('<a href="#" onClick="HomePage(this);return(false);">Cliquer ici</A><br>');
        }
    }
function HomePage(obj)
    {
    obj.style.behavior='url(#default#homepage)';
    obj.setHomePage('http://terresacree.org/index.html');
    }


 
if (top.frames.length!=0) top.location=self.document.location; 




function ChangeUrl(formulaire)
    {
    if (formulaire.ListeUrl.selectedIndex != 0)
        {
        location.href = formulaire.ListeUrl.options[formulaire.ListeUrl.selectedIndex].value;
         }
    else 
        {
        alert('Veuillez choisir une destination.');
        }
    }


