function upload(URL)
{
    Fenster=window.open(URL,"upload", "menubar=no,toolbar=no,locationbar=no,directories=no,status=no,scrollbars=no,resizable=no,width=800, height=100, top=500, left=100"); 

}


function ansicht(URL)
{
window.blur();
if ( screen.width == 1024 ) {
  if (navigator.appName.indexOf("Internet Explorer") != -1) {
    Fenster=window.open(URL,"ansicht", "menubar=no,toolbar=no,locationbar=no,directories=no,status=no,scrollbars=no,resizable=no,width=" + screen.width + ", height=" + screen.height + ", top=0, left=0"); 
  }
  if (navigator.appName == "Netscape") {
    Fenster=window.open(URL,"ansicht", "menubar=no,toolbar=no,locationbar=no,directories=no,status=no,scrollbars=no,resizable=no,width=" + screen.width + ",height=" + screen.height + ", top=0, left=0");
  }
}
if ( screen.width > 1024 ) {
  if (navigator.appName.indexOf("Internet Explorer") != -1) {
    Fenster=window.open(URL,"ansicht", "menubar=no,toolbar=no,locationbar=no,directories=no,status=no,scrollbars=no,resizable=no,width=" + screen.width + ", height=768, top=20, left=0"); 
  }
  if (navigator.appName == "Netscape") {
    Fenster=window.open(URL,"ansicht", "menubar=no,toolbar=no,locationbar=no,directories=no,status=no,scrollbars=no,resizable=no,width=" + screen.width + ",height=768, top=20, left=0");
  }
}

}
function new_window()
{
    history.go(-2);
    Fenster=window.open("cws/DidSvdIA.php?sw=" + screen.width ,"","fullscreen=yes,menubar=no,toolbar=no,locationbar=no,directories=no,status=no,scrollbars=no,resizable=no,width=" + screen.width + ",height=" + screen.height + ", top=0, left=0");
    if ( ! Fenster ) {
      window.location.href='cws/nopopup.php?sw=' + screen.width
      self.locationbar.visible = false;
      self.toolbar.visible = false;
      self.statusbar.visible = false;
      self.menubar.visible = false;
    }
}

