

function msieversion()
{
    var ua = window.navigator.userAgent
    var msie = ua.indexOf ( "MSIE " )
    if ( msie > -1 )      // If Internet Explorer, return version number
        return (ua.substring (msie+5, ua.indexOf (";", msie )))
    else                 // If another browser, return 0
        return 0

}

function TabToggle(root,index)
{
    var child;
    var node = document.getElementById(root);
    var children = node.childNodes;
    var counter = 0;

    for(var i = 0; i < children.length; i++)
    {
        child = children[i];
        
        if (child.style == null)
        {
            continue;
        }
        if (counter != index-1)
        {
            child.style.display = "none";
            counter++;
        }
        else
        {
            child.style.display = "block";
            counter++
        }
    }
   
}
    
function GMTStringPlus(minutes)
{
    return new Date((new Date()).getTime() + (minutes * 60 * 1000)).toGMTString();
}
function GMTStringMinus(minutes)
{
    return new Date((new Date()).getTime() - (minutes * 60 * 1000)).toGMTString();
}



