function allerA(adresse){
	window.location = adresse;
}
function montre(id) {
	document.getElementById(id).style.visibility = 'visible';
	return true;
}
function cache(id) {
	document.getElementById(id).style.visibility = 'hidden';
	return true;
}
function fenetre(url,nom,largeur,hauteur,scroll) {
	var top=(screen.height-hauteur)/2;
	var left=(screen.width-largeur)/2;
	window.open(url,nom,"top="+top+",left="+left+",width="+largeur+",height="+hauteur+",'menubar=no,scrollbars="+scroll+",statusbar=no,resizable=no'");
}
function focusSearch(champ){
	//alert('bob');
	champ.style.width = '200px';
	champ.style.borderColor = '#000000';
	champ.style.padding = '4px';
	champ.style.fontWeight = 'bold;';
	//champ.style.borderWidth = '2px';
	if (champ.value =='rechercher...'){
		champ.value = '';
	}
	
}
function blurSearch(champ){
	//alert('bob');
	champ.style.width = '85px';
	champ.style.borderColor = '#cccccc';
	champ.style.padding = '2px';
	champ.style.fontWeight = 'normal;';
	//champ.style.borderWidth = '0';
	if (champ.value ==''){
		champ.value = 'rechercher...';
	}
}
function logout(){
	if (confirm('Souhaitez vous quittez votre session?')){
		window.location = "/index.php?a=l";
	}
}
function sendContact(){
	//alert('bob');
	
	parms = Form.serialize('formC');
	var options = {
		method : 'post',
		parameters : parms,
		onLoading: function(req) {
			$('load').style.display = 'inline';
		},
		onComplete: function(req) {
			$('load').style.display = 'none';
			alert('Votre message a bien été envoyé!');
		},
		onFailure: function(req) {
			alert("Error ! Status = "+req.status+" - "+req.statusText);
		}
	};
	new Ajax.Request('/traiteForm.php?', options);
	
}


