OLD | NEW |
1 function setInnerFrame() { | 1 function setInnerFrame() { |
2 var regex = new RegExp("\\?innerframe=\"?([^&#\"]*)\"?"); | 2 var inner_frame = window.dialogArguments; |
3 var results = regex.exec(window.location.href); | 3 if (inner_frame) { |
4 if(results && results[1]) | 4 document.getElementById('ifr').src = inner_frame; |
5 document.getElementById('ifr').src = results[1]; | 5 } |
6 } | 6 } |
7 | 7 |
8 function checkAccept(f) { | 8 function checkAccept(f) { |
9 if (f.accept.checked) { | 9 if (f.accept.checked) { |
10 window.returnValue = 6; | 10 window.returnValue = 6; |
11 } else { | 11 } else { |
12 window.returnValue = 1; | 12 window.returnValue = 1; |
13 } | 13 } |
14 window.close(); | 14 window.close(); |
15 } | 15 } |
16 | 16 |
17 function resize() { | 17 function resize() { |
18 var ifr = document.getElementById('ifr'); | 18 var ifr = document.getElementById('ifr'); |
19 var footer = document.getElementById('footer'); | 19 var footer = document.getElementById('footer'); |
20 | 20 |
21 ifr.height = footer.offsetTop - ifr.offsetTop; | 21 ifr.height = footer.offsetTop - ifr.offsetTop; |
22 setInnerFrame(); | 22 setInnerFrame(); |
23 } | 23 } |
24 | 24 |
25 window.onresize = resize; | 25 window.onresize = resize; |
26 window.onload = resize; | 26 window.onload = resize; |
OLD | NEW |