if (top.location !== self.location) {
top.location=self.location;
}

function externalLinks() {
if (!document.getElementsByTagName) return;
var anchors = document.getElementsByTagName("a");
for (var i=0; i<anchors.length; i++) {
var anchor = anchors[i];
if (anchor.getAttribute("href") &&
anchor.getAttribute("rel") == "blank")
anchor.target = "_blank";
}
}
window.onload = externalLinks;


function checksearch(theform) {
if (theform.keyword.value=="" || theform.keyword.value=="输入搜索关键字"){
alert("您未输入搜索关键字.");
return false;
}
}


function checklogin(theform) {
	if (theform.username.value=="" || theform.password.value==""){
		alert("\"用户名\"和\"密码\"不能为空.");
		return false;
	}
	if (theform.s_ic.value==""){
		alert("请输入附加码.");
		return false;
	}
}

function zoomin(){
 zoom.style.fontSize="14px";
}
function zoomout(){
 zoom.style.fontSize="12px";
}

var postmaxchars = 1000;
function validata(theform) {
if(theform.pagetext.value=="") {
alert("\"内容\"表单不能为空.");
return false; }
if(document.all||document.getElementById){
for (i=0;i<theform.length;i++){
var tempobj=theform.elements[i]
if(tempobj.type.toLowerCase()=="submit"||tempobj.type.toLowerCase()=="reset")
tempobj.disabled=true
}
}
if(postmaxchars != 0) {
if(theform.pagetext.value.length > 1000) {
alert("您发表的评论太长了.\n\n请控制在 1000 字符以内.\n当前的长度为 "+theform.pagetext.value.length+" 字符.");
return false; }
else { return true; }
} else { return true; }
}

    function doclock(){
        window.setTimeout("doclock()",500);
        today=new Date();
document.write(today.toLocaleString()); 

        self.status=today.toLocaleString();
    }