function getElementStyle(elemID, IEStyleProp, CSSStyleProp)
{
    var elem = document.getElementById(elemID);

    if (elem && elem.currentStyle)
    {

        return elem.currentStyle[IEStyleProp];
    }
    else if (elem && window.getComputedStyle)
    {
        var compStyle = window.getComputedStyle(elem, "");
        return compStyle.getPropertyValue(CSSStyleProp);
    }

    return ("");
}

function roundCorners()
{
    if (getElementStyle("topTab", "backgroundColor", "background-color") != "")
    {
        RoundTop("div.fixtabs", "#FFFFFF", "#FFFFFF", 0, 0);
        RoundTop("div.topTab", "#FFFFFF", getElementStyle("topTab", "backgroundColor", "background-color"), 12, 12);

        if (document.getElementById("tab1") != null)
        {
            RoundTop("div.tab1", getElementStyle("topTab", "backgroundColor", "background-color"), getElementStyle("tab1", "backgroundColor", "background-color"), 12, 12);
        }

        if (document.getElementById("tab2") != null)
        {
            RoundTop("div.tab2", getElementStyle("tab1", "backgroundColor", "background-color"), getElementStyle("tab2", "backgroundColor", "background-color"), 12, 12);
        }
    }
}


