function gereParagraphe(id){
	var titre = document.getElementById(id);
	if(titre.className == "titre"){
		titre.className = "titreOuvert";
		var description = document.getElementById('des_'+id);
		description.className = "descriptionOuvert";
	}
	else{
		titre.className = "titre";
		var description = document.getElementById('des_'+id);
		description.className = "description";
	}
}

function popup2(sUrl, iWidth, iHeight, sName, bVoid){
	var iCoordX = (screen.width /2) - ( iWidth/2);
	var iCoordY = (screen.height /2) - ( iHeight/2);

	if(sName == undefined){
		sName = 'popup';
	}//end if
	
	try{
		if(__oPopup){
			__oPopup.close();
		}//end if
	}//end try
	catch(oException){}
	
	__oPopup = null;
	__oPopup = window.open( sUrl, sName,'status=0, left=' + iCoordX + ' ,top=' + iCoordY + ' ,height=' + iHeight + ' ,width=' + iWidth + ', toolbar=no, status=no, location=no, resizable=yes, scrollbars=yes, copyhistory=0, menubar=no');
	__oPopup.focus();
	
	if(!bVoid){
		return __oPopup;
	}//end if

	
}//end function

function myPopup(sUrl, iWidth,iHeight,sName){
	popup2(sUrl, iWidth, iHeight, sName, true);
	return false;
}

function delInputValue(elem,val){
	if(elem.value == val){
		elem.value = '';
	}
}
function restoreInputValue(elem,val){
	if(elem.value.length == 0){
		elem.value = val;
	}
}
function changeVisibilite(){
	var i,args=changeVisibilite.arguments;
	for (i=0; i<args.length;i++){
	var x = document.getElementById(args[i]);
		if(x.style.display == "none")
			x.style.display = "block";
		else
			x.style.display = "none";
	}
}

function cacherLocalisation(){
	var args= new Array('r_1','r_2','r_3','r_4','r_7','r_8','r_9','r_10','r_11','r_12','r_14','r_16','r_17','r_19','r_20','r_22','r_24','r_25','r_26','r_28','r_29','r_31','r_43','h_2','h_3','h_4','h_7','h_10','h_13','h_16','h_22','h_24','h_28','h_30','h_34','h_36','h_38','h_41','s_2','s_6','s_8','s_10','s_15','s_18','s_20','s_23','s_24','s_28','s_32','s_33','s_37','s_39');
	for (i=0; i<args.length;i++){
		var x = document.getElementById(args[i]);
		if(x){
			x.style.display = "none";
		}
	}
}

function tip(id){
	elem(id).style.display = "block";
}
function unTip(id){
	elem(id).style.display = "none";
}