﻿function regular()
{
    var h1 = document.getElementsByTagName('h1');
    var h2 = document.getElementsByTagName('h2');
    var h3 = document.getElementsByTagName('h3');
    var p = document.getElementsByTagName('p');
    var li = document.getElementsByTagName('li');
    var td = document.getElementsByTagName('td');
    for (i=0;i<h1.length;i++)
    {
        h1[i].style.fontSize = "19px"
    }
    
    for (i=0;i<h2.length;i++)
    {
        h2[i].style.fontSize = "18px"
    }
    
    for (i=0;i<h3.length;i++)
    {
        h3[i].style.fontSize = "15px"
    }
    
    for (i=0;i<p.length;i++)
    {
        p[i].style.fontSize = "14px"
    }
    
    for (i=0;i<li.length;i++)
    {
        li[i].style.fontSize = "15px"
    }
    
    for (i=0;i<td.length;i++)
    {
        td[i].style.fontSize = "14px"
    }
}

//--------------------------------

function large()
{
    var h1 = document.getElementsByTagName('h1');
    var h2 = document.getElementsByTagName('h2');
    var h3 = document.getElementsByTagName('h3');
    var p = document.getElementsByTagName('p');
    var li = document.getElementsByTagName('li');
    var td = document.getElementsByTagName('td');
    for (i=0;i<h1.length;i++)
    {
        h1[i].style.fontSize = "21px"
    }
    
    for (i=0;i<h2.length;i++)
    {
        h2[i].style.fontSize = "20px"
    }
    
    for (i=0;i<h3.length;i++)
    {
        h3[i].style.fontSize = "17px"
    }
    
    for (i=0;i<p.length;i++)
    {
        p[i].style.fontSize = "16px"
    }
    
    for (i=0;i<li.length;i++)
    {
        li[i].style.fontSize = "17px"
    }
    
   for (i=0;i<td.length;i++)
    {
        td[i].style.fontSize = "16px"
    }
}

//----------------------------------

function extralarge()
{
    var h1 = document.getElementsByTagName('h1');
    var h2 = document.getElementsByTagName('h2');
    var h3 = document.getElementsByTagName('h3');
    var p = document.getElementsByTagName('p');
    var li = document.getElementsByTagName('li');
    var td = document.getElementsByTagName('td');
    for (i=0;i<h1.length;i++)
    {
        h1[i].style.fontSize = "23px"
    }
    
    for (i=0;i<h2.length;i++)
    {
        h2[i].style.fontSize = "22px"
    }
    
    for (i=0;i<h3.length;i++)
    {
        h3[i].style.fontSize = "19px"
    }
    
    for (i=0;i<p.length;i++)
    {
        p[i].style.fontSize = "18px"
    }
    
    for (i=0;i<li.length;i++)
    {
        li[i].style.fontSize = "19px"
    }
    
   for (i=0;i<td.length;i++)
    {
        td[i].style.fontSize = "18px"
    }
}

/*---------------------------------------------*/
function show(_id, _margin)
     {
     window.document.getElementById(_id).style.display="block";
     window.document.getElementById(_id).style.marginLeft=_margin;
     }
     function hide(_id, _margin)
     {
     window.document.getElementById(_id).style.display="none";
     window.document.getElementById(_id).style.marginLeft=_margin;
     }


/*************************************************/
function Refer(num)
{
    url="http://enable3d.biz/review/glaucoma/Includes/Reference.aspx#"+num
    window.open(url,"","toolbar=0,statusbar=0, width=600, height=600")
}

/*-------------------------------------------------------------*/

arImageList = new Array ();

function preLoadCatImages(images_array) {
	for(loop = 0; loop < images_array.length; loop++)
	{
           arImageList[loop] = new Image(); 
           arImageList[loop].src = images_array[loop];
	}
}
	function leave_site(url)
	{
		window.open("../includes/outsidelink.aspx?url=" + url,"", "width=400,height=180,toolbar=no,menubar=no,statusbar=no"); 
	}
	function leave_site1(url)
	{
		window.open("includes/outsidelink.aspx?url=" + url,"", "width=500,height=180,toolbar=no,menubar=no,statusbar=no"); 
	}
	function  openwin(id)
   {
   
       window.open('<%=gPath%>common/ref1.aspx#'+id,"References","top=30 left=50 width=618, height=500 scrollbars=yes")
   }
	   function  opengloss(id)
   {
   
       window.open('<%=gPath%>common/glosspopup.aspx#'+id,"","top=30 left=50 width=618, height=500 scrollbars=yes")
   }