<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function popupcentree(page,largeur,hauteur,options)
{
var top=(screen.height-hauteur)/2;
var left=(screen.width-largeur)/2;
window.open(page,"","top="+top+",left="+left+",width="+largeur+",height="+hauteur+","+options);
}

function InsereTexte (TextOrigine, AjoutText) {
	if (TextOrigine.createTextRange && TextOrigine.Posit) {
		var Posit = TextOrigine.Posit;
		Posit.AjoutText =
			Posit.AjoutText.charAt(Posit.AjoutText.length - 1) == ' ' ?
			AjoutText + ' ' : AjoutText;
	} else {
		TextOrigine.value  = TextOrigine.value + AjoutText; // for non MSIE browsers just append it
	}
	return true;
}

function Prompteur(quoi) {
		var currentMessage = document.form.message.value;

	if (quoi == "image") {
		var thisImage = prompt("Entrez l'URL exacte de l'image que vous souhaitez voir affichée.", "http://");
		if (thisImage == null){return;}
		InsereTexte(document.form.message, ' ' + "[IMAGE]" + thisImage + "[/IMAGE]" + ' ' );
		document.form.message.focus();
		return;
	}
		
	if (quoi == "url") {
		var Url = prompt("Entrez l'adresse exacte du lien que vous souhaitez ajouter.", "http://");
		if (Url == null){return;}
		InsereTexte(document.form.message, ' ' + "[LIEN]" + Url + "[/LIEN]" + ' ');
		document.form.message.focus();
		return;
	}
}

function addSmile( num ) {
var $t;
	if ( num == 1 ) $t = ":-) "	;
	if ( num == 2 ) $t = ":-( "	;
	if ( num == 3 ) $t = ":o "	;
	if ( num == 4 ) $t = ":D "	;
	if ( num == 5 ) $t = ";-) "	;
	if ( num == 6 ) $t = ":p "	;
	if ( num == 7 ) $t = "8-) "	;
	if ( num == 8 ) $t = ":rolleyes: "	;
	if ( num == 9 ) $t = ":mad: "	;
	if ( num == 10 ) $t = ":eek: "	;
	if ( num == 11 ) $t = ":confused: "	;
	if ( num == 12 ) $t = ":++: "	;
	if ( num == 13 ) $t = ":--: "	;
	if ( num == 14 ) $t = ":idea: "	;
	if ( num == 15 ) $t = ":dodo: "	;
	if ( num == 16 ) $t = ":w "	;
	if ( num == 17 ) $t = ":ange: "	;
	if ( num == 18 ) $t = ":lover: "	;
	if ( num == 19 ) $t = ":king: "	;
	if ( num == 20 ) $t = ":fumee: "	;
	document.form.message.value+=$t	;
	document.form.message.focus();
}

function Localize(pStr){return pStr;}
var ProcessingText = Localize("Veuillez patienter...");
var cnt=0;

function Patience(f){

f.envoi.value=ProcessingText;
f.envoi.disabled=true;
if (cnt==0)f.submit();
cnt++;
}

function Phoque()
{document.form.nom.focus();}

function confirme( url )
{
	var confirmation = confirm( "Tu veux vraiment supprimer cet enregistrement ?" ) ;
	if( confirmation )
	{
		document.location.href = url ;
	}
}

function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

//-->