
function ShowPic(aSrc, aWidth, aHeight, aTitle, aText)
{ picwin=window.open("","PicWindow","width="+aWidth+",height="+aHeight+",menubar=no,locationbar=no,resizable=yes,status=no,scrollbars=yes");
  with (picwin.document)
  { open();
    writeln("<html><head><title>"+aTitle+"</title>");
    writeln("<style type='text/css'>a {text-decoration:none;font-weight:bold;color:#000000;background-color:#C0C0C0}</style>");
    writeln("</head><body leftmargin='0' topmargin='0'>");
    writeln("<table cellpadding=0 cellspacing=0>");
    writeln("<tr><td colspan='2' style='padding-bottom:10'><img src='"+aSrc+"'></td></tr>");
    writeln("<tr><td align='left' valign='bottom'>"+aText+"</td>");
    writeln("<td align='right' valign='bottom'><a href='#' onclick='self.close()'>Schließen</a></td></tr></table>");
    writeln("</body></html>");
    close();
  }
  picwin.focus();
}

///////////////////////////////////////////////////////////////////////////////

function PopUp(ziel)
{
  var URL = ziel;
  var Name = "SMS-Ticker";
  var Fensteroptionen = "toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1";
  var Breite = 750;
  var Hoehe = 600;
  picwin=window.open(URL, 'Name', Fensteroptionen + ',width=' + Breite + ',height=' + Hoehe);
  picwin.focus();
}

function ShowPdf(aSrc, aWidth, aHeight)
{
  picwin=window.open(aSrc,"Dokument","width="+aWidth+",height="+aHeight+",menubar=no,locationbar=no,resizable=yes,status=no,scrollbars=yes");
  picwin.focus();
}

function showprint (path)
{
  if(path != undefined && path != "")
  {
    var win = window.open(path,"Druckansicht","dependent=yes,toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=750,height=550");
    win.focus();
  }
}