function SetPointer(what, PointerColor) {
	what.style.backgroundColor=PointerColor;
}

function ChUrlNW(NewUrl) {
	win = window.open(NewUrl,"Wnd",'width=674,height=550,resizable=0,scrollbars=yes,menubar=no,left=10,top=10');
}

function ChUrl(NewUrl) {
	document.location.href=NewUrl;
}

var m1Array =  new Array(
"Cena;cn",
"Dzielnica;dz",
"Powierzchnia;po");

var m2Array =  new Array(
"Cena;cn",
"Dzielnica;dz",
"Powierzchnia;po",
"Piêtro;pi");

function ChSel(inForm,Sel) {
	if (Sel==1 || Sel==2 || Sel==3 || Sel==4 || Sel==5 || Sel==7 || Sel==12 || Sel==13 || Sel==15) {
		var selectedArray = m1Array;
	} else {
		var selectedArray = m2Array;
	}
	while (selectedArray.length < inForm.sort.options.length) {
		inForm.sort.options[(inForm.sort.options.length - 1)] = null;
	}
	for (var i=0; i < selectedArray.length; i++) {
		var opNV = selectedArray[i].split(";");
		inForm.sort.options[i]= new Option (opNV[0],opNV[1]);
	}
	if (inForm.rn.options[0].value == '') {
		inForm.rn.options[0]= null;
	}
}

