function checkLetters2() {
	strString = document.SZUKAJ.SEARCH.value;
	if (strString.length < 3) {window.alert ("Musisz podać przynajmniej 3 litery");	return false;}
	if (strString == "wpisz tytuł szukanego programu ...") {window.alert ("Musisz podać tytuł programu lub jego fragment");return false;}
	return true;
};

function qs_focus(play)
{
	objCo = document.getElementById('search');
	if (objCo.value == 'wpisz tytuł szukanego programu ...')
	{
		objCo.value = '';
	};
	if (objCo.value != '')
	{
		ajaxpage('/quicksearch.asp?qs=' + escape(objCo.value) + '&play=' + play + '&rnd=' + Math.random(),'quicksearch');
	};	
};

function qs_blur()
{
	setTimeout("document.getElementById('quicksearch').innerHTML = '';", 400);    
};

function qs_keyup(play)
{
	objCo = document.getElementById('search');
	if (objCo.value != '')
	{
		ajaxpage('/quicksearch.asp?qs=' + (objCo.value) + '&play=' + play + '&rnd=' + Math.random(),'quicksearch');
	}
	else
	{
		document.getElementById('quicksearch').innerHTML = "";	
	};
};
