        function display(URL,x,y){
                if ((URL.indexOf("element=hin",0) > 0)||(URL.indexOf("element=rueck",0) > 0)) {
                        URL = URL + "&element1=dep_d&element2=dep_m";
                        xx = escape(document.st.dep_d.selectedIndex+1);
                        URL = URL + "&date1=" + xx ;
                        var dep_m = document.st.dep_m;
                        xx = escape(dep_m.options[dep_m.selectedIndex].value);
                        //xx = escape(document.st.dep_m.selectedIndex+1);
                        URL = URL + "." + xx ;
                        }
                if (URL.indexOf("element=rueck",0) > 0) {
                        URL = URL + "&element1=arr_d&element2=arr_m";
                        xx = escape(document.st.arr_d.selectedIndex+1);
                        URL = URL + "&date2=" + xx ;
                        var arr_m = document.st.arr_m;
                        xx = escape(arr_m.options[arr_m.selectedIndex].value);
                        //xx = escape(document.st.arr_m.selectedIndex+1);
                        URL = URL + "." + xx ;
                        }

                if ((URL.indexOf("element=multi1",0) > 0)) {
                        URL = URL + "&element1=dep_d&element2=dep_m";
                        xx = escape(document.st.dep_d.selectedIndex+1);
                        URL = URL + "&date1=" + xx ;
                        xx = escape(document.st.dep_m.selectedIndex+1);
                        URL = URL + "." + xx ;

                        URL = URL + "&element1=dep_d1&element2=dep_m1";
                        xx = escape(document.st.dep_d1.selectedIndex+1);
                        URL = URL + "&date2=" + xx ;
                        xx = escape(document.st.dep_m1.selectedIndex+1);
                        URL = URL + "." + xx ;
                        }
                if ((URL.indexOf("element=multi2",0) > 0)) {
                        URL = URL + "&element1=dep_d1&element2=dep_m1";
                        xx = escape(document.st.dep_d1.selectedIndex+1);
                        URL = URL + "&date1=" + xx ;
                        xx = escape(document.st.dep_m1.selectedIndex+1);
                        URL = URL + "." + xx ;

                        URL = URL + "&element1=dep_d2&element2=dep_m2";
                        xx = escape(document.st.dep_d2.selectedIndex+1);
                        URL = URL + "&date2=" + xx ;
                        xx = escape(document.st.dep_m2.selectedIndex+1);
                        URL = URL + "." + xx ;
                        }
                if ((URL.indexOf("element=multi3",0) > 0)) {
                        URL = URL + "&element1=dep_d2&element2=dep_m2";
                        xx = escape(document.st.dep_d2.selectedIndex+1);
                        URL = URL + "&date1=" + xx ;
                        xx = escape(document.st.dep_m2.selectedIndex+1);
                        URL = URL + "." + xx ;

                        URL = URL + "&element1=dep_d3&element2=dep_m3";
                        xx = escape(document.st.dep_d3.selectedIndex+1);
                        URL = URL + "&date2=" + xx ;
                        xx = escape(document.st.dep_m3.selectedIndex+1);
                        URL = URL + "." + xx ;
                        }
				if (URL.indexOf("min=",0) > 0) {
					xx = escape(document.st.min_an.value);
					if (URL.indexOf("element=rueck",0) > 0) {xx = escape(document.st.min_ab.value);}
					URL = URL + "&min_date=" + xx ;
					}
				if (URL.indexOf("max=",0) > 0) {
					xx = escape(document.st.max_an.value);
					if (URL.indexOf("element=rueck",0) > 0) {xx = escape(document.st.max_ab.value);}
					URL = URL + "&max_date=" + xx ;
					}

                if (URL.indexOf("calendar",0) > 0){
                        // var kurve = window.open(URL, 'kurve', 'width='+x+',height='+y+',resizable=yes,scrollbars=no,toolbar=no,status=no,directories=no,menubar=no');
                        var kurve = window.open(URL, 'kurve', 'width=230,height=130,resizable=yes,scrollbars=no,toolbar=no,status=no,directories=no,menubar=no');
                } else {
                        var kurve = window.open(URL, 'kurve', 'width='+x+',height='+y+',resizable=yes,scrollbars=yes,toolbar=no,status=no,directories=no,menubar=no');
                }
//              var kurve = window.open('', 'kurve', 'width=535,height=400,resizable=yes,scrollbars=yes,toolbar=no,status=no,directories=no,menubar=no');
                //kurve.document.writeln('<META HTTP-EQUIV="Refresh" CONTENT="0; URL=' + URL + '">');
                //kurve.document.close();


                NS = (document.layers) ? 1 : 0;
                IE = (document.all) ? 1: 0;
                agent = navigator.userAgent;
                // browserVer = 2;
                // if (agent.indexOf("Mozilla/",0) == 0)
                //      { x = agent.charAt ( 8 );
                //      browserVer = parseInt(x);
                //      }
                if (agent.indexOf("Gecko/",0) > 0) NS=1;

                if (IE||NS){
                        x = Math.round(x) + 40;
                        y = Math.round(y) + 40;
                        if (x > screen.availWidth) x = screen.availWidth;
                        if (y > screen.availHeight) y = screen.availHeight;
                        kurve.window.resizeTo(x,y);
                        hor = Math.round((screen.availWidth-x)/2);
                        ver = Math.round((screen.availHeight-y)/2-10);
                        if (ver <0) ver =0;
                        kurve.moveTo(hor,ver);
                        kurve.focus();
                        }
                }

        function display2(URL,x,y){
                var kurve = window.open(URL, 'kurve', 'width='+x+',height='+y+',resizable=yes,scrollbars=yes,toolbar=no,status=no,directories=no,menubar=no');
                kurve.focus();
                }

