// Öffnen eines separaten Informationesfensters für News
function NewsInfo(strUrl,intBreite,intHoehe)
{
   Info = window.open(strUrl,
                      "Info",
                      "innerWidth="+intBreite+","+
                      "innerHeight="+intHoehe+","+
                      "screenX=100,"+
                      "screenY=100,"+
                      "scrollbars=yes,"+
                      "resizeable=yes,"+
                      "menubar=no,"+
                      "toolbar=no,"+
                      "locationbar=no,"+
                      "personalbar=no,"+
                      "hotkeys=no,"+
                      "status=no,"+
                      "dependent=yes");
   Info.outerWidth=intBreite;
   Info.outerHeight=intHoehe;
}

// Öffnen eines separaten Fenster zum Editieren der Referentendaten
function EditReferent(strUrl,intBreite,intHoehe)
{
   Info = window.open(strUrl,
                      "EditReferent",
                      "innerWidth="+intBreite+","+
                      "innerHeight="+intHoehe+","+
                      "screenX=100,"+
                      "screenY=100,"+
                      "scrollbars=yes,"+
                      "resizeable=yes,"+
                      "menubar=no,"+
                      "toolbar=no,"+
                      "locationbar=no,"+
                      "personalbar=no,"+
                      "hotkeys=no,"+
                      "status=no,"+
                      "dependent=yes");
   Info.outerWidth=intBreite;
   Info.outerHeight=intHoehe;
}

// Öffnen eines separaten Fensters zum Editieren der Programmdaten
function EditProgramm(strUrl,intBreite,intHoehe)
{
   Info = window.open(strUrl,
                      "EditProgramm",
                      "innerWidth="+intBreite+","+
                      "innerHeight="+intHoehe+","+
                      "screenX=100,"+
                      "screenY=100,"+
                      "scrollbars=yes,"+
                      "resizeable=yes,"+
                      "menubar=no,"+
                      "toolbar=no,"+
                      "locationbar=no,"+
                      "personalbar=no,"+
                      "hotkeys=no,"+
                      "status=no,"+
                      "dependent=yes");
   Info.outerWidth=intBreite;
   Info.outerHeight=intHoehe;
}

/* Bild in einem eigenen kleinem Fenster anzeigen */
function ZeigeBild(strUrlBild)
{
   window.open(strUrlBild,"","Width=680,Height=600,screenX=100,screenY=100,resizeable=no,menubar=no,locationbar=no,hotkeys=no,status=no,dependent=yes")
}

// Ändern des Fesnterinhaltes (Menue- und Hauptfenster
function ChangeMainMenu(UrlMenu,UrlMain)
{
      top.menu.location.href=UrlMenu;
      top.main.location.href=UrlMain;
}

// Anzeige des Kalenders im separaten Fenster
function ShowCalendar(FormName,FieldName)
{
   ControlToSet = eval("document."+FormName+"."+FieldName);
   var strFeatures = "width=300,"+
                     "height=400,"+
                     "screenX=100,"+
                     "screenY=100,"+
                     "resizeable=no,"+
                     "menubar=no,"+
                     "toolbar=no,"+
                     "locationbar=no,"+
                     "personalbar=no,"+
                     "hotkeys=no,"+
                     "status=no,"+
                     "dependent=yes";
   var CalWindow = window.open("../../global/calendar.php","Calendar",strFeatures)
   CalWindow.focus();
}

// selektiertes Datum zurückschreiben
function SetDate(DATE)
{
   if(ControlToSet)
   {
      ControlToSet.value = DATE;
   }
}
