Index: trunk/data/mapbender/http/nav/alkisnav_adr.htm
===================================================================
--- trunk/data/mapbender/http/nav/alkisnav_adr.htm	(revision 66)
+++ trunk/data/mapbender/http/nav/alkisnav_adr.htm	(revision 86)
@@ -19,10 +19,18 @@
 		var gem = "0";
 		if(arr[0] == "gemeinde") {gem = arr[1];}
-		// aktueller EPSG-Code der GUI  ++ funktioniert noch nicht ++
-		var ind = parent.parent.parent.getMapObjIndexByName("mapframe1");
-		epsg = parent.parent.parent.mb_mapObj[ind].epsg;
+		// aktueller EPSG-Code
+		function sendGuiEpsg () {
+			var ind = parent.parent.getMapObjIndexByName("mapframe1");
+			var epsg = parent.parent.mb_mapObj[ind].getSRS();
+			document.forms[0].epsg.value = epsg;
+		}
+		function validate(){
+			sendGuiEpsg();
+			document.forms[0].gkz.value = gkz;
+			document.forms[0].gemeinde.value = gem;
+		}
 	</script>
 </head>
-<body>
+<body onload="javascript:validate();">
 
 <div id='tabs'>
@@ -38,39 +46,37 @@
 
 <form class='nav' name='AdrGazetteerFrame' onsubmit='return validate()' target='AdrResultFrame' action='alkisnav_adr.php'>
