// structure that describes columns of the table and their type
function formatNegatives (n_) {
  // return a name of tabBody0Negatives if negative
  return n_ < 0 ? 'tabBody0Negatives' : null
}

var TABLE_CAPT1 = [
	{
		'name' : 'Status',
		'type' : STR
	},
	{
		'name' : 'Symb',
		'type' : STR
	},
	{
		'name' : 'Company',
		'type' : STR
	},
{
		'name' : 'Pre Ann.',
		'type'         : DATE,
		    // datE input format
		    'format_input' : 'm/d/y',
		    // datE output format
		    'format_output': 'm/d/y'
  },
{
		'name' : 'Entry',
		'type'         : DATE,
		    // datE input format
		    'format_input' : 'm/d/y',
		    // datE output format
		    'format_output': 'm/d/y'
  },
  {
    'name'         : 'Exit',
    'type'         : DATE,
    // datE input format
    'format_input' : 'm/d/y',
    // datE output format
    'format_output': 'm/d/y'
  },

{
		'name' : 'Entry',
		'type' : NUM
	},
{
		'name' : 'Exit or',
		'type' : NUM
	},
	{
		'name' : 'P/L',
		'type' : NUM,

		'format' : formatNegatives
  },
  {
  		'name' : 'Opt',
  		'type' : STR
	}


];

// structure that describes visual aspects of the table 
var TABLE_LOOK1 = {
 	// [cellpadding,cellspacing]
	'params' : [1, 1], 
		// background colors for [even,odd,mouseovered,marked] rows
	'colors' : ["#D9FFD9","white","#66CC00","#00FF00"], 
	// how many rows to skip [at_the_top, at_the_bottom] when applying effects
	'freeze' : [1, 1],  
	'paging' : 0,
	
	'sorting' : [
	// html for ascending sorted state icon (text)
		'<img src=ttp_files/img/asc.gif border=0 height=4 width=8 alt="sort descending">',
		// html for descending sorted state icon (text)
		'<img src=ttp_files/img/desc.gif border=0 height=4 width=8 alt="sort ascending">',
		// html for unsorted state icon (text)
		'<img src=ttp_files/img/asds.gif border=0 height=9 width=8 alt="sort ascending">' 
	],
	// filter 0 - off, 1 - substring, 2 - match, 4 - regexp filter (e.g. 1 + 2 + 4 means all filters on)
	'filter' : 0
};
                                                                                                                                      