var  envoi = false ;
function  affiche_photo(x) {
	var chemin ='defile.php?id='+x ;
	envoi = window.open(chemin,'PHOTOS','height=500,width=600');
}
function PopupImage(img) {
        titre="Locations agences immobilières yvelines Belle Issue, 78 290 Croissy sur Seine";
        w=open("",'image','width=400,height=400,toolbar=no,scrollbars=no,resizable=yes');
        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 onClick='window.close();'>");
        w.document.write("");
        w.document.write("</BODY></HTML>");
        w.document.close();
}
function retour() {
	window.history.back();
}

// fonbction  disabled
function pocheck(){
	var nom  = document.form.nom.value.replace(/(^\s*)|(\s*$)/g,''); 
	//var prenom  = document.form.prenom.value.replace(/(^\s*)|(\s*$)/g,''); 
	var email  = document.form.email.value.replace(/(^\s*)|(\s*$)/g,'');
	var phone  = document.form.phone.value.replace(/(^\s*)|(\s*$)/g,''); 	 	

if (nom!=''	&& email!='' && phone!='' && document.form.control.value!=''){
document.form.envoi.disabled=false; 
	}
else{
document.form.envoi.disabled=true; 	
}
}

