//var dbpath = location.href.substr(0, location.href.indexOf(".nsf") + 4);var timeout_pid;// po startu// rozjede se, jen pokud je to detail obr\u00E1zku a je to fotka// // left side categories$(document).ready(function(){  });// search the sitefunction send_search(){   document.location.href=dbpath+"/w?readform&t=search&q="+escape($("#search-tb").val())}// #######################################################// NEW FUNCTIONS function view(idx){   //alert(escape(document.location.href))   //document.location.href=dbpath+"/w-all/"+idx+"?openDocument&redirect_url="+escape(document.location.href)   document.location.href=dbpath+"/wid/"+idx+"?openDocument"}// call action trigger with given idfunction run_action(action_id){  $("#"+action_id).trigger('click');}// call action trigger with given id s p\u0159ed\u00E1n\u00EDm parametru p\u0159es pole PAR1, kter\u00E9 mus\u00ED b\u00FDt na formul\u00E1\u0159i jako editovateln\u00E9 s nastaven\u00FDm HTML parametrem type='hidden'function run_action_p1(action_id,par1){  $("#par1").val(par1);  $("#"+action_id).trigger('click');}// odeslani odpov\u011Bdi = reload iframu se seznamem diskusefunction reply_submit(){  $('#new_disc').toggle();  //reload replies list  parent.iframe_replies.location.href=parent.iframe_replies.location.href}//otevre form pro novy disk. prispevekfunction open_new_discussion(){   parent.iframe_new_disc.location.href=dbpath+"/web_reply?openForm&index="+$('#s_index').val();   $('#new_disc').toggle();}// otevre soubor z diskusefunction open_attachment(index, name){   window.open(dbpath+"/w-all/"+index+"/$file/"+name)}// open new empty problem pagefunction new_issue(){   //document.location.href=dbpath+"/kb?OpenForm&redirect_url="+escape(document.location.href)   document.location.href=dbpath+"/kb?OpenForm"}// SAVE ACTIONSfunction document_save(){  //button_save  run_action("button_save")}function document_save_and_close(){  //button_save_and_close  run_action("button_save_and_close")}// ######################################################function catChange(){	var v = $("#category").val();	var url = dbpath + "/w?ReadForm" + "&cat=" + escape(v);	//alert(url);	document.location.href = url;}function kwChange(){	var v = $("#keyword").val();	var url = dbpath + "/w?ReadForm" + "&kw=" + escape(v);	//alert(url);	document.location.href = url;}function viewChange(){		var url = dbpath + "/w?ReadForm";	var url = url +  "&kw=" + escape($("#kw").val());	var url = url +  "&cat=" + escape($("#kategorie").val());	var url = url +  "&okr=" + escape($("#okruh").val());	var url = url +  "&sys=" + escape($("#system").val());	var url = url +  "&sl=" + escape($("#sluzba").val());	var url = url +  "&query=" + escape($("#query").val());	//alert(url);	document.location.href = url;}// ######################################################
