

/// -----------------------------------------------------------------------------
/// <procedure>externallinks</procedure>
/// <summary>
/// 	Opens external links in a new window whilst conforming xhtml strict standards
/// </summary>
/// <remarks>
/// </remarks>
/// <history>
/// 	[Gavin Bruce] 10/03/2007 Created
/// </history>
/// -----------------------------------------------------------------------------
function externallinks()
{
    var c=document.getElementById('container');
    if(c)
    {
        var ls=c.getElementsByTagName('a');
        for(var i=0;i<ls.length;i++){
            if(ls[i].getAttribute('rel')=='external')
            {
                ls[i].onclick=function(){window.open(this.href);return false}
            }
        }
    }
}

window.onload=function(){
    if(!document.getElementById && !document.createTextNode){return;}
    externallinks();
    
}

