// JavaScript Document


/* 
class GOVCodes {

	var titleString:String = '';
	var data:Array = new Array();
	var html:Array = new Array();
*/
	
	/**
	 * Constructor.
	 */
	 function GOVCodes(groupName/*:String*/,numbersArr/*:Array*/) /*:void*/{
		 
	 	this.titleStr 	= groupName;
		this.data 		= numbersArr;
		this.html 		= new Array();
	 
	 	this.init();
		
	 }
	 
	/*private function init():void {*/
	GOVCodes.prototype.init = function(){
		var columnCount/*:Number*/ = Math.floor(this.data.length/2);
		
		this.html.push('<tr><th colspan="2" align="left">' + this.titleStr + '</th></tr>');
		this.html.push('<tr><td align="center" valign="top" class="tbl-col-left">');
		for(var i=0; i <= columnCount; i++){
			this.html.push(this.data[i] + '<br />');
		}
		this.html.push('</td>');
		this.html.push('<td align="center" valign="top" class="tbl-col-right">');
		for(var i=columnCount+1; i < this.data.length; i++){
			this.html.push(this.data[i] + '<br />');
		}
		this.html.push('</td></tr>');
				
	 }
	 
	/*public function draw():void {*/
	GOVCodes.prototype.draw = function(){
		
		 document.write(this.html.join('\n'));
				
	 }
	 /*public function draw():void {*/
	GOVCodes.prototype.toString = function(){
		
		 //document.write(this.html.join('\n'));
		 return this.html.join('\n');
				
	 }
	
/*
}
*/