﻿//iframe自适应高度 在iframe的document加载时调用
function changesize(){
     var frame = parent.document.getElementById('main');
     //frame.style.height = document.body.scrollHeight;

     var offHeight = document.body.offsetHeight;
     var availHeight = window.screen.availHeight-350-40;
     if(availHeight-offHeight>=0){
        
        frame.style.height = availHeight;
     }
     else
     {
        frame.style.height = offHeight;
     }
     
}
function MM_openBrWindow(theURL,winName,features) {
  window.open(theURL,winName,features);
}

