 /*****************************************************************************
  * Class: ChbcpSearchData
  ****************************************************************************/     
 function hbcpData(id, verboseName, fieldName, type, comparison, value, connector, visible, hints) {			
		//Properties
    this.Id = id;
		this.FieldName = fieldName;
		this.VerboseName = verboseName;
		this.Type = type;
		this.Comparison = comparison;
		this.Value = value;
		this.Connector = connector;
		this.Visible = visible;			
		this.Hints = hints;		
		
    //Methods	
		this.setId = function(newId) {this.Id = newId}
		this.getId = function() {return this.Id}
		
		this.setFieldName = function (newFieldName) {this.FieldName = newFieldName}
		this.getFieldName = function () {return this.FieldName}
		
		this.setVerboseName = function (newVerboseName) {this.VerboseName = newVerboseName}
		this.getVerboseName = function () {return this.VerboseName}
		
		this.setType = function (newType)  {this.Type = newType}
		this.getType = function ()  {return this.Type}	
  		  
		this.setComparison = function (newComparison) {this.Comparison = newComparison}
		this.getComparison = function () {return this.Comparison}
		
		this.setValue = function (newValue) {this.Value = newValue}
		this.getValue = function () {return this.Value}
  
		this.setConnector = function (newConnector) {this.Connector = newConnector}
		this.getConnector = function ()  {return this.Connector}
 
		this.setVisible = function (newVisible) {this.Visible = newVisible}
		this.getVisible = function () {return this.Visible}
 	
		this.setHints = function (newHints) {this.Hints = newHints}
		this.getHints = function () {return this.Hints}
	
	}



/******************************************************************************
 *  Class: AdvancedSearchForm
 *
 *****************************************************************************/
 
  // function: advancedSearchForm_ShowHeader
  function advancedSearchForm_showHeader() {  			
		var newRow = objTable.newHeaderRow();
    newRow.setData(new Array('Property', 'Comparison', 'Value', 'Boolean', 'Delete'));
    newRow.refresh();
  }  
  
  
  // function: advancedSearchForm_showRow
  function advancedSearchForm_showRow(position) {
    var newRow = objTable.newDataRow(position + 1);
    newRow.setData(contentList[position]);
    newRow.refresh();
  }
  
  // function: advancedSearchForm_hideRow
  function advancedSearchForm_hideRow(position) {
    contentList[position].setVisible = false;
    this.refresh();
  }
  
  // function: advancedSearchForm_refresh
  function advancedSearchForm_refresh() {
    this.showHeader();
    for (indice=0;indice<contentList.length;indice++) {
      this.showRow(indice);
    }    
  }
  
  // function: advancedSearchForm_addProperty
  function advancedSearchForm_addProperty() {
    
  }
  
  // function: advancedSearchForm_showHints
  function advancedSearchForm_showHints() {
  
  }
  
  // function: advancedSearchForm_submitForm
  function advancedSearchForm_submitForm() {
  
  }
  
 
 // Constructor
 function advancedSearchForm(contentData, oTable) {
  //  Properties
  this.Content = data; 
  this.objTable = oTable;  
  
  //  Methods
  this.showHeader = advancedSearchForm_showHeader;
  this.showRow = advancedSearchForm_showRow;
  this.hideRow = advancedSearchForm_hideRow;
  this.Refresh = advancedSearchForm_refresh;
  this.addProperty = advancedSearchForm_addProperty;
  this.showHints = advancedSearchForm_showHints;
  this.submitForm = advancedSearchForm_submitForm;
 }
 
 
 
