function septej(){
		
		var fulldata = ',' + $("#keywords").val();
		var data  = fulldata.split(",");
		
		str = data[data.length - 1];




		if(str != ''){
		
			$.post("_septac/septac_kw.php", {str: str},
		  
			
			function(html){
			if(html != ''){
				$("#septacHolder").animate({opacity: 0.5});
				$("#septac").animate({opacity: 1.0});	
				$("#septac, #septacHolder").fadeIn("fast");
				$("#septac").html(html);			

				
				// funkce ktera zavre septac
				$(".septacClose").click(function () {
					closeSeptac()
				});

			}
			});						
		}	
	}

function closeSeptac(){
	
		$("#septac, #septacHolder").fadeOut("fast");
		$("#septac").html('');	
	}

String.prototype.trim = function () {
    return this.replace(/^\s*/, "").replace(/\s*$/, "");
}

function addWord(str){
	
		var fulldata = $("#keywords").val();
		var preData  = fulldata.split(",");
		var data = unique(preData)
		var newStr = '';
		var celkem = data.length;
		
		for (i=0; i < celkem-1; i++)
		{
		newStr = newStr + data[i].trim() +', ';
		
		}
		
		newStr  = newStr + str.trim() +', ';
		
		$("#keywords").attr("value", newStr);
		//$("#septac, #septacHolder").fadeOut("fast");
		//$("#septac").html('');
		limitChars('keywords', 255, 'areaInfo_keywords')

		$("#keywords").focus().val($("#keywords").val());

	
	}
	
