<!-- 
// JavaScript Basics
function clearSearchstring() {
	if (document.Suche.Searchstring.value == "Suche") {
		document.Suche.Searchstring.value="";
	}
}

function checkform() { 
	if(document.newslettereintragen.email.value == "")  { 
		alert("Bitte tragen Sie zuerst Ihre E-Mail Adresse ein."); 
		document.newslettereintragen.email.focus(); 
		return false; 
	} 
} 

function callnewsletterabo() { 
	if(document.newslettereintragen.email.value == "")  { 
		alert("Bitte tragen Sie zuerst Ihre E-Mail Adresse ein."); 
		document.newslettereintragen.email.focus(); 
	} 
	else { 
		document.newslettereintragen.submit(); 
	} 
} 

function opennewsletterabo() { 
	var uri = 'newsletterabo.php?email=' + document.newslettereintragen.email.value; 
	fenster = window.open(uri,'newsletterabo','width=600,height=490,resizable=yes,scrollbars=no,toolbar=no,location=no,directorie=no,status=no,menubar=no'); 
	fenster.focus();
} 

function imgon(image) {
        if (document.images) {
             var src = image.src;
             var offstring = src.lastIndexOf("off");
             if (offstring != -1) {
                var newsrc = src.substring(0,offstring) + "on";
                image.src = newsrc + ".gif";
               }
         }
}

function imgoff(image) {
         if (document.images) {
              var src = image.src;
              var onstring = src.lastIndexOf("on");
              var aktstring = src.lastIndexOf("_akt");
              if (onstring != -1) {
                 var newsrc = src.substring(0,onstring) + "off";  
                 image.src = newsrc + ".gif"; 
             }
              if (aktstring != -1) {
                 var newsrc = src.substring(0,aktstring) + "_off";  
                 image.src = newsrc + ".gif"; 
             }
        }
}

function jpgon(image) {
        if (document.images) {
             var src = image.src;
             var offstring = src.lastIndexOf("off");
             if (offstring != -1) {
                var newsrc = src.substring(0,offstring) + "on";
                image.src = newsrc + ".jpg";
               }
         }
}

function jpgoff(image) {
         if (document.images) {
              var src = image.src;
              var onstring = src.lastIndexOf("on");
              var aktstring = src.lastIndexOf("_akt");
              if (onstring != -1) {
                 var newsrc = src.substring(0,onstring) + "off";  
                 image.src = newsrc + ".jpg"; 
             }
              if (aktstring != -1) {
                 var newsrc = src.substring(0,aktstring) + "_off";  
                 image.src = newsrc + ".jpg"; 
             }
        }
}

function imgakt(image) {
        if (document.images) {
             var src = image.src;
             var onstring = src.lastIndexOf("on");
             if (onstring != -1) {
                var newsrc = src.substring(0,onstring) + "akt";
                image.src = newsrc + ".gif";
               }
         }
}

function popup(ziel,fenstername,w,h) {
	fenster = window.open(ziel,fenstername,'width=' + w + ',height=' + h + ',resizable=yes,scrollbars=yes,toolbar=no,location=no,directorie=no,status=no,menubar=no');
	fenster.focus();
}

function popupallbars(ziel,fenstername,w,h) {
	fenster = window.open(ziel,fenstername,'width=' + w + ',height=' + h + ',resizable=yes,scrollbars=yes,toolbar=yes,location=yes,directorie=no,status=yes,menubar=yes');
	fenster.focus();
}

function popupnobars(ziel,fenstername,w,h) {
	fenster = window.open(ziel,fenstername,'width=' + w + ',height=' + h + ',resizable=yes,scrollbars=no,toolbar=no,location=no,directorie=no,status=no,menubar=no'); 
	fenster.focus();
}

function highlightmenu(ElementById) {
	if (document.getElementById) {
		oldColor = document.getElementById(ElementById).bgColor;
		document.getElementById(ElementById).bgColor = '#3C6FA2';
		document.getElementById(ElementById).style.cursor = 'pointer';
	}
}

