//打开新窗口
/*
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") == "external") 
     anchor.target = "_blank"; 
} 
} 
window.onload = externallinks;
*/
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("target") == "_blank") {
			anchor.removeAttribute("target");
			anchor.onclick=function(){ 
				window.open(this.href); return false;
			}	
		}
	} 
} 
window.onload = externallinks;

//设置字体大中小
function doZoom(size){
	var artibody = document.getElementById('artibody');
	if(!artibody){
		return;
	}
	var artibodyChild = artibody.childNodes;
	artibody.style.fontSize = size + 'px';
	for(var i = 0; i < artibodyChild.length; i++){
		if(artibodyChild[i].nodeType == 1){
			artibodyChild[i].style.fontSize = size + 'px';
		}
	}		
}