<!--
function removeFilter() 
{
	var iFilterCount = 9;
	
	for (i = 1; i <= iFilterCount; i++) {
		checkFilter = document.getElementById('filter'+i);
		checkFilter.checked = false;
	}
	searchButton = document.getElementById('search');
	document.location = 'index.html';
}

function clearCheck(){
	for(var i=1;i<4;i++) {
		document.getElementById('cb_area_'+i).className = 'checkboxBlank';
	}
	for(var i=1;i<3;i++) {
		document.getElementById('cb_type_'+i).className = 'checkboxBlank';
	}
	document.getElementById('cb_type_1').className = 'checkboxChecked';
	document.getElementById('searchYardage').value = '';
	document.getElementById('searchType').value = '1';
}

function changeCheckA(targetId) 
{
	var cbId = 'cb_area_'+targetId;
	
	if(document.getElementById(cbId).className == 'checkboxBlank') {
		for(var i=1;i<4;i++) {
			document.getElementById('cb_area_'+i).className = 'checkboxBlank';
		}
		document.getElementById(cbId).className = 'checkboxChecked';
		document.getElementById('searchYardage').value = targetId;
	} else {
		document.getElementById(cbId).className = 'checkboxBlank';
		document.getElementById('searchYardage').value = '';
	}
}

function changeCheckT(targetId) 
{
	var cbId = 'cb_type_'+targetId;
	for(var i=1;i<3;i++) {
		document.getElementById('cb_type_'+i).className = 'checkboxBlank';
	}
	document.getElementById(cbId).className = 'checkboxChecked';
	document.getElementById('searchType').value = targetId;

}

function sendForm(formId)
{
	jQuery("#"+formId).submit();
}

function popup(mylink) {
	if (!window.focus)return true;
	var href;
	if (typeof(mylink) == 'string')
	   href=mylink;
	else
	   href=mylink.href;
	window.open(href, 'Popup', 'width=636,height=400,scrollbars=yes');
	return false;
}

function popImage(url,windowTitle,windowName,closeOnClick,width,height,t)
{
	closeOnClick=true;
	if(!url)return
	function readSize(){if(t.complete)showPopup(t.width,t.height);else setTimeout(readSize,1e2)}
	function showPopup(w,h){with(window.open('',windowName||'','width='+(width||w)+',height='+(height||h)).document){open();write('<html><head><title>'+(windowTitle||'')+'</title></head><body onBlur="self.close()" style="margin:0;padding:0"><img src="'+url+'" style="display:block'+(closeOnClick?';cursor: pointer" onclick="self.close()" title="Zamknij okno"':'"')+'></body></html>');close()}}
	if(!width||!height)t=new Image(),t.src=url,readSize()
	else showPopup(width,height)
}


-->