function addslashes(str) {
	str = str.replace(/\'/g,'\\\'');
	str = str.replace(/\"/g,'\\"');
	str = str.replace(/\\/g,'\\\\');
	str = str.replace(/\0/g,'\\0');
	return str;
}
function stripslashes(str) {
	str = str.replace(/\\'/g,'\'');
	str = str.replace(/\\"/g,'"');
	str = str.replace(/\\\\/g,'\\');
	str = str.replace(/\\0/g,'\0');
	return str;
}
function SearchName(nom) {
	if(nom != "") {
		var xhr    = CreerObjetXMLHttp();
		noms.style.display = 'block';
		
		xhr.open("GET", "/resultats/xmlhttp/"+addslashes(escape(nom).replace(/%/g, '_')), true); 
		xhr.onreadystatechange = function() {
			if((xhr.readyState == 4) && (xhr.status == 200)) eval(xhr.responseText);
		}
		xhr.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); 
		var data = null; //"nom=" + escape(nom);
		xhr.send(data);
	}
	else {
		Clear();
	}
}
function Clear() { noms.style.display = 'none'; }
