/***********************************************************************************************

***********************************************************************************************/
function showEmailForm(ndx,lng) {
var url="/fibd/mail/showemailform.php";
 params= {
  id: ndx,
  lang: lng
 };

 var transport=new Ajax.Updater('innerBox',url,
 {
  method: 'post',
  parameters: params,
  evalScripts: true,

  onFailure: function() {
    alert(transport.responseText);
    return;
   },

  onSuccess: function() {
 //  $("outerBox").style.backgroundColor="ivory";
   $("outerBox").style.width="430px";
   $("outerBox").style.height="220px";
   if (!$("outerBox").visible()) $("outerBox").show();
  }
 }
 );
return false;
}


/**************************************************************************
/*
/**************************************************************************/
function send_msg() {

  switch (langue_en_cours) {
     case "de":
       $envoye="Ihre Nachricht wurde erfolgreich gesendet.";
       $erreur="Fehler : Ihre Nachricht konnte nicht gesendet werden.";
     break;

     case "es":
       $envoye="Su mensaje fue enviada con "+String.fromCharCode(233)+"xito.";
       $erreur="Error : Su mensaje no pudo ser enviado.";
     break;

     case "gb":
       $envoye="Your message was sent successfully.";
       $erreur="Error : your message was not sent properly.";
     break;

     case "it":
       $envoye="Il messaggio "+String.fromCharCode(233)+" stato inviato con successo.";
       $erreur="Errore : il messaggio non "+String.fromCharCode(233)+" stato inviato.";
     break;

     case "po":
       $envoye="A mensagem foi enviada com "+String.fromCharCode(233)+"xito.";
       $erreur="Erro : A mensagem n"+String.fromCharCode(227)+"o foi enviada.";
     break;

    default :
      $envoye="Message envoy" + String.fromCharCode(233) + " avec succ" + String.fromCharCode(232) + "s.";
      $erreur="Erreur : votre message ne peut pas " + String.fromCharCode(234) + "tre envoy" + String.fromCharCode(233)+".";
    break;
  } // switch

$('msg').request(
{
 onSuccess: function(Sender){
   if ($("outerBox").visible()) $("outerBox").hide();
   alert($envoye);
  return;
 },
 onFailure: function(Sender){
   alert($erreur);
   return;
 }
});
return;
}
