// JavaScript Document
function MM_openBrWindow(theURL,features) { //v2.0
	window.open(theURL,"",features+",directory=no,location=no,menubar=no,resizable=no,scrollbars=no,toolbar=no");
}

function MM_openBigWindow(theURL,features) { //v2.0
	window.open(theURL,"",features+",directory=no,location=no,menubar=no,resizable=no,scrollbars=yes,toolbar=no");
}

function MM_newWindow(theURL,features) { //v2.0
	window.open(theURL,"",features+",directory=yes,location=yes,menubar=yes,resizable=yes,scrollbars=yes,toolbar=yes");
}

function MM_closeWindow() { //v2.0
	window.close;
}

var result =0;
var ns=window.navigator.appName == "Netscape";
var ie=window.navigator.appName == "Microsoft Internet Explorer";
var ns2 = ns;
var nAppVersion = parseFloat(window.navigator.appVersion);

if((ns)&&(nAppVersion > 4.9)){
	ie = true;
	ns = false;
}

function dimension(largeur,hauteur) {
	window.status = "Fanfare la Laurentia, Case postale 89, CH-1967 Bramois";

	window.moveTo(25,25);
	window.resizeTo(largeur,hauteur);
	
	if (ns) {
		window.outerHeight = hauteur;
		window.outerWidth  = largeur;
	}
}

function ChgColorTR(tr,cColorTR){
	if(ns2){
		document.getElementById(tr).style.backgroundColor=cColorTR;
	}else{
		document.all[tr].style.backgroundColor=cColorTR;
	}
}

function tmt_findObj(n){
	var x,t; 

	if((n.indexOf("?"))>0&&parent.frames.length){
		t=n.split("?");
		x=eval("parent.frames['"+t[1]+"'].document.getElementById('"+t[0]+"')");
	}
	else{
		x=document.getElementById(n)
	}
	return x;
}

function MM_findObj(n, d) { //v4.01
	var p,i,x;

	if(!d) d=document;

	if((p=n.indexOf("?"))>0&&parent.frames.length) {
		d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);
	}

	if(!(x=d[n])&&d.all) x=d.all[n];

	for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
	for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);

	if(!x && d.getElementById) x=d.getElementById(n);

	return x;
}
