function PopupImage(img, Titre) {
	
	w=open("",'image','width=400,height=400,toolbar=no,scrollbars=no,resizable=no');	
	w.document.write("<HTML><HEAD><TITLE>"+Titre+"</TITLE></HEAD>");
	w.document.write("<SCRIPT language=javascript>function checksize()  {if (document.images[0].complete) { window.resizeTo(document.images[0].width+12,document.images[0].height+30); window.focus();	} else { setTimeout('check()',250) } }</"+"SCRIPT>");
	w.document.write("<BODY onload='checksize()' leftMargin=0 topMargin=0 marginwidth=0 marginheight=0><IMG src='"+img+"' border=0>");
	w.document.write("");
	w.document.write("</BODY></HTML>");
	w.document.close();
	}
	
function fenetreCent(url,nom,largeur,hauteur,options) {
var haut=(screen.height-hauteur)/2;
var Gauche=(screen.width-largeur)/2;
fencent=window.open(url,nom,"top="+haut+",left="+Gauche+",width="+largeur+",height="+hauteur+","+options);
}
		
function transac(champ)
{
 
	var type   		 = monform.elements["typ_bien"].value;
	var transaction  = monform.elements["transaction"].value;
	var ville		 = monform.elements["ville"].value;

		   var xhr_object = null;
			
		   if(window.XMLHttpRequest) // Firefox
			  xhr_object = new XMLHttpRequest();
		   else if(window.ActiveXObject) // Internet Explorer
			  xhr_object = new ActiveXObject("Microsoft.XMLHTTP");
		   else { // XMLHttpRequest non supporté par le navigateur
			  alert("Votre navigateur ne supporte pas les objets XMLHTTPRequest...");
			  return;
		   }
			
		   xhr_object.open("POST", "scripts/data.php", true);
			
		   xhr_object.onreadystatechange = function() {
			  if(xhr_object.readyState == 4){
				 // alert(xhr_object.responseText);
			  		eval(xhr_object.responseText);
			  }
		   }	
		   
   xhr_object.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
   
   var data = "typ_bien="+type+"&transaction="
					  +transaction+"&ville="
					  +ville+"&form="
					  +monform.name
					  +"&select="+champ;
 
   xhr_object.send(data);
}