<!--

function SousMenuRoll (id, display) {
	document.getElementById(id).style.display = display;
}

// FONCTIONS UTILISEES POUR LE FORMULAIRE DE RECHERCHE DE LA PAGE D'ACCUEIL

function f_DisplayDetail(sBloc) {
	document.getElementById(sBloc).style.display = "inline" ; 
}

function f_RemoveDetail(sBloc) { 
	document.getElementById(sBloc).style.display = "none" ; 
}

function f_UpdateField(sField_ip, sField, tArray) {
	var lValues ; lValues = GiveCheckboxValue(sField) ;
	var lLibelles ; lLibelles = '' ;
	for (var x = 0; x < sField.length; x++) {
		 if (sField[x].checked == true) {lLibelles = lLibelles + tArray[x] + ',' ; } }
	if (Right(lLibelles, 1)==',') { lLibelles = Left(lLibelles, String(lLibelles).length-1) ; }
	sField_ip.value = lLibelles ; 
}

function GiveCheckboxValue(CheckboxNom) {
	var lLibelles ;
	lLibelles = '' ;
	for (var x = 0; x < CheckboxNom.length; x++) {
		 if (CheckboxNom[x].checked == true) {lLibelles = lLibelles + CheckboxNom[x].value + ',' ; } }
	if (Right(lLibelles, 1)==',') { lLibelles = Left(lLibelles, String(lLibelles).length-1) ; }
	return lLibelles ; 
}

function Right(str, n){
	if (n <= 0)
		return "";
	else if (n > String(str).length)
		return str;
	else { var iLen = String(str).length; return String(str).substring(iLen, iLen - n);}
}

function Left(str, n){
	if (n <= 0)
		return "";
	else if (n > String(str).length)
		return str;
	else
		return String(str).substring(0,n); 
}

function ChargerImagesJeu() {
	var img1 = new Image; img1.src = "/images/jeu_1.jpg";
	var img2 = new Image; img2.src = "/images/jeu_2.jpg";
}

function swap(i) {
	var oImage = document.getElementById('imgJeu');
	oImage.src = "/images/jeu_" + i + ".jpg";
}


function windowOpener(windowWidth, windowHeight, windowName, windowUri) {
	var centerWidth = (window.screen.width - windowWidth) / 2;
	var centerHeight = (window.screen.height - windowHeight) / 2;

	newWindow = window.open(windowUri, windowName, 'resizable=no,scrollbars=yes,width=' + windowWidth + ',height=' + windowHeight + ',left=' + centerWidth + ',top=' + centerHeight);

	newWindow.focus();
	return newWindow.name;
}
//-->
