<!--
// Ajoute la fonction trim comme méthode de l'objet String.
String.prototype.trim = function()
{ return this.replace(/(^\s*)|(\s*$)/g, ""); }

// Ajoute la fonction string comme méthode de l'objet String.
String.prototype.string = function(nb)
{ var tmp=""; for(var i=1;i<=nb;i++) tmp+=this; return tmp; }

var adresse = new String ("");
var details = new String("");
var largeur = new String("");
var hauteur = new String("");
var leftpos = 0;
var toppos = 0;

function ouvre (adresse,largeur, hauteur) {

//Calcul position fenêtre
leftpos = (screen.width - largeur) / 2;
leftpos = parseInt(leftpos,10);
toppos = (screen.height - hauteur) / 2;
toppos = parseInt(toppos,10);

if (leftpos < 0) {leftpos = 0};
if (toppos < 0) {toppos = 0};

details = ",status=no,resizable=yes,scrollbars=yes";
details = details + ",width=" + largeur + ",height=" + hauteur + ",top=" + toppos + ",left=" + leftpos;

var fenetre = window.open (adresse,'',details);
}

function photo (adresse,largeur, hauteur) {

leftpos = (screen.width - largeur) / 2;
toppos = (screen.height - hauteur) / 2;

leftpos = parseInt(leftpos,10);
toppos = parseInt(toppos,10);

if (leftpos < 0) {leftpos = 0};
if (toppos < 0) {toppos = 0};

details = ",status=no,resizable=yes";
details = details + ",width=" + largeur + ",height=" + hauteur + ",top=" + toppos + ",left=" + leftpos;

var fenetre = window.open(adresse,'',details);
fenetre.focus();
}

function ouvre_fenetre(variable) {
  var page = open('','agrandissement','status=no,resizable=yes,width=565,height=430,top=100,left=100');
  page.document.open();
  page.document.write(variable);
  page.document.close();
}

var indexS = 0;
var strChoix = new String ("");

function change(formulaire){
	indexS = formulaire.choix.options.selectedIndex;
	strChoix = formulaire.choix.options[indexS].value;
	formulaire.nom.value = strChoix;
	formulaire.index.value = indexS;
	formulaire.action = formulaire.nomfichier.value;
	formulaire.submit();
return true;
}

function affiche_courriel(texte1,texte,nom,prestataire,style)
{
var tg="<";
var arob="@";
document.write(texte1+tg+"a hr"+"ef=mai"+"lto:"+nom);
document.write(arob+prestataire+" class=" + style + ">"+texte+tg+"/a><br />");
}

//-->
