// JavaScript Document

// la function Carte2 Nécessite en input un form f2 et un select larue2 avec les options &X=477700&Y=135300 
// elle renvoie une nouvelle fenêtre 


function Carte2()
{
var urlparam="http://etat.geneve.ch/topocgi/EMapUrl.aspx?SV=CGI_COMPACT&RESULT=GETIMAGE&VL=1,8&ACTION=CENTERAT&SC=4000&";
var ruexy2=document.f2.larue2.value;
var urltot=urlparam+ruexy2;
var urltotunzoom=urltot+"&SF=1.5";
var urltotzoom=urltot+"&SF=0.5";

  child=window.open("", "", "menubar=no,alwaysRaised=yes,resizable=yes,scrollbars=yes,status=no,width=550,height=550,left=30,top=30");
  child.document.open();
  child.document.write("<html><head><title>Carte St-Jean</title></head><body>");
  child.document.write("<div align='center'><img src='");
  child.document.write(urltot);
  child.document.write("'</img>");
  child.document.write("<p><a href='");
  child.document.write(urltotunzoom);
  child.document.write("'>-</a>");
  child.document.write("&nbsp;&nbsp;<a href='javascript:window.close()'>Fermer la fen&ecirc;tre</a>&nbsp;&nbsp;");
  child.document.write("<a href='");
  child.document.write(urltotzoom);
  child.document.write("'>+</a>");
  child.document.write("</p></div>");
  child.document.write("</body></html>");

}
