Inline script thread Error: name: TypeError message: Statement on line 17: Could not convert undefined or null to object Backtrace: Line 17 of inline#1 script in http://www.xxxxxxxx.com/index.php var viewWidth = (document.getElementById("main")).width;