<!--
var state = 'none';
var width = window.screen.width;
var height = window.screen.height;

function show(layer_ref) {
	if (state == 'block') {
		state = 'none';
	} else {
		state = 'block';
	}
	if (document.all) { //IS IE 4 or 5 (or 6 beta)
		eval( "document.all." + layer_ref + ".style.display = state");
	}
	if (document.layers) { //IS NETSCAPE 4 or below
		document.layers[layer_ref].display = state;
	}
	if (document.getElementById &&!document.all) {
		hza = document.getElementById(layer_ref);
		hza.style.display = state;
	}
}

function centeredWindow(href,title,x,y) {
	var positionX = width/2 - x/2;
	var positionY = height/2 - y/2;
	
	eval("window.open('" + href + "','" + title + "','width=" + x + ",height=" + y + ",top=" + positionY + ",left=" + positionX +",scrollbars=1')");
}

function checkAll(debut, fin) {
	for (i = debut; i <= fin; i++) {
		eval( "document.formPref.sample_"+i+".checked = true ;" );
	}
}

function uncheckAll(debut, fin) {
	for (i = debut; i <= fin; i++) {
		eval( "document.formPref.sample_"+i+".checked = false ;" );
	}
}

function addEngine(name,ext,cat) {
	if ( (typeof window.sidebar == "object") && (typeof  window.sidebar.addSearchEngine == "function"))  {
		window.sidebar.addSearchEngine( "http://amazonia.montp.inserm.fr/plugins/"+name+".src", "http://amazonia.montp.inserm.fr/plugins/"+name+"."+ext, name, cat );
	} else {
		errorMsg();
	}
}

//-->
