function addToFavourites(strURL, intArticleID, intFolderID) {
      window.open('http://' + strURL + '/MyAccount/MyFavouritesAdd.aspx?AID=' + intArticleID + '&FID=' + intFolderID, 'PageRate', 'HEIGHT=280,WIDTH=320,TOOLBAR=NO,SCROLLBARS=NO');
}

function OpenArticle(strURL, OpenInNewWindow)
{
	if (OpenInNewWindow == 1)
		    window.open(strURL);		
	    else
		    location.href = strURL;		
}



function searchEmployee(evt)
{
  if (evt.keyCode == 13)
  {
    var employeeName2 = document.getElementById('employeeName');
  
    if(employeeName2.value != "" && employeeName2.value != "Enter name...")
    {
      location.href = "/PhoneBook/PeopleSearch.aspx?Keywords=" + employeeName2.value;
    }
    else
    {
      alert("please enter keywords")
    }  
  }
  else
  {
  }
}

function searchEmployee2()
{
  var employeeName2 = document.getElementById('employeeName');
  
  if(employeeName2.value != "" && employeeName2.value != "Enter name...")
  {
    location.href = "/PhoneBook/PeopleSearch.aspx?Keywords=" + employeeName2.value;
  }
  else
  {
    alert("please enter keywords")
  }
}

function searchEmployee3()
{
  location.href = "/PhoneBook/PeopleSearch.aspx?Browse=" + document.all.EmployeeBrowseList.value;
}



function MM_findObj(n, d) { //v4.01

  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {

    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}

  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];

  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);

  if(!x && d.getElementById) x=d.getElementById(n); return x;

}

 

// Use this to randomly set images in a section on your site

if (MM_findObj('youruniqueid')) {

  bannerSrcStart = 'Images/UserUploadedImages/11/image_prefix';
  bannerSrcEnd = '.jpg';
  maxRandomNumber = 18;
  randomNumber = Math.floor(Math.random()*maxRandomNumber) + 1;

  bannerSrc = bannerSrcStart + randomNumber + bannerSrcEnd;


  //use this line to set the images as a background image
  //MM_findObj('youruniqueid').style.backgroundImage = 'url(' + bannerSrc + ')';

  //use this line to set the images as an inline image
  MM_findObj('youruniqueid').innerHTML = '<img border=0 src=' + bannerSrc + '>';

}


//this is used to set the text to a bigger font size
//this looks for default things such as h1, h2, p, a tags
//may need to customise to your site

