
/********************************** LES FONCTIONS STANDARDS ******************************************/
function on_focus(){
	if (document.formSearch.txt.value=='Rechercher'){
		document.formSearch.txt.value=''
	}
}
function on_blur(){
	if (document.formSearch.txt.value==''){
		document.formSearch.txt.value='Rechercher'
	}
}

function sendData(param, page, contenu)	{
	if(document.all) {
		//Internet Explorer
		var XhrObj = new ActiveXObject("Microsoft.XMLHTTP") ;
	} else {
		//Mozilla
		var XhrObj = new XMLHttpRequest();
	}
	//définition de l'endroit d'affichage:
	var content = document.getElementById(contenu);
	XhrObj.open("POST", page);
	//Ok pour la page cible
	XhrObj.onreadystatechange = function() {
		if (XhrObj.readyState == 4 && XhrObj.status == 200)
				content.innerHTML = XhrObj.responseText ;
	}
	XhrObj.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
	XhrObj.send(param);
}

/*function showHide(typeContent, Div)
	{
		
		var curdiv = document.getElementById(Div);
		if (typeContent=="content" || typeContent=="LinkWithoutContent")
		{
			curdiv.style.display = "none";
			document.adminForm.data_orient.value=null;
			document.adminForm.params.disabled=true;
			document.adminForm.params.style.backgroundColor ='#E0DFE3';
		}
		else
		{
			
			var agree=confirm("Vous allez changer le mode de page, voulez-vous poursuivre ?");
					
				if (agree)
					{
					document.adminForm.params.disabled=false;
					document.adminForm.params.style.backgroundColor ='#FFFFFF';
					//document.adminForm.body_fr.value="";
					curdiv.style.display = "block";
					}
				else{
					document.adminForm.content_type.value="content";
				}

		
		}
	}
*/