﻿function externalLinks() {//打开新窗口的W3C标准
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";
    }
} 
}
try{
    if(document.body.onload.toString())
    {
        eval(document.body.onload.toString().replace('anonymous()','bodyload()'));
        document.body.onload=new Function("bodyload();externalLinks();");
    }else{
        document.body.onload=new Function("externalLinks();");
    }
}catch(e)
{
    window.onload=function(){
	externalLinks();
	//initLightbox();
}
}