function myPrintPopup(pDestination, pWinname) 
{
    var vWidth=650;
    var vHeight=470;
    var vLeft=250;
    var vTop=75;

    if (screen)
    {
        vWidth = screen.width;
	 
        if (vWidth > 850)
	        vWidth = 850;
	 
        vHeigth = screen.width / 2;

	    if (vHeight > 520)
	        vHeigth = 520;
  
        if ((vLeft + vWidth) > screen.width)
		    vLeft = screen.width - vWidth - 10;	  
  
        if ((vTop + vHeight) > screen.height)
		    vTop = screen.height - vHeight - 10;	      }
	
    //Dirty hot fix -> ToDo: implement clear solution    
    path = "http://www.klack.de/";
    
    nWindow = window.open (path + pDestination,pWinname,'width='+vWidth+',height='+vHeight+',resizable=yes,scrollbars=yes,toolbar=yes,Left='+vLeft+',Top='+vTop    +',status=no,directories=no,menubar=yes,location=tabelle');
    
    nWindow.self.focus();
}

