warenkorbgroesse='scrollbars,width=440 height=550';
registergroesse='menubar=no width=420 height=520';
kontaktgroesse='width=420 height=550 scrollbars';
mapgroesse='menuebar=no width=700 height=600 scrollbars';
bildanzeiggroesse='width=470 height=540 menubar=no scrollbars';
passvergessengroesse='width=400 height=300 menubar=no';
adressengroesse='width=200 height=200 menubar=no';
druckgroesse='width=610 height=640 menubar=no scrollbars';
screenshot='width=810 height=500';
screenshotic='width=810 height=600';

function getForm(name){
	if(!name){ name = "immoniaForm"; }
	if(!document.forms[name]){
		alert("Form '"+name+"' is not defined.");
	}
	return document.forms[name];
}

function getFormElement(form, key){
	if(!form){
		alert("getFormElement: no form to act on");
		return false;
	}
	if(!form.elements[key]){
		alert("getFormElement: form has no element named '"+key+"'.");
		return false;
	}
	return form.elements[key];	
}


function warenkorbOpen(url){
	windowName = "Warenkorb";
	windowFeatures = "width=440,height=550,scrollbars=yes";
	
	newWin = window.open(url, windowName, windowFeatures);
	newWin.focus();
}

