/******************************************************************************
* 20100622 psbrogna create DOM TARGET attributes based on document REL        *
*                   attributes                                                *
* ref: http://articles.sitepoint.com/article/standards-compliant-world        *
******************************************************************************/
function postProcessLinks() { var a, i;
  if ( document.getElementsByTagName ) {
    a= document.getElementsByTagName('a');
    for ( i= 0; i< a.length; i++ )
      with ( a[i] )
        if ( getAttribute('href') && getAttribute('rel') 
          && (getAttribute('rel')== 'external') ) 
          setAttribute('target', '_blank'); 
  }
}

function myOnload() { postProcessLinks(); }


