<!--
//
//  Modifications du 02/07/08
//
function creaCook(indic,ival) {
   cookieString=indic + "=" + ival + ";path=/"
   document.cookie=cookieString
}
function crCook10(indic,ival) {
// Persistence du Cookie = 10 ans
   expireDate = new Date
   expireDate.setYear(expireDate.getYear()+10)
   cookieString=indic + "=" + ival + ";path=/;expires=" + expireDate.toGMTString()
   document.cookie=cookieString
}
function delCook(indic,ival) {
    document.cookie=indic + "=" + ival + ";path=/;expires=Monday, 31-Dec-90 12:00:00 GMT"
}
function exName(cv,ci) {
cs=cv.split(";")
fname="inconnu"
  // Recherche du Cookie ci
  for (i=0;i<cs.length;i++) {
  c1=cs[i].split("=")
    if ( c1[0].indexOf(ci) != -1 ) {
    fname = c1[1]
    } 
  }
return fname
}
// Fonction adapt, fo=font-size
// Fonction adapt, bg=background-color
// Les args ne sont plus utilisés pour compatibilité
function adapt(fo,bg) {
}

//
// Paramètre de diagnostics
var diag = 0;
// Extraction de la largeur d'écran
var Lecran=window.screen.width;
// Calcul du coefficient d'affichage de l'image
var ca = Lecran/1280;
// Definition de la Fonte de Base
var bf; // Base Font
// Définition de la taille des caractères
   if ( Lecran > 800 ) {
   document.write('<basefont size="3">');
   document.write('<font size="3"></font>');
   bf = 3;
   } else {
   document.write('<basefont size="1">');
   document.write('<font size="1"></font>');
   bf = 1;
   }
// Affichage de la taille écran en defaultStatus
window.defaultStatus = "Taille ecran = " + window.screen.width + " x " + window.screen.height + " / Base font = " + bf + " / Coefficient affichage = " + ca;
//

function contact() {
// Camouflage du Mailto
var name="";
var domain="";
var mesg="?subject=Demande d\'info &agrave; partir du site *****";
document.write('<a href="mailto:');
document.write( name + '@' + domain + mesg + '"');
document.write( ' onmouseover="return true" ');
document.write( ' onclick="window.status=');
document.write( "'';return true" + '"');
document.write(' >Pour contacter Gilbert</a>');
}

function envoi(ea) {
//   alert("Entree envoi Adresse: " + ea.emailAddr.value);
   location.href="merci.htm";
   return true
}
function formal() {
// Camouflage du Mailto
var coda="736B79383032343540736B796E65742E6265";
var adr = "";
  for (var i=0;i<coda.length;i+=2) {
  x =  coda.substring(i,i+2);
//  alert("Partie extraite = " + x);
  y = parseInt("0x" + x);
//  alert("Une lettre = " + y);
  z = String.fromCharCode(y);
  adr += z;
//  alert("adr = " + adr);
  }
//  alert("adr= " + adr);
var mesg="?subject=Envoi Formulaire ";
document.write('<FORM NAME="' + 
'formula" ' + 
'METHOD="POST" ' + 
'ACTION="mailto:' + adr  + mesg + '"' +
' ENCTYPE="text/plain" ' + 
' onSubmit="envoi(this)" >');
document.write('<table CLASS=tabla>');
document.write('<tr>');
document.write('<td><b>Nom ou Pr&eacute;nom :</b></td>');
document.write('<td><INPUT TYPE="Text" NAME="Nom" SIZE="25"></td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td><b>Adresse E-mail:</b></td>');
document.write('<td><INPUT TYPE="Text" NAME="emailAddr" SIZE=\"40\"></td>');
document.write('</tr></table>');
document.write('<img src="../redline.gif" width=100% height=2>');
document.write('<b>Ecrivez vos commentaires : </b><br>');
document.write('<TEXTAREA NAME="Commentaires" COLS="45" ROWS="5" ');
document.write('WRAP="virtual"></TEXTAREA><br>');
document.write('<img src=\"../redline.gif\" width=100% height=2>');
document.write('<INPUT TYPE="Submit" VALUE="Envoyer">');
document.write('<INPUT TYPE="Reset" VALUE="Effacer">');
document.write('</FORM>');
}
//-->
