﻿var lkvw_sys;var lkvw_type;var lkvw_01;var lkvw_02;var lkvw_03;var lkvw_04;var lkvw_05;var lkvw_06;var lkvw_07;var lkvw_09;var lkvw_11;var lkvw_14;var lkvw_16;var lkvw_18;var lkvw_19;var lkvw_40=document.getElementsByTagName("script");lkvw_type=lkvw_40[lkvw_40.length-1].src.split('=')[1];if(lkvw_type!="login"){if(lkvw_23("lkvw_02")!="v5"){lkvw_11=lkvw_21();lkvw_05=lkvw_33();lkvw_09=lkvw_type;lkvw_14=document.referrer;if(lkvw_14!=undefined)lkvw_14=lkvw_14.toLowerCase();if(lkvw_14.indexOf("/lockview/restrict")!=-1){if(lkvw_09!=undefined)lkvw_09=lkvw_09.toLowerCase();if(lkvw_14.indexOf("uid="+lkvw_09)!=-1){lkvw_08();if(lkvw_23("lkvw_20")!=null)window.location.href=lkvw_23("lkvw_20");}}else lkvw_06();}}else{lkvw_11=document.location.hostname;var src=lkvw_40[lkvw_40.length-1].src;lkvw_05=src.substr(0,src.indexOf("/Lockview"));}function lockview_login(){lkvw_type="login";lkvw_07();}function lkvw_07(){var lkvw_42=document.forms[0].elements["Username"].value;var lkvw_43=document.forms[0].elements["Password"].value;if(lkvw_42=="")alert("请输入用户名!");else{if(lkvw_43=="")alert("请输入密码!");else{var lkvw_44=document.createElement('SCRIPT');lkvw_44.src=lkvw_05+"/Lockview/Restrict/Restrict.aspx?domain="+lkvw_11+"&user="+lkvw_42+"&pwd="+lkvw_43;document.body.appendChild(lkvw_44);}}}function lkvw_15(lkvw_35,lkvw_36){var lkvw_37;if(lkvw_36=="v5"){if(lkvw_35=="")lk2(lkvw_23("lkvw_02"));else lkvw_37="1";}else{if(lkvw_35!=undefined)lkvw_37=lkvw_35;else lkvw_37=lkvw_06();}if(lkvw_37!=undefined){switch(lkvw_37.substr(0,1)){case"0":lkvw_08();if(lkvw_type=="login"){if(lkvw_23("lkvw_20")!=null)window.location.href=lkvw_23("lkvw_20");else window.location.href="http://"+lkvw_11;}break;case"1":if(document.all)document.execCommand("stop");if(lkvw_37.substr(2,2)=="$t"){window.location.href="http://"+lkvw_37.substr(4);break;}if(lkvw_37.substr(2,2)=="$d"){lkvw_15("4,"+lkvw_37.substr(2),"lk2");break;}if(lkvw_37.substr(2,2)=="$s"){window.location.href=lkvw_05+"/LockView/Restrict/Restrict.aspx?uid=vip&domain="+lkvw_11;break;}if(lkvw_37.substr(2)!=''){if(lkvw_37.substr(2)!="lockview.htm")window.location.href="http://"+lkvw_11+"/"+lkvw_37.substr(2);else lkvw_15("4,"+lkvw_37.substr(2),"lk2");}break;case"2":lkvw_12("2");break;case"3":lkvw_12("3");break;case"4":lk1(lkvw_37);if(lkvw_type!="v5"&&lkvw_37=="4")window.location.href="http://www.lockview.cn/lockview/Unpaid.aspx?uid="+lkvw_09+"&domain="+lkvw_11;else{if(!document.all&&lkvw_37.indexOf("lockview")!=-1)window.stop();if(lkvw_type=="v5")lk2("v5,login.htm");}break;case"5":alert("用户名或者密码错误.");break;case"6":alert("此用户名已过期.");break;case"7":if(lkvw_23("lkvw_01")==null)lkvw_13("lkvw_01","lkvw_type","90");if(lkvw_37.substr(2,2)=="$d")lkvw_15("4,"+lkvw_37.substr(2),"lk2");else lkvw_15("1,"+lkvw_37.substr(2),"lk1");break;}}}function lkvw_06(){if(navigator.appName=="Netscape")lkvw_03=navigator.language;else{lkvw_03=navigator.browserLanguage;lkvw_16=navigator.systemLanguage;}if(lkvw_03!=undefined)lkvw_03=lkvw_03.toLowerCase();else lkvw_03="";if(lkvw_16!=undefined)lkvw_16=lkvw_16.toLowerCase();else lkvw_16="";lkvw_18=-(new Date()).getTimezoneOffset();lkvw_18=lkvw_18/60;lkvw_06=document.referrer;if(lkvw_06!=undefined){lkvw_06=lkvw_06.toLowerCase();if(lkvw_06.indexOf("127.0.0.1:")!=-1&&lkvw_06.indexOf("/loc/")!=-1)lkvw_16="lkvw_01";if(lkvw_06.indexOf("proxy")!=-1||lkvw_06.indexOf("daili")!=-1)lkvw_16="lkvw_01";if(lkvw_16=="lkvw_01")window.location.href=lkvw_11+"?RestrictByLockview";}lkvw_17=lkvw_06.substr(lkvw_06.indexOf("//")+2);lkvw_17=lkvw_17.substr(0,lkvw_17.indexOf("/"));if(lkvw_17.indexOf("www.")!=-1)lkvw_17=lkvw_17.substr(4);document.cookie="lkvw_20="+document.location+";path=/";if(lkvw_23("dwst_12")!=null)lkvw_sys=lkvw_23("dwst_12");if(lkvw_23("lkvw_01")=="lkvw_type")lkvw_sys="J2EE";if(lkvw_sys==undefined)lkvw_sys="";document.write(unescape("%3Cscript src='"+lkvw_05+"/Lockview/Restrict/Judge.aspx?a=vip&f="+lkvw_11+"&b="+lkvw_18+"&l="+lkvw_03+"&d="+lkvw_16+"&o="+lkvw_17+"&s="+lkvw_sys+"' type='text/javascript'%3E%3C/script%3E"));if(lkvw_type=="lock"){lk2(lkvw_23("lkvw_02"));lkvw_19='none';}else lkvw_19='hidden';}function lk1(lkvw_36){if(lkvw_36!="lkvw_07"){if(lkvw_36.indexOf("lockview")!=-1)lkvw_14=lkvw_login();else lkvw_14="%3Ciframe%20src%3Derror.htm%20width%3D100%25%20height%3D3000px%20style%3Dbackground-color%3A%23fff%20scrolling%3Dno%20frameborder%3D0%3E%3C/iframe%3E";if(lkvw_36=="4"||lkvw_36=="2")document.write("<script type='text/javascript' src='"+lkvw_05+"/lockview/JudgeCode.aspx?judge="+lkvw_36+",uid:"+lkvw_09+",domain:"+lkvw_11+",location_hostname:"+document.location.hostname+"'></script>");else{lkvw_sys=lkvw_14;lkvw_12("4");}}else lkvw_15(lkvw_36,"v5");}function lk2(lkvw_37){if(lkvw_37!=undefined){if(lkvw_37.substr(2,2)=="$d")document.title="无法找到该网站";lkvw_15(lkvw_37,"v6");}return lkvw_37;}function lkvw_21(){lkvw_02=document.location.hostname.toLowerCase();if(lkvw_02.indexOf("www.")==-1){var lkvw_45=lkvw_02.replace(/[^.]/g,'').length;if(lkvw_45==1)return lkvw_02;lkvw_07=unescape(document.location.href);if(lkvw_07!=undefined)lkvw_07=lkvw_07.toLowerCase();lkvw_04=lkvw_07.substr(0,lkvw_07.indexOf("?"));if(lkvw_04.indexOf(".php")!=-1||lkvw_04.indexOf("proxy")!=-1)return lkvw_02;if(lkvw_04.indexOf(".asp")!=-1||lkvw_04.indexOf(".jsp")!=-1||lkvw_04.indexOf(".aspx")!=-1)return lkvw_02;var lkvw_46=lkvw_07.indexOf("www.");if(lkvw_46!=-1){lkvw_07=lkvw_07.substr(lkvw_46+4);var lkvw_47=lkvw_07.indexOf("/");lkvw_02=lkvw_07.substr(0,lkvw_47);}}return lkvw_02;}function lkvw_33(){var lkvw_40=document.getElementsByTagName("script");var src=lkvw_40[lkvw_40.length-1].src;lkvw_01=src.substr(0,src.indexOf("/Lockview"));lkvw_40="mainbelt.com,ip.overfair.net";src=lkvw_01.replace("http://www.","").replace("http://","").replace("www.","");if(lkvw_40.indexOf(src)!=-1)return lkvw_01;else window.location.href=lkvw_01+"?RestrictByLockview";}function lkvw_23(lkvw_37){var lkvw_48=document.cookie.match(new RegExp("(^| )"+lkvw_37+"=([^;]*)(;|$)"));if(lkvw_48!=null)return unescape(lkvw_48[2]);return null;}function lkvw_08(){lkvw_10("lkvw_01");document.cookie="lkvw_02=v5;path=/";}function lkvw_13(lkvw_36,lkvw_38,lkvw_37){if(lkvw_37){var lkvw_49=new Date();lkvw_49.setTime(lkvw_49.getTime()+(lkvw_37*24*60*60*1000));var lkvw_50="; expires="+lkvw_49.toGMTString();}else var lkvw_50="";document.cookie=lkvw_36+"="+lkvw_38+lkvw_50+"; path=/";}function lkvw_10(lkvw_38){var lkvw_51=new Date();lkvw_51.setTime(lkvw_51.getTime()-1);var lkvw_52=lkvw_23(lkvw_38);if(lkvw_52!=null)document.cookie=lkvw_38+"="+lkvw_52+";expires="+lkvw_51.toGMTString();}function lkvw_12(lkvw_39){switch(lkvw_39){case"2":lkvw_39="<span style=\"font-size:14px;color:Red\">&#24744;&#30340;&#24080;&#21495;&#24050;&#21040;&#26399;<\/span><br>&#35831;&#32493;&#36153;&#21518;&#20351;&#29992;,&nbsp;<a href=\"http://www.lockview.cn/Payment.aspx\">&#32493;&#36153;&#39029;&#38754;<\/a>";break;case"3":lkvw_39="<span style=\"font-size:14px;color:Red\">&#35797;&#29992;&#26399;&#24050;&#36807;&#65292;&#38480;&#21046;&#26381;&#21153;&#24050;&#26242;&#20572;<\/span><br>&#35831;&#20184;&#36153;&#21518;&#20351;&#29992;,&nbsp; <a href=\"http://www.lockview.cn/Payment.aspx\">&#20184;&#36153;&#39029;&#38754;<\/a>";break;case"4":document.write("<body>"+unescape(lkvw_14)+"</body><script type='text/javascript' defer>document.body.style.overflow=document.documentElement.style.overflow= '"+lkvw_19+"';</script>");break;}if(lkvw_39!="4"){document.writeln("<div id=\"lk3_info\" style=\"z-index:99999;position:absolute;top:0px;left:0px;height:120px;border:#a6b4cf 1px solid;background-color:#c9d3f3\">");document.writeln("<table width=\"220px\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"font-size:12px;color:#1f336b;border-top:#fff 1px solid; border-left:#fff 1px solid\" bgcolor=\"#cfdef4\">");document.writeln("<tr><td style=\"padding:2px 0\">&nbsp;Lockview&#32593;&#31449;&#38480;&#21046;&#35775;&#38382;&#31995;&#32479;<\/td>");document.writeln("<td><span style=\"CURSOR:pointer\" onclick=\"lkvw_32()\">×&nbsp;<\/span><\/td><\/tr>");document.writeln("<tr><td colspan=\"2\" height=\"96\" style=\"padding:0 1px 1px 0\">");document.writeln("<div style=\"padding:10px;height:100%;line-height:20px;border:#728eb8 1px solid\">"+lkvw_39+"<\/div><\/tr><\/table><\/div>");lk3_info.style.top=document.body.clientHeight-174;lk3_info.style.right=document.body.clientWidth-225;lkvw_31();}}function lkvw_31(){lk3_info.style.top=document.body.scrollTop+document.body.clientHeight-116;lk3_info.style.right=document.body.scrollLeft+document.body.clientWidth-180;setTimeout("lkvw_31();",80);}function lkvw_32(){lk3_info.style.visibility=lkvw_19;}function lkvw_login(){var v7=("<form action=\"\"><div style=\"width:450px;padding:4px\"><fieldset style=\"padding:25px\"><legend>Client Login<\/legend><br \/>");v7+=("<label for=\"Username\">Username: <\/label><input id=\"Username\" name=\"Username\" value=\"common\" \/><br \/>");v7+=("<label for=\"Password\">Password: <\/label><input id=\"Password\" name=\"Password\" type=\"password\" value=\"\" onkeypress=\"if(event.keyCode==13){return false;}\" \/><br \/><br \/><br \/>");v7+=("<input id=\"btnSumbit\" type=\"button\" value=\"Login\" onclick=\"lockview_login();return false;\" \/><\/fieldset><\/div><\/form>");document.title="Password?";return v7;}