All I was going to do was put up a username and password text and login to the server. This object here was not the first object that was created, but one that developed after I ran into problems. I was simply trying to center the objects. The parameter o is for the calling function to provide the object to which this div should be appended. It very well could be the document.body. After all the hunting and pecking on the web I found that this centering worked the best for me.
function myDiv(o) {
var myself = this;
myself.mydiv = document.createElement('div');
myself.mydiv.style.position = "absolute";
o.appendChild(myself.mydiv);
myself.getObj = function(){return myself.mydiv;};
myself.center = function (x,y) {
myself.mydiv.style.top = parseInt(myInnerHeight()/2)-y + "px";
myself.mydiv.style.left = parseInt(myInnerWidth()/2)-x + "px";
}
}