/**********************************************************************************
PopupDescriptions 
*	Copyright (C) 2001 <a href="/dhtmlcentral/thomas_brattli.asp">Thomas Brattli</a>
*	This script was released at DHTMLCentral.com
*	Visit for more great scripts!
*	This may be used and changed freely as long as this msg is intact!
*	We will also appreciate any links you could give us.
*
*	Made by <a href="/dhtmlcentral/thomas_brattli.asp">Thomas Brattli</a>
*********************************************************************************/

// Default-Skript für degussa-Website Header Implementierung.  Kann/Soll für jede Website angepasst/ersetzt werden.

/**********************************************************************************
PopupWindows
*********************************************************************************/
wincount=0;
function popupfenster(loc,name,w,h,wintop,winleft,res,scrollb,menub,toolb,direct,locat,stat) {
	if(wincount>0 && newWin.closed!=true) {
		newWin.close();
		wincount--;
	}
	if(!wintop) wintop=0;
	if(!winleft) winleft=0;
	var attributes = "";
	
	attributes = attributes + "width=" + w;
	attributes = attributes + ",height=" + h;
	attributes = attributes + ",top=" + wintop;
	attributes = attributes + ",left=" + winleft;
	attributes = attributes + ",resizable=" + (res ? "no" : "yes");
	attributes = attributes + ",scrollbars=" + (scrollb ? "no" : "yes");
	attributes = attributes + ",menubar=" + (menub ? "yes" : "no");
	attributes = attributes + ",toolbar=" + (toolb ? "yes" : "no");
	attributes = attributes + ",directories=" + (direct ? "yes" : "no");
	attributes = attributes + ",location=" + (locat ? "yes" : "no");
	attributes = attributes + ",status=" + (stat ? "yes" : "no");
	if(name=='suche') loc+=document.forms[0].elements[0].value;		
	
	newWin=window.open(loc,name,attributes);

	wincount++;
}
