function setIframe(h) {
  var theIframe = document.getElementById ? document.getElementById("mmiFrm"): document.all? document.all["mmiFrm"]: null;
  if (theIframe) {
    viewport.getWinHeight();
    //  both theIframe.height and theIframe.style.height seem to work 
    theIframe.style.height    = Math.round( viewport.height - h) + "px";
    theIframe.style.marginTop = "0px" // Math.round( (viewport.height - parseInt(theIframe.style.height) )/2 ) + "px";
  }
}
            
// this doesn't work - not even in IE :-)            
function injectStyle(ssPath)
{
    // bogus URL/path to script?
    if (!ssPath) { return; }                         
    
    var theIframe = document.getElementById ? document.getElementById("mmiFrm"): document.all? document.all["mmiFrm"]: null;
    if (theIframe) {    
        (function(){
            theIframe.onload = function() {
        // everything is ok, lets include the script.
                var ss = document.createElement("LINK");
            
                ss.setAttribute("rel", "StyleSheet");
                ss.setAttribute("type", "text/css");
                ss.setAttribute("href", ssPath);
            
                theIframe.contentWindow.getElementsByTagName("HEAD")[0].appendChild( ss );                
            }            
        })();   
    }
} 