function OpenPopup(url, width, height)
{
    bScrollbars = false;

    if (height > window.screen.availHeight || width > window.screen.availWidth)
    {
        if (height > (window.screen.availHeight - 60))
            height = (window.screen.availHeight - 60);
        else
            height = height + 20;

        if (width > (window.screen.availWidth - 20))
            width = (window.screen.availWidth - 20);
        else
            width = width + 20;

        bScrollbars = true;
    }

    s = "left=" + ((window.screen.availWidth - width) / 2);
    s = s + ",top=" + ((window.screen.availHeight - height) / 2);
    s = s + ",height=" + height;
    s = s + ",width=" + width;
    s = s + ",status=no";
    s = s + ",toolbar=no";
    s = s + ",menubar=no";
    s = s + ",location=no";
    s = s + ",resizable=yes";

    if (bScrollbars == true)
        s = s + ",scrollbars=yes";
    else
        s = s + ",scrollbars=no";

    window.open(url, null, s);
}
   
function isIE()
{
    ua=navigator.userAgent;
   
    if (ua.lastIndexOf("MSIE")!=-1)
        return true;
    else              
        return false;
}

function ImageSwap(newimg, imagename)
{
	newimg.src = imagename;
}

function PadBanner()
{
    if (!isIE())
    {
        //document.write("<br><br>");
        document.write("<p>&nbsp;</p>");
    }
}
