		
		var SrchBtn_clicked = false;			
		
		function clear_SrchText(SrchObj)	
		{

			if((SrchBtn_clicked == false) && (SrchObj.value == "Słowo kluczowe"))
			{
			    SrchObj.value = "";
			    SrchBtn_clicked = true;
			}

		}

		function replaceall(string,text,by) {
		
		    var strLength = string.length, txtLength = text.length;
		    if ((strLength == 0) || (txtLength == 0)) return string;

		    var i = string.indexOf(text);
		    if ((!i) && (text != string.substring(0,txtLength))) return string;
		    if (i == -1) return string;

		    var newstr = string.substring(0,i) + by;

		    if (i+txtLength < strLength)
			newstr += replaceall(string.substring(i+txtLength,strLength),text,by);

		    return newstr;
		}

		function submit_action(formname, type, position) {
		    d = document.forms[formname];
		    if ((d.elements['q'].value.length == 0) || (d.elements['q'].value == "Słowo kluczowe"))
		    {
			alert("Wpisz słowo kluczowe !");
			return false;
		    }
		    else
		    {
			d.action = '/' + replaceall(d.elements['q'].value," ","_") +".cfm?nft=1&nft=1&t=" + type + "&p=" + position;
			/*d.action = '/' + replaceall(d.elements['q'].value," ","_") +".cfm?nft=1&nft=1&t=" + type + "&p=" + position;*/
		    }
		    return true;
		}

		function changeStatus(keyword) {
		    window.status = keyword;
		    return true;
		}
		
		function url_change(url) {
		    window.location = url;
		}

		function PopNav(Url)
		{
			if(Url != "-1" && Url != "-1")
			{
				location.href = Url;
			}
		}

	/*	function addbookmark()
		{
		bookmarkurl="http://www.3000000.pl"
		bookmarktitle="Witamy w Domu Towarowym www.3000000.pl"
		if (document.all)
		window.external.AddFavorite(bookmarkurl,bookmarktitle)
		}
	*/