﻿function ChangeFontSize(direction) {
    var p = document.getElementsByTagName('p');

    for (n = 0; n < p.length; n++) {
        if (direction == "up") {
            var size = 16; //= 15;
        } else {
            var size = 12;
        }

        p[n].style.fontSize = size + 'px';
    }
}

function HealthInformation() {
    location.href = "healthInformation.aspx";
}

	var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
	document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
	
	try {
	var pageTracker = _gat._getTracker("UA-10003720-1");
	pageTracker._trackPageview();
} catch (err) { }

function resizeText2(multiplier) {
    if (document.body.style.fontSize == "") {
        document.body.style.fontSize = "12px";
    }
    document.body.style.fontSize = parseFloat(document.body.style.fontSize) + (multiplier * 0.2) + "px";
}


function resizeTextNormal() {
    location.reload(true); //Refresh this page
}

function resizeText(multiplier) {
    if (document.body.style.fontSize == "") {
        document.body.style.fontSize = "12px";
    }
    document.body.style.fontSize = parseFloat(document.body.style.fontSize) + (multiplier) + "px";
    var p = document.getElementsByTagName('p');

    for (n = 0; n < p.length; n++) {

        p[n].style.fontSize = document.body.style.fontSize;
    }
    //
//    var dd = document.getElementsByID('greyBar');
//    dd.style.width = parseFloat(dd.style.width) + (multiplier * 5) + "px"; ;
//    
    
    //
    var dv = document.getElementsByTagName('div');

    for (n = 0; n < dv.length; n++) {
        //parseFloat(dv[n].style.fontSize)
        if (dv[n].style.fontSize == "") {
            dv[n].style.fontSize = "12px";
            }
    dv[n].style.fontSize = parseFloat(dv[n].style.fontSize) + (multiplier) + "px";
    }

    var li = document.getElementsByTagName('li');

    for (n = 0; n < li.length; n++) {
        //parseFloat(dv[n].style.fontSize)
        if (li[n].style.fontSize == "") {
            li[n].style.fontSize = "12px";
        }
        li[n].style.fontSize = parseFloat(li[n].style.fontSize) + (multiplier) + "px";
    }
    var a = document.getElementsByTagName('a');

    for (n = 0; n < a.length; n++) {
        //parseFloat(dv[n].style.fontSize)
        if (a[n].style.fontSize == "") {
            a[n].style.fontSize = "12px";
        }
        a[n].style.fontSize = parseFloat(a[n].style.fontSize) + (multiplier) + "px";
    }
    var span = document.getElementsByTagName('span');

    for (n = 0; n < span.length; n++) {
        //parseFloat(dv[n].style.fontSize)
        if (span[n].style.fontSize == "") {
            span[n].style.fontSize = "12px";
        }
        span[n].style.fontSize = parseFloat(span[n].style.fontSize) + (multiplier) + "px";
    }
}

// for watermark

function OnFocus(elementId, defaultText)
{ 
   if (document.getElementById(elementId).value == defaultText)
   {
       document.getElementById(elementId).className = "watermark"; // "SearchTextBox";
      document.getElementById(elementId).value = "";
   }
}

function OnBlur(elementId, defaultText)
{
   var textValue = document.getElementById(elementId).value;

   if (textValue == defaultText || textValue.length == 0)
   {
      document.getElementById(elementId).className = "watermark";
      document.getElementById(elementId).value = defaultText;
   }
   else
       document.getElementById(elementId).className = "watermark";;   //"SearchTextBox";
}







