<!--
function getVersion(){

    if(navigator.appName.indexOf("Netscape")>-1){
        make="Netscape";
    }else if((navigator.appName.indexOf("Microsoft")>-1) || (navigator.appName.indexOf("MSIE")>-1)){
        make="Microsoft Internet Explorer";
    }else if(navigator.appName.indexOf("Opera")>-1){
        make="Opera";
    }else{
        make=navigator.appName;
    }

    return make;
}
function isIE(){
    if((navigator.appName.indexOf("Microsoft")>-1) || (navigator.appName.indexOf("MSIE")>-1)){
        return true;
    }
    return false;
}
function fitChild(iframe_id)
{ 
            var theIFRAME=document.getElementById(iframe_id);
            if(theIFRAME){
                var the_height=theIFRAME.contentWindow.document.body.scrollHeight;
                theIFRAME.setAttribute("height",the_height);

            }
}
function fitToParent(div_id,iframe_id)
{ 
    var theDIV=document.getElementById(div_id);
    if(theDIV) 
    { 
        if((navigator.appName.indexOf("Microsoft")>-1) || (navigator.appName.indexOf("MSIE")>-1)){
            winHeight=theDIV.getAttribute("offsetHeight"); 
        }else{
            winHeight=document.documentElement.offsetHeight;
        }
        //alert('winHeight='+winHeight);
        if(winHeight == 0){
            window.setTimeout('fitToParent('+'"'+div_id+'"'+','+'"'+iframe_id+'"'+')',500);
        }else{
            var theIFRAME=parent.document.getElementById(iframe_id);
            if(theIFRAME){
                theIFRAME.setAttribute("height",winHeight+50);

            }
        }
    }
}
function fitToParentBox(div_id,iframe_id)
{ 
    var theDIV=document.getElementById(div_id);
    if(theDIV) 
    { 
        if((navigator.appName.indexOf("Microsoft")>-1) || (navigator.appName.indexOf("MSIE")>-1)){
            winHeight=theDIV.getAttribute("offsetHeight"); 
        }else{
            winHeight=document.documentElement.offsetHeight;
        }
            
        var theIFRAME=parent.document.getElementById(iframe_id);
        if(theIFRAME){
            theIFRAME.setAttribute("height",winHeight+3);
        }
    }
}
function fitTest(div_id,iframe_id)
{ 

    var theDIV=document.getElementById(div_id);
    if(theDIV) 
    { 
        if(isIE())
            winHeight=theDIV.getAttribute("offsetHeight");
        else
            winHeight=document.documentElement.offsetHeight;
        alert('winHeight='+winHeight);
        var theIFRAME=parent.document.getElementById(iframe_id);
        alert(theIFRAME);
        if(theIFRAME){
            alert(iframe_id+'='+theIFRAME);
            theIFRAME.setAttribute("height",winHeight+50);
            //alert(iframe_id+'='+winHeight);
        }
    }
    //alert(document.offsetHeight);
    //alert(document.documentElement.offsetHeight);
}
//fitToParent("this_div","i_center");
//-->