This script is widely available on the Internet for footer positioning. On our site, it was loading the footer, but leaving an otherwise blank page. It also generated an error on <BR>that window is undefined. It would also seem to hang while the window was loading, whether or not the page ended up with blank content.<BR><BR>function getWindowHeight() {<BR> var windowHeight = 0;<BR> if (typeof(window.innerHeight) == &#039;number&#039;) {<BR> windowHeight = window.innerHeight;<BR> }<BR> else {<BR> if (document.documentElement && document.documentElement.clientHeight) {<BR> windowHeight = document.documentElement.clientHeight;<BR> }<BR> else {<BR> if (document.body && document.body.clientHeight) {<BR> windowHeight = document.body.clientHeight;<BR> }<BR> }<BR> }<BR> return windowHeight;<BR> }<BR>function setFooter() {<BR> if (document.getElementById) {<BR> var windowHeight = getWindowHeight();<BR> if (windowHeight &#062; 0) {<BR>var contentHeight = document.getElementById(&#039;contents&#039;).offs etHeight; <BR>var footerElement = document.getElementById(&#039;footer&#039;);var footerHeight = footerElement.offsetHeight;<BR> <BR>if (windowHeight - (contentHeight + footerHeight) &#062;= 0)<BR> {<BR> = &#039;relative&#039;;<BR> = (windowHeight - (contentHeight + footerHeight)) + &#039;px&#039;;<BR> }<BR> else {<BR> = &#039;static&#039;;<BR> }<BR> }<BR> }<BR> }<BR>window.onload = function() {<BR> setFooter();<BR>}<BR>window.onresize = function() {<BR> setFooter();<BR>}<BR>