//
// browsercheck
if (document.layers) { browser = "nc"; }
if (document.all) { browser = "ie"; }
if (document.getElementById) { browser = "dom"; }

//
// new window
function neu(seite,breite,hoehe)
{
	var screenwidth = (screen.width/2)-(breite/2);
	var screenheight = (screen.height/2)-(hoehe/2);
	var attributes = "width="+ breite +",height="+ hoehe +",left="+ screenwidth +",top="+ screenheight +",screenX="+ screenheight +",screenY="+ screenwidth +",dependent=yes,location=no,menubar=no,resizable=no,scrollbars=no,status=no,toolbar=no";
	var neu = window.open(seite,"neu",attributes);
}

//
// imagechange
var x= new Array();
x[0]= new Image(); x[0].src="images/but_news.gif";
x[1]= new Image(); x[1].src="images/but_news_h.gif";

function wechsel(wo,was)
{
	document.images[wo].src=x[was].src;
}

// 
// formular senden
function senden (formularname)
{
	eval ("document." + formularname + ".submit();");
}
//
// formular check
function checkform(formularname)
{
    var email = eval("document." + formularname+ ".email.value");
    var atPos = email.indexOf('@');
    if (atPos > 0 && atPos != 1 && atPos != email.length-1) {
        senden (formularname);
    }
    else {
        alert ("Achtung, Sie haben keine gültige Emailadresse angegeben!");
    }
}