var maxResize = 6;
var minResize = 1;
var currentResize = 3;
function biggerFont()
{
 if (!document.getElementById)
  return;
 if (!document.getElementsByTagName)
  return;
 var canResize = 0;
 if (document.getElementById("content"))
 {
  canResize = 1;
  var contentArea = document.getElementById("content");
 }
 if (document.getElementById("content"))
 {
  canResize = 1;
  var contentArea = document.getElementById("content");
 }
 if (document.getElementById("content"))
 {
  canResize = 1;
  var contentArea = document.getElementById("content");
 }
 if (canResize == 1 && currentResize < maxResize)
 {
  currentResize = currentResize + 1;
  canResize = 2;
 }
 if (canResize == 2)
 {
  var heading1 = contentArea.getElementsByTagName("h1");
  var heading2 = contentArea.getElementsByTagName("h2");
  var heading3 = contentArea.getElementsByTagName("h3");
  var heading4 = contentArea.getElementsByTagName("h4");
  var heading5 = contentArea.getElementsByTagName("h5");
  var heading6 = contentArea.getElementsByTagName("h6");
  var textPara = contentArea.getElementsByTagName("p");
  var textList = contentArea.getElementsByTagName("li");
  var textLinks = contentArea.getElementsByTagName("a");
  var textSpans = contentArea.getElementsByTagName("span");
 
  for (var i=0; i<textSpans.length; i++)
  {
   var textSizeStyle = getStyle(textSpans[i], "font-size");
   if (textSizeStyle.indexOf("px") > 0)
   { 
    var textSizeStyleValue = textSizeStyle.indexOf("px");
    var textSizeStyleValue2 = textSizeStyle.substring(0, textSizeStyleValue);
    textSpans[i].style.fontSize = textSizeStyleValue2*1.2 + "px";
   }
   if (textSizeStyle.indexOf("em") > 0)
   { 
    var textSizeStyleValue = textSizeStyle.indexOf("em");
    var textSizeStyleValue2 = textSizeStyle.substring(0, textSizeStyleValue);
    textSpans[i].style.fontSize = textSizeStyleValue2*1.2 + "em";
   }  
   if (textSizeStyle.indexOf("%") > 0)
   {
    var textSizeStyleValue = textSizeStyle.indexOf("%");
    var textSizeStyleValue2 = textSizeStyle.substring(0, textSizeStyleValue);
    textSpans[i].style.fontSize = textSizeStyleValue2*1.2 + "%";  
   }
  }
 
  for (var i=0; i<textLinks.length; i++)
  {
   var textSizeStyle = getStyle(textLinks[i], "font-size");
   if (textSizeStyle.indexOf("px") > 0)
   { 
    var textSizeStyleValue = textSizeStyle.indexOf("px");
    var textSizeStyleValue2 = textSizeStyle.substring(0, textSizeStyleValue);
    textLinks[i].style.fontSize = textSizeStyleValue2*1.2 + "px";
   }
   if (textSizeStyle.indexOf("em") > 0)
   { 
    var textSizeStyleValue = textSizeStyle.indexOf("em");
    var textSizeStyleValue2 = textSizeStyle.substring(0, textSizeStyleValue);
    textLinks[i].style.fontSize = textSizeStyleValue2*1.2 + "em";
   }  
   if (textSizeStyle.indexOf("%") > 0)
   {
    var textSizeStyleValue = textSizeStyle.indexOf("%");
    var textSizeStyleValue2 = textSizeStyle.substring(0, textSizeStyleValue);
    textLinks[i].style.fontSize = textSizeStyleValue2*1.2 + "%";  
   }
  }
 
  for (var i=0; i<textPara.length; i++)
  {
   var textSizeStyle = getStyle(textPara[i], "font-size");
   if (textSizeStyle.indexOf("px") > 0)
   {
    var textSizeStyleValue = textSizeStyle.indexOf("px");
    var textSizeStyleValue2 = textSizeStyle.substring(0, textSizeStyleValue);
    textPara[i].style.fontSize = textSizeStyleValue2*1.2 + "px";
   }
   if (textSizeStyle.indexOf("em") > 0)
   {
    var textSizeStyleValue = textSizeStyle.indexOf("em");
    var textSizeStyleValue2 = textSizeStyle.substring(0, textSizeStyleValue);
    textPara[i].style.fontSize = textSizeStyleValue2*1.2 + "em";
   }  
   if (textSizeStyle.indexOf("%") > 0)
   {
    var textSizeStyleValue = textSizeStyle.indexOf("%");
    var textSizeStyleValue2 = textSizeStyle.substring(0, textSizeStyleValue);
    textPara[i].style.fontSize = textSizeStyleValue2*1.2 + "%";
   }  
  }
  for (var i=0; i<textList.length; i++)
  {
   var textSizeStyle = getStyle(textList[i], "font-size");
   if (textSizeStyle.indexOf("px") > 0)
   {  
    var textSizeStyleValue = textSizeStyle.indexOf("px");
    var textSizeStyleValue2 = textSizeStyle.substring(0, textSizeStyleValue);
    textList[i].style.fontSize = textSizeStyleValue2*1.2 + "px";
   }
   if (textSizeStyle.indexOf("em") > 0)
   {  
    var textSizeStyleValue = textSizeStyle.indexOf("em");
    var textSizeStyleValue2 = textSizeStyle.substring(0, textSizeStyleValue);
    textList[i].style.fontSize = textSizeStyleValue2*1.2 + "em";
   }  
   if (textSizeStyle.indexOf("%") > 0)
   {
    var textSizeStyleValue = textSizeStyle.indexOf("%");
    var textSizeStyleValue2 = textSizeStyle.substring(0, textSizeStyleValue);
    textList[i].style.fontSize = textSizeStyleValue2*1.2 + "%";  
   }
  }
  for (var i=0; i<heading1.length; i++)
  {
   var textSizeStyle = getStyle(heading1[i], "font-size");
   if (textSizeStyle.indexOf("px") > 0)
   {  
    var textSizeStyleValue = textSizeStyle.indexOf("px");
    var textSizeStyleValue2 = textSizeStyle.substring(0, textSizeStyleValue);
    heading1[i].style.fontSize = textSizeStyleValue2*1.2 + "px";
   }
   if (textSizeStyle.indexOf("em") > 0)
   {  
    var textSizeStyleValue = textSizeStyle.indexOf("em");
    var textSizeStyleValue2 = textSizeStyle.substring(0, textSizeStyleValue);
    heading1[i].style.fontSize = textSizeStyleValue2*1.2 + "em";
   }  
   if (textSizeStyle.indexOf("%") > 0)
   {
    var textSizeStyleValue = textSizeStyle.indexOf("%");
    var textSizeStyleValue2 = textSizeStyle.substring(0, textSizeStyleValue);
    heading1[i].style.fontSize = textSizeStyleValue2*1.2 + "%";  
   }
  }
  for (var i=0; i<heading2.length; i++)
  {
   var textSizeStyle = getStyle(heading2[i], "font-size");
   if (textSizeStyle.indexOf("px") > 0)
   {  
    var textSizeStyleValue = textSizeStyle.indexOf("px");
    var textSizeStyleValue2 = textSizeStyle.substring(0, textSizeStyleValue);
    heading2[i].style.fontSize = textSizeStyleValue2*1.2 + "px";
   }
   if (textSizeStyle.indexOf("em") > 0)
   {  
    var textSizeStyleValue = textSizeStyle.indexOf("em");
    var textSizeStyleValue2 = textSizeStyle.substring(0, textSizeStyleValue);
    heading2[i].style.fontSize = textSizeStyleValue2*1.2 + "em";
   }  
   if (textSizeStyle.indexOf("%") > 0)
   {
    var textSizeStyleValue = textSizeStyle.indexOf("%");
    var textSizeStyleValue2 = textSizeStyle.substring(0, textSizeStyleValue);
    heading2[i].style.fontSize = textSizeStyleValue2*1.2 + "%";
   }
  }
 
  for (var i=0; i<heading3.length; i++)
  {
   var textSizeStyle = getStyle(heading3[i], "font-size");
   if (textSizeStyle.indexOf("px") > 0)
   {  
    var textSizeStyleValue = textSizeStyle.indexOf("px");
    var textSizeStyleValue2 = textSizeStyle.substring(0, textSizeStyleValue);
    heading3[i].style.fontSize = textSizeStyleValue2*1.2 + "px";
   }
   if (textSizeStyle.indexOf("em") > 0)
   {  
    var textSizeStyleValue = textSizeStyle.indexOf("em");
    var textSizeStyleValue2 = textSizeStyle.substring(0, textSizeStyleValue);
    heading3[i].style.fontSize = textSizeStyleValue2*1.2 + "em";
   }  
   if (textSizeStyle.indexOf("%") > 0)
   {
    var textSizeStyleValue = textSizeStyle.indexOf("%");
    var textSizeStyleValue2 = textSizeStyle.substring(0, textSizeStyleValue);
    heading3[i].style.fontSize = textSizeStyleValue2*1.2 + "%";
   }
  }
 
  for (var i=0; i<heading4.length; i++)
  {
   var textSizeStyle = getStyle(heading4[i], "font-size");
   if (textSizeStyle.indexOf("px") > 0)
   {  
    var textSizeStyleValue = textSizeStyle.indexOf("px");
    var textSizeStyleValue2 = textSizeStyle.substring(0, textSizeStyleValue);
    heading4[i].style.fontSize = textSizeStyleValue2*1.2 + "px";
   }
   if (textSizeStyle.indexOf("em") > 0)
   {  
    var textSizeStyleValue = textSizeStyle.indexOf("em");
    var textSizeStyleValue2 = textSizeStyle.substring(0, textSizeStyleValue);
    heading4[i].style.fontSize = textSizeStyleValue2*1.2 + "em";
   }  
   if (textSizeStyle.indexOf("%") > 0)
   {
    var textSizeStyleValue = textSizeStyle.indexOf("%");
    var textSizeStyleValue2 = textSizeStyle.substring(0, textSizeStyleValue);
    heading4[i].style.fontSize = textSizeStyleValue2*1.2 + "%";
   }
  }
 
  for (var i=0; i<heading5.length; i++)
  {
   var textSizeStyle = getStyle(heading5[i], "font-size");
   if (textSizeStyle.indexOf("px") > 0)
   {  
    var textSizeStyleValue = textSizeStyle.indexOf("px");
    var textSizeStyleValue2 = textSizeStyle.substring(0, textSizeStyleValue);
    heading5[i].style.fontSize = textSizeStyleValue2*1.2 + "px";
   }
   if (textSizeStyle.indexOf("em") > 0)
   {  
    var textSizeStyleValue = textSizeStyle.indexOf("em");
    var textSizeStyleValue2 = textSizeStyle.substring(0, textSizeStyleValue);
    heading5[i].style.fontSize = textSizeStyleValue2*1.2 + "em";
   }  
   if (textSizeStyle.indexOf("%") > 0)
   {
    var textSizeStyleValue = textSizeStyle.indexOf("%");
    var textSizeStyleValue2 = textSizeStyle.substring(0, textSizeStyleValue);
    heading5[i].style.fontSize = textSizeStyleValue2*1.2 + "%";  
   }
  }
 
  for (var i=0; i<heading6.length; i++)
  {
   var textSizeStyle = getStyle(heading6[i], "font-size");
   if (textSizeStyle.indexOf("px") > 0)
   {  
    var textSizeStyleValue = textSizeStyle.indexOf("px");
    var textSizeStyleValue2 = textSizeStyle.substring(0, textSizeStyleValue);
    heading6[i].style.fontSize = textSizeStyleValue2*1.2 + "px";
   }
   if (textSizeStyle.indexOf("em") > 0)
   {  
    var textSizeStyleValue = textSizeStyle.indexOf("em");
    var textSizeStyleValue2 = textSizeStyle.substring(0, textSizeStyleValue);
    heading6[i].style.fontSize = textSizeStyleValue2*1.2 + "em";
   }  
   if (textSizeStyle.indexOf("%") > 0)
   {
    var textSizeStyleValue = textSizeStyle.indexOf("%");
    var textSizeStyleValue2 = textSizeStyle.substring(0, textSizeStyleValue);
    heading6[i].style.fontSize = textSizeStyleValue2*1.2 + "%";  
   }
  }
 }
}
function normalFont()
{
 if (!document.getElementById)
  return;
 if (!document.getElementsByTagName)
  return;
 
 var canResize = 0;
 
 if (document.getElementById("content"))
 {
  canResize = 1;
  var contentArea = document.getElementById("content");
 }
 if (document.getElementById("content"))
 {
  canResize = 1;
  var contentArea = document.getElementById("content");
 }
 if (document.getElementById("ctl00_left"))
 {
  canResize = 1;
  var contentArea = document.getElementById("ctl00_left");
 }
 if (canResize == 1 && currentResize > minResize)
 {
  currentResize = currentResize - 1;
  canResize = 2;
 }
 if (canResize == 2)
 { 
  var heading1 = contentArea.getElementsByTagName("h1");
  var heading2 = contentArea.getElementsByTagName("h2");
  var heading3 = contentArea.getElementsByTagName("h3");
  var heading4 = contentArea.getElementsByTagName("h4");
  var heading5 = contentArea.getElementsByTagName("h5");
  var heading6 = contentArea.getElementsByTagName("h6");
  var textPara = contentArea.getElementsByTagName("p");
  var textList = contentArea.getElementsByTagName("li");
  var textLinks = contentArea.getElementsByTagName("a");
  var textSpans = contentArea.getElementsByTagName("span");
 
  for (var i=0; i<textSpans.length; i++)
  {
   var textSizeStyle = getStyle(textSpans[i], "font-size");
   if (textSizeStyle.indexOf("px") > 0)
   { 
    var textSizeStyleValue = textSizeStyle.indexOf("px");
    var textSizeStyleValue2 = textSizeStyle.substring(0, textSizeStyleValue);
    textSpans[i].style.fontSize = textSizeStyleValue2*0.8335 + "px";
   }
   if (textSizeStyle.indexOf("em") > 0)
   { 
    var textSizeStyleValue = textSizeStyle.indexOf("em");
    var textSizeStyleValue2 = textSizeStyle.substring(0, textSizeStyleValue);
    textSpans[i].style.fontSize = textSizeStyleValue2*0.8335 + "em";
   }  
   if (textSizeStyle.indexOf("%") > 0)
   {
    var textSizeStyleValue = textSizeStyle.indexOf("%");
    var textSizeStyleValue2 = textSizeStyle.substring(0, textSizeStyleValue);
    textSpans[i].style.fontSize = textSizeStyleValue2*0.8335 + "%";  
   }
  }
  for (var i=0; i<textLinks.length; i++)
  {
   var textSizeStyle = getStyle(textLinks[i], "font-size");
   if (textSizeStyle.indexOf("px") > 0)
   {  
    var textSizeStyleValue = textSizeStyle.indexOf("px");
    var textSizeStyleValue2 = textSizeStyle.substring(0, textSizeStyleValue);
    textLinks[i].style.fontSize = textSizeStyleValue2*0.8335 + "px";
   }
   if (textSizeStyle.indexOf("em") > 0)
   {  
    var textSizeStyleValue = textSizeStyle.indexOf("em");
    var textSizeStyleValue2 = textSizeStyle.substring(0, textSizeStyleValue);
    textLinks[i].style.fontSize = textSizeStyleValue2*0.8335 + "em";
   }  
   if (textSizeStyle.indexOf("%") > 0)
   {
    var textSizeStyleValue = textSizeStyle.indexOf("%");
    var textSizeStyleValue2 = textSizeStyle.substring(0, textSizeStyleValue);
    textLinks[i].style.fontSize = textSizeStyleValue2*0.8335 + "%";  
   }
  }
 
  for (var i=0; i<textPara.length; i++)
  {
   var textSizeStyle = getStyle(textPara[i], "font-size");
   if (textSizeStyle.indexOf("px") > 0)
   {  
    var textSizeStyleValue = textSizeStyle.indexOf("px");
    var textSizeStyleValue2 = textSizeStyle.substring(0, textSizeStyleValue);
    textPara[i].style.fontSize = textSizeStyleValue2*0.8335 + "px";
   }
   if (textSizeStyle.indexOf("em") > 0)
   {  
    var textSizeStyleValue = textSizeStyle.indexOf("em");
    var textSizeStyleValue2 = textSizeStyle.substring(0, textSizeStyleValue);
    textPara[i].style.fontSize = textSizeStyleValue2*0.8335 + "em";
   }  
   if (textSizeStyle.indexOf("%") > 0)
   {
    var textSizeStyleValue = textSizeStyle.indexOf("%");
    var textSizeStyleValue2 = textSizeStyle.substring(0, textSizeStyleValue);
    textPara[i].style.fontSize = textSizeStyleValue2*0.8335 + "%";  
   }
  }
  for (var i=0; i<textList.length; i++)
  {
   var textSizeStyle = getStyle(textList[i], "font-size");
   if (textSizeStyle.indexOf("px") > 0)
   {  
    var textSizeStyleValue = textSizeStyle.indexOf("px");
    var textSizeStyleValue2 = textSizeStyle.substring(0, textSizeStyleValue);
    textList[i].style.fontSize = textSizeStyleValue2*0.8335 + "px";
   }
   if (textSizeStyle.indexOf("em") > 0)
   {  
    var textSizeStyleValue = textSizeStyle.indexOf("em");
    var textSizeStyleValue2 = textSizeStyle.substring(0, textSizeStyleValue);
    textList[i].style.fontSize = textSizeStyleValue2*0.8335 + "em";
   }
   if (textSizeStyle.indexOf("%") > 0)
   {
    var textSizeStyleValue = textSizeStyle.indexOf("%");
    var textSizeStyleValue2 = textSizeStyle.substring(0, textSizeStyleValue);
    textList[i].style.fontSize = textSizeStyleValue2*0.8335 + "%";  
   }
  }
  for (var i=0; i<heading1.length; i++)
  {
   var textSizeStyle = getStyle(heading1[i], "font-size");
   if (textSizeStyle.indexOf("px") > 0)
   {  
    var textSizeStyleValue = textSizeStyle.indexOf("px");
    var textSizeStyleValue2 = textSizeStyle.substring(0, textSizeStyleValue);
    heading1[i].style.fontSize = textSizeStyleValue2*0.8335 + "px";
   }
   if (textSizeStyle.indexOf("em") > 0)
   {  
    var textSizeStyleValue = textSizeStyle.indexOf("em");
    var textSizeStyleValue2 = textSizeStyle.substring(0, textSizeStyleValue);
    heading1[i].style.fontSize = textSizeStyleValue2*0.8335 + "em";
   }
   if (textSizeStyle.indexOf("%") > 0)
   {  
    var textSizeStyleValue = textSizeStyle.indexOf("%");
    var textSizeStyleValue2 = textSizeStyle.substring(0, textSizeStyleValue);
    heading1[i].style.fontSize = textSizeStyleValue2*0.8335 + "%";
   }
  }
  for (var i=0; i<heading2.length; i++)
  {
   var textSizeStyle = getStyle(heading2[i], "font-size");
   if (textSizeStyle.indexOf("px") > 0)
   {   
    var textSizeStyleValue = textSizeStyle.indexOf("px");
    var textSizeStyleValue2 = textSizeStyle.substring(0, textSizeStyleValue);
    heading2[i].style.fontSize = textSizeStyleValue2*0.8335 + "px";
   }
   if (textSizeStyle.indexOf("em") > 0)
   {   
    var textSizeStyleValue = textSizeStyle.indexOf("em");
    var textSizeStyleValue2 = textSizeStyle.substring(0, textSizeStyleValue);
    heading2[i].style.fontSize = textSizeStyleValue2*0.8335 + "em";
   }  
   if (textSizeStyle.indexOf("%") > 0)
   {
    var textSizeStyleValue = textSizeStyle.indexOf("%");
    var textSizeStyleValue2 = textSizeStyle.substring(0, textSizeStyleValue);
    heading2[i].style.fontSize = textSizeStyleValue2*0.8335 + "%";
   }
  }
 
  for (var i=0; i<heading3.length; i++)
  {
   var textSizeStyle = getStyle(heading3[i], "font-size");
   if (textSizeStyle.indexOf("px") > 0)
   {   
    var textSizeStyleValue = textSizeStyle.indexOf("px");
    var textSizeStyleValue2 = textSizeStyle.substring(0, textSizeStyleValue);
    heading3[i].style.fontSize = textSizeStyleValue2*0.8335 + "px";
   }
   if (textSizeStyle.indexOf("em") > 0)
   {   
    var textSizeStyleValue = textSizeStyle.indexOf("em");
    var textSizeStyleValue2 = textSizeStyle.substring(0, textSizeStyleValue);
    heading3[i].style.fontSize = textSizeStyleValue2*0.8335 + "em";
   }  
   if (textSizeStyle.indexOf("%") > 0)
   { 
    var textSizeStyleValue = textSizeStyle.indexOf("%");
    var textSizeStyleValue2 = textSizeStyle.substring(0, textSizeStyleValue);
    heading3[i].style.fontSize = textSizeStyleValue2*0.8335 + "%";
   }  
  }
 
  for (var i=0; i<heading4.length; i++)
  {
   var textSizeStyle = getStyle(heading4[i], "font-size");
   if (textSizeStyle.indexOf("px") > 0)
   {   
    var textSizeStyleValue = textSizeStyle.indexOf("px");
    var textSizeStyleValue2 = textSizeStyle.substring(0, textSizeStyleValue);
    heading4[i].style.fontSize = textSizeStyleValue2*0.8335 + "px";
   }
   if (textSizeStyle.indexOf("em") > 0)
   {   
    var textSizeStyleValue = textSizeStyle.indexOf("em");
    var textSizeStyleValue2 = textSizeStyle.substring(0, textSizeStyleValue);
    heading4[i].style.fontSize = textSizeStyleValue2*0.8335 + "em";
   }  
   if (textSizeStyle.indexOf("%") > 0)
   {
    var textSizeStyleValue = textSizeStyle.indexOf("%");
    var textSizeStyleValue2 = textSizeStyle.substring(0, textSizeStyleValue);
    heading4[i].style.fontSize = textSizeStyleValue2*0.8335 + "%";
   }  
  }
 
  for (var i=0; i<heading5.length; i++)
  {
   var textSizeStyle = getStyle(heading5[i], "font-size");
   if (textSizeStyle.indexOf("px") > 0)
   {   
    var textSizeStyleValue = textSizeStyle.indexOf("px");
    var textSizeStyleValue2 = textSizeStyle.substring(0, textSizeStyleValue);
    heading5[i].style.fontSize = textSizeStyleValue2*0.8335 + "px";
   }
   if (textSizeStyle.indexOf("em") > 0)
   {   
    var textSizeStyleValue = textSizeStyle.indexOf("em");
    var textSizeStyleValue2 = textSizeStyle.substring(0, textSizeStyleValue);
    heading5[i].style.fontSize = textSizeStyleValue2*0.8335 + "em";
   }  
   if (textSizeStyle.indexOf("%") > 0)
   {
    var textSizeStyleValue = textSizeStyle.indexOf("%");
    var textSizeStyleValue2 = textSizeStyle.substring(0, textSizeStyleValue);
    heading5[i].style.fontSize = textSizeStyleValue2*0.8335 + "%";
   }  
  }
 
  for (var i=0; i<heading6.length; i++)
  {
   var textSizeStyle = getStyle(heading6[i], "font-size");
   if (textSizeStyle.indexOf("px") > 0)
   {   
    var textSizeStyleValue = textSizeStyle.indexOf("px");
    var textSizeStyleValue2 = textSizeStyle.substring(0, textSizeStyleValue);
    heading6[i].style.fontSize = textSizeStyleValue2*0.8335 + "px";
   }
   if (textSizeStyle.indexOf("em") > 0)
   {   
    var textSizeStyleValue = textSizeStyle.indexOf("em");
    var textSizeStyleValue2 = textSizeStyle.substring(0, textSizeStyleValue);
    heading6[i].style.fontSize = textSizeStyleValue2*0.8335 + "em";
   }  
   if (textSizeStyle.indexOf("%") > 0)
   {
    var textSizeStyleValue = textSizeStyle.indexOf("%");
    var textSizeStyleValue2 = textSizeStyle.substring(0, textSizeStyleValue);
    heading6[i].style.fontSize = textSizeStyleValue2*0.8335 + "%";
   }  
  }
 }
}
 
function getStyle(oElm, strCssRule)
{
 var strValue = "";
 if(document.defaultView && document.defaultView.getComputedStyle){
  strValue = document.defaultView.getComputedStyle(oElm, "").getPropertyValue(strCssRule);
 }
 else if(oElm.currentStyle){
  strCssRule = strCssRule.replace(/\-(\w)/g, function (strMatch, p1){
   return p1.toUpperCase();
  });
  strValue = oElm.currentStyle[strCssRule];
 }
 return strValue;
}

  function printpage() {
  window.print();
  }
