﻿
function detectaBrowser() 
{
    if(navigator.appName.toLowerCase().indexOf("microsoft internet explorer") > -1)
    {
        return("ie");
    }else{
            if (navigator.appName.toLowerCase().indexOf("netscape") > -1)
            return("firefox");
            }
};
function redimensiona(altura)
{
        
var br = detectaBrowser();
        
if(br=="ie")
{
    $("#myFrame").css("height", (altura + "px"));
}else{
    $("#myFrame").css("height", (altura + 100 + "px"));
        
}
        
    //document.getElementById('myFrame').style.height = altura + "px";
    $("#myFrame").css("height", (altura + "px"));
};



