var min=8;
var max=50;
function increaseFontSize() {
   var p = document.getElementsByTagName('p');
   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 += 1;
      }
      p[i].style.fontSize = s+"px"
   }
}
function decreaseFontSize() {
   var p = document.getElementsByTagName('p');
   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!=min) {
         s -= 1;
      }
      p[i].style.fontSize = s+"px"
   }   
}


function increaseFontSizea() {
   var p = document.getElementsByTagName('a');
   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 += 1;
      }
      p[i].style.fontSize = s+"px"
   }
}
function decreaseFontSizea() {
   var p = document.getElementsByTagName('a');
   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!=min) {
         s -= 1;
      }
      p[i].style.fontSize = s+"px"
   }   
}



function increaseFontSizediv() {
   var p = document.getElementsByTagName('div');
   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 += 1;
      }
      p[i].style.fontSize = s+"px"
   }
}
function decreaseFontSizediv() {
   var p = document.getElementsByTagName('div');
   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!=min) {
         s -= 1;
      }
      p[i].style.fontSize = s+"px"
   }   
}

function increaseFontSizetd() {
   var p = document.getElementsByTagName('td');
   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 += 1;
      }
      p[i].style.fontSize = s+"px"
   }
}
function decreaseFontSizetd() 
{
   var p = document.getElementsByTagName('td');
   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!=min) {
         s -= 1;
      }
      p[i].style.fontSize = s+"px"
   }   
}

// start black
function colorblack1() 
{
   var p1 = document.getElementsByTagName('td');
   for(i=0;i<p1.length;i++) 
   {
      p1[i].style.color = '#000000'
   }   
}

function colorblack2() 
{
   var p2 = document.getElementsByTagName('p');
   for(i=0;i<p2.length;i++) 
   {
      p2[i].style.color = '#000000'
   }   
}
function colorblack3() 
{
   var p3 = document.getElementsByTagName('a');
   for(i=0;i<p3.length;i++) 
   {
      p3[i].style.color = '#000000'
   }   
}

function colorblack4() 
{
   var p4 = document.getElementsByTagName('div');
   for(i=0;i<p4.length;i++) 
   {
      p4[i].style.color = '#000000'
   }   
}

// end black


// start blue

function colorblue1() 
{
   var p1 = document.getElementsByTagName('td');
   for(i=0;i<p1.length;i++) 
   {
      p1[i].style.color = 'blue'
   }   
}

function colorblue2() 
{
   var p2 = document.getElementsByTagName('p');
   for(i=0;i<p2.length;i++) 
   {
      p2[i].style.color = 'blue'
   }   
}
function colorblue3() 
{
   var p3 = document.getElementsByTagName('a');
   for(i=0;i<p3.length;i++) 
   {
      p3[i].style.color = 'blue'
   }   
}

function colorblue4() 
{
   var p4 = document.getElementsByTagName('div');
   for(i=0;i<p4.length;i++) 
   {
      p4[i].style.color = 'blue'
   }   
}

// end blue


// start green

function colorgreen1() 
{
   var p1 = document.getElementsByTagName('td');
   for(i=0;i<p1.length;i++) 
   {
      p1[i].style.color = 'green'
   }   
}

function colorgreen2() 
{
   var p2 = document.getElementsByTagName('p');
   for(i=0;i<p2.length;i++) 
   {
      p2[i].style.color = 'green'
   }   
}
function colorgreen3() 
{
   var p3 = document.getElementsByTagName('a');
   for(i=0;i<p3.length;i++) 
   {
      p3[i].style.color = 'green'
   }   
}

function colorgreen4() 
{
   var p4 = document.getElementsByTagName('div');
   for(i=0;i<p4.length;i++) 
   {
      p4[i].style.color = 'green'
   }   
}

// end green

 
 
 // start red

function colorred1() 
{
   var p1 = document.getElementsByTagName('td');
   for(i=0;i<p1.length;i++) 
   {
      p1[i].style.color = 'red'
   }   
}

function colorred2() 
{
   var p2 = document.getElementsByTagName('p');
   for(i=0;i<p2.length;i++) 
   {
      p2[i].style.color = 'red'
   }   
}
function colorred3() 
{
   var p3 = document.getElementsByTagName('a');
   for(i=0;i<p3.length;i++) 
   {
      p3[i].style.color = 'red'
   }   
}

function colorred4() 
{
   var p4 = document.getElementsByTagName('div');
   for(i=0;i<p4.length;i++) 
   {
      p4[i].style.color = 'red'
   }   
}

// end red



