Hello everyone, guys

I've been having some trouble with styling an element in my page. Can any of u see the problem?

HTML Code:
    	<script type="text/javascript">
			function Window() {
				this._getY = function() {
				this._getX = function() {
				this._load = function() {
					var w = document.getElementById("window");
						w.style.width = this._getX();
						w.style.height = this._getY();
			var WINDOW = new Window();
        <style type="text/css">
			#window {
				display: block;
				position: absolute;
				top: 0px;
				left: 0px;
    	<div id="window">
I have tryed to alert the methods _getX() and _getY(), and both functions are working pretty. I think the problem it's on the styling thing, or getting the element on the page.

Maybe there's a simple error that I'm not seeing, i've spent too much time using Jquery, so probably I got too confortable on that.

Sorry for my bad english, it's not my native language.
Thank you all