function init()
{
    var links, i, anchor;
        
    links = document.getElementsByTagName('a');
		
    for (i = 0; i < links.length; i++)
	{
        anchor = links[i];
        if (anchor.className && (anchor.className.indexOf('external') != -1))
        {
            anchor.onclick = PopWin;
        }
    }
}
    
function PopWin(e)
{
    var anchor, newwin;
    if (!e)
    {
        var e = window.event;
    }
    anchor = e.target? e.target: e.srcElement;
    newwin = window.open(anchor.href);
    return !newwin;
}

onload = init;
