
var add = top.location;
add = add.toString();
//去除http://
var domain=add.substring(add.indexOf("//")+2,add.length);
//去除xxx.com/后面的所有内容
domain=domain.substring(domain,domain.indexOf("/"));
//取得域名
domain=domain.indexOf("szstudy.cn")
if(domain==-1){
	alert('您是从非本地URL链接本站网页，稍后将自动转到本站！');
	location='http://www.szstudy.cn';
} 


