function createinput(b,d,c){var a=document.createElement("input");a.setAttribute("type","hidden");a.setAttribute("name",b);a.setAttribute("value",d);c.appendChild(a)}function createform(b){var a=document.createElement("form");a.setAttribute("method","post");a.setAttribute("action",b);return a}function createformopen(b){var a=document.createElement("form");a.setAttribute("method","post");a.setAttribute("action",b);a.setAttribute("target","_blank");return a}function createformopenget(b){var a=document.createElement("form");a.setAttribute("method","get");a.setAttribute("action",b);a.setAttribute("target","_blank");return a}function getchk(e){var c=document.getElementsByName(e);var b="";var a=c.length;for(var d=0;d<a;d++){if(c[d].checked){if(b==""){b=c[d].value}else{b=b+","+c[d].value}}}return b}function Loadfile(b,a){if(a=="js"){var c=document.createElement("script");c.setAttribute("type","text/javascript");c.setAttribute("src",b);document.getElementsByTagName("head")[0].appendChild(c)}else{if(a=="css"){var d=document.createElement("link");d.setAttribute("rel","stylesheet");d.setAttribute("type","text/css");d.setAttribute("href",b);document.getElementsByTagName("head")[0].appendChild(d)}}}function Zoom(e,c,a){var g=new Image();g.src=e.src;var f=Math.max(c/g.width,a/g.height);var d=g.width*f;var b=g.height*f;e.width=d;e.height=b;e.style.marginLeft=(c-d)/2+"px";e.style.marginTop=(a-b)/2+"px"};