1 function setInnerFrame() { 2 var inner_frame = window.dialogArguments; 3 if (inner_frame) { 4 document.getElementById('ifr').src = inner_frame; 5 } 6 } 7 8 function checkAccept(f) { 9 if (f.accept.checked) { 10 window.returnValue = 6; 11 } else { 12 window.returnValue = 1; 13 } 14 window.close(); 15 } 16 17 function resize() { 18 var ifr = document.getElementById('ifr'); 19 var footer = document.getElementById('footer'); 20 21 ifr.height = footer.offsetTop - ifr.offsetTop; 22 setInnerFrame(); 23 } 24 25 window.onresize = resize; 26 window.onload = resize;