// Edit includes/skin.php - function bottomScripts() 
// This code just VIRTUALLY add a target="_Blank" to any external link in the wiki document!
// NOTE: YOU DON"T Need to modify any of your text document!

function getXterlinks()
{
        var Xterlinks = document.getElementsByTagName('A');
        for (var i=0;i<Xterlinks.length;i++)
        { 
                var eachLink = Xterlinks[i];
                var regexp_isYourdomain="project-xtapes"; //for example "meta.wikimedia"
                var regexp_ishttp=/(http(.)*:\/\/)/;
                //Check if the link is valid and is external link
                if( (eachLink.href != null) && (eachLink.href.match(regexp_isYourdomain) == null) && eachLink.href.match(regexp_ishttp)!=null )
                {
                        eachLink.target ="_blank";//make the target for this external link
                }
        }
}
