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

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 = window.open('', windowName, windowFeatures);
//	newWin.open(url, windowName, windowFeatures);
	newWin.focus();
}

function winOpen(url, w_width, w_height, w_scr, w_tool,loc)
{
var param="WIDTH="+w_width+",HEIGHT="+w_height+",screenY=5,toolbar="+w_tool+",location="+loc+",scrollbars="+w_scr+",resizable=yes";
//var param="WIDTH="+w_width+",HEIGHT="+w_height+",screenY=5,toolbar="+w_tool+",location="+loc+",scrollbars="+w_scr+",resizable=yes";

extern = window.open(url,"extern",param);
  browser = navigator.appName;
  if (browser == "Netscape")
{
     extern.focus();
     }
}