var mod_savewmc_img = new Image(); mod_savewmc_img.src = ""; //var mod_savewmc_img_over = new Image(); mod_savewmc_img_over.src = ""; function mod_saveWmcKml(obj){ current_user = ""; current_password = ""; current_gui = ""; alert('Please set the meeting point by clicking the map.'); var ind = getMapObjIndexByName(mod_savewmc_target); var el = frames[mod_savewmc_target].document; el.onmousedown = mod_getMousePos; el.onmouseup = null; el.onmousemove = null; el.onmouseover = null; } function mod_getMousePos(e) { mb_getMousePos(e,mod_savewmc_target); var q = new Point(clickX,clickY); var realWorldPos = mapToReal(mod_savewmc_target,q); var el = frames[mod_savewmc_target].document; el.onmousedown = null; //alert(realWorldPos); //document.sendData.target = "_blank"; //document.sendData.action = "../javascripts/mod_insertWmcIntoDb.php"; //document.sendData.data.value = user + "____" + generalTitle + "____" + wmc + "____" + id; //document.sendData.submit(); saveWindow = open("", "save", "width=400, height=300, resizable, dependent=yes, scrollbars=yes"); saveWindow.document.open("text/html"); /* var cssLink = saveWindow.document.createElement("link"); cssLink.setAttribute("href", wfsCssUrl); cssLink.setAttribute("type", "text/css"); cssLink.setAttribute("rel", "stylesheet"); var cssTmp = saveWindow.document.getElementsByTagName("head")[0]; cssTmp.appendChild(cssLink); */ var wmc_title = "meetingpoint"; var icon = "http://wms1.ccgis.de/mapbender_dev/img/pin.png"; var str = ""; var onclick = "wmcid=window.opener.mod_savewmc('"+wmc_title+"');"; onclick += "document.sendData.action = '../javascripts/mod_insertKmlIntoDb.php?';"; onclick += "document.sendData.data.value = wmcid + '____" + realWorldPos.x + "____" + realWorldPos.y + "____"+ icon + "____';"; onclick += "document.sendData.submit();" str += "
\n"; str += "\n"; str += "\n"; str += "\n"; str += "\n"; str += "\n"; str += "\n"; str += "\n"; str += "\n"; str += "\n"; str += "\n"; str += "\n"; str += "\n"; str += "\n"; str += "\n"; str += "\n"; str += "\n"; str += "\n"; str += "\n"; str += "\n"; str += "\n"; str += "\n"; str += "\n"; str += "\n"; str += "\n"; str += "\n"; str += "\n"; str += "\n"; str += "\n"; str += "
Name
Strasse
PLZ
Ort
Webseite
Beschreibung
\n"; str += "\n"; str += "
"; saveWindow.document.write(str); saveWindow.document.close(); }