

	function getserverresponse(strURL,type,param) {
					var inst = '';
					inst = 'var xmlHttpReq'+type+'=false;';
					eval(inst) ;
					var self = this;
					// Mozilla/Safari
					if (window.XMLHttpRequest) 
					{
						self.eval('xmlHttpReq'+type+'= new XMLHttpRequest()');
					}
					// IE
					else if (window.ActiveXObject) {
						self.eval('xmlHttpReq'+type+'= new ActiveXObject("Microsoft.XMLHTTP")') ;
					}
					self.eval('xmlHttpReq'+type).open('POST', strURL, true);
					//alert(strURL);
					self.eval('xmlHttpReq'+type).setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
					self.eval('xmlHttpReq'+type).onreadystatechange = function()
					{
						if (self.eval('xmlHttpReq'+type).readyState == 4) 
						{
							var gridcontent;
									if(type==1){
										retour = self.eval('xmlHttpReq'+type).responseText;
										//alert(retour);
										document.getElementById('resville').innerHTML = retour;
										
												}
									if(type==2){
										retour = self.eval('xmlHttpReq'+type).responseText;
									//	alert(retour);
										document.getElementById('resville2').innerHTML = retour;
										
												}
										
						}
					 }
					self.eval('xmlHttpReq'+type).send(strURL);
	}
function ville(lst){
	var lst;
		var url;
			url = "content/ville.php?id="+lst;
			getserverresponse(url,1);
}
function villeinterne(lst){
	var lst;
		var url;

			url = "ville.php?id="+lst;
			getserverresponse(url,1);
}

function villeinterne2(lst){
	var lst;
		var url;

			url = "ville.php?id="+lst;
			getserverresponse(url,2);
}

