function showPopup(intType, intID, intMidletFamily) 
{
	var winl = (screen.width - 404) / 2;
	var wint = (screen.height - 380) / 2;
	
	window.open('http://partner.wapster.pl/partnerSendMe.aspx?cID=' + intID + '&Type=' + intType + '&ID=110&MidletFamily=' + intMidletFamily,'sendMe','titlebar=no,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,top=' + wint + ',left=' + winl + ',width=404,height=380');
}

function autoconfig(intType, intID)  {
	var winl = (screen.width - 404) / 2;
	var wint = (screen.height - 380) / 2;
	
	window.open('http://partner.wapster.pl/partnerSendMe.aspx?cID=' + intID + '&Type=' + intType + '&ID=110&mode=1','sendMe','titlebar=no,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,top=' + wint + ',left=' + winl + ',width=404,height=380');

}

function submitForm(object)
{
	if(object.value!=='0'){
	document.getElementById('kategorie').submit();
	}

}

function checkKategorie()
{
	if (document.getElementById('kategorie').kategoria.value =='0' && document.getElementById('kategorie').fraza.value =='')
	{
		alert('Dla wyszukiwania we wszystkich kategoriach musisz wpisać frazę!');
		return false;
	}
	else if (document.getElementById('kategorie').fraza.value.length < '3')
	{
		alert('Wyszukiwana fraza musi składać się z conajmniej 3 znaków');
		return false;
	}
	else
	{
		return true;
	}
}

function getList(div)
{
	for(xx=0; xx<20; xx++)
	{

		if (div=='div'+xx && document.getElementById('div'+xx))
		{
			document.getElementById('div'+xx).style.display='block';
		}
		else if(document.getElementById('div'+xx))
		{
			document.getElementById('div'+xx).style.display='none';
		}
	}
}