function istEmail(feld) {
	// werden regular expressions unterstuetzt?
	var supported = 0;
	if (window.RegExp) {
	var tempStr = "a";
	var tempReg = new RegExp(tempStr);
	if (tempReg.test(tempStr)) supported = 1;
	}
	if (!supported) 
	return (feld.indexOf(".") > 2) && (feld.indexOf("@") > 0);
	var r1 = new RegExp("(@.*@)|(\\.\\.)|(@\\.)|(^\\.)");
	var r2 = new RegExp("^.+\\@(\\[?)[a-zA-Z0-9\\-\\.]+\\.([a-zA-Z]{2,4}|[0-9]{1,3})(\\]?)$");
	return (!r1.test(feld) && r2.test(feld));
}
function testEmail(str) {
	if (!istEmail(str)) {
	alert("Sie haben eine falsche eMail-Adresse eingegeben!\nBitte korrigieren Sie Ihre Eingabe.");
	return false;
	}
	else { return true; }
}
function open_window(datei,b,h) {
	newWindow=window.open(datei,"popup","width="+b+",height="+h+",status=no,scrollbars=yes,location=no,resizable=yes,menubar=no,toolbar=no,directories=no");
	newWindow.focus();
}
function maillink (n,d,cl) {
	document.write('<a ');
	if (cl!="") document.write('class="'+cl+'" ');
	document.write('href="mailto:' + n + '@' + d + '">');
	document.write(n + '@' + d + '</a>');
}
/* show/hide */
function showhide(elementid){
	if (document.getElementById(elementid).style.display == "none"){
		document.getElementById(elementid).style.display="block";
	} else {
		document.getElementById(elementid).style.display="none";
	}
}

function snover(b){
	document.getElementById("sn1"+b).style.backgroundImage="url()";
	document.getElementById("sn1"+b).style.backgroundColor="#ffffff";
	document.getElementById("sn2"+b).style.backgroundImage="url()";
	document.getElementById("sn2"+b).style.backgroundColor="#ffffff";
}
function snout(b){
	document.getElementById("sn1"+b).style.backgroundColor="#fafafa";
	document.getElementById("sn1"+b).style.backgroundImage="url(/bilder/bksubnavi.gif)";
	document.getElementById("sn2"+b).style.backgroundColor="#fafafa";
	document.getElementById("sn2"+b).style.backgroundImage="url(/bilder/bksubnavi.gif)";
}