咨询热线:0571-87185565
经营许可证编号:浙B2-20090169 Copyright©2005-2011 53KF版权所有
\n'); } var from=""; function kfim_DoFSCommand(command, args) { /*if (command=="get_from") { from=args; } set_from();*/ } function change_worker() { document.getElementById("workid").value=document.getElementById("domain_name").value.trim(); } function valid_domain() { if(mycheck() !== false) { var domain_name = document.getElementById("domain_name").value; xajax_valid_domain(domain_name); } } function register_do() { var usrname = GetValue("user_name"); var password = GetValue("pwd"); var password2 = GetValue("cpwd"); var email = GetValue("email"); var website = GetValue("url"); var connecter = GetValue("manage_n"); var qq = GetValue("qq"); var phone = GetValue("phone"); var type = GetValue("reg_type"); var namecheck = GetValue("hidden"); if(type==1) { if(document.getElementById("readed").checked==false) { alert("请仔细阅读服务条款!"); } else if(checkinput2()==true) { document.d_o.submit(); } } if(type==2) { if(document.getElementById("readed").checked==false) { alert("请仔细阅读服务条款!"); } else if ((check_user()==true)&&(check_pw()==true)&&(check_pw2()==true)&&(check_email()==true)&&(check_company()==true)&&(check_connect_people()==true)&&(check_qq()==true)&&(check_phone()==true)&&(check_type()==true)) { xajax_register1(usrname,password,email,website,connecter,qq,phone,type); var height = document.documentElement.clientHeight; var width = document.documentElement.clientWidth; //controlscroll(); createFreeze('insert_freeze',0,0,height,width); createInsertDiv(height,width,550,500); } else { alert("请认真填写每一项内容!"); } } else if(type=="") { alert("请先选择用户类型!"); } } function set_passport() { _getId("passport").value=_getId("user_name").value; } function checks () { document.login_form.submit(); } function createFreeze(id,top,left,height,width) { var voteFreezeDiv = document.createElement("div"); voteFreezeDiv.id = id; var scrollHeight = Math.max(document.body.scrollHeight,document.documentElement.scrollHeight); var scrollWidth = Math.max(document.body.scrollWidth,document.documentElement.scrollWidth); voteFreezeDiv.style.top = top+"px"; voteFreezeDiv.style.left = left+"px"; voteFreezeDiv.style.height = scrollHeight +"px"; voteFreezeDiv.style.width = scrollWidth+"px"; voteFreezeDiv.style.border = "none"; voteFreezeDiv.style.position = "absolute"; voteFreezeDiv.style.backgroundColor = "#333333"; voteFreezeDiv.style.margin = 0; voteFreezeDiv.style.padding = 0; voteFreezeDiv.style.zIndex = 9998; voteFreezeDiv.style.opacity = "0.5"; voteFreezeDiv.style.filter = "alpha(opacity=20)"; voteFreezeDiv.style.duration = 1000; document.body.insertBefore(voteFreezeDiv, document.body.firstChild); } function createInsertDiv(height,width,rw,rh) { var insert_div = document.createElement("div"); var scroll_top=document.documentElement.scrollTop; insert_div.id = "insert_div"; insert_div.style.top = Math.round((height-rh)/2+scroll_top)+"px"; insert_div.style.left = Math.round((width-rw)/2)+"px"; insert_div.style.height = rh+"px"; insert_div.style.width = rw+"px"; insert_div.style.position = "absolute"; insert_div.style.zIndex = 9999; var insert_freeze = document.getElementById("insert_freeze"); document.body.insertBefore(insert_div,insert_freeze); } // 创建插入Div // 销毁冻结层 function destryInsertDiv() { var obj = document.getElementById("insert_div"); obj.parentNode.removeChild(obj); obj = document.getElementById("insert_freeze"); obj.parentNode.removeChild(obj); } function scrollFunc() { var insert_div=document.getElementById('insert_div'); if(insert_div!=null) { var i_width=insert_div.style.width; var i_height=insert_div.style.height; i_width=(i_width.substr(0,i_width.length-2)); i_height=(i_height.substr(0,i_height.length-2)); if(i_width!=1) { var scroll_top=document.documentElement.scrollTop; var height = document.documentElement.clientHeight; var width = document.documentElement.clientWidth; insert_div.style.top = Math.round((height-i_height)/2+scroll_top)+"px"; insert_div.style.left = Math.round((width-i_width)/2)+"px"; } } }