function foto(p,div){ //Define arbitrary function to run desired DHTML Window widget codes
  var dd = document.getElementById(div).style;
  dd.width = "500px";
  dd.height = "375px";
  url = "imovel/pop.php";
  chave(div,'visible');

  //Função que monta a URL e chama a função AJAX
  campos = "f="+p;
  enviarForm(url, campos, div);
}
function chave(div,fun){
 document.getElementById(div).style.visibility=fun;
}
