var popUpWin=0;

URLStr = 'about:blank';
centered = false;
function openMedia(URLStr, left, top, width, height, centered)

{
  if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }

  popUpWin = open(URLStr, 'popUpWin', 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');

  if(centered==true){

    popUpWin.moveTo((screen.width/2)-(width/2),(screen.height/2)-(height/2));

  }

}



/*

var popUpWin=0;

URLStr = '';

function openMedia(URLStr, left, top, width, height)

{

  if(popUpWin)

  {

    if(!popUpWin.closed) popUpWin.close();

  }

  popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menub ar=no,scrollbar=no,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');



  if(URLStr == '') {

	var string = 'Sie haben leider keine Ziel URL übergeben!';

  }



  else if(URLStr != ''){

	  var string = URLStr;

  }



  	popUpWin.document.write(''

	+'<link rel="stylesheet" href="xvl_style.css">'

	+'<body bgcolor="#000000">'

	+'<table width="100%" height="100%" cellspacing="1" cellpadding="0">'

	+'<tr height="45%">'

	+'<td class="stn" align="center" bgcolor="#DDDDDD">'

	+'&nbsp;'

	+'</td>'

	+'</tr>'

	+'<tr>'

	+'<td class="stn" align="center" bgcolor="#DDDDDD">'

	+string

	+'<br><br>'

	+'<a href="javascript:window.close()">Fenster Schliessen</a>'

	+'</td>'

	+'</tr>'

	+'<tr height="45%">'

	+'<td class="stn" align="center" bgcolor="#DDDDDD">'

	+'&nbsp;'

	+'</td>'

	+'</tr>'

	+'</table>'

	+'</body>');

}

*/



function popupConfirm(url, width, height) {

	window.open(url, "newsletter", "width=480,height=200");

}