function OuvreFenetreHTM(ficHTM)
{
	var hauteur=300
	var largeur=500
	options="width="+largeur+",height="+hauteur+"toolbar=yes,directories=no,menubar=no,scrollbars=yes,status=yes,resizable=yes,fullscreen=no"
	fenX = open("","Fenêtre_HTM",options)
	var aouvrir=ficHTM+".php"
	fenX.location=aouvrir
}

function OuvreFenetreRTF(ficRTF)
{
	var hauteur=300
	var largeur=500
	options="width="+largeur+",height="+hauteur+"toolbar=no,directories=no,menubar=no,scrollbars=yes,status=yes,resizable=yes,fullscreen=no"
	fenX = open("","Fenêtre_RTF",options)
	var aouvrir=ficRTF+".php"
	fenX.location=aouvrir
}

function OuvreFenetrePDF(ficPDF)
{
	var hauteur=300
	var largeur=500
	options="width="+largeur+",height="+hauteur+"toolbar=no,directories=no,menubar=no,scrollbars=yes,status=yes,resizable=yes,fullscreen=no"
	fenX = open("","Fenêtre_PDF",options)
	var aouvrir=ficPDF+".php"
	fenX.location=aouvrir
}
function makesnake() {
	if (flag==1 && document.all) {
    	for (i=message.length-1; i>=1; i--) {
   			xpos[i]=xpos[i-1]+step
			ypos[i]=ypos[i-1]
    	}
		xpos[0]=x+step
		ypos[0]=y
		for (i=0; i<message.length-1; i++) {
    		var thisspan = eval("span"+(i)+".style")
    		thisspan.posLeft=xpos[i]
			thisspan.posTop=ypos[i]
    	}
	}
	else if (flag==1 && document.layers) {
    	for (i=message.length-1; i>=1; i--) {
   			xpos[i]=xpos[i-1]+step
			ypos[i]=ypos[i-1]
    	}
		xpos[0]=x+step
		ypos[0]=y
		for (i=0; i<message.length-1; i++) {
    		var thisspan = eval("document.span"+i)
    		thisspan.left=xpos[i]
			thisspan.top=ypos[i]
    	}
	}
		var timer=setTimeout("makesnake()",30)
}
