﻿function GetElement(id) {
    if(document.all) {
        return document.all[id];
    }
    return document.getElementById(id);
}
function showHideControl(id,val)
{
    var obj = GetElement(id);
    if(!obj){return;}
    if(val)
    {
        obj.style.display = 'inline';        
    }
    else
    {
         obj.style.display = 'none';     
    }
}