function getXterlinks()
{
var Xterlinks = document.getElementsByTagName('A');
for (var i=0;i<Xterlinks.length;i++)
{
         var eachLink = Xterlinks[i];
                var regexp_isYourdomain=/(brandschutz-wiki)+/;
                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
        }
 }
}