-<script type="text/javascript" language="JavaScript">
-		document.writeln("<input name='gkz' type='hidden' value='" + gkz + "'>");
-		document.writeln("<input name='gemeinde' type='hidden' value='" + gem + "'>");
-		document.writeln("<input name='epsg' type='hidden' value='" + epsg + "'>");
-</script>
-<input class='textfield' name='street' type='text' size='22' title='Stra&szlig;enname (Anfang)'>
-<input class='sbutton' type='submit' value='ok'>
-<br>
-<span class="letter" onclick="document.forms[0].street.value='A'; document.forms[0].submit(); document.forms[0].street.value='';">A</span>
-<span class="letter" onclick="document.forms[0].street.value='B'; document.forms[0].submit(); document.forms[0].street.value='';">B</span>
-<span class="letter" onclick="document.forms[0].street.value='C'; document.forms[0].submit(); document.forms[0].street.value='';">C</span>
-<span class="letter" onclick="document.forms[0].street.value='D'; document.forms[0].submit(); document.forms[0].street.value='';">D</span>
-<span class="letter" onclick="document.forms[0].street.value='E'; document.forms[0].submit(); document.forms[0].street.value='';">E</span>
-<span class="letter" onclick="document.forms[0].street.value='F'; document.forms[0].submit(); document.forms[0].street.value='';">F</span>
-<span class="letter" onclick="document.forms[0].street.value='G'; document.forms[0].submit(); document.forms[0].street.value='';">G</span>
-<span class="letter" onclick="document.forms[0].street.value='H'; document.forms[0].submit(); document.forms[0].street.value='';">H</span>
-<span class="letter" onclick="document.forms[0].street.value='I'; document.forms[0].submit(); document.forms[0].street.value='';">I</span>
-<span class="letter" onclick="document.forms[0].street.value='J'; document.forms[0].submit(); document.forms[0].street.value='';">J</span>
-<span class="letter" onclick="document.forms[0].street.value='K'; document.forms[0].submit(); document.forms[0].street.value='';">K</span>
-<span class="letter" onclick="document.forms[0].street.value='L'; document.forms[0].submit(); document.forms[0].street.value='';">L</span>
-<span class="letter" onclick="document.forms[0].street.value='M'; document.forms[0].submit(); document.forms[0].street.value='';">M</span>
-<span class="letter" onclick="document.forms[0].street.value='N'; document.forms[0].submit(); document.forms[0].street.value='';">N</span>
-<br>
-<span class="letter" onclick="document.forms[0].street.value='O'; document.forms[0].submit(); document.forms[0].street.value='';">O</span>
-<span class="letter" onclick="document.forms[0].street.value='P'; document.forms[0].submit(); document.forms[0].street.value='';">P</span>
-<span class="letter" onclick="document.forms[0].street.value='Q'; document.forms[0].submit(); document.forms[0].street.value='';">Q</span>
-<span class="letter" onclick="document.forms[0].street.value='R'; document.forms[0].submit(); document.forms[0].street.value='';">R</span>
-<span class="letter" onclick="document.forms[0].street.value='S'; document.forms[0].submit(); document.forms[0].street.value='';">S</span>
-<span class="letter" onclick="document.forms[0].street.value='T'; document.forms[0].submit(); document.forms[0].street.value='';">T</span>
-<span class="letter" onclick="document.forms[0].street.value='U'; document.forms[0].submit(); document.forms[0].street.value='';">U</span>
-<span class="letter" onclick="document.forms[0].street.value='V'; document.forms[0].submit(); document.forms[0].street.value='';">V</span>
-<span class="letter" onclick="document.forms[0].street.value='W'; document.forms[0].submit(); document.forms[0].street.value='';">W</span>
-<span class="letter" onclick="document.forms[0].street.value='X'; document.forms[0].submit(); document.forms[0].street.value='';">X</span>
-<span class="letter" onclick="document.forms[0].street.value='Y'; document.forms[0].submit(); document.forms[0].street.value='';">Y</span>
-<span class="letter" onclick="document.forms[0].street.value='Z'; document.forms[0].submit(); document.forms[0].street.value='';">Z</span>
+	<input name='gkz' type='hidden'>
+	<input name='gemeinde' type='hidden' >
+	<input name='epsg' type='hidden'>
+	<input class='textfield' name='street' type='text' size='22' title='Stra&szlig;enname (Anfang)'>
+	<input class='sbutton' type='submit' value='ok'>
+	<br>
+	<span class="letter" onclick="sendGuiEpsg(); document.forms[0].street.value='A'; document.forms[0].submit();">A</span>
+	<span class="letter" onclick="sendGuiEpsg(); document.forms[0].street.value='B'; document.forms[0].submit();">B</span>
+	<span class="letter" onclick="sendGuiEpsg(); document.forms[0].street.value='C'; document.forms[0].submit();">C</span>
+	<span class="letter" onclick="sendGuiEpsg(); document.forms[0].street.value='D'; document.forms[0].submit();">D</span>
+	<span class="letter" onclick="sendGuiEpsg(); document.forms[0].street.value='E'; document.forms[0].submit();">E</span>
+	<span class="letter" onclick="sendGuiEpsg(); document.forms[0].street.value='F'; document.forms[0].submit();">F</span>
+	<span class="letter" onclick="sendGuiEpsg(); document.forms[0].street.value='G'; document.forms[0].submit();">G</span>
+	<span class="letter" onclick="sendGuiEpsg(); document.forms[0].street.value='H'; document.forms[0].submit();">H</span>
+	<span class="letter" onclick="sendGuiEpsg(); document.forms[0].street.value='I'; document.forms[0].submit();">I</span>
+	<span class="letter" onclick="sendGuiEpsg(); document.forms[0].street.value='J'; document.forms[0].submit();">J</span>
+	<span class="letter" onclick="sendGuiEpsg(); document.forms[0].street.value='K'; document.forms[0].submit();">K</span>
+	<span class="letter" onclick="sendGuiEpsg(); document.forms[0].street.value='L'; document.forms[0].submit();">L</span>
+	<span class="letter" onclick="sendGuiEpsg(); document.forms[0].street.value='M'; document.forms[0].submit();">M</span>
+	<span class="letter" onclick="sendGuiEpsg(); document.forms[0].street.value='N'; document.forms[0].submit();">N</span>
+	<br>
+	<span class="letter" onclick="sendGuiEpsg(); document.forms[0].street.value='O'; document.forms[0].submit();">O</span>
+	<span class="letter" onclick="sendGuiEpsg(); document.forms[0].street.value='P'; document.forms[0].submit();">P</span>
+	<span class="letter" onclick="sendGuiEpsg(); document.forms[0].street.value='Q'; document.forms[0].submit();">Q</span>
+	<span class="letter" onclick="sendGuiEpsg(); document.forms[0].street.value='R'; document.forms[0].submit();">R</span>
+	<span class="letter" onclick="sendGuiEpsg(); document.forms[0].street.value='S'; document.forms[0].submit();">S</span>
+	<span class="letter" onclick="sendGuiEpsg(); document.forms[0].street.value='T'; document.forms[0].submit();">T</span>
+	<span class="letter" onclick="sendGuiEpsg(); document.forms[0].street.value='U'; document.forms[0].submit();">U</span>
+	<span class="letter" onclick="sendGuiEpsg(); document.forms[0].street.value='V'; document.forms[0].submit();">V</span>
+	<span class="letter" onclick="sendGuiEpsg(); document.forms[0].street.value='W'; document.forms[0].submit();">W</span>
+	<span class="letter" onclick="sendGuiEpsg(); document.forms[0].street.value='X'; document.forms[0].submit();">X</span>
+	<span class="letter" onclick="sendGuiEpsg(); document.forms[0].street.value='Y'; document.forms[0].submit();">Y</span>
+	<span class="letter" onclick="sendGuiEpsg(); document.forms[0].street.value='Z'; document.forms[0].submit();">Z</span>
 </form>
 
