
function PopUpOnload()
{
    var URL = "kleinbonum.html";
    var Name = "popup";
    var Fensteroptionen = "toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0";
    var Breite = 410;
    var Hoehe = 540;
    var popuponloadbonum = window.open(URL, 'Name', Fensteroptionen + ',width=' + Breite + ',height=' + Hoehe);
	popuponloadbonum.focus();
}

function chkFormular()
{
 if(document.form.adresse_newsletter.value == "")  {
   alert("Bitte gebe deine Email-Adresse an!");
   document.form.adresse_newsletter.focus();
   return false;
  }
}


function checkEmail(adresse_newsletter) {
if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(adresse_newsletter)){
return (true)
}
alert("Ungültige Email-Adresse. Bitte versuche es erneut!!")
return (false)
}



function popup(url,w,h)
{
fenster = window.open (url,'Fenster','width='+w+',height=310,toolbar=no,status=no,menubar=no,location=no,scrollbars=yes');
fenster.moveTo(100,100);
fenster.focus();
}
// -->


function popup_review(url,w,h)
{
fenster_admin = window.open (url,'Fenster','width='+w+',height='+h+',toolbar=no,status=no,menubar=no,location=no,scrollbars=yes');
fenster_admin.focus();
}


var popbackground="black" //specify backcolor or background image for pop window
var windowtitle="Assignment - Media"  //pop window title

function detectexist(obj){
return (typeof obj !="undefined")
}

function jkpopimage(imgpath, popwidth, popheight, textdescription){

function getpos(){
leftpos=(detectexist(window.screenLeft))? screenLeft+document.body.clientWidth/2-popwidth/2 : detectexist(window.screenX)? screenX+innerWidth/2-popwidth/2 : 0
toppos=(detectexist(window.screenTop))? screenTop+document.body.clientHeight/2-popheight/2 : detectexist(window.screenY)? screenY+innerHeight/2-popheight/2 : 0
if (window.opera){
leftpos-=screenLeft
toppos-=screenTop
}
}

getpos()
var winattributes='width='+popwidth+',height='+popheight+',resizable=yes,left='+leftpos+',top='+toppos
var bodyattribute=(popbackground.indexOf(".")!=-1)? 'background="'+popbackground+'"' : 'bgcolor="'+popbackground+'"'
if (typeof jkpopwin=="undefined" || jkpopwin.closed)
jkpopwin=window.open("","",winattributes)
else{
//getpos() //uncomment these 2 lines if you wish subsequent popups to be centered too
//jkpopwin.moveTo(leftpos, toppos)
jkpopwin.resizeTo(popwidth, popheight+30)
}
jkpopwin.document.open()
jkpopwin.document.write('<html><title>'+windowtitle+'</title><body '+bodyattribute+'><div align=center><img src="'+imgpath+'" style="margin-bottom: 0.5em"><br><font style=\"font-family:Verdana; font-size:11px; color:#7FA3CF; text-decoration:none;\">'+textdescription+'</font></div></body></html>')
jkpopwin.document.close()
jkpopwin.focus()
}


function checkkontakt()
{
 if(document.Formular.email_name.value == "")  {
   alert("Bitte gebe deinen Namen ein!");
   document.Formular.email_name.focus();
   return false;
  }
 if(document.Formular.email_email.value == "") {
   alert("Bitte gebe deine Email an!");
   document.Formular.email_email.focus();
   return false;
  }
  if(document.Formular.email_text.value == "") {
   alert("Willst du uns denn gar nichts schreiben?");
   document.Formular.email_text.focus();
   return false;
  }
  if(document.Formular.email_email.value != "") {
  if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(document.Formular.email_email.value)){
return (true)
}
else{
alert("Ungültige Email-Adresse!")
return (false)
}
}
}

