function accPopup(theURL,winName,features) {
		newwindow=window.open(theURL,winName,features);
		if (window.focus) {newwindow.focus()}
		return false;
}

function swfPopup(theURL,winName,theW,theH) {
		//var theT = ',top='+(Math.floor((screen.availHeight-eval(theH)-10)/2));
		//var theL = ',left='+(Math.floor((screen.availWidth-eval(theW))/2));
		var theT = ',top=20'; var theL = ',left=20';
		var features = 'scrollbars=yes,width='+theW+',height='+theH+theT+theL;
		newwindow=window.open(theURL,winName,features);
		if (window.focus) {newwindow.focus()}
}

function openPic(thePic,imageWidth,imageHeight,alt) {
	newWindow = window.open("","newWindow","width="+imageWidth+",height="+imageHeight+",scrollbars=no,left=20,top=20");
	newWindow.document.open();
	newWindow.document.write('<html><head><title>'+alt+'</title><style type="text/css"><!--body {margin:0;} --></style></head><body onblur="self.close()">'); 
	newWindow.document.write('<img src=\"'+thePic+'\" width='+imageWidth+' height='+imageHeight+' title=\"'+alt+'\" alt=\"'+alt+'\">');
	newWindow.document.write('</body></html>');
	newWindow.document.close();
	newWindow.focus();
	return false;
}

function validateEmailString()
{
  var frm = document.forms["editForm"];
  var e = frm.anmeldungsempfaenger.value;
  var ats = e.split('@'); ats = ats.length-1;
  var commas = e.split(', '); commas = commas.length;
  if(ats != commas)
  {
    alert('Die E-Mail-Adressen der Anmeldungsempfänger sind offenbar nicht korrekt formatiert. Bitte trennen Sie die einzelnen Adressen durch ein Komma mit folgendem Leerzeichen.');
    return false;
  }
  else
  {
    return true;
  }
}