function submitp(){var i={};$(".p").each(function(){i[this.id]=this.value});beginWait();$.post("setDBP",{p:JSON.stringify(i)},function(i){endWait();alert(i)})}function initinfo(){var t=$("#unit").val();var i=$("#initpwd").val();var n=$("#udsid").val();var e=$("#sdsid").val();beginWait("单元初始化...");$.post("setDBT",{unit:t,initpwd:i,sdsid:e,udsid:n},function(i){endWait();alert(i);if(i.indexOf("初始化成功")>=0){window.location.href="login.html?unit="+encodeURI(encodeURI(t))}})}function init(){$.post("queryFiles",{case:"getufiles"},function(i){var t=JSON.parse(i);if(t.msg==="ok"){$("#myu").html("{"+t.uns+":"+t.uls+"}");$("#mytz").html(""+t.initzone+"|"+t.curtzone+"|"+t.systime)}else{alert(i)}})}