/**
 * @author dogo.pl
 * 
 */

	function s(el)
		{
			$('.s').slideUp(200);
			$('#s'+el).slideDown(200);
		}
		
		function search()
		{
			var s = $('#search_txt').attr('value');
			if($('#dzial1').attr('checked')) window.location = '/szukam/'+s; else window.location = '/dam/'+s;
		}
		
		function send()
		{
			var s = $('#recommend_txt').attr('value');
			window.location = '/recommend/'+s;
		}
		
		function chBox()
		{
			if(LANG == 'pol' && ($('#noticesTextPol').attr('value').length < 10))
			{
				alert(EMPTY_TEXT);
				return false;
			}
			
			if(LANG == 'deu' && ($('#noticesTextDeu').attr('value').length < 10))
			{
				alert(EMPTY_TEXT);
				return false;
			}
			
			var ok = true
			check = $('[type=checkbox]');
            check.each(function(el){
				if ($('#' + check[el].id).attr('checked')) {
					ok = false;
				}
            });	
			if(ok)
			{
				alert(EMPTY_REGION);
				return false;
			}
			return true;
		}

