public static Criteria parseCriteria( Ptg[] criteria )
	{
		DB dblist = DB.parseList( criteria );
		if( dblist == null )
		{
			return null;
		}
		Criteria crit = new Criteria( dblist.getNCols(), dblist.getNRows() );
		crit.colHeaders = dblist.colHeaders;
		crit.rows = dblist.rows;
		if( log.isDebugEnabled() )
		{
			log.debug( "\nCriteria:" );
			for( int i = 0; i < crit.getNCols(); i++ )
			{
				log.debug( "\t" + crit.getCol( i ) );
			}
			for( int j = 0; j < crit.getNCols(); j++ )
			{
				for( int i = 0; i < crit.getNRows(); i++ )
				{
					log.debug( "\t" + crit.getCell( i, j ) );
				}
			}
		}
		return crit;
	}