function Commander() {

	this.cmdArray = new Array();
	
	this.addCommand = function(cmdStr) {
	
		this.cmdArray[this.cmdArray.length] = cmdStr;
	
	}
	
	this.exec = function() {
	
		for(var i=0; i < this.cmdArray.length; ++i) {

			eval(this.cmdArray[i]);
		}		
	
	}

}
