function bild650x500(theURL)
{
	var breite = 650;
	var hoehe = 500;
	var posX=(screen.availWidth-breite)/2;
	var posY=(screen.availHeight-hoehe)/2;

    	window.open(theURL,"wdv","width=650,height=500,menubar=no,screenX=" + posX + ",screenY=" + posY + ",left=" + posX + ",top=" + posY);
}


function getURLParam(strParamName){
var strReturn = "";
var strHref = window.location.href;
if ( strHref.indexOf("&") > -1 ){
var strQueryString = strHref.substr(strHref.indexOf("&"));
var aQueryString = strQueryString.split("&");
for ( var iParam = 0; iParam < aQueryString.length; iParam++ ){
if (
aQueryString[iParam].indexOf(strParamName + "=") > -1 ){
var aParam = aQueryString[iParam].split("=");
strReturn = aParam[1];
break;
}
}
}
return strReturn;
}


function checkForm()
    {

                if (document.Formular.Name.value == ""){
                alert("Sie haben noch keinen Namen eingegeben.")
                document.Formular.Name.focus();
                return false;
        }


        else if (document.Formular.Mailadresse.value == ""){
                alert("Bitte geben Sie Ihre E-mail-Adresse ein.")
                document.Formular.Mailadresse.focus();
                return false;
        }

        else if (document.Formular.Nachricht.value == ""){
                alert("Bitte geben Sie eine Nachricht ein.")
                document.Formular.Nachricht.focus();
                return false;
        }

        else if (document.Formular.Mailadresse.value.indexOf ('@',0) == -1 || document.Formular.Mailadresse.value.indexOf ('.',0) == -1){
                alert("Bitte geben Sie eine gültige E-mail-Adresse ein.\n\nBeispiel: Ihrname@provider.tld")
                document.Formular.Mailadresse.select();
                document.Formular.Mailadresse.focus();
                return false;
        }
        else
        return true;
}





