// JavaScript Document

var MWin

function CloseMWin()
{ if (typeof MWin == "object")
  { if (!MWin.closed)
    { MWin.close();
	}
  }
}

function ShowWin(Which, x, y, check)
{ var URL;
  
  if (Which.charAt(0) == "*")
  { URL = "popup/" + Which.slice(1);
  }
  else
  { URL = Which;
  }
  if (check) { 
  var Pars = "resizable=yes,scrollbars=yes,menubar=yes,status=yes,toolbar=yes,location=yes";
  LWin = window.open (URL, "LWin", Pars);
  }
  else {
	  CloseMWin();
	  if (x==undefined) {
	  var Pars = "height=550, width=450 ,resizable=yes,scrollbars=yes";
	  MWin = window.open(URL, "MWin", Pars);
	  } else {
		  var Pars = "height="+x+", width="+y+" ,resizable=yes,scrollbars=yes";
	  MWin = window.open(URL, "MWin", Pars);
	  };
	};
}

function ShowWinAnfahrt(Which, x, y, check)
{ var URL;
  
  if (Which.charAt(0) == "*")
  { URL = "popup/" + Which.slice(1);
  }
  else
  { URL = Which;
  }
  if (check) { 
  var Pars = "resizable=yes,scrollbars=yes,menubar=yes,status=yes,toolbar=yes,location=yes";
  LWin = window.open (URL, "LWin", Pars);
  }
  else {
	  CloseMWin();
	  if (x==undefined) {
	  var Pars = "height=650, width=850 ,resizable=yes,scrollbars=no";
	  MWin = window.open(URL, "MWin", Pars);
	  } else {
		  var Pars = "height="+x+", width="+y+" ,resizable=yes,scrollbars=no";
	  MWin = window.open(URL, "MWin", Pars);
	  };
	};
}