function openRegisterEvent(url)
{   
    window.open(url, "Event", "height=600,width=590,status=yes,toolbar=no,menubar=no,location=no,resizable=1,scrollbars=1");   
}

function openRegisterTraining(url)
{   
    window.open(url, "Training", "height=695,width=825,status=yes,toolbar=no,menubar=no,location=no,resizable=1,scrollbars=1");   
}

function openLocationLink(url)
{   
    window.open(url, "Location", "height=600,width=700,resizable=1");   
}

function HideTags(TagName)
{
    var Tags = document.documentElement.getElementsByTagName(TagName);
    for(var index = 0;index<Tags.length;index++)
    {
     if(navigator.appName == "Microsoft Internet Explorer")
     {
       if(Tags[index].outerText.length <=1)
       Tags[index].style.display='none';
     }
     else // FireFox is not support outertext property
     {
       if(Tags[index].textContent.length <=1)
       Tags[index].style.display='none';
     }    
    } 
}

function HideId(Id)
{
    var Tags = document.getElementById(Id);
    if(navigator.appName == "Microsoft Internet Explorer")
    {
       if(Tags.innerHTML.length <=1)
       Tags.style.display='none';
    }
    else // FireFox is not support outertext property
    {
       if(Tags.innerHTML.length <=1)
       Tags.style.display='none';
    }    
     
}


function HideClass(TagName,ClassName)
{
    var Tags = document.documentElement.getElementsByTagName(TagName);
    
    for(var index = 0;index<Tags.length;index++)
    {
     if(Tags[index].className == ClassName)
     {
        if(navigator.appName == "Microsoft Internet Explorer")
        {
            if(Tags[index].outerText.length <=1)
            Tags[index].style.display='none';
        }
        else // FireFox is not support outertext property
        {
            if(Tags[index].textContent.length <=1)
            Tags[index].style.display='none';
        }
     }    
    } 
}

