function __goto(a){location.href="."+a}function __refresh(){window.location.reload(true)}function __xhr(c,b,a){b=b||"";a=a||null;$.ajax({url:"/xhr/"+c,type:"POST",data:b,dataType:"json",timeout:100000,error:function(){alert("SYSTEM_FAULT")},success:function(d){if(typeof a=="function"){a(d)}}})}$(document).ready(function(){});function deleteItem(a){__xhr("item?do=delete","fn="+encodeURIComponent(a),function(b){if(typeof b!="object"){alert("SYSTEM_ERROR");return}if(b.result=="success"){alert("Deleted successfully");__refresh()}else{alert(b.output)}})};
