window.addEvent('domready',function(){
			
	/*function loadForm() {
		var motclef = $('motclef').value;
		var data  = 'motclef='+motclef;
		var xhr = getXMLHttpRequest();
		var URL = "http://www.sfmg.org/routines_recherche.php";
		xhr.open("POST",URL,true);
		xhr.onreadystatechange = function() {
				if (xhr.readyState == 4){
					if (document.getElementById) {	
						$('xhr_recherche').innerHTML = xhr.responseText;
						//alert(xhr.responseText);
					}
				}
			}
		xhr.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
		xhr.send(data);
		alert('yes');
	}*/
			
	$('form_recherche').addEvent('submit', function(e) {
		/*e.stop();
		
		this.set('send', {onComplete: function(response) { 
			$('centre').set('html', response);

		}});

		this.send();
	*/
		/*var motclef = $('motclef_form').value;
		var data  = 'motclef='+motclef;
		var xhr = getXMLHttpRequest();
		var URL = "http://www.sfmg.org/routines_recherche.php";
		xhr.open("POST",URL,true);
		xhr.onreadystatechange = function() {
				if (xhr.readyState == 4){
					if (document.getElementById) {	
						$('xhr_recherche').innerHTML = xhr.responseText;
						//alert(xhr.responseText);
					}
				}
			}
			xhr.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
			xhr.send(data);*/
			//alert($('motclef_form').value)
			
	});
	
	//loadForm();
});


