<!--
// browsercheck
var nn6 = (document.getElementById && !document.all)
var nn4 = (navigator.appName=="Netscape" && navigator.appVersion.charAt(0)=="4")
var ie4 = (document.all)

// alle linkrahmen entfernen
function anchorInit() {
	if (!document.getElementById) return
	var refarr = document.getElementsByTagName('a');
	for (var i = 0; i < refarr.length; i++) {
		refarr[i].onfocus = function() {
			if(this.blur)this.blur()
        }
    }
}

// mailto-replace
function noSpam(user,domain) {
	locationstring = "mailto:" + user + "@" + domain;
	window.location = locationstring;
}

// formular-feld effekt
function formfieldeffect() {
	if (document.getElementById && document.createTextNode)
	{
		var forms=document.getElementsByTagName('form');
		for (var i=0;i<forms.length;i++)
		{
			var trs=forms[i].getElementsByTagName('input');
			for(var j=0;j<trs.length;j++)
			{
				var tmp = trs[j].type
				if (tmp == "text" || tmp == "password") {
				tmpbgCol = trs[j].style.backgroundColor;
				tmpborderCol = trs[j].style.borderColor;
				trs[j].onfocus=function(){this.style.border='solid 1px #c36';this.style.backgroundColor='#fff';return false}
				trs[j].onblur=function(){this.style.border='solid 1px '+tmpborderCol;this.style.backgroundColor=tmpbgCol;return false}
				}
			}
			var trs=forms[i].getElementsByTagName('textarea');
			for(var j=0;j<trs.length;j++)
			{
				var tmp = trs[j].className
				tmpbgCol = trs[j].style.backgroundColor;
				tmpborderCol = trs[j].style.borderColor;
				trs[j].onfocus=function(){this.style.border='solid 1px #c36';this.style.backgroundColor='#fff';return false}
				trs[j].onblur=function(){this.style.border='solid 1px '+tmpborderCol;this.style.backgroundColor=tmpbgCol;return false}
			}
			var trs=forms[i].getElementsByTagName('select');
			for(var j=0;j<trs.length;j++)
			{
				var tmp = trs[j].className
				tmpbgCol = trs[j].style.backgroundColor;
				tmpborderCol = trs[j].style.borderColor;
				trs[j].onfocus=function(){this.style.border='solid 1px #c36';this.style.backgroundColor='#fff';return false}
				trs[j].onblur=function(){this.style.border='solid 1px '+tmpborderCol;this.style.backgroundColor=tmpbgCol;return false}
			}
		}
	}
}

// notiz-feld effekt
function highlightNotice() {
	if (document.getElementById && document.createTextNode)
	{
		var content=document.getElementById('IfContent');
		if (content != null) {
			var refarr=content.getElementsByTagName('p');
			for (var i=0;i<refarr.length;i++)
			{
				var tmp = refarr[i].className;
				if (tmp == "IfNotice") {
				tmpcol = refarr[i].style.backgroundColor;
				refarr[i].onmouseover=function(){this.style.border='dotted 1px #c36';this.style.backgroundColor='#fff';return false}
				refarr[i].onmouseout=function(){this.style.border='dotted 1px #069';this.style.backgroundColor=tmpcol;return false}
//				refarr[i].onclick=function(){document.location='index.php?module=misc&page=contactform';return false}
				}
			}
		}
	}
}

// bild austauschen
function switchImage(imgName, imgSrc) 
{
	if (document.images)
	{
		if (imgSrc != "none")
		{
			document.images[imgName].src = imgSrc;
		}
	}
}

// -->