function OpenPopup(href,target,width,height) {
	if(!target) { target='_blank'; }
	if(!width) { width=650; }
	if(!height) { height=700; }
	var popup=self.open(href,target,'width='+width+'px,height='+height+'px,status=no,toolbar=no,scrollbars=yes,resizable=yes,menubar=no,location=no');
	popup.focus();
	return popup;
}

function OpenPopupNoReturn(href,target,width,height) {
	OpenPopup(href,target,width,height);
}


function AppendURLParameter(reftext,parameter) {
	if(reftext.indexOf('?') > 0) {
		return reftext + '&' + parameter;
	}
	return reftext + '?' + parameter;
}


function OpenPreise() {
	popup_window=OpenPopup('/dortmunderhuette/preise.htm','',810,420);
}


//Popup Sperre:
var popup_running=false;
var popup_window;
function is_popup_active() {
	if(popup_running) {
		alert("Popup bereits offen!");
		popup_window.focus();
		return false;
	}
	return true;
}

/**ergibt ein <div id="name"> HTML Objekt**/
function GetDocItem(name) {
	var obj;
	if(!obj) {						//netscape 7
		obj=document.getElementById(name);
	}
	if(!obj) {
		if(document.all) {  		//ie
			obj=document.all[name];
		}
	}
	if(!obj) {
		if(document.layers) {		//netscape < 7
			obj=document.layers[name];
		}
	}
	if(!obj) {
		alert("**kw**GetDocItem Failed: "+name);
		return 0;
	}
	return obj;
}

/**
Übergebener Div-Name muß 2x vorhanden sein
div_mini_[divname]
div_maxi_[divname]
Die Funktion toggle schaltet ein div sichtbar,  das andere div wird versteckt
*/
function toggle(divname) {
	var mini = document.getElementById("div_mini_"+divname);
	var maxi = document.getElementById("div_maxi_"+divname);
	if(mini.style.display=="none") {
		mini.style.display=maxi.style.display;
		maxi.style.display="none";
	} else {
		maxi.style.display=mini.style.display;
		mini.style.display="none";
	};			
};



