/*
        ** external JavaScript-functions **
        by Axel Hahn * http://www.axel-hahn.de/

        Feel free to use and modify this code
        for your own page.
*/

// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Bildbetrachter
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
function Zoom(myPicture, bezirk)
{
   var oPopup;
   var iWidth=600;
   var iHeight=550;
   
// alert (myPicture );
// alert (bezirk );

   oPopup=window.open('', 'start2', 'width=' + iWidth + ',height=' + iHeight + ',scrollbars=0,status=0,menu=0,resizable=1,top=0,left=0');

   oPopup.document.open();
   oPopup.document.write("<HTML>\n");
   oPopup.document.write("<HEAD>\n");
   oPopup.document.write("  <TITLE>Bundesstadt Bonn - Wahllokale</TITLE>\n");
   oPopup.document.write("</HEAD>\n");
   oPopup.document.write('<body text="#A0A0A0" bgcolor="#000000" link="#F0C880" alink="#A08020" vlink="#F0C880">\n');

   oPopup.document.write('<div align="center">\n');  
   oPopup.document.write('<table border="0" cellspacing="0" cellpadding="0" bgcolor="#0088af">\n');   
   oPopup.document.write('<tr>\n');   
   oPopup.document.write('<td align="center">\n');   
   oPopup.document.write('<p class="headline">\n');   
   oPopup.document.write('<font color="Yellow"><b>Stimmbezirk ' + bezirk + '</b></font>\n');   
   oPopup.document.write('</p>\n');   
   oPopup.document.write('</td>\n');   
   oPopup.document.write('</tr>\n');   
   oPopup.document.write('<tr>\n');   
   oPopup.document.write('<TD background="' + myPicture + '" width="600" height="500" align="center" valign="middle"><A HREF="#" OnClick="JavaScript:self.close();">\n');
   oPopup.document.write('<img src="dl/MapWahlLokale/marker.gif" alt="" border="0">\n');   
   oPopup.document.write('</td></tr>\n');   
   oPopup.document.write('</table></div>\n');   

   oPopup.document.write('</BODY></HTML>');
   oPopup.document.write("\n\n\n<!-- this HTML code was generated with javascript -- http://www.axel-hahn.de/ -->");
   oPopup.document.close();

   if (oPopup.outerHeight) oPopup.moveTo((screen.availWidth-oPopup.outerWidth)/2, (screen.availHeight-oPopup.outerHeight)/2);
   else oPopup.moveTo((screen.availWidth-iWidth)/2, (screen.availHeight-iHeight)/2);
   oPopup.focus();
   
}

function Zoom2(myPicture, bezirk)
{
   var oPopup;
   var iWidth=600;
   var iHeight=600;
   
// alert (myPicture );
// alert (bezirk );

   oPopup=window.open(myPicture, 'start', 'width=' + iWidth + ',height=' + iHeight + ',scrollbars=0,status=0,menu=0,resizable=0,top=0,left=0');
/*   oPopup=window.open('', 'start', 'width=' + iWidth + ',height=' + iHeight + ',scrollbars=0,status=0,menu=0,resizable=1,top=0,left=0');

	oPopup.link(myPicture);
/*   oPopup.document.open();
   oPopup.document.write("<HTML>\n");
   oPopup.document.write("<HEAD>\n");
	 
   oPopup.document.write("  <TITLE>Bundesstadt Bonn - Wahllokale</TITLE>\n");
   oPopup.document.write("</HEAD>\n");
   oPopup.document.write('<body text="#A0A0A0" bgcolor="#000000" link="#F0C880" alink="#A08020" vlink="#F0C880">\n');
//self.location.href = myPicture;
   oPopup.document.write('<div align="center">\n');  

   oPopup.document.write('<form name="Navigation" action="kartenausschnitt.pl">');
   oPopup.document.write('<input name="Karte" style="position:absolute; left:0px;top:15px;z-index:1;" id="Karte" type="image" src="http://stadtplan.bonn.de/isserver/sdims/bin/wms/getMap.pl?datasource=basic&WMTVER=1.0.0&REQUEST=map&LAYERS=6&STYLES=default&SRS=EPSG%3A31492&BBOX=2582135,5623701,2582666,5624338&WIDTH=500&HEIGHT=600&FORMAT=PNG&BGCOLOR=0xffffff&TRANSPARENT=FALSE&EXCEPTIONS=INIMAGE">');

//http://stadtplan.bonn.de/isserver/sdims/bin/wms/getMap.pl?datasource=basic&WMTVER=1.0.0&REQUEST=map&LAYERS=6&STYLES=default&SRS=EPSG%3A31492&BBOX=2582135,5623701,2582666,5624338&WIDTH=500&HEIGHT=600&FORMAT=PNG&BGCOLOR=0xffffff&TRANSPARENT=FALSE&EXCEPTIONS=INIMAGE">
	 
	 
   oPopup.document.write('		<div style="position:absolute; left:245px;top:295px;z-index:2;">');
   oPopup.document.write('		<img  src="./images/marker_fett.gif" border="0" width="20" height="20" >');
   oPopup.document.write('		</div> ');
   oPopup.document.write('</form> >');


   oPopup.document.write('</BODY></HTML>');


   oPopup.document.close();

   if (oPopup.outerHeight) oPopup.moveTo((screen.availWidth-oPopup.outerWidth)/2, (screen.availHeight-oPopup.outerHeight)/2);
   else oPopup.moveTo((screen.availWidth-iWidth)/2, (screen.availHeight-iHeight)/2);
   oPopup.focus();
*/   
//   oPopup.document.close();
}
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// EOF * info@Axel-Hahn.de
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

