// JavaScript Document
function A1c()                   
 {
 var n = document.getElementById("num").value
 var d = document.getElementById("dec").value
   var x = (n/1) + (d/10)
   var y = eval((x * 35.6) - 77.3)
   var z = (Math.round(y)) 
   document.getElementById("txtResults").value = z
   var xx = (n/1) + (d/10)
   var yy = eval((xx * 30) - 60)
   var zz = (Math.round(yy)) 
   document.getElementById("txtResults1").value = zz
  }
  
function changeColor1()
{
   document.getElementById("tdgfr").style.backgroundColor="#f5f5f5";
}

function revertColor1()
{
  document.getElementById("tdgfr").style.backgroundColor="transparent";
}
////////////////////////////////////////////////////////////////////////////////
function changeColor2()
{
   document.getElementById("tduAlb").style.backgroundColor="#f5f5f5";
}

function revertColor2()
{
   document.getElementById("tduAlb").style.backgroundColor="transparent";
}
//////////////////////////////////////////////////////////////////////////////////
function changeColor3()
{
   document.getElementById("tda1c").style.backgroundColor="#f5f5f5";
}

function revertColor3()
{
   document.getElementById("tda1c").style.backgroundColor="transparent";
}
///////////////////////////////////////////////////////////////////////////////////
function changeColor4()
{
   document.getElementById("tdcoum").style.backgroundColor="#f5f5f5";
}

function revertColor4()
{
   document.getElementById("tdcoum").style.backgroundColor="transparent";
}
function rollover() {
    var images = document.getElementsByTagName("img");
    for (var i = 0; i < images.length; i++) {
        images[i].onmouseover = function() { this.src = this.id + "_over.gif"; }
        images[i].onmouseout = function() { this.src = this.id + "_default.gif"; }
    }
}
window.onload = rollover;
function losefocus(){
  var x5=document.getElementById('myAnchor5');
  var x4=document.getElementById('myAnchor4');
   var x3=document.getElementById('myAnchor3');
  var x2=document.getElementById('myAnchor2');
   var x1=document.getElementById('myAnchor1');
 
  x5.blur()
  x4.blur()
  x3.blur()
  x2.blur()
  x1.blur()}
 