// structure that describes columns of the table and their type
// structure that describes visual aspects of the table
function go_href(href){
	document.location = href+'&start='+TTablePRO[0].TTPT.TTPU+'&sort='+TTablePRO[0].TTPo.TTPp+'&order='+TTablePRO[0].TTPo.TTPq;
}
var TABLE_LOOK = {
	// 0 - caption,
	// 1 - header rows to be skipped at the top when applying effects,
	// 2 - body,
	// 3 - footer rows to be skipped at the bottom when applying effects,
	// 4 - paging,
	// 5 - filters
	'onclick' : function (a_row, a_marked) {
		var o_form = document.forms.myForm
		o_form.row.value = a_row.join(', ')
		o_form.row.style.cursor = 'hand';
		o_form.ind.value = a_marked.join(', ')
	},
	'key' : 0,
	'structure' : [0, 1, 2, 3, 4],
	'params' : [3, 1], // [cellpadding,cellspacing]
	'colors' : {
	},
	'multy_mark' : false,
	'freeze' : [0, 0], // how many rows to skip [at_the_top, at_the_bottom] when applying effects
	'paging' : {
		'by' : 10, // page size (0 - no paging)
		'pp' : '&nbsp;<b>&laquo;</b>', // html for previous page link
		'pn' : '<b>&raquo;</b>&nbsp;', // html for next page link
		'tt' : '&nbsp;Page %ind of %pgs&nbsp;' /* in this line you can use the following variables 1-bazed:
													%pgs total pages index
													%ind current page index
													%rcs total records found
												*/
	},
	'sorting' : {
		// HTML for ascending sorted state icon
		'as' : '<img src=images/asc.gif border=0 height=4 width=8 alt="sort descending">',
		// HTML for descending sorted state icon
		'ds' : '<img src=images/desc.gif border=0 height=4 width=8 alt="sort ascending">',
		'cl' : null,
		// Order of sorted: true - ascending sorted, false descending sorted
		'or' : false

	},
	'filter' : {
		// filter 0 - off, 1 - substring, 2 - match, 4 - regexp filter, 8 - substring case insensitive (e.g. 1 + 2 + 4 + 8 means all filters on)
		'type' : 11, 
		'btn_ok' : '&nbsp;<img src=images/yes.gif width="16" height="16" border=0 alt="Apply filter" align="absmiddle">',
		'btn_no' : '<img src=images/no.gif width="16" height="16" border=0 alt="Clear filter" align="absmiddle">'
	},
	'css' : {
		'main'     : 'tabTable0',
		'body'     : ['tabBody0Col0','tabBody0Col1','tabBody0Col2','tabBody0Col3'],
		'captCell' : 'tabCaptionCell0',
		'captText' : 'tabCaptionLink0',
		'head'     : 'tabHeadCell0',
		'foot'     : 'tabFootCell0',
		'pagnCell' : 'tabPaging0',
		'pagnText' : 'tabPagingText0',
		'pagnPict' : 'tabPagingArrowCell0',
		'filtCell' : 'tabFilter0',
		'filtPatt' : 'tabFilterPattern0',
		'filtSelc' : 'tabFilterSelect0'
	}
};

var ARR_STRINGS = {
	'long_days' : ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
	'short_days' : ['Sun', 'Mon', 'Tue', 'Wen', 'Thu', 'Fri', 'Sat'],
	'long_month' : ['January','February','March','April','May','June','July','August','September','October','November','December'],
	'short_month' : ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
	'bad_month' : 'Parsing error: unknown month "%month_name"',
	'not_meet' : "Notice : Input date does not meet input date format."
};
