
 function GEBID(id) { return document.getElementById(id); } //--returns any dom element by it's id value
 function GFORM(name) { return document.forms[name]; } //--returns any html form element by it's name value


//--xspark core element prototypes (most of these methods must only be used if their corresponding css properties are set, otherwise may return undefined)

HTMLElement.prototype.setClass =
function(name) { this.className = name; }; //--sets the class of the calling HTML element

HTMLElement.prototype.setHeight =
function(height) { this.style.height = (parseInt(height) + "px"); }; //--sets the height of the calling HTML element

HTMLElement.prototype.setWidth =
function(width) { this.style.width = (parseInt(width) + "px"); }; //--sets the width of the calling HTML element

HTMLElement.prototype.getWidth =
function() { return parseInt(this.style.width); }; //--gets the width of the calling HTML element

HTMLElement.prototype.getHeight =
function() { return parseInt(this.style.height); }; //--gets the height of the calling HTML element

HTMLElement.prototype.setX =
function(pos) { this.style.left = (pos + "px"); }  //--sets the x position of the calling HTML element

HTMLElement.prototype.setY =
function(pos) { this.style.top = (parseInt(pos) + "px"); } //--sets the y position of the calling HTML element

HTMLElement.prototype.getX =
function() { return parseInt(this.style.left); } //--gets the x position of the calling HTML element

HTMLElement.prototype.getY =
function() { return parseInt(this.style.top); } //--gets the y position of the calling HTML element

HTMLElement.prototype.show =
function(show) { (show) ? this.style.display = "block": this.style.display = "none"; }; //--sets the visibility of the calling HTML element

HTMLElement.prototype.isVisible =
function() { return (this.style.display != "none"); }; //--returns true if the element is visible, false otherwise


