﻿function GetBrowserVer()
{
    if (isIE)
    {
        return parseFloat(ua.split("MSIE")[1]);
    }
    else if(isFF)
    {
       return parseFloat(ua.split("Firefox/")[1]);
    }
}

var islt7IE;
islt7IE = isIE&&GetBrowserVer()<7;
 
function FillPNG(obj,img)
{
    if (islt7IE)
    {
        obj.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+img+"',sizingMethod='crop')";
    }
    else
    {
        obj.style.backgroundImage="url("+img+")";
    }
}

function divVisible(strDivId, strVisible)
{
    var objDiv = getObj(strDivId);
    if(objDiv == null)
        return;
        
    objDiv.style.display = strVisible;
        
}

function getObj(strObjId)
{
    return document.getElementById(strObjId);
}

        