function changeState(layerRef, state){
var blockElement = document.getElementById(layerRef);
blockElement.style.visibility = state;
}
function changeImg(imG,imR){
var backgroundImg = document.getElementById(imG);
backgroundImg.style.background = imR;
}
function colorText(as,ir){
var Textcolor = document.getElementById(as);
Textcolor.style.color = ir;
}

function showTable(id)
{
if(document.getElementById(id).style.display=='block')
{
document.getElementById(id).style.display='inline';
document.getElementById (id).style.display='none'; 
}
else
{
document.getElementById(id).style.display='none';
document.getElementById(id).style.display='block';
}
}
