<!--
function openWindow(theURL,theWidth,theHeight,thePath) {
/*
 * Cette fonction ouvre une nouvelle fenetre, y affiche une image, ajoute un fond de page et un bouton "fermer"
 *
 * Arguments de la fonction:
 *
 * theURL		adresse du fichier image a afficher
 * theWidth	largeur de l'image (en pixels)
 * theHeight	hauteur de l'image (en pixels)
 * thePath		argument optionnel decrivant le chemin vers la racine, si la page qui appelle le script
 *			n'est pas a la racine (ex: thePath = "../" si la page est un niveau en-dessous de la racine)
 *
 * Francois Suter, septembre 2000
 */
 // Si l'image est tres haute, prevoir les scrollbars et faire la fenetre plus large
 
	if (theHeight >= 500) {
		featuresString = "height=" + (theHeight+135) + ",width=" + (theWidth+40) + ",menubar=yes,scrollbars=yes";
	}
	else {
		featuresString = "height=" + (theHeight+135) + ",width=" + (theWidth+20) + ",menubar=yes";
	}
	if (!thePath) thePath = "";

	w = window.open("","Image",featuresString);
	w.document.open();
	w.document.writeln("<HTML>");
	w.document.writeln("<HEAD>");
	w.document.writeln("<TITLE>Les Gratteurs de Lune: Image</TITLE>");
	w.document.writeln("</HEAD>");
	w.document.writeln("<BODY BACKGROUND='" + thePath + "imagesGratteurs/fondGratteurs.jpg'>");
	w.document.writeln("<P><IMG SRC='" + theURL + "' WIDTH='" + theWidth + "' HEIGHT='" + theHeight + "' BORDER='1'></P>");
	w.document.writeln("<P ALIGN='right'><A HREF='javascript:window.close()'><IMG SRC='" + thePath + "imagesGratteurs/fermer.gif' ALT='Fermer la fenetre' WIDTH='133' HEIGHT='78' BORDER='0'></A></P>");
	w.document.writeln("</BODY>");
	w.document.writeln("</HTML>");
	w.document.close();
}
//-->
