<!--

var Fenster = null;

function neuesFenster(meineSeite,meinName,w,h,scroll) {
	LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
	settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
	Fenster = window.open(meineSeite,meinName,settings)
	}

function applyPopups()
{
  a = document.getElementsByTagName("a");

  for(i=0; i<a.length; i++)
  {
    if(a[i].getAttribute("rel") && a[i].getAttribute("rel") == "popupi")
    {
      a[i].onclick = function()
      {
        url = this.getAttribute("href");
        window.open(url,'popup','width=512,height=418');
        return false;
      }
    }
    if(a[i].getAttribute("rel") && a[i].getAttribute("rel") == "popupv")
    {
      a[i].onclick = function()
      {
        url = this.getAttribute("href");
        window.open(url,'popup','width=320,height=288');
        return false;
      }
    }
  }
}
 
window.onload = applyPopups;
//-->