/************************************************************************************
			Ajout / Modification d'un propriétaire :  
/************************************************************************************/

function nouveau_proprio(id_proprio) 
{
url 			= 		"http://v3.js-immo.fr/verif.php";
params			= 		"step=nouveau_proprio&id_proprio="+id_proprio;
newsAjax 		= 		new Ajax.Request( url, { method: 'post', postBody: params, onComplete: nouveau_proprio });
}

function aff_nouveau_proprio(response)
{
document.getElementById('nouveau_proprio').innerHTML = response.responseText;	
}


/************************************************************************************
			Ville du Client :
/************************************************************************************/

function ville_client_v2(code_postal,ville_default,nom_champ)
{

var xhr = getXhr();
xhr.onreadystatechange = function()
{
	if(xhr.readyState == 4 && xhr.status == 200)
	{
	leselect = xhr.responseText;
	document.getElementById(nom_champ).innerHTML = leselect;
	}
}
xhr.open("POST","http://v3.js-immo.fr/verif.php",true);
xhr.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
xhr.send("champ=code_postalv2&type="+nom_champ+"&default="+ville_default+"&value="+code_postal);
}

/************************************************************************************
			Recup. des notes :  
/************************************************************************************/

var newsAjax=null;

<!-- Recup des notes des agences prospects -->

function recup_nb_send_bien_by_mail(id_client,id_bien) 
{
url 			= 		"http://v3.js-immo.fr/verif.php";
params			= 		"step=recup_nb_send_bien_by_mail&id_client="+id_client+"&id_bien="+id_bien;
newsAjax 		= 		new Ajax.Request( url, { method: 'post', postBody: params, onComplete: aff_recup_nb_send_bien_by_mail });
}

<!-- Afficher/Masquer les notes -->

function aff_recup_nb_send_bien_by_mail(response) 
{
overlib(response.responseText,CAPTION, 'Liste des mails envoyés envoyés à ce client',WIDTH,500,CENTER);
newsAjax=null;
}

function hide_recup_nb_send_bien_by_mail() 
{
if( newsAjax!=null ) 
{
try 
{ 
newsAjax.transport.abort(); 
newsAjax=null;
} 
catch(e) {}
}
nd();
}

function reportError() 
{
window.alert('Ajax error');
}
