

function showProduktBildGross(URL){
	// Funktion für die Galerie, ruft das übergebene Bild im Popup auf
	// Zuerst überprüfen, ob schon eine Instanz des Fensters offen ist:
	if(typeof(imgWin) != "object")
    {
        // Fenster war noch nie da
        imgWin= open('about:blank','imgWin','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,scrolling=no,resizable=no,copyhistory=yes,width=480,height=330,left=50, top=50,screenX=50,screenY=50');
    }
    else
    {
        if (!imgWin.closed)
        {
            // Das Fenster ist schon offen
            imgWin.close();
			imgWin= open('about:blank','pWin','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,scrolling=no,resizable=no,copyhistory=yes,width=480,height=330,left=50, top=50,screenX=50,screenY=50');
			//return false;
        }
        else
        {
            // Das Fenster war schon mal offen, ist aber gerade geschlossen
            imgWin= open('about:blank','pWin','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,scrolling=no,resizable=no,copyhistory=yes,width=480,height=330,left=50,top=50,screenX=50,screenY=50');
        }
    }
	imgWin.location.href= "" + URL;
	imgWin.focus();
}

function showProduktBlatt(URL){
	// Funktion für die Galerie, ruft das übergebene Bild im Popup auf
	// Zuerst überprüfen, ob schon eine Instanz des Fensters offen ist:
	if(typeof(prodWin) != "object")
    {
        // Fenster war noch nie da
        prodWin= open('about:blank','prodWin','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,scrolling=yes,resizable=yes,copyhistory=yes,width=600,height=800');
    }
    else
    {
        if (!prodWin.closed)
        {
            // Das Fenster ist schon offen
            prodWin.close();
			prodWin= open('about:blank','prodWin','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,scrolling=yes,resizable=yes,copyhistory=yes,width=600,height=800');
			//return false;
        }
        else
        {
            // Das Fenster war schon mal offen, ist aber gerade geschlossen
            prodWin= open('about:blank','prodWin','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,scrolling=yes,resizable=yes,copyhistory=yes,width=600,height=800');
        }
    }
	prodWin.location.href= "" + URL;
	prodWin.focus();
}

function showAusschreibungsText(URL){
	// Funktion für die Galerie, ruft das übergebene Bild im Popup auf
	// Zuerst überprüfen, ob schon eine Instanz des Fensters offen ist:
	if(typeof(txtWin) != "object")
    {
        // Fenster war noch nie da
        txtWin= open('about:blank','txtWin','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,scrolling=yes,resizable=no,copyhistory=yes,width=750,height=650,left=50,top=50,screenX=50,screenY=50');
    }
    else
    {
        if (!txtWin.closed)
        {
            // Das Fenster ist schon offen
            txtWin.close();
			txtWin= open('about:blank','txtWin','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,scrolling=yes,resizable=no,copyhistory=yes,width=750,height=650,left=50,top=50,screenX=50,screenY=50');
			//return false;
        }
        else
        {
            // Das Fenster war schon mal offen, ist aber gerade geschlossen
            txtWin= open('about:blank','txtWin','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,scrolling=yes,resizable=no,copyhistory=yes,width=750,height=650,left=50,top=50,screenX=50,screenY=50');
        }
    }
	txtWin.location.href= "" + URL;
	txtWin.focus();
}

function showCAD(URL){
	// Funktion für die CAD, ruft CAD Daten im Popup auf und bettet diese in ein PHP ein das prüft, ob der User angemeldet ist
	// Zuerst überprüfen, ob schon eine Instanz des Fensters offen ist:
	if(typeof(cadWin) != "object")
    {
        // Fenster war noch nie da
        cadWin= open('about:blank','cadWin','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,scrolling=yes,resizable=no,copyhistory=yes,width=750,height=650,left=50,top=50,screenX=50,screenY=50');
    }
    else
    {
        if (!cadWin.closed)
        {
            // Das Fenster ist schon offen
            cadWin.close();
			cadWin= open('about:blank','cadWin','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,scrolling=yes,resizable=no,copyhistory=yes,width=750,height=650,left=50,top=50,screenX=50,screenY=50');
			//return false;
        }
        else
        {
            // Das Fenster war schon mal offen, ist aber gerade geschlossen
            cadWin= open('about:blank','cadWin','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,scrolling=yes,resizable=no,copyhistory=yes,width=750,height=650,left=50,top=50,screenX=50,screenY=50');
        }
    }
	cadWin.location.href= "" + URL;
	cadWin.focus();
}
