
function GoTo (Par) {
	document.location="index.php?" + CurrentLink + "&" +Par;
}


function GoLN ( P, L ) {

	s = "index.php?Page=LNSearch&FixedTypesA=1&";

	if (P=="F") s = s + "&s_PropertyTypeID=0";
	if (P=="H") s = s + "&s_PropertyTypeID=3";
	if (P=="G") s = s + "&s_PropertyTypeID=2";
	if (P=="L") s = s + "&s_PropertyTypeID=1";
		
	if (L=="S") s = s + "&s_TypeOfListing=0";
	if (L=="R") s = s + "&s_TypeOfListing=1";


	document.location=s;
//	alert(s);

}


// funkcja dla babiak-nieruchomosci
function RefreshLNSearch() {
	var f = document.forms['form1'];

	var url = '';
	if (f!=null) 	
	for (a=0; a<f.elements.length; a++) {
		var c = f.elements[a];
		if (c!=null && (c.type.toLowerCase()=='text' || c.type.toLowerCase()=='hidden')) { 
/*				alert(c.name + ', '+c.type + ', '+ c.checked);				*/
				url = url + c.name + '=' + c.value + '&';
		}
	}
	
	url = 'http://www.wyszukiwarkanieruchomosci.pl/LNSearch/Search.asp?' + url;
//	alert (url);
	var i = document.getElementById('iframe');
	i.src = url;
}