function oldmenu(ElementById) {
	if (document.getElementById) {
		document.getElementById(ElementById).bgColor = oldColor
//		document.getElementById(ElementById).bgColor = '#003366'
	}
}

function clickmenu(ElementById) {
	if (document.getElementById) {
		document.getElementById(ElementById).bgColor = '#99CCFF';
	}
}

function highlightlink(ElementById) {
	if (document.getElementById) {
		oldColor = document.getElementById(ElementById).style.color;
		document.getElementById(ElementById).style.color = '#ff9933';
		document.getElementById(ElementById).style.textDecoration = 'underline';
	}
}

function unhighlightlink(ElementById) {
	if (document.getElementById) {
		document.getElementById(ElementById).style.color = oldColor;
		document.getElementById(ElementById).style.textDecoration = 'none';
	}
}

function showdiv(ElementById) {
	if (document.getElementById) {
		document.getElementById(ElementById).style.visibility = 'visible';
	} else {
	if (document.all) {
		document.all(ElementById).style.visibility = 'visible';
	}
	}
}

function hidediv(ElementById) {
	if (document.getElementById) {
		document.getElementById(ElementById).style.visibility = 'hidden';
	}
}

function getemail(csrambledmail) {
	var emailadress = "";
	emailadress = csrambledmail;
	emailadress = emailadress.replace(/#at#/,"@");
	emailadress = emailadress.replace(/#dot#/,".");
	return emailadress;
}

function hnav(ElementById) {
	if (document.getElementById) {
		oldColor = document.getElementById(ElementById).bgColor;
		document.getElementById(ElementById).style.backgroundColor = '#C7E4FD';
		document.getElementById(ElementById).style.borderColor = '#0066CC';
		document.getElementById(ElementById).style.cursor = 'pointer';
	}
}

function onav(ElementById) {
	if (document.getElementById) {
		document.getElementById(ElementById).style.backgroundColor = oldColor;
		document.getElementById(ElementById).style.borderColor = '#D2EBFF';
	}
}

function hnavmousedown(ElementById) {
	if (document.getElementById) {
		//oldColor = document.getElementById(ElementById).bgColor
		//document.getElementById(ElementById).bgColor = '#A7CEF5';
		document.getElementById(ElementById).style.backgroundColor = '#A7CEF5';
		document.getElementById(ElementById).style.cursor = 'pointer';
	}
}

function hnavmouseup(ElementById) {
	if (document.getElementById) {
		//oldColor = document.getElementById(ElementById).bgColor
		document.getElementById(ElementById).style.backgroundColor = '#F3FBFF';
		document.getElementById(ElementById).style.cursor = 'pointer';
	}
}

function StringChange(str_Inputstring, str_StringToChange, str_ChangeString) {
	var str_Output = str_Inputstring;
	var Zaehler = 1;
	do {
		str_Output = str_Output.replace(str_StringToChange,str_ChangeString);
		Zaehler++;
	}
	while (str_Output.indexOf(str_StringToChange) != -1 && Zaehler <= 10000);

	return str_Output;
}

function explode(str_Trennzeichen, str_String) {
	//Wandelt eine Zeichenkette in ein Array um. Trennung anhand von str_Trennzeichen
	var str_Output = str_String;
	str_Output = str_String.split(str_Trennzeichen);
	return str_Output;
}

function implode(str_Trennzeichen, arr_Array) {
	//Wandelt ein Array in eine Zeichenkette um. Trennung anhand von str_Trennzeichen
	//Wenn der Parameter arr_Array kein Array sondern ein String ist wird dieser wieder zurückgegeben
	var str_Output = "";
	if (typeof arr_Array == "string") {
		str_Output = arr_Array;
	} else {
		str_Output = arr_Array.join(str_Trennzeichen);
	}
	return str_Output;
}

// -->
