function addHiddenField(n,t,i){$("",{type:"hidden",name:t,value:i}).appendTo(n)}function makeQueryString(n){var i="",t;if(n)for(t in n)n[t]!=""&&n[t]!=undefined&&(i+="&"+t+"="+encodeURIComponent(n[t]));return i}function extractUrl(n){var t,i=n[0].tagName;if(i&&(i.toUpperCase()=="A"||i.toUpperCase()=="BUTTON")&&(t=n.attr("href")),!t&&($form=n.closest("form")).length>0&&(t=$form.attr("action")),!t)throw new Error("gmt.links::extractUrl() : does not link or not exist href value - "+n[0].tagName);return t}function getHttpMethod(n){if(!n)return"get";var t=n.toLowerCase();if($.inArray(t,["get","post"])!=-1)return t;throw new Error("gmt.links::getHttpMethod() : not suppport http method - "+t+', only use "get", "post"');}function showDialog(n,t){try{var u=getHttpMethod(n.attr("data-method")),e=n.attr("data-params"),i=extractUrl(n),r="",o=$("