var display = function(){ return this }

/* JAVASCRIPT DISPLAY FUNCTIONS */
	display.prototype.cloneContent = function(input,writefrom){ 
		var newGuy=document.createElement('SPAN');
		newGuy.innerHTML = writefrom.innerHTML;
		input.appendChild(newGuy);
	}

	display.prototype.hideShow = function( obj ){
		if(obj instanceof Array){
			for(var i=0; i < obj.length; ++i){
				this.hideShow(obj[i]);
			}
		}else{
			if( obj.style.display=='none' ){
				obj.style.display='';
			}else{
				 obj.style.display='none';
			}
		}
	}

	display.prototype.show = function( obj ){
		if(obj instanceof Array){
			for(var i=0; i < obj.length; ++i){
				obj[i].style.display='';
			}
		}else{
				obj.style.display='';
		}
	}
	
	display.prototype.hide = function( obj ){
		if(obj instanceof Array){
			for(var i=0; i < obj.length; ++i){
				obj[i].style.display='none';
			}
		}else{
			obj.style.display='none';
		}
	}
	
	display.prototype.confirmDump = function(e){
		for( var x=0; x < e.length; ++x){
			if( !confirm(x+' = '+e[x]) )break;
		}
	}
	
	/* Make a table have inline borders */
		display.prototype.inLineBorders = function( target , startrow , endrow ){
			if(!startrow){ var startrow=0; }
			if(!endrow){ var endrow=null; }
			target.cellSpacing='0px';
			var TotalRows=target.rows.length
			for(var i=startrow; i < TotalRows; ++i){
				var TotalCells=target.rows[i].cells.length;
				for(var t=0; t < TotalCells;++t){
					if(t==0){
						target.rows[i].cells[t].style.borderRight='0px';
					}else if(t==TotalCells-1){
						target.rows[i].cells[t].style.borderLeft='0px';
					}else{
						target.rows[i].cells[t].style.borderRight='0px';
						target.rows[i].cells[t].style.borderLeft='0px';
					}
				}
				if(endrow!=null && i >= endrow){ break; }
			}
		}
	/* end */
/* END */

if( OlOs == null ){
	document.write("<script type=\"text/javascript\" src=\"OlOs.js\"></script>");
}
OlOs.attachTo( new display() , "display" );