
$(document).ready(function(){$(".searchInput input").autocomplete(_reposRoot+"/ProcessDefinition.asmx/GetProcesses",{parse:function(data){var parsed=[];for(var i=0;i<data.d.length;i++)
{parsed[parsed.length]={data:htmlEncode(data.d[i].ProcessTitle),value:data.d[i].ProcessId.toString(),result:data.d[i].ProcessTitle};}
return parsed;},selectFirst:false,dataType:"json",formatItem:function(data){return data;}});});function htmlEncode(str)
{return str.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");}