title: Javascript function to find total page height
body: <p>I'm after a simple javascript function that will detect the total height of my web page which is dynamic and apply it to the height of a div which is the page background. Would it be possible to implement it?
     The div is called bg...
     Any ideas? Thanks in advance</p>