﻿var min=12;
var max=20;
function increaseFontSize() {
   var p = document.getElementsByTagName('body');
   for(i=0;i<p.length;i++) {
      if(p[i].style.fontSize) {
         var s = parseInt(p[i].style.fontSize.replace("px",""));
      } else {
         var s = 12;
      }
      if(s<max) {
         s += 4;
      }
      else
      {
        s = min;
      }
      p[i].style.fontSize = s+"px"
   }
}


/*     
    Common functions
*/

function OffRamp()  //  JWB
//  Syntax: <a href="yoururl" onclick="return OffRamp();">Your Link</a>
{ 
    return (confirm('You are accessing a Web site maintained by a third party over whom CSL Behring has no control.\nCSL Behring is not responsible for, and accepts no liability for, information contained in any third-party Web site.\n\nDo you wish to continue?'));
}



function ExternalLinks() // JWB
//  Syntax <a href="yoururl" rel=external">Your Link</a>
//  This function allows opening links in a new window while preserving XHTML 1.0 Strict compliance
{ 
 if (!document.getElementsByTagName) return; 
 var anchors = document.getElementsByTagName("a"); 
 for (var i=0; i<anchors.length; i++) { 
   var anchor = anchors[i]; 
   if (anchor.getAttribute("href") && 
       anchor.getAttribute("rel") == "external") 
     anchor.target = "_blank"; 
 } 
} 
window.onload = ExternalLinks;