// 本脚本用于防止别的站点将本页直接加入它的框架中
// Programing by Contion Chou(contion@263.net) @ 11/30/2001

var aryHome,intTmpCount,strHostname;
 aryHome=new Array();
 aryHome[0]='localhost';
 aryHome[1]='www.kingtopinfo.com';
 intTmpCount=0;
 strHostname=''+top.location;
 strHostname=strHostname.toLowerCase();	//一般情况下浏览器会自动转化URL为小写，本行代码亦可注释掉。
for(var i=0;i<aryHome.length;i++){
 if(strHostname.indexOf(aryHome[i])!=-1) intTmpCount+=1;
}
if(top.location!=self.location && intTmpCount==0){
 if(confirm('检测到您访问的页面在一个未知的框架中，是否要跳出？')) top.location=self.location;
}