// Javascript für Gauss-Krüger-Koordinaten
function openWindowGIS(strURL) {
  var width = screen.width;
  var height = screen.height;
  var URL;
  var strWinPar = "";
  if ((width == 640) && (height == 480)) {
    URL = strURL + "&res=1";
    strWinPar = "width=" + 600 + ",height=" + 400 + ",menubar=no,resizable=yes,status=no,left=0,top=0";

  } else {
    if ((width <= 800) && (height <= 600)) {
      URL = strURL + "&res=1";
      strWinPar = "width=" + 700 + ",height=" + 500 + ",menubar=no,resizable=yes,status=no,left=0,top=0";
    } else {
      if ((width <= 1024) && (height <= 768)) {
        URL = strURL + "&res=2";
        strWinPar = "width=" + 900 + ",height=" + 550 + ",menubar=no,resizable=yes,status=no,left=10,top=10";
      } else {
        if ((width <= 1280) && (height <= 1024)) {
          URL = strURL + "&res=3";
          strWinPar = "width=" + 1000 + ",height=" + 700 + ",menubar=no,resizable=yes,status=no,left=10,top=10";
        } else {
          URL = strURL + "&res=4";
          strWinPar = "width=" + 1140 + ",height=" + 785 + ",menubar=no,resizable=yes,status=no,left=10,top=10";
        }
      }
    }
  }
  if (strWinPar != "") {
    GISWin = window.open(URL, 'GIS', strWinPar);
    GISWin.focus();
  }
}

function openWindow(theURL,winName,features) {
  window.open(theURL,winName,features);
}
