You have, at least, three problems.
First: The CSS height, width, left and top properties take lengths. You are passing them Numbers.
You must include a unit.
Likewise, you need to account for the unit on the values for the width and height.
Second: You also need to balance your parentheses.
Third: When using square bracket notation, you need to pass in strings. At the moment, I assume that left and top are undefined.
this.style.left = (windowWidth - parseInt(this.style.width,10)) / 2 + 'px';
this.style.top = (windowHeight - parseInt(this.style.height,10)) / 2 + 'px';
Finally, this will only work if the element has its width and height defined using inline style (or if those properties have been set via JavaScript). Otherwise the values you are trying to read will be undefined. In this case you will need to deal with the computed style.
Also remember that top and left will have no effect unless the element is positioned.