<!--
var DHTML = false, DOM = false, MSIE4 = false, NS4 = false, OP = false;

if (document.getElementById) {
  DHTML = true;
  DOM = true;
} else {
  if (document.all) {
    DHTML = true;
    MSIE4 = true;
  } else {
    if (document.layers) {
      DHTML = true;
      NS4 = true;
    }
  }
}
if (window.opera) {
  OP = true;
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function popup(URL, Fenstername, fscroll, resizable, status, location, menubar) { 
var Breite = 640;
var Hoehe = 480; 
var AbstandVonLinks = (screen.width - Breite) / 2; 
var AbstandVonOben = (screen.height - Hoehe) / 2; 
Eigenschaften = 'height='+Hoehe+',width='+Breite+',top='+AbstandVonOben+',left='+AbstandVonLinks+',scrollbars='+fscroll+',resizable='+resizable+',status='+status+',location='+location+',menubar='+menubar+''
Fenster = window.open(URL, Fenstername, Eigenschaften) 
if (MSIE4 == true) { Fenster.window.focus(); } 
}

function auswahlship(field,wid,id,value,werft){
	window.opener.document.form.e_wid.value = wid;
	window.opener.document.form.e_wid_text.value = werft;
	window.opener.document.form[field].value = id;
	window.opener.document.form[field+"_text"].value = value;
	window.close();
}

function auswahlhafen(field,id,name,field2,field3,land,revier){
	window.opener.document.form[field+"_hid_"+field2].value = id;
	window.opener.document.form[field+"_hid_"+field2+"_text"].value = name;
	if (field3 > 0){
		window.opener.document.form[field+"_land_"+field2].value = land;
		window.opener.document.form[field+"_revier_"+field2].value = revier;
	}
	window.close();
}

function auswahlVerein(field,id,name,land,revier){
	window.opener.document.form[field+"_vid"].value = id;
	window.opener.document.form[field+"_vid_text"].value = name;
	window.close();
}
function fillField(field,value,text){

	if (value == "0"){
		window.document.form[field+"_text"].value = "Bitte eingeben";
		window.document.form[field+"_id"].value = 0;
	} else {
		window.document.form[field+"_id"].value = value;
		window.document.form[field+"_text"].value = "Bereits gewaehlt";
	}
}
//-->