
// Commentaires, date et copyright ici
//
function changePage() {
	if (window != top) top.location.href = location.href;
}

function launch(newURL, newWindowName, newFeatures, origWindowName) {
var remote = window.open(newURL, newWindowName, newFeatures);
if (remote.opener == null) // if something went wrong
	remote.opener = window;
	remote.opener.name = origWindowName;
	return remote;
	}

function installFrames () {
var tmp = document.location.search;
if (tmp != "") self.location.href = "frameset.html" + tmp;
}

function adjustWindow(xpos, ypos) //NS4 resizes content, IE4 resizes window
{
	if (is.iepc)
		{
		if (window.name != "w_index_full") {	
			w_index_full = launch('index.html','w_index_full','toolbar=yes,menubar=yes,fullscreen=yes,channelmode=yes',"w_index");
			self.blur();
			self.close(); // trouver un moyen de supprimer le dialogue - ? utiliser retardateur ?
			return true;
			}					
		}
	else if (is.nspc) // NS4 PC and up -- last update Oct 25th 1999
		{
		var theWidth = screen.availWidth -12;
		var theHeight = screen.availHeight - 128;
		}
	else if (is.nsmac) // NS4 Mac and up
		{
		var theWidth = screen.availWidth + 6;
		var theHeight = screen.availHeight + 10;
		}
	else if (is.iemac)
		{
		var theWidth = screen.availWidth - 4;
		var theHeight =  screen.availHeight - 24;
		} 
window.resizeTo(theWidth,theHeight);
window.moveTo(xpos,ypos);
}

function CreateRandomNumber(Min, Max) {
var range = Max-Min+1;
return parseInt((Math.floor(Math.random() * 
Math.pow(10,("" + range).length)) % range) + parseInt(Min));
}

