Codebase.load("http://codebase.gd-ks.com/js/Class.js"); Codebase.load("http://codebase.gd-ks.com/js/Style.js");

function View()
{
   if(arguments.length==0)
   {
      this._node=$E("div");
   }
   else if(arguments.length==1)
   {
      this._node=arguments[0];
   }
};

View.prototype.init=function(){};
View.prototype.pack=function(){};
View.prototype.update=function(){};

View.prototype.setId=function(id){ this._node.id=id; };
View.prototype.getNode=function(){ return this._node; };
View.prototype.add=function(view){ this._node.appendChild(view._node); };
View.prototype.reset=function(){ this._node.innerHTML=""; };
View.prototype.setStyle=function(style){ return Style.setAttributes(this._node, style); };