function ElmByID(id, fr)
{
	this.obj = ((fr) ? frames[fr].document : document).getElementById(id);
}

ElmByID.prototype.isVisible = function()
{
	return ((this.obj.style.visibility == "hidden") ? false : true);
}

ElmByID.prototype.isDisplay = function()
{
	return ((this.obj.style.display == "none") ? false : true);
}

ElmByID.prototype.isEmptyDisplay = function()
{
	return (this.obj.style.display == "");
}

ElmByID.prototype.getObj = function()
{
	return this.obj;
}

ElmByID.prototype.getImgSrc = function()
{
	return this.obj.src;
}

ElmByID.prototype.getClass = function()
{
	return this.obj.className;
}

ElmByID.prototype.getHTML = function()
{
	return this.obj.innerHTML;
}

ElmByID.prototype.getWidth = function()
{
	return parseInt(this.obj.style.width);
}

ElmByID.prototype.getHeight = function()
{
	return parseInt(this.obj.style.height);
}

ElmByID.prototype.getValue = function()
{
	return this.obj.value;
}

ElmByID.prototype.getId = function()
{
	return this.obj.id;
}

ElmByID.prototype.setWidth = function(dx)
{
	this.obj.style.width = dx + "px";
}

ElmByID.prototype.setHeight = function(dy)
{
	this.obj.style.height = dy + "px";
}

ElmByID.prototype.setDimension = function(dx, dy)
{
	this.setWidth(dx);
	this.setHeight(dy);
}

ElmByID.prototype.setPosition = function(x, y)
{
	this.obj.style.left = x + "px";
	this.obj.style.top  = y + "px";
}

ElmByID.prototype.setHTML = function(html)
{
	this.obj.innerHTML = html;
}

ElmByID.prototype.setDisplay = function(dis)
{
	this.obj.style.display = dis;
}

ElmByID.prototype.setVisibility = function(vis)
{
	this.obj.style.visibility = vis;
}

ElmByID.prototype.setClass = function(cl)
{
	this.obj.className = cl;
}

ElmByID.prototype.setImg = function(img)
{
	this.obj.src = img.src;
}

ElmByID.prototype.setImgSrc = function(src)
{
	this.obj.src = src;
}

ElmByID.prototype.setValue = function(val)
{
	this.obj.value = val;
}

ElmByID.prototype.setFocus = function()
{
	this.obj.focus();
}

ElmByID.prototype.click = function()
{
	this.obj.click();
}

ElmByID.prototype.setTitle = function(title)
{
	this.obj.title = title;
}
