function erfpopup(e)
{
  var w;

  w=window.open('','_blank','width=800,height=600,left=50,top=50');

  if (w)
  {
    w.document.open();
    w.document.write('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html><head><title>Ladiesweb ...und wann kommst Du?</title>');
    w.document.write('<SCRIPT type="text/javascript">');
    w.document.write('function resize()');
    w.document.write('{');
    w.document.write('if (document.getElementsByTagName && window.resizeBy)');
    w.document.write('{');
    w.document.write('var h=document.getElementsByTagName(\'img\')[0].offsetHeight;');
    w.document.write('var w=document.getElementsByTagName(\'img\')[0].offsetWidth;');
    w.document.write('if (window.innerHeight)');
    w.document.write('{');
    w.document.write('window.resizeBy(w-window.innerWidth,h-window.innerHeight);');
    w.document.write('}');
    w.document.write('else if (window.document.documentElement && window.document.documentElement.clientHeight)');
    w.document.write('{');
    w.document.write('window.resizeBy(w-window.document.documentElement.clientWidth,h-window.document.documentElement.clientHeight);');
    w.document.write('}');
    w.document.write('else if (window.document.body)');
    w.document.write('{');
    w.document.write('window.resizeBy(w-window.document.body.clientWidth,h-window.document.body.clientHeight);');
    w.document.write('}');
    w.document.write('}');
    w.document.write('if (document.getElementsByTagName && document.getElementsByTagName(\'img\')[0].style) document.getElementsByTagName(\'img\')[0].style.visibility=\'visible\';');
    w.document.write('}');
    w.document.write('</SCRIPT>');
    w.document.write('</head>');
    w.document.write('<body style="margin:0;padding:0;" onblur="self.close();"><img style="visibility:hidden;" onload="resize();" alt="');
    w.document.write('" onClick="self.close();" style="display:block;" src="'+this.getAttribute('href')+'"></body></html>');
    w.document.close();
    if (w.focus) { w.focus(); }
    if (e.preventDefault) e.preventDefault();
    else e.returnValue=false;

	var link=this;
    var oldhref = link.getAttribute('href'); // Safari Workaround, Safari kann kein preventDefault oder returnValue=false
    link.setAttribute('href',"javascript://");
    setTimeout(function() { link.setAttribute('href',oldhref) }, 1);
  }
}


