function texte_recommander()
{
  var email= prompt('Envoyer ce texte à un(e) ami(e)\nVeuillez rentrer l\'e-mail de votre ami(e) :',' ');
  var sujet= "Ma recommendation";
  var message= "Sur le site http://www.asiaflash.com/  Je te recommande vivement ce dossier très intéressant : %0d%0a " + document.location + " %0d%0aMessage personnel : %0d%0a";
  if (email != null)
  {
    window.location="mailto:"+email+"?subject="+sujet+"&body="+message;
  }
}

function site_recommander()
{
  var email= prompt('Recommander ce site à un(e) ami(e)\nVeuillez rentrer l\'e-mail de votre ami(e) :',' ');
  var sujet= "Ma recommendation";
  var message= "Je te recommande vivement ce site super. Il étudie 100.000 prénoms dont le tien, et propose plus de 40 sortes différentes d\'horoscopes ! Tu peux aussi y tirer gratuitement chaque jour le tarot : %0d%0a http://www.asiaflash.com/ %0d%0aMessage personnel : %0d%0a";
  if (email != null)
  {
    window.location="mailto:"+email+"?subject="+sujet+"&body="+message;
  }
}

function tarots_recommander()
{
  var email= prompt('Recommander ces tarots à un ami\nVeuillez rentrer l\'e-mail de votre ami :',' ');
  var sujet= "Ma recommandation";
  var message= "Je te recommande vivement ces 60 tarots entièrement gratuits, ils sont super : %0d%0a http://www.asiaflash.com/tarot/ %0d%0aMessage personnel : %0d%0a";
  if (email != null)
  {
    window.location="mailto:"+email+"?subject="+sujet+"&body="+message;
  }
}

function tarots_femmes_recommander()
{
  var email= prompt('Recommander ces tarots à une amie\nVeuillez rentrer l\'e-mail de votre amie :',' ');
  var sujet= "Ma recommandation";
  var message= "Je te recommande vivement ces 30 tarots entièrement gratuits, ils sont super : %0d%0a http://www.asiaflash.com/femmes/ %0d%0aMessage personnel : %0d%0a";
  if (email != null)
  {
    window.location="mailto:"+email+"?subject="+sujet+"&body="+message;
  }
}

function magie_recommander()
{
  var email= prompt('Recommander ces recettes de magie à une amie\nVeuillez rentrer l\'e-mail de votre amie :',' ');
  var sujet= "Ma recommandation";
  var message= "Je te recommande vivement ces recettes de magie blanche, elles sont super : %0d%0a http://www.asiaflash.com/magie-blanche/ %0d%0aMessage personnel : %0d%0a";
  if (email != null)
  {
    window.location="mailto:"+email+"?subject="+sujet+"&body="+message;
  }
}

function open_popup(url)  { win2=window.open(url,"","toolbar=1,location=1,status=1,menubar=1,scrollbars=1,resizable=1,width=750,height=400,left=0,top=0")};
function open_popup2(url) { win2=window.open(url,"","toolbar=1,location=1,status=1,menubar=1,scrollbars=1,resizable=1,width=680,height=400,left=0,top=0")};
function open_popup3(url) { win2=window.open(url,"","toolbar=1,location=0,status=1,menubar=1,scrollbars=1,resizable=1,width=100,height=100,left=5,top=5")};
function open_popup4(url) { win2=window.open(url,"","toolbar=1,location=0,status=0,menubar=,scrollbars=0,resizable=0,width=250,height=270,left=5,top=5")};
function open_popup5(url)  { win2=window.open(url,"","toolbar=1,location=1,status=1,menubar=1,scrollbars=1,resizable=1,width=750,height=400,left=0,top=0")};

function af_focus_text(area_name)
{
   if (area_name.value == area_name.defaultValue)
   {
      area_name.value = '';
   }
}

function af_blur_text(area_name)
{
   if (area_name.value == '')
   {
      area_name.value = area_name.defaultValue;
   }
}

function af_ml_CheckEmail()
{
   var aString = document.ml_mailing.email.value;

   if (aString == "" || aString.indexOf(".") == -1 || aString.indexOf("@") == -1 || aString.length < 5)
   {
      if (aString == "")
         alert("Veuillez remplir votre adresse email.")
      else
         alert(aString + " n'est pas une adresse email valide.");
      document.ml_mailing.email.focus();
      return false;
   }
   else
   {
      resultat = confirm(aString + " a été entrée, confirmation?");
      if(resultat=="1")
      {
         document.ml_mailing.email.value = document.ml_mailing.email.value.toLowerCase();
         return true;
      }
      else
         return false;
   }
}

function fbs_click()
{u=location.href;t=document.title;
window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');
return false;
}

