<!--
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 auswahlhafen2(field,id,name,field2,field3,land,revier){
	
		window.opener.document.getElementById(field+"_hid_"+field2).value = id;
		window.opener.document.getElementById(field+"_hid_"+field2+"_text").value = name;
	
	if (field3 > 0){
		window.opener.document.getElementById(field+"_land_"+field2).value = land;
		window.opener.document.getElementById(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";
	}
}
function hideInput(divid,inputfield){
	
	if (inputfield==''){
		document.getElementById(''+divid+'').style.visibility="hidden";
	}
	
	if (document.getElementById(''+inputfield+'').value == ""){
		document.getElementById(''+divid+'').style.visibility="hidden";
		document.getElementById(''+inputfield+'').value="Schreibe Deinen Kommentar";
	}
}
function showInput(divid,inputfield){
	document.getElementById(''+divid+'').style.visibility="visible";
	
	if (document.getElementById(''+inputfield+'').value == "Schreibe Deinen Kommentar"){
		document.getElementById(''+inputfield+'').value="";
	}
	if (document.getElementById(''+inputfield+'').value == "Schreibe Deine Antwort"){
		document.getElementById(''+inputfield+'').value="";
	}
}
function showHide(divid){
	
	document.getElementById(''+divid+'').style.visibility="visible";
	
}

function tbsize(field) {
	line = field.value.split('\n');
	zeile=0;
	for (x=0;x < line.length; x++) {
		 if (line[x].length >= field.cols){
			 zeile+= Math.floor(line[x].length/field.cols);
		 }
	 }
	zeile+= line.length;
	if (zeile > field.rows){
		field.rows = zeile;
	}
}



var browserName=navigator.appName;
var browserVer=parseInt(navigator.appVersion);
var version="";
var msie4=(browserName=="Microsoft Internet Explorer"&&browserVer>=4);
if((browserName=="Netscape"&&browserVer>=3)||msie4||browserName=="Konqueror"||browserName=="Opera"){version="n3";}else{version="n2";}
function blurLink(theObject){if(msie4){theObject.blur();}}
function decryptCharcode(n,start,end,offset){n=n+offset;if(offset>0&&n>end){n=start+(n-end-1);}else if(offset<0&&n<start){n=end-(start-n-1);}
return String.fromCharCode(n);}
function decryptString(enc,offset){var dec="";var len=enc.length;for(var i=0;i<len;i++){var n=enc.charCodeAt(i);if(n>=0x2B&&n<=0x3A){dec+=decryptCharcode(n,0x2B,0x3A,offset);}else if(n>=0x40&&n<=0x5A){dec+=decryptCharcode(n,0x40,0x5A,offset);}else if(n>=0x61&&n<=0x7A){dec+=decryptCharcode(n,0x61,0x7A,offset);}else{dec+=enc.charAt(i);}}
return dec;}
function linkTo_Crypt(s){location.href=decryptString(s,-2);}
//-->
