function tellerror(msg, url, linenumber) {
//========================================
// Pour netscape et mozilla
// Indique le type d'erreur, le fichier ou a eu lieu l'erreur et la ligne de l'erreur.
alert('Error message= ' + msg + '\nURL= ' + url + '\nLine Number= ' + linenumber);
return true;
} // tellerror

function myCourrielMsgBox() { 
//===========================
// pour que la fenetre soit en bas a gauche.
var nWinWidth = 450;   // largeur et hauteur de la nouvelle fenetre.
var nWinHeight = 340;
var nWinTop  = (screen.height - nWinWidth);
var nWinLeft = 5;
//Options de la fenetre popup : 
stats  = "toolbar=no,location=no,directories=no,status=no,menubar=no"; 
stats += ",scrollbars=no,resizable=yes,width=" + nWinWidth + ",height=" + nWinHeight; 
//stats += ",scrollbars=no,resizable=no,width=500,height=400"; 
stats += ",top=" + nWinTop + ",left=" + nWinLeft;

//Ouvre une nouvelle fenetre vierge. 
var MsgBox = window.open ("","msgWindow",stats);
MsgBox.document.open();
MsgBox.document.write ("<HEAD><TITLE> e-mail de Bernard Gisin </TITLE></HEAD>"); 
MsgBox.document.write ("<BODY bgColor='white' text='black'>"); 
MsgBox.document.write ("<H2><CENTER> Voici mon adresse e-mail </CENTER></H2>"); 
MsgBox.document.write ("<font size='+1'>");
MsgBox.document.write ("<CENTER>", "bernard2" + "@" + "juggling" + ".ch", "</CENTER>"); 
MsgBox.document.write ("<br><br>");
MsgBox.document.write ("Pour m'envoyer un e-mail, cliquez sur le lien suivant : "); 
MsgBox.document.write ("<a href='mailto:bernard2@juggling.ch'>bernard2@juggling.ch</a><br>"); 
MsgBox.document.write ("<br>");
MsgBox.document.write ("<br>Cette adresse changera quand je recevrai trop de courrier ind&eacute;sirable (spam).<br>")
MsgBox.document.write ("<br>");
MsgBox.document.write ("</font>");

//when reader clicks the OK button in this message window, close the message window. 
MsgBox.document.write ("<FORM><CENTER>") 
MsgBox.document.write ("<INPUT type='button' value='Fermez-moi' onClick = 'self.close()'>") 
MsgBox.document.write ("</CENTER></FORM>") 

MsgBox.focus(); // pour que cette revienne si elle a deja ete ouvert avant.
MsgBox.document.close();
return false;  // pour que le lien html href='...' ne fasse rien.
} // FIN de : myCourrielMsgBox
