/*
	* 13/04/2007 16:53pm
	* js/fr/searchByTag.js
*/
var uriBase = document.getElementById('urlIdentifier').content;

/* chargerDate */
function chargerDate (mois,annee,langue)
{
	$('indCal').style.display = 'block';
	new Ajax.Updater('calendrierMois', 
	uriBase+'/ajax/fr/chargerDate.php', 
	{ method : 'post', asynchronous : true, parameters : "mois="+mois+"&annee="+annee+'&l='+langue, onSuccess : sCD, onFailure : eCD } 
	);
}
function sCD (t) { 
	//alert(t.responseText); 
	$('indCal').style.display = 'none';
}
function eCD (t) { 
	//alert('Error ' + t.status + ' -- ' + t.statusText); alert('oops, broken'); 
	$('indCal').style.display = 'none';
}


/* chargerSRubrique */
function chargerSRubrique (idR)
{
	$('indR').style.display = 'block';
	new Ajax.Updater('spanSRubrique', 
	uriBase+'/ajax/fr/chargerSRubrique.php', 
	{ method : 'post', asynchronous : true, parameters : "r="+idR, onSuccess : sCSR, onFailure : eCSR } 
	);
}
function sCSR (t) { 
	//alert(t.responseText); 
	$('indR').style.display = 'none';
}
function eCSR (t) { 
	//alert('Error ' + t.status + ' -- ' + t.statusText); alert('oops, broken'); 
	$('indR').style.display = 'none';
}

/* gotoLocation */
function gotoLocation (uri) {
	
	if (uri != undefined && uri != "") {
		window.location = uri;
	}
	else return false;
}

/* chargerNumPage */
function chargerNumPage (idEl,idP)
{
	$('indR').style.display = 'block';
	new Ajax.Updater(idEl,uriBase+'/ajax/fr/chargerPageNumero.php', 
	{ method : 'post', asynchronous : true, evalScripts : true , parameters : "n="+idP, onSuccess : sCNP, onFailure : eCNP } 
	);
}
function sCNP (t) { 
	//alert(t.responseText); 
	$('indR').style.display = 'none';
}
function eCNP (t) { 
	//alert('Error ' + t.status + ' -- ' + t.statusText); alert('oops, broken'); 
	$('indR').style.display = 'none';
}
