/*
* Funktion f?r PopUp-Fenster
*/
function popUp(popUpURL, popUpName, popUpWidth, popUpHeight) {
        var popUpParamString = "";
        if(popUpName == "fix"){//feste gr?sse, keine scrollbars
                if(popUpHeight == ""){
                        popUpHeight = 180;
                }
                if(popUpWidth == ""){
                        popUpWidth = 200;
                }
                popUpParamString = "menubar=0,location=0,toolbar=0,status=0,resizable=0,scrollbars=yes,dependent=1,height=" + popUpHeight +",width=" + popUpWidth;
        }
        else if(popUpName == "flax"){//keine feste gr?sse, keine scrollbars positon mitte
                var wstat
                var ns4up = (document.layers) ? 1 : 0
                var ie4up = (document.all) ? 1 : 0
                var xsize = screen.width
                var ysize = screen.height
                var breite=popUpWidth
                var hoehe=popUpHeight
                var xpos=(xsize-breite)/2
                var ypos=(ysize-hoehe)/2

                if(popUpHeight == ""){
                        popUpHeight = 180;
                }
                if(popUpWidth == ""){
                        popUpWidth = 200;
                }
                popUpParamString = "menubar=0,location=0,toolbar=0,status=0,resizable=0,scrollbars=yes,dependent=1,height=" + popUpHeight +",width=" + popUpWidth +",top="+ypos+",left="+xpos;
        }

        else if(popUpName == "flex"){//keine feste gr?sse, mit scrollbars
                if(popUpHeight == ""){
                        popUpHeight = 600;
                }
                if(popUpWidth == ""){
                        popUpWidth = 400;
                }
                popUpParamString = "menubar=1,location=0,toolbar=0,status=1,resizable=1,dependent=1,scrollbars=yes,height=" + popUpHeight +",width=" + popUpWidth;
        }

        else if(popUpName == "flux"){//feste gr?sse, mit scrollbars

                if(popUpHeight == ""){
                        popUpHeight = 600;
                }

                if(popUpWidth == ""){
                        popUpWidth = 400;
                }
                popUpParamString = "menubar=0,location=0,toolbar=0,status=0,resizable=0,dependent=1,scrollbars=yes,height=" + popUpHeight +",width=" + popUpWidth;
        }

        else if(popUpName == "media"){//keine feste gr?sse, mit scrollbars
                if(popUpHeight == ""){
                        popUpHeight = 600;
                }
                if(popUpWidth == ""){
                        popUpWidth = 400;
                }
                popUpParamString = "menubar=1,location=0,toolbar=1,status=1,resizable=1,dependent=1,scrollbars=yes,height=" + popUpHeight +",width=" + popUpWidth;
        }
        else if(popUpName == "agb"){//keine feste gr?sse, mit scrollbars
                if(popUpHeight == ""){
                        popUpHeight = 600;
                }
                if(popUpWidth == ""){
                        popUpWidth = 700;
                }
                popUpParamString = "menubar=0,location=0,toolbar=1,status=0,resizable=1,dependent=1,scrollbars=yes,height=" + popUpHeight +",width=" + popUpWidth;
        }
        window.open(popUpURL,popUpName,popUpParamString);
}