function clsStyle() {}
clsStyle.prototype.show = function (control) { control.style.display = "block"; control.style.visibility = "visible"; }
clsStyle.prototype.hide = function (control) { control.style.display = "none"; control.style.visibility = "hidden"; }
clsStyle.prototype.setTopLeft = function(at, control, postfix) { if (! postfix) postfix = "px"; control.style.left = at.x + postfix; control.style.top = at.y + postfix; }
clsStyle.prototype.setWidthHeight = function(size, control, postfix) { if (! postfix) postfix = "px"; control.style.width = size.x + postfix; control.style.height = size.y + postfix; }
clsStyle.prototype.toggleScroll = function(onOff) {if (onOff) document.body.style.overflow = "auto"; else document.body.style.overflow = "hidden";}
clsStyle.prototype.sizeOf = function(control) {return new clsXY(control.clientWidth, control.clientHeight);}
clsStyle.prototype.scrollOffsetOf = function(control) {return new clsXY(control.scrollLeft, control.scrollTop);}
clsStyle.prototype.showIfHideUnless = function(criteria, control) {if (criteria) this.show(control); else this.hide(control);}
var gStyle = new clsStyle();