


function onload_functions() {
   external_links();
   pdf_links();
   }



function external_links() {
   dojo.lang.forEach(document.getElementsByTagName('a'), function (node) {
         if (node.getAttribute("href").match(/^http/)) {
            if (node.getElementsByTagName('img').length == 0) {
               node.setAttribute("class", "external");
               }
            }
         }
      );
   }

function pdf_links() {
   dojo.lang.forEach(document.getElementsByTagName('a'), function (node) {
         if (node.getAttribute("href").match(/pdf$/)) {
            if (node.getElementsByTagName('img').length == 0) {
               node.setAttribute("class", "pdflink");
               }
            }
         }
      );
   }

