/**
 * An array of  NCSobjects
 */
var nNCSControls = 0;
var aNCSControls = new Array();

function NCSControl(uid, objectID)
{
	if ( arguments.length > 0 )
    {
       this.init(uid, objectID);
    }
}
NCSControl.prototype.init = function(uid, objectID)
{
    this.uid = uid;
    if (objectID != null)
    {
    	this.element = document.getElementById(objectID);
    }
    else {
        this.element = null;
    }
    this.addObject(this);
}
NCSControl.prototype.addObject = function(obj)
{
	nNCSControls++;
	aNCSControls[nNCSControls] = obj;
	obj.myself = "aNCSControls[" + nNCSControls + "]";
}
NCSControl.prototype.build = function()
{
	return "NCSControl subclass has not implemented the build method";
}
