Heray-Was-Here
Server : Apache
System : Linux hybrid3195.ca.ns.planethoster.net 3.10.0-1160.119.1.el7.tuxcare.els19.x86_64 #1 SMP Mon Mar 31 17:29:00 UTC 2025 x86_64
User : alliancerealtynb ( 1004)
PHP Version : 7.4.33
Disable Function : noop
Directory :  /home/alliancerealtynb/testOLD.alliancerealty.nb.ca/adminAR/classes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/alliancerealtynb/testOLD.alliancerealty.nb.ca/adminAR/classes/wp_wpl_properties_list.php
<?php
namespace PHPMaker2020\Alliance;

/**
 * Page class
 */
class wp_wpl_properties_list extends wp_wpl_properties
{

	// Page ID
	public $PageID = "list";

	// Project ID
	public $ProjectID = "{FE4AA35B-E768-461D-8010-4FE2D8E13345}";

	// Table name
	public $TableName = 'wp_wpl_properties';

	// Page object name
	public $PageObjName = "wp_wpl_properties_list";

	// Grid form hidden field names
	public $FormName = "fwp_wpl_propertieslist";
	public $FormActionName = "k_action";
	public $FormKeyName = "k_key";
	public $FormOldKeyName = "k_oldkey";
	public $FormBlankRowName = "k_blankrow";
	public $FormKeyCountName = "key_count";

	// Page URLs
	public $AddUrl;
	public $EditUrl;
	public $CopyUrl;
	public $DeleteUrl;
	public $ViewUrl;
	public $ListUrl;

	// Export URLs
	public $ExportPrintUrl;
	public $ExportHtmlUrl;
	public $ExportExcelUrl;
	public $ExportWordUrl;
	public $ExportXmlUrl;
	public $ExportCsvUrl;
	public $ExportPdfUrl;

	// Custom export
	public $ExportExcelCustom = FALSE;
	public $ExportWordCustom = FALSE;
	public $ExportPdfCustom = FALSE;
	public $ExportEmailCustom = FALSE;

	// Update URLs
	public $InlineAddUrl;
	public $InlineCopyUrl;
	public $InlineEditUrl;
	public $GridAddUrl;
	public $GridEditUrl;
	public $MultiDeleteUrl;
	public $MultiUpdateUrl;

	// Page headings
	public $Heading = "";
	public $Subheading = "";
	public $PageHeader;
	public $PageFooter;

	// Token
	public $Token = "";
	public $TokenTimeout = 0;
	public $CheckToken;

	// Page heading
	public function pageHeading()
	{
		global $Language;
		if ($this->Heading != "")
			return $this->Heading;
		if (method_exists($this, "tableCaption"))
			return $this->tableCaption();
		return "";
	}

	// Page subheading
	public function pageSubheading()
	{
		global $Language;
		if ($this->Subheading != "")
			return $this->Subheading;
		if ($this->TableName)
			return $Language->phrase($this->PageID);
		return "";
	}

	// Page name
	public function pageName()
	{
		return CurrentPageName();
	}

	// Page URL
	public function pageUrl()
	{
		$url = CurrentPageName() . "?";
		if ($this->UseTokenInUrl)
			$url .= "t=" . $this->TableVar . "&"; // Add page token
		return $url;
	}

	// Messages
	private $_message = "";
	private $_failureMessage = "";
	private $_successMessage = "";
	private $_warningMessage = "";

	// Get message
	public function getMessage()
	{
		return isset($_SESSION[SESSION_MESSAGE]) ? $_SESSION[SESSION_MESSAGE] : $this->_message;
	}

	// Set message
	public function setMessage($v)
	{
		AddMessage($this->_message, $v);
		$_SESSION[SESSION_MESSAGE] = $this->_message;
	}

	// Get failure message
	public function getFailureMessage()
	{
		return isset($_SESSION[SESSION_FAILURE_MESSAGE]) ? $_SESSION[SESSION_FAILURE_MESSAGE] : $this->_failureMessage;
	}

	// Set failure message
	public function setFailureMessage($v)
	{
		AddMessage($this->_failureMessage, $v);
		$_SESSION[SESSION_FAILURE_MESSAGE] = $this->_failureMessage;
	}

	// Get success message
	public function getSuccessMessage()
	{
		return isset($_SESSION[SESSION_SUCCESS_MESSAGE]) ? $_SESSION[SESSION_SUCCESS_MESSAGE] : $this->_successMessage;
	}

	// Set success message
	public function setSuccessMessage($v)
	{
		AddMessage($this->_successMessage, $v);
		$_SESSION[SESSION_SUCCESS_MESSAGE] = $this->_successMessage;
	}

	// Get warning message
	public function getWarningMessage()
	{
		return isset($_SESSION[SESSION_WARNING_MESSAGE]) ? $_SESSION[SESSION_WARNING_MESSAGE] : $this->_warningMessage;
	}

	// Set warning message
	public function setWarningMessage($v)
	{
		AddMessage($this->_warningMessage, $v);
		$_SESSION[SESSION_WARNING_MESSAGE] = $this->_warningMessage;
	}

	// Clear message
	public function clearMessage()
	{
		$this->_message = "";
		$_SESSION[SESSION_MESSAGE] = "";
	}

	// Clear failure message
	public function clearFailureMessage()
	{
		$this->_failureMessage = "";
		$_SESSION[SESSION_FAILURE_MESSAGE] = "";
	}

	// Clear success message
	public function clearSuccessMessage()
	{
		$this->_successMessage = "";
		$_SESSION[SESSION_SUCCESS_MESSAGE] = "";
	}

	// Clear warning message
	public function clearWarningMessage()
	{
		$this->_warningMessage = "";
		$_SESSION[SESSION_WARNING_MESSAGE] = "";
	}

	// Clear messages
	public function clearMessages()
	{
		$this->clearMessage();
		$this->clearFailureMessage();
		$this->clearSuccessMessage();
		$this->clearWarningMessage();
	}

	// Show message
	public function showMessage()
	{
		$hidden = TRUE;
		$html = "";

		// Message
		$message = $this->getMessage();
		if (method_exists($this, "Message_Showing"))
			$this->Message_Showing($message, "");
		if ($message != "") { // Message in Session, display
			if (!$hidden)
				$message = '<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>' . $message;
			$html .= '<div class="alert alert-info alert-dismissible ew-info"><i class="icon fas fa-info"></i>' . $message . '</div>';
			$_SESSION[SESSION_MESSAGE] = ""; // Clear message in Session
		}

		// Warning message
		$warningMessage = $this->getWarningMessage();
		if (method_exists($this, "Message_Showing"))
			$this->Message_Showing($warningMessage, "warning");
		if ($warningMessage != "") { // Message in Session, display
			if (!$hidden)
				$warningMessage = '<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>' . $warningMessage;
			$html .= '<div class="alert alert-warning alert-dismissible ew-warning"><i class="icon fas fa-exclamation"></i>' . $warningMessage . '</div>';
			$_SESSION[SESSION_WARNING_MESSAGE] = ""; // Clear message in Session
		}

		// Success message
		$successMessage = $this->getSuccessMessage();
		if (method_exists($this, "Message_Showing"))
			$this->Message_Showing($successMessage, "success");
		if ($successMessage != "") { // Message in Session, display
			if (!$hidden)
				$successMessage = '<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>' . $successMessage;
			$html .= '<div class="alert alert-success alert-dismissible ew-success"><i class="icon fas fa-check"></i>' . $successMessage . '</div>';
			$_SESSION[SESSION_SUCCESS_MESSAGE] = ""; // Clear message in Session
		}

		// Failure message
		$errorMessage = $this->getFailureMessage();
		if (method_exists($this, "Message_Showing"))
			$this->Message_Showing($errorMessage, "failure");
		if ($errorMessage != "") { // Message in Session, display
			if (!$hidden)
				$errorMessage = '<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>' . $errorMessage;
			$html .= '<div class="alert alert-danger alert-dismissible ew-error"><i class="icon fas fa-ban"></i>' . $errorMessage . '</div>';
			$_SESSION[SESSION_FAILURE_MESSAGE] = ""; // Clear message in Session
		}
		echo '<div class="ew-message-dialog' . (($hidden) ? ' d-none' : "") . '">' . $html . '</div>';
	}

	// Get message as array
	public function getMessages()
	{
		$ar = [];

		// Message
		$message = $this->getMessage();

		//if (method_exists($this, "Message_Showing"))
		//	$this->Message_Showing($message, "");

		if ($message != "") { // Message in Session, display
			$ar["message"] = $message;
			$_SESSION[SESSION_MESSAGE] = ""; // Clear message in Session
		}

		// Warning message
		$warningMessage = $this->getWarningMessage();

		//if (method_exists($this, "Message_Showing"))
		//	$this->Message_Showing($warningMessage, "warning");

		if ($warningMessage != "") { // Message in Session, display
			$ar["warningMessage"] = $warningMessage;
			$_SESSION[SESSION_WARNING_MESSAGE] = ""; // Clear message in Session
		}

		// Success message
		$successMessage = $this->getSuccessMessage();

		//if (method_exists($this, "Message_Showing"))
		//	$this->Message_Showing($successMessage, "success");

		if ($successMessage != "") { // Message in Session, display
			$ar["successMessage"] = $successMessage;
			$_SESSION[SESSION_SUCCESS_MESSAGE] = ""; // Clear message in Session
		}

		// Failure message
		$failureMessage = $this->getFailureMessage();

		//if (method_exists($this, "Message_Showing"))
		//	$this->Message_Showing($failureMessage, "failure");

		if ($failureMessage != "") { // Message in Session, display
			$ar["failureMessage"] = $failureMessage;
			$_SESSION[SESSION_FAILURE_MESSAGE] = ""; // Clear message in Session
		}
		return $ar;
	}

	// Show Page Header
	public function showPageHeader()
	{
		$header = $this->PageHeader;
		$this->Page_DataRendering($header);
		if ($header != "") { // Header exists, display
			echo '<p id="ew-page-header">' . $header . '</p>';
		}
	}

	// Show Page Footer
	public function showPageFooter()
	{
		$footer = $this->PageFooter;
		$this->Page_DataRendered($footer);
		if ($footer != "") { // Footer exists, display
			echo '<p id="ew-page-footer">' . $footer . '</p>';
		}
	}

	// Validate page request
	protected function isPageRequest()
	{
		global $CurrentForm;
		if ($this->UseTokenInUrl) {
			if ($CurrentForm)
				return ($this->TableVar == $CurrentForm->getValue("t"));
			if (Get("t") !== NULL)
				return ($this->TableVar == Get("t"));
		}
		return TRUE;
	}

	// Valid Post
	protected function validPost()
	{
		if (!$this->CheckToken || !IsPost() || IsApi())
			return TRUE;
		if (Post(Config("TOKEN_NAME")) === NULL)
			return FALSE;
		$fn = Config("CHECK_TOKEN_FUNC");
		if (is_callable($fn))
			return $fn(Post(Config("TOKEN_NAME")), $this->TokenTimeout);
		return FALSE;
	}

	// Create Token
	public function createToken()
	{
		global $CurrentToken;
		$fn = Config("CREATE_TOKEN_FUNC"); // Always create token, required by API file/lookup request
		if ($this->Token == "" && is_callable($fn)) // Create token
			$this->Token = $fn();
		$CurrentToken = $this->Token; // Save to global variable
	}

	// Constructor
	public function __construct()
	{
		global $Language, $DashboardReport;

		// Check token
		$this->CheckToken = Config("CHECK_TOKEN");

		// Initialize
		$GLOBALS["Page"] = &$this;
		$this->TokenTimeout = SessionTimeoutTime();

		// Language object
		if (!isset($Language))
			$Language = new Language();

		// Parent constuctor
		parent::__construct();

		// Table object (wp_wpl_properties)
		if (!isset($GLOBALS["wp_wpl_properties"]) || get_class($GLOBALS["wp_wpl_properties"]) == PROJECT_NAMESPACE . "wp_wpl_properties") {
			$GLOBALS["wp_wpl_properties"] = &$this;
			$GLOBALS["Table"] = &$GLOBALS["wp_wpl_properties"];
		}

		// Initialize URLs
		$this->ExportPrintUrl = $this->pageUrl() . "export=print";
		$this->ExportExcelUrl = $this->pageUrl() . "export=excel";
		$this->ExportWordUrl = $this->pageUrl() . "export=word";
		$this->ExportPdfUrl = $this->pageUrl() . "export=pdf";
		$this->ExportHtmlUrl = $this->pageUrl() . "export=html";
		$this->ExportXmlUrl = $this->pageUrl() . "export=xml";
		$this->ExportCsvUrl = $this->pageUrl() . "export=csv";
		$this->AddUrl = "wp_wpl_propertiesadd.php";
		$this->InlineAddUrl = $this->pageUrl() . "action=add";
		$this->GridAddUrl = $this->pageUrl() . "action=gridadd";
		$this->GridEditUrl = $this->pageUrl() . "action=gridedit";
		$this->MultiDeleteUrl = "wp_wpl_propertiesdelete.php";
		$this->MultiUpdateUrl = "wp_wpl_propertiesupdate.php";

		// Page ID (for backward compatibility only)
		if (!defined(PROJECT_NAMESPACE . "PAGE_ID"))
			define(PROJECT_NAMESPACE . "PAGE_ID", 'list');

		// Table name (for backward compatibility only)
		if (!defined(PROJECT_NAMESPACE . "TABLE_NAME"))
			define(PROJECT_NAMESPACE . "TABLE_NAME", 'wp_wpl_properties');

		// Start timer
		if (!isset($GLOBALS["DebugTimer"]))
			$GLOBALS["DebugTimer"] = new Timer();

		// Debug message
		LoadDebugMessage();

		// Open connection
		if (!isset($GLOBALS["Conn"]))
			$GLOBALS["Conn"] = $this->getConnection();

		// List options
		$this->ListOptions = new ListOptions();
		$this->ListOptions->TableVar = $this->TableVar;

		// Export options
		$this->ExportOptions = new ListOptions("div");
		$this->ExportOptions->TagClassName = "ew-export-option";

		// Import options
		$this->ImportOptions = new ListOptions("div");
		$this->ImportOptions->TagClassName = "ew-import-option";

		// Other options
		if (!$this->OtherOptions)
			$this->OtherOptions = new ListOptionsArray();
		$this->OtherOptions["addedit"] = new ListOptions("div");
		$this->OtherOptions["addedit"]->TagClassName = "ew-add-edit-option";
		$this->OtherOptions["detail"] = new ListOptions("div");
		$this->OtherOptions["detail"]->TagClassName = "ew-detail-option";
		$this->OtherOptions["action"] = new ListOptions("div");
		$this->OtherOptions["action"]->TagClassName = "ew-action-option";

		// Filter options
		$this->FilterOptions = new ListOptions("div");
		$this->FilterOptions->TagClassName = "ew-filter-option fwp_wpl_propertieslistsrch";

		// List actions
		$this->ListActions = new ListActions();
	}

	// Terminate page
	public function terminate($url = "")
	{
		global $ExportFileName, $TempImages, $DashboardReport;

		// Page Unload event
		$this->Page_Unload();

		// Global Page Unloaded event (in userfn*.php)
		Page_Unloaded();

		// Export
		global $wp_wpl_properties;
		if ($this->CustomExport && $this->CustomExport == $this->Export && array_key_exists($this->CustomExport, Config("EXPORT_CLASSES"))) {
				$content = ob_get_contents();
			if ($ExportFileName == "")
				$ExportFileName = $this->TableVar;
			$class = PROJECT_NAMESPACE . Config("EXPORT_CLASSES." . $this->CustomExport);
			if (class_exists($class)) {
				$doc = new $class($wp_wpl_properties);
				$doc->Text = @$content;
				if ($this->isExport("email"))
					echo $this->exportEmail($doc->Text);
				else
					$doc->export();
				DeleteTempImages(); // Delete temp images
				exit();
			}
		}
		if (!IsApi())
			$this->Page_Redirecting($url);

		// Close connection
		CloseConnections();

		// Return for API
		if (IsApi()) {
			$res = $url === TRUE;
			if (!$res) // Show error
				WriteJson(array_merge(["success" => FALSE], $this->getMessages()));
			return;
		}

		// Go to URL if specified
		if ($url != "") {
			if (!Config("DEBUG") && ob_get_length())
				ob_end_clean();
			SaveDebugMessage();
			AddHeader("Location", $url);
		}
		exit();
	}

	// Get records from recordset
	protected function getRecordsFromRecordset($rs, $current = FALSE)
	{
		$rows = [];
		if (is_object($rs)) { // Recordset
			while ($rs && !$rs->EOF) {
				$this->loadRowValues($rs); // Set up DbValue/CurrentValue
				$row = $this->getRecordFromArray($rs->fields);
				if ($current)
					return $row;
				else
					$rows[] = $row;
				$rs->moveNext();
			}
		} elseif (is_array($rs)) {
			foreach ($rs as $ar) {
				$row = $this->getRecordFromArray($ar);
				if ($current)
					return $row;
				else
					$rows[] = $row;
			}
		}
		return $rows;
	}

	// Get record from array
	protected function getRecordFromArray($ar)
	{
		$row = [];
		if (is_array($ar)) {
			foreach ($ar as $fldname => $val) {
				if (array_key_exists($fldname, $this->fields) && ($this->fields[$fldname]->Visible || $this->fields[$fldname]->IsPrimaryKey)) { // Primary key or Visible
					$fld = &$this->fields[$fldname];
					if ($fld->HtmlTag == "FILE") { // Upload field
						if (EmptyValue($val)) {
							$row[$fldname] = NULL;
						} else {
							if ($fld->DataType == DATATYPE_BLOB) {
								$url = FullUrl(GetApiUrl(Config("API_FILE_ACTION"),
									Config("API_OBJECT_NAME") . "=" . $fld->TableVar . "&" .
									Config("API_FIELD_NAME") . "=" . $fld->Param . "&" .
									Config("API_KEY_NAME") . "=" . rawurlencode($this->getRecordKeyValue($ar)))); //*** need to add this? API may not be in the same folder
								$row[$fldname] = ["type" => ContentType($val), "url" => $url, "name" => $fld->Param . ContentExtension($val)];
							} elseif (!$fld->UploadMultiple || !ContainsString($val, Config("MULTIPLE_UPLOAD_SEPARATOR"))) { // Single file
								$url = FullUrl(GetApiUrl(Config("API_FILE_ACTION"),
									Config("API_OBJECT_NAME") . "=" . $fld->TableVar . "&" .
									"fn=" . Encrypt($fld->physicalUploadPath() . $val)));
								$row[$fldname] = ["type" => MimeContentType($val), "url" => $url, "name" => $val];
							} else { // Multiple files
								$files = explode(Config("MULTIPLE_UPLOAD_SEPARATOR"), $val);
								$ar = [];
								foreach ($files as $file) {
									$url = FullUrl(GetApiUrl(Config("API_FILE_ACTION"),
										Config("API_OBJECT_NAME") . "=" . $fld->TableVar . "&" .
										"fn=" . Encrypt($fld->physicalUploadPath() . $file)));
									if (!EmptyValue($file))
										$ar[] = ["type" => MimeContentType($file), "url" => $url, "name" => $file];
								}
								$row[$fldname] = $ar;
							}
						}
					} else {
						if ($fld->DataType == DATATYPE_MEMO && $fld->MemoMaxLength > 0)
							$val = TruncateMemo($val, $fld->MemoMaxLength, $fld->TruncateMemoRemoveHtml);
						$row[$fldname] = $val;
					}
				}
			}
		}
		return $row;
	}

	// Get record key value from array
	protected function getRecordKeyValue($ar)
	{
		$key = "";
		if (is_array($ar)) {
			$key .= @$ar['id'];
		}
		return $key;
	}

	/**
	 * Hide fields for add/edit
	 *
	 * @return void
	 */
	protected function hideFieldsForAddEdit()
	{
		if ($this->isAdd() || $this->isCopy() || $this->isGridAdd())
			$this->id->Visible = FALSE;
	}

	// Lookup data
	public function lookup()
	{
		global $Language, $Security;
		if (!isset($Language))
			$Language = new Language(Config("LANGUAGE_FOLDER"), Post("language", ""));

		// Set up API request
		if (!ValidApiRequest())
			return FALSE;
		$this->setupApiSecurity();

		// Get lookup object
		$fieldName = Post("field");
		if (!array_key_exists($fieldName, $this->fields))
			return FALSE;
		$lookupField = $this->fields[$fieldName];
		$lookup = $lookupField->Lookup;
		if ($lookup === NULL)
			return FALSE;
		if (!$Security->isLoggedIn()) // Logged in
			return FALSE;

		// Get lookup parameters
		$lookupType = Post("ajax", "unknown");
		$pageSize = -1;
		$offset = -1;
		$searchValue = "";
		if (SameText($lookupType, "modal")) {
			$searchValue = Post("sv", "");
			$pageSize = Post("recperpage", 10);
			$offset = Post("start", 0);
		} elseif (SameText($lookupType, "autosuggest")) {
			$searchValue = Param("q", "");
			$pageSize = Param("n", -1);
			$pageSize = is_numeric($pageSize) ? (int)$pageSize : -1;
			if ($pageSize <= 0)
				$pageSize = Config("AUTO_SUGGEST_MAX_ENTRIES");
			$start = Param("start", -1);
			$start = is_numeric($start) ? (int)$start : -1;
			$page = Param("page", -1);
			$page = is_numeric($page) ? (int)$page : -1;
			$offset = $start >= 0 ? $start : ($page > 0 && $pageSize > 0 ? ($page - 1) * $pageSize : 0);
		}
		$userSelect = Decrypt(Post("s", ""));
		$userFilter = Decrypt(Post("f", ""));
		$userOrderBy = Decrypt(Post("o", ""));
		$keys = Post("keys");
		$lookup->LookupType = $lookupType; // Lookup type
		if ($keys !== NULL) { // Selected records from modal
			if (is_array($keys))
				$keys = implode(Config("MULTIPLE_OPTION_SEPARATOR"), $keys);
			$lookup->FilterFields = []; // Skip parent fields if any
			$lookup->FilterValues[] = $keys; // Lookup values
			$pageSize = -1; // Show all records
		} else { // Lookup values
			$lookup->FilterValues[] = Post("v0", Post("lookupValue", ""));
		}
		$cnt = is_array($lookup->FilterFields) ? count($lookup->FilterFields) : 0;
		for ($i = 1; $i <= $cnt; $i++)
			$lookup->FilterValues[] = Post("v" . $i, "");
		$lookup->SearchValue = $searchValue;
		$lookup->PageSize = $pageSize;
		$lookup->Offset = $offset;
		if ($userSelect != "")
			$lookup->UserSelect = $userSelect;
		if ($userFilter != "")
			$lookup->UserFilter = $userFilter;
		if ($userOrderBy != "")
			$lookup->UserOrderBy = $userOrderBy;
		$lookup->toJson($this); // Use settings from current page
	}

	// Set up API security
	public function setupApiSecurity()
	{
		global $Security;

		// Setup security for API request
	}

	// Class variables
	public $ListOptions; // List options
	public $ExportOptions; // Export options
	public $SearchOptions; // Search options
	public $OtherOptions; // Other options
	public $FilterOptions; // Filter options
	public $ImportOptions; // Import options
	public $ListActions; // List actions
	public $SelectedCount = 0;
	public $SelectedIndex = 0;
	public $DisplayRecords = 50;
	public $StartRecord;
	public $StopRecord;
	public $TotalRecords = 0;
	public $RecordRange = 10;
	public $PageSizes = "50,100,-1"; // Page sizes (comma separated)
	public $DefaultSearchWhere = ""; // Default search WHERE clause
	public $SearchWhere = ""; // Search WHERE clause
	public $SearchPanelClass = "ew-search-panel collapse show"; // Search Panel class
	public $SearchRowCount = 0; // For extended search
	public $SearchColumnCount = 0; // For extended search
	public $SearchFieldsPerRow = 1; // For extended search
	public $RecordCount = 0; // Record count
	public $EditRowCount;
	public $StartRowCount = 1;
	public $RowCount = 0;
	public $Attrs = []; // Row attributes and cell attributes
	public $RowIndex = 0; // Row index
	public $KeyCount = 0; // Key count
	public $RowAction = ""; // Row action
	public $RowOldKey = ""; // Row old key (for copy)
	public $MultiColumnClass = "col-sm";
	public $MultiColumnEditClass = "w-100";
	public $DbMasterFilter = ""; // Master filter
	public $DbDetailFilter = ""; // Detail filter
	public $MasterRecordExists;
	public $MultiSelectKey;
	public $Command;
	public $RestoreSearch = FALSE;
	public $DetailPages;
	public $OldRecordset;

	//
	// Page run
	//

	public function run()
	{
		global $ExportType, $CustomExportType, $ExportFileName, $UserProfile, $Language, $Security, $CurrentForm,
			$FormError, $SearchError;

		// User profile
		$UserProfile = new UserProfile();

		// Security
		if (ValidApiRequest()) { // API request
			$this->setupApiSecurity(); // Set up API Security
			if (!$Security->canList()) {
				SetStatus(401); // Unauthorized
				return;
			}
		} else {
			$Security = new AdvancedSecurity();
			if (!$Security->isLoggedIn())
				$Security->autoLogin();
			$Security->loadCurrentUserLevel($this->ProjectID . $this->TableName);
			if (!$Security->canList()) {
				$Security->saveLastUrl();
				$this->setFailureMessage(DeniedMessage()); // Set no permission
				$this->terminate(GetUrl("index.php"));
				return;
			}
		}

		// Get export parameters
		$custom = "";
		if (Param("export") !== NULL) {
			$this->Export = Param("export");
			$custom = Param("custom", "");
		} elseif (IsPost()) {
			if (Post("exporttype") !== NULL)
				$this->Export = Post("exporttype");
			$custom = Post("custom", "");
		} elseif (Get("cmd") == "json") {
			$this->Export = Get("cmd");
		} else {
			$this->setExportReturnUrl(CurrentUrl());
		}
		$ExportFileName = $this->TableVar; // Get export file, used in header

		// Get custom export parameters
		if ($this->isExport() && $custom != "") {
			$this->CustomExport = $this->Export;
			$this->Export = "print";
		}
		$CustomExportType = $this->CustomExport;
		$ExportType = $this->Export; // Get export parameter, used in header

		// Update Export URLs
		if (Config("USE_PHPEXCEL"))
			$this->ExportExcelCustom = FALSE;
		if ($this->ExportExcelCustom)
			$this->ExportExcelUrl .= "&amp;custom=1";
		if (Config("USE_PHPWORD"))
			$this->ExportWordCustom = FALSE;
		if ($this->ExportWordCustom)
			$this->ExportWordUrl .= "&amp;custom=1";
		if ($this->ExportPdfCustom)
			$this->ExportPdfUrl .= "&amp;custom=1";
		$this->CurrentAction = Param("action"); // Set up current action

		// Get grid add count
		$gridaddcnt = Get(Config("TABLE_GRID_ADD_ROW_COUNT"), "");
		if (is_numeric($gridaddcnt) && $gridaddcnt > 0)
			$this->GridAddRowCount = $gridaddcnt;

		// Set up list options
		$this->setupListOptions();

		// Setup export options
		$this->setupExportOptions();
		$this->id->setVisibility();
		$this->kind->Visible = FALSE;
		$this->deleted->Visible = FALSE;
		$this->mls_id->Visible = FALSE;
		$this->mls_id_num->Visible = FALSE;
		$this->parent->Visible = FALSE;
		$this->pic_numb->Visible = FALSE;
		$this->user_id->Visible = FALSE;
		$this->listing->Visible = FALSE;
		$this->property_type->Visible = FALSE;
		$this->location1_id->Visible = FALSE;
		$this->location2_id->Visible = FALSE;
		$this->location3_id->Visible = FALSE;
		$this->location4_id->Visible = FALSE;
		$this->location5_id->Visible = FALSE;
		$this->location6_id->Visible = FALSE;
		$this->location7_id->Visible = FALSE;
		$this->location1_name->Visible = FALSE;
		$this->location2_name->Visible = FALSE;
		$this->location3_name->Visible = FALSE;
		$this->location4_name->Visible = FALSE;
		$this->location5_name->Visible = FALSE;
		$this->location6_name->Visible = FALSE;
		$this->location7_name->Visible = FALSE;
		$this->show_address->Visible = FALSE;
		$this->show_marker->Visible = FALSE;
		$this->price->Visible = FALSE;
		$this->price_unit->Visible = FALSE;
		$this->price_si->Visible = FALSE;
		$this->price_period->Visible = FALSE;
		$this->bedrooms->Visible = FALSE;
		$this->rooms->Visible = FALSE;
		$this->bathrooms->Visible = FALSE;
		$this->living_area->Visible = FALSE;
		$this->living_area_unit->Visible = FALSE;
		$this->living_area_si->Visible = FALSE;
		$this->lot_area->Visible = FALSE;
		$this->lot_area_unit->Visible = FALSE;
		$this->lot_area_si->Visible = FALSE;
		$this->googlemap_lt->Visible = FALSE;
		$this->googlemap_ln->Visible = FALSE;
		$this->finalized->Visible = FALSE;
		$this->add_date->Visible = FALSE;
		$this->last_finalize_date->Visible = FALSE;
		$this->expire_days->Visible = FALSE;
		$this->confirmed->Visible = FALSE;
		$this->expired->Visible = FALSE;
		$this->build_year->Visible = FALSE;
		$this->zip_id->Visible = FALSE;
		$this->zip_name->Visible = FALSE;
		$this->last_modified_time_stamp->Visible = FALSE;
		$this->post_code->Visible = FALSE;
		$this->meta_description->Visible = FALSE;
		$this->meta_description_manual->Visible = FALSE;
		$this->meta_keywords->Visible = FALSE;
		$this->meta_keywords_manual->Visible = FALSE;
		$this->street_no->Visible = FALSE;
		$this->sp_featured->Visible = FALSE;
		$this->sp_hot->Visible = FALSE;
		$this->sp_openhouse->Visible = FALSE;
		$this->sp_forclosure->Visible = FALSE;
		$this->textsearch->Visible = FALSE;
		$this->location_text->Visible = FALSE;
		$this->field_42->Visible = FALSE;
		$this->field_312->Visible = FALSE;
		$this->field_313->Visible = FALSE;
		$this->field_7->Visible = FALSE;
		$this->n_103->Visible = FALSE;
		$this->n_103_distance->Visible = FALSE;
		$this->n_103_distance_by->Visible = FALSE;
		$this->n_105->Visible = FALSE;
		$this->n_105_distance->Visible = FALSE;
		$this->n_105_distance_by->Visible = FALSE;
		$this->n_107->Visible = FALSE;
		$this->n_107_distance->Visible = FALSE;
		$this->n_107_distance_by->Visible = FALSE;
		$this->n_108->Visible = FALSE;
		$this->n_108_distance->Visible = FALSE;
		$this->n_108_distance_by->Visible = FALSE;
		$this->n_109->Visible = FALSE;
		$this->n_109_distance->Visible = FALSE;
		$this->n_109_distance_by->Visible = FALSE;
		$this->f_131_options->Visible = FALSE;
		$this->f_131->Visible = FALSE;
		$this->f_137_options->Visible = FALSE;
		$this->f_137->Visible = FALSE;
		$this->f_139_options->Visible = FALSE;
		$this->f_139->Visible = FALSE;
		$this->f_144_options->Visible = FALSE;
		$this->f_144->Visible = FALSE;
		$this->f_146_options->Visible = FALSE;
		$this->f_146->Visible = FALSE;
		$this->f_149_options->Visible = FALSE;
		$this->f_149->Visible = FALSE;
		$this->f_150_options->Visible = FALSE;
		$this->f_150->Visible = FALSE;
		$this->f_156_options->Visible = FALSE;
		$this->f_156->Visible = FALSE;
		$this->f_157_options->Visible = FALSE;
		$this->f_157->Visible = FALSE;
		$this->f_159_options->Visible = FALSE;
		$this->f_159->Visible = FALSE;
		$this->f_161_options->Visible = FALSE;
		$this->f_161->Visible = FALSE;
		$this->f_163_options->Visible = FALSE;
		$this->f_163->Visible = FALSE;
		$this->f_165_options->Visible = FALSE;
		$this->f_165->Visible = FALSE;
		$this->f_166_options->Visible = FALSE;
		$this->f_166->Visible = FALSE;
		$this->ref_id->Visible = FALSE;
		$this->field_54->Visible = FALSE;
		$this->half_bathrooms->Visible = FALSE;
		$this->field_55->Visible = FALSE;
		$this->rendered->Visible = FALSE;
		$this->alias->Visible = FALSE;
		$this->source->Visible = FALSE;
		$this->last_sync_date->Visible = FALSE;
		$this->street_suffix->Visible = FALSE;
		$this->energy_tag->Visible = FALSE;
		$this->field_3006->Visible = FALSE;
		$this->field_3007->Visible = FALSE;
		$this->field_3008->Visible = FALSE;
		$this->importer_structure_id->Visible = FALSE;
		$this->importer_params->Visible = FALSE;
		$this->field_3009->Visible = FALSE;
		$this->field_3010->Visible = FALSE;
		$this->field_3012->Visible = FALSE;
		$this->rendered_en_us->Visible = FALSE;
		$this->textsearch_en_us->Visible = FALSE;
		$this->rendered_fr_fr->Visible = FALSE;
		$this->textsearch_fr_fr->Visible = FALSE;
		$this->field_3013->Visible = FALSE;
		$this->field_3014->Visible = FALSE;
		$this->f_3014_options->Visible = FALSE;
		$this->f_3014->Visible = FALSE;
		$this->field_3015->Visible = FALSE;
		$this->field_3016->Visible = FALSE;
		$this->field_3017->Visible = FALSE;
		$this->f_3018_options->Visible = FALSE;
		$this->f_3018->Visible = FALSE;
		$this->f_3019_options->Visible = FALSE;
		$this->f_3019->Visible = FALSE;
		$this->f_3020_options->Visible = FALSE;
		$this->f_3020->Visible = FALSE;
		$this->f_3021_options->Visible = FALSE;
		$this->f_3021->Visible = FALSE;
		$this->f_3022_options->Visible = FALSE;
		$this->f_3022->Visible = FALSE;
		$this->f_3023_options->Visible = FALSE;
		$this->f_3023->Visible = FALSE;
		$this->f_3024_options->Visible = FALSE;
		$this->f_3024->Visible = FALSE;
		$this->f_3025_options->Visible = FALSE;
		$this->f_3025->Visible = FALSE;
		$this->f_3026_options->Visible = FALSE;
		$this->f_3026->Visible = FALSE;
		$this->f_3027_options->Visible = FALSE;
		$this->f_3027->Visible = FALSE;
		$this->f_3028_options->Visible = FALSE;
		$this->f_3028->Visible = FALSE;
		$this->f_3029_options->Visible = FALSE;
		$this->f_3029->Visible = FALSE;
		$this->f_3031_options->Visible = FALSE;
		$this->f_3031->Visible = FALSE;
		$this->f_3032_options->Visible = FALSE;
		$this->f_3032->Visible = FALSE;
		$this->f_3033_options->Visible = FALSE;
		$this->f_3033->Visible = FALSE;
		$this->f_3034_options->Visible = FALSE;
		$this->f_3034->Visible = FALSE;
		$this->f_3035_options->Visible = FALSE;
		$this->f_3035->Visible = FALSE;
		$this->f_3036_options->Visible = FALSE;
		$this->f_3036->Visible = FALSE;
		$this->f_3037_options->Visible = FALSE;
		$this->f_3037->Visible = FALSE;
		$this->f_3038_options->Visible = FALSE;
		$this->f_3038->Visible = FALSE;
		$this->f_3039_options->Visible = FALSE;
		$this->f_3039->Visible = FALSE;
		$this->f_3040_options->Visible = FALSE;
		$this->f_3040->Visible = FALSE;
		$this->f_3041_options->Visible = FALSE;
		$this->f_3041->Visible = FALSE;
		$this->f_3042_options->Visible = FALSE;
		$this->f_3042->Visible = FALSE;
		$this->f_3043_options->Visible = FALSE;
		$this->f_3043->Visible = FALSE;
		$this->f_3044_options->Visible = FALSE;
		$this->f_3044->Visible = FALSE;
		$this->n_3045->Visible = FALSE;
		$this->n_3045_distance->Visible = FALSE;
		$this->n_3045_distance_by->Visible = FALSE;
		$this->n_3046->Visible = FALSE;
		$this->n_3046_distance->Visible = FALSE;
		$this->n_3046_distance_by->Visible = FALSE;
		$this->n_3047->Visible = FALSE;
		$this->n_3047_distance->Visible = FALSE;
		$this->n_3047_distance_by->Visible = FALSE;
		$this->n_3048->Visible = FALSE;
		$this->n_3048_distance->Visible = FALSE;
		$this->n_3048_distance_by->Visible = FALSE;
		$this->n_3049->Visible = FALSE;
		$this->n_3049_distance->Visible = FALSE;
		$this->n_3049_distance_by->Visible = FALSE;
		$this->n_3050->Visible = FALSE;
		$this->n_3050_distance->Visible = FALSE;
		$this->n_3050_distance_by->Visible = FALSE;
		$this->n_3051->Visible = FALSE;
		$this->n_3051_distance->Visible = FALSE;
		$this->n_3051_distance_by->Visible = FALSE;
		$this->n_3052->Visible = FALSE;
		$this->n_3052_distance->Visible = FALSE;
		$this->n_3052_distance_by->Visible = FALSE;
		$this->n_3053->Visible = FALSE;
		$this->n_3053_distance->Visible = FALSE;
		$this->n_3053_distance_by->Visible = FALSE;
		$this->n_3054->Visible = FALSE;
		$this->n_3054_distance->Visible = FALSE;
		$this->n_3054_distance_by->Visible = FALSE;
		$this->n_3055->Visible = FALSE;
		$this->n_3055_distance->Visible = FALSE;
		$this->n_3055_distance_by->Visible = FALSE;
		$this->n_3056->Visible = FALSE;
		$this->n_3056_distance->Visible = FALSE;
		$this->n_3056_distance_by->Visible = FALSE;
		$this->n_3057->Visible = FALSE;
		$this->n_3057_distance->Visible = FALSE;
		$this->n_3057_distance_by->Visible = FALSE;
		$this->n_3058->Visible = FALSE;
		$this->n_3058_distance->Visible = FALSE;
		$this->n_3058_distance_by->Visible = FALSE;
		$this->n_3059->Visible = FALSE;
		$this->n_3059_distance->Visible = FALSE;
		$this->n_3059_distance_by->Visible = FALSE;
		$this->f_3060_options->Visible = FALSE;
		$this->f_3060->Visible = FALSE;
		$this->f_3061_options->Visible = FALSE;
		$this->f_3061->Visible = FALSE;
		$this->f_3062_options->Visible = FALSE;
		$this->f_3062->Visible = FALSE;
		$this->field_3063->Visible = FALSE;
		$this->field_3064->Visible = FALSE;
		$this->field_3065->Visible = FALSE;
		$this->field_308->Visible = FALSE;
		$this->field_308_en_us->Visible = FALSE;
		$this->field_308_fr_fr->Visible = FALSE;
		$this->field_313_en_us->Visible = FALSE;
		$this->field_313_fr_fr->Visible = FALSE;
		$this->field_312_en_us->Visible = FALSE;
		$this->field_312_fr_fr->Visible = FALSE;
		$this->field_3017_en_us->Visible = FALSE;
		$this->field_3017_fr_fr->Visible = FALSE;
		$this->field_42_en_us->Visible = FALSE;
		$this->field_42_fr_fr->Visible = FALSE;
		$this->field_3067->Visible = FALSE;
		$this->field_3068->Visible = FALSE;
		$this->field_3069->Visible = FALSE;
		$this->field_3070->Visible = FALSE;
		$this->field_3071->Visible = FALSE;
		$this->field_3071_en_us->Visible = FALSE;
		$this->field_3071_fr_fr->Visible = FALSE;
		$this->field_3072->Visible = FALSE;
		$this->field_3073->Visible = FALSE;
		$this->field_3074->Visible = FALSE;
		$this->field_3074_en_us->Visible = FALSE;
		$this->field_3074_fr_fr->Visible = FALSE;
		$this->field_3075->Visible = FALSE;
		$this->field_3076->Visible = FALSE;
		$this->field_3077->Visible = FALSE;
		$this->field_3078->Visible = FALSE;
		$this->field_3079->Visible = FALSE;
		$this->field_3080->Visible = FALSE;
		$this->field_3076_en_us->Visible = FALSE;
		$this->field_3076_fr_fr->Visible = FALSE;
		$this->field_3080_en_us->Visible = FALSE;
		$this->field_3080_fr_fr->Visible = FALSE;
		$this->field_3081->Visible = FALSE;
		$this->field_3081_en_us->Visible = FALSE;
		$this->field_3081_fr_fr->Visible = FALSE;
		$this->field_3082->Visible = FALSE;
		$this->field_3082_en_us->Visible = FALSE;
		$this->field_3082_fr_fr->Visible = FALSE;
		$this->field_3084->Visible = FALSE;
		$this->field_3085->Visible = FALSE;
		$this->field_3086->Visible = FALSE;
		$this->field_3096->Visible = FALSE;
		$this->field_3097->Visible = FALSE;
		$this->field_3098->Visible = FALSE;
		$this->field_3099->Visible = FALSE;
		$this->field_3100->Visible = FALSE;
		$this->field_3101->Visible = FALSE;
		$this->field_3102->Visible = FALSE;
		$this->field_3103->Visible = FALSE;
		$this->field_3104->Visible = FALSE;
		$this->field_3105->Visible = FALSE;
		$this->field_3106->Visible = FALSE;
		$this->field_3107->Visible = FALSE;
		$this->field_3108->Visible = FALSE;
		$this->field_3109->Visible = FALSE;
		$this->field_3110->Visible = FALSE;
		$this->field_3111->Visible = FALSE;
		$this->field_3112->Visible = FALSE;
		$this->field_3113->Visible = FALSE;
		$this->field_3113_en_us->Visible = FALSE;
		$this->field_3113_fr_fr->Visible = FALSE;
		$this->field_3114->Visible = FALSE;
		$this->field_3115->Visible = FALSE;
		$this->field_3115_si->Visible = FALSE;
		$this->field_3115_unit->Visible = FALSE;
		$this->field_3116->Visible = FALSE;
		$this->field_3117->Visible = FALSE;
		$this->field_3117_en_us->Visible = FALSE;
		$this->field_3117_fr_fr->Visible = FALSE;
		$this->field_3118->Visible = FALSE;
		$this->field_3118_en_us->Visible = FALSE;
		$this->field_3118_fr_fr->Visible = FALSE;
		$this->field_3119->setVisibility();
		$this->field_3119_en_us->setVisibility();
		$this->field_3119_fr_fr->setVisibility();
		$this->field_3120->setVisibility();
		$this->field_3120_en_us->setVisibility();
		$this->field_3120_fr_fr->setVisibility();
		$this->field_3121->Visible = FALSE;
		$this->field_3122->Visible = FALSE;
		$this->field_3122_si->Visible = FALSE;
		$this->field_3122_unit->Visible = FALSE;
		$this->field_3123->Visible = FALSE;
		$this->field_3124->Visible = FALSE;
		$this->field_3125->Visible = FALSE;
		$this->field_3126->Visible = FALSE;
		$this->field_3127->Visible = FALSE;
		$this->field_3128->Visible = FALSE;
		$this->field_3129->Visible = FALSE;
		$this->field_3130->Visible = FALSE;
		$this->field_3131->Visible = FALSE;
		$this->field_3132->Visible = FALSE;
		$this->field_3133->Visible = FALSE;
		$this->field_3134->Visible = FALSE;
		$this->field_3135->Visible = FALSE;
		$this->field_3136->Visible = FALSE;
		$this->field_3137->Visible = FALSE;
		$this->field_3138->Visible = FALSE;
		$this->field_3139->Visible = FALSE;
		$this->field_3140->Visible = FALSE;
		$this->field_3141->Visible = FALSE;
		$this->field_3142->Visible = FALSE;
		$this->field_3143->Visible = FALSE;
		$this->field_3144->Visible = FALSE;
		$this->field_3145->Visible = FALSE;
		$this->field_3146->Visible = FALSE;
		$this->field_3147->Visible = FALSE;
		$this->field_3148->Visible = FALSE;
		$this->field_3149->Visible = FALSE;
		$this->field_3150->Visible = FALSE;
		$this->field_3151->Visible = FALSE;
		$this->field_3152->Visible = FALSE;
		$this->field_3153->Visible = FALSE;
		$this->field_3154->Visible = FALSE;
		$this->field_3155->Visible = FALSE;
		$this->field_3156->Visible = FALSE;
		$this->field_3157->Visible = FALSE;
		$this->field_3158->Visible = FALSE;
		$this->field_3159->Visible = FALSE;
		$this->field_3160->Visible = FALSE;
		$this->field_3161->Visible = FALSE;
		$this->field_3162->Visible = FALSE;
		$this->field_3163->Visible = FALSE;
		$this->field_3164->Visible = FALSE;
		$this->field_3165->Visible = FALSE;
		$this->field_3166->Visible = FALSE;
		$this->field_3167->Visible = FALSE;
		$this->field_3168->Visible = FALSE;
		$this->field_3169->Visible = FALSE;
		$this->field_3170->Visible = FALSE;
		$this->field_3171->Visible = FALSE;
		$this->field_3172->Visible = FALSE;
		$this->field_3173->Visible = FALSE;
		$this->field_3173_si->Visible = FALSE;
		$this->field_3173_unit->Visible = FALSE;
		$this->field_3180->Visible = FALSE;
		$this->field_3180_en_us->Visible = FALSE;
		$this->field_3180_fr_fr->Visible = FALSE;
		$this->field_3181->Visible = FALSE;
		$this->field_3182->Visible = FALSE;
		$this->n_3189->Visible = FALSE;
		$this->n_3189_distance->Visible = FALSE;
		$this->n_3189_distance_by->Visible = FALSE;
		$this->field_3190->setVisibility();
		$this->field_3192->setVisibility();
		$this->field_3193->setVisibility();
		$this->field_3195->setVisibility();
		$this->field_3114_en_us->setVisibility();
		$this->field_3114_fr_fr->setVisibility();
		$this->n_3196->setVisibility();
		$this->n_3196_distance->setVisibility();
		$this->n_3196_distance_by->setVisibility();
		$this->field_3197->setVisibility();
		$this->field_3197_si->setVisibility();
		$this->field_3197_unit->setVisibility();
		$this->hideFieldsForAddEdit();

		// Global Page Loading event (in userfn*.php)
		Page_Loading();

		// Page Load event
		$this->Page_Load();

		// Check token
		if (!$this->validPost()) {
			Write($Language->phrase("InvalidPostRequest"));
			$this->terminate();
		}

		// Create Token
		$this->createToken();

		// Setup other options
		$this->setupOtherOptions();

		// Set up custom action (compatible with old version)
		foreach ($this->CustomActions as $name => $action)
			$this->ListActions->add($name, $action);

		// Show checkbox column if multiple action
		foreach ($this->ListActions->Items as $listaction) {
			if ($listaction->Select == ACTION_MULTIPLE && $listaction->Allow) {
				$this->ListOptions["checkbox"]->Visible = TRUE;
				break;
			}
		}

		// Set up lookup cache
		// Search filters

		$srchAdvanced = ""; // Advanced search filter
		$srchBasic = ""; // Basic search filter
		$filter = "";

		// Get command
		$this->Command = strtolower(Get("cmd"));
		if ($this->isPageRequest()) { // Validate request

			// Process list action first
			if ($this->processListAction()) // Ajax request
				$this->terminate();

			// Set up records per page
			$this->setupDisplayRecords();

			// Handle reset command
			$this->resetCmd();

			// Set up Breadcrumb
			if (!$this->isExport())
				$this->setupBreadcrumb();

			// Hide list options
			if ($this->isExport()) {
				$this->ListOptions->hideAllOptions(["sequence"]);
				$this->ListOptions->UseDropDownButton = FALSE; // Disable drop down button
				$this->ListOptions->UseButtonGroup = FALSE; // Disable button group
			} elseif ($this->isGridAdd() || $this->isGridEdit()) {
				$this->ListOptions->hideAllOptions();
				$this->ListOptions->UseDropDownButton = FALSE; // Disable drop down button
				$this->ListOptions->UseButtonGroup = FALSE; // Disable button group
			}

			// Hide options
			if ($this->isExport() || $this->CurrentAction) {
				$this->ExportOptions->hideAllOptions();
				$this->FilterOptions->hideAllOptions();
				$this->ImportOptions->hideAllOptions();
			}

			// Hide other options
			if ($this->isExport())
				$this->OtherOptions->hideAllOptions();

			// Get default search criteria
			AddFilter($this->DefaultSearchWhere, $this->advancedSearchWhere(TRUE));

			// Get and validate search values for advanced search
			$this->loadSearchValues(); // Get search values

			// Process filter list
			if ($this->processFilterList())
				$this->terminate();
			if (!$this->validateSearch())
				$this->setFailureMessage($SearchError);

			// Restore search parms from Session if not searching / reset / export
			if (($this->isExport() || $this->Command != "search" && $this->Command != "reset" && $this->Command != "resetall") && $this->Command != "json" && $this->checkSearchParms())
				$this->restoreSearchParms();

			// Call Recordset SearchValidated event
			$this->Recordset_SearchValidated();

			// Set up sorting order
			$this->setupSortOrder();

			// Get search criteria for advanced search
			if ($SearchError == "")
				$srchAdvanced = $this->advancedSearchWhere();
		}

		// Restore display records
		if ($this->Command != "json" && $this->getRecordsPerPage() != "") {
			$this->DisplayRecords = $this->getRecordsPerPage(); // Restore from Session
		} else {
			$this->DisplayRecords = 50; // Load default
			$this->setRecordsPerPage($this->DisplayRecords); // Save default to Session
		}

		// Load Sorting Order
		if ($this->Command != "json")
			$this->loadSortOrder();

		// Load search default if no existing search criteria
		if (!$this->checkSearchParms()) {

			// Load advanced search from default
			if ($this->loadAdvancedSearchDefault()) {
				$srchAdvanced = $this->advancedSearchWhere();
			}
		}

		// Restore search settings from Session
		if ($SearchError == "")
			$this->loadAdvancedSearch();

		// Build search criteria
		AddFilter($this->SearchWhere, $srchAdvanced);
		AddFilter($this->SearchWhere, $srchBasic);

		// Call Recordset_Searching event
		$this->Recordset_Searching($this->SearchWhere);

		// Save search criteria
		if ($this->Command == "search" && !$this->RestoreSearch) {
			$this->setSearchWhere($this->SearchWhere); // Save to Session
			$this->StartRecord = 1; // Reset start record counter
			$this->setStartRecordNumber($this->StartRecord);
		} elseif ($this->Command != "json") {
			$this->SearchWhere = $this->getSearchWhere();
		}

		// Build filter
		$filter = "";
		AddFilter($filter, $this->DbDetailFilter);
		AddFilter($filter, $this->SearchWhere);

		// Set up filter
		if ($this->Command == "json") {
			$this->UseSessionForListSql = FALSE; // Do not use session for ListSQL
			$this->CurrentFilter = $filter;
		} else {
			$this->setSessionWhere($filter);
			$this->CurrentFilter = "";
		}

		// Export data only
		if (!$this->CustomExport && in_array($this->Export, array_keys(Config("EXPORT_CLASSES")))) {
			$this->exportData();
			$this->terminate();
		}
		if ($this->isGridAdd()) {
			$this->CurrentFilter = "0=1";
			$this->StartRecord = 1;
			$this->DisplayRecords = $this->GridAddRowCount;
			$this->TotalRecords = $this->DisplayRecords;
			$this->StopRecord = $this->DisplayRecords;
		} else {
			$selectLimit = $this->UseSelectLimit;
			if ($selectLimit) {
				$this->TotalRecords = $this->listRecordCount();
			} else {
				if ($this->Recordset = $this->loadRecordset())
					$this->TotalRecords = $this->Recordset->RecordCount();
			}
			$this->StartRecord = 1;
			if ($this->DisplayRecords <= 0 || ($this->isExport() && $this->ExportAll)) // Display all records
				$this->DisplayRecords = $this->TotalRecords;
			if (!($this->isExport() && $this->ExportAll)) // Set up start record position
				$this->setupStartRecord();
			if ($selectLimit)
				$this->Recordset = $this->loadRecordset($this->StartRecord - 1, $this->DisplayRecords);

			// Set no record found message
			if (!$this->CurrentAction && $this->TotalRecords == 0) {
				if ($this->SearchWhere == "0=101")
					$this->setWarningMessage($Language->phrase("EnterSearchCriteria"));
				else
					$this->setWarningMessage($Language->phrase("NoRecord"));
			}
		}

		// Search options
		$this->setupSearchOptions();

		// Set up search panel class
		if ($this->SearchWhere != "")
			AppendClass($this->SearchPanelClass, "show");

		// Normal return
		if (IsApi()) {
			$rows = $this->getRecordsFromRecordset($this->Recordset);
			$this->Recordset->close();
			WriteJson(["success" => TRUE, $this->TableVar => $rows, "totalRecordCount" => $this->TotalRecords]);
			$this->terminate(TRUE);
		}

		// Set up pager
		$this->Pager = new NumericPager($this->StartRecord, $this->getRecordsPerPage(), $this->TotalRecords, $this->PageSizes, $this->RecordRange, $this->AutoHidePager, $this->AutoHidePageSizeSelector);
	}

	// Set up number of records displayed per page
	protected function setupDisplayRecords()
	{
		$wrk = Get(Config("TABLE_REC_PER_PAGE"), "");
		if ($wrk != "") {
			if (is_numeric($wrk)) {
				$this->DisplayRecords = (int)$wrk;
			} else {
				if (SameText($wrk, "all")) { // Display all records
					$this->DisplayRecords = -1;
				} else {
					$this->DisplayRecords = 50; // Non-numeric, load default
				}
			}
			$this->setRecordsPerPage($this->DisplayRecords); // Save to Session

			// Reset start position
			$this->StartRecord = 1;
			$this->setStartRecordNumber($this->StartRecord);
		}
	}

	// Build filter for all keys
	protected function buildKeyFilter()
	{
		global $CurrentForm;
		$wrkFilter = "";

		// Update row index and get row key
		$rowindex = 1;
		$CurrentForm->Index = $rowindex;
		$thisKey = strval($CurrentForm->getValue($this->FormKeyName));
		while ($thisKey != "") {
			if ($this->setupKeyValues($thisKey)) {
				$filter = $this->getRecordFilter();
				if ($wrkFilter != "")
					$wrkFilter .= " OR ";
				$wrkFilter .= $filter;
			} else {
				$wrkFilter = "0=1";
				break;
			}

			// Update row index and get row key
			$rowindex++; // Next row
			$CurrentForm->Index = $rowindex;
			$thisKey = strval($CurrentForm->getValue($this->FormKeyName));
		}
		return $wrkFilter;
	}

	// Set up key values
	protected function setupKeyValues($key)
	{
		$arKeyFlds = explode(Config("COMPOSITE_KEY_SEPARATOR"), $key);
		if (count($arKeyFlds) >= 1) {
			$this->id->setOldValue($arKeyFlds[0]);
			if (!is_numeric($this->id->OldValue))
				return FALSE;
		}
		return TRUE;
	}

	// Get list of filters
	public function getFilterList()
	{
		global $UserProfile;

		// Initialize
		$filterList = "";
		$savedFilterList = "";
		$filterList = Concat($filterList, $this->id->AdvancedSearch->toJson(), ","); // Field id
		$filterList = Concat($filterList, $this->kind->AdvancedSearch->toJson(), ","); // Field kind
		$filterList = Concat($filterList, $this->deleted->AdvancedSearch->toJson(), ","); // Field deleted
		$filterList = Concat($filterList, $this->mls_id->AdvancedSearch->toJson(), ","); // Field mls_id
		$filterList = Concat($filterList, $this->mls_id_num->AdvancedSearch->toJson(), ","); // Field mls_id_num
		$filterList = Concat($filterList, $this->parent->AdvancedSearch->toJson(), ","); // Field parent
		$filterList = Concat($filterList, $this->pic_numb->AdvancedSearch->toJson(), ","); // Field pic_numb
		$filterList = Concat($filterList, $this->user_id->AdvancedSearch->toJson(), ","); // Field user_id
		$filterList = Concat($filterList, $this->listing->AdvancedSearch->toJson(), ","); // Field listing
		$filterList = Concat($filterList, $this->property_type->AdvancedSearch->toJson(), ","); // Field property_type
		$filterList = Concat($filterList, $this->location1_id->AdvancedSearch->toJson(), ","); // Field location1_id
		$filterList = Concat($filterList, $this->location2_id->AdvancedSearch->toJson(), ","); // Field location2_id
		$filterList = Concat($filterList, $this->location3_id->AdvancedSearch->toJson(), ","); // Field location3_id
		$filterList = Concat($filterList, $this->location4_id->AdvancedSearch->toJson(), ","); // Field location4_id
		$filterList = Concat($filterList, $this->location5_id->AdvancedSearch->toJson(), ","); // Field location5_id
		$filterList = Concat($filterList, $this->location6_id->AdvancedSearch->toJson(), ","); // Field location6_id
		$filterList = Concat($filterList, $this->location7_id->AdvancedSearch->toJson(), ","); // Field location7_id
		$filterList = Concat($filterList, $this->location1_name->AdvancedSearch->toJson(), ","); // Field location1_name
		$filterList = Concat($filterList, $this->location2_name->AdvancedSearch->toJson(), ","); // Field location2_name
		$filterList = Concat($filterList, $this->location3_name->AdvancedSearch->toJson(), ","); // Field location3_name
		$filterList = Concat($filterList, $this->location4_name->AdvancedSearch->toJson(), ","); // Field location4_name
		$filterList = Concat($filterList, $this->location5_name->AdvancedSearch->toJson(), ","); // Field location5_name
		$filterList = Concat($filterList, $this->location6_name->AdvancedSearch->toJson(), ","); // Field location6_name
		$filterList = Concat($filterList, $this->location7_name->AdvancedSearch->toJson(), ","); // Field location7_name
		$filterList = Concat($filterList, $this->show_address->AdvancedSearch->toJson(), ","); // Field show_address
		$filterList = Concat($filterList, $this->show_marker->AdvancedSearch->toJson(), ","); // Field show_marker
		$filterList = Concat($filterList, $this->price->AdvancedSearch->toJson(), ","); // Field price
		$filterList = Concat($filterList, $this->price_unit->AdvancedSearch->toJson(), ","); // Field price_unit
		$filterList = Concat($filterList, $this->price_si->AdvancedSearch->toJson(), ","); // Field price_si
		$filterList = Concat($filterList, $this->price_period->AdvancedSearch->toJson(), ","); // Field price_period
		$filterList = Concat($filterList, $this->bedrooms->AdvancedSearch->toJson(), ","); // Field bedrooms
		$filterList = Concat($filterList, $this->rooms->AdvancedSearch->toJson(), ","); // Field rooms
		$filterList = Concat($filterList, $this->bathrooms->AdvancedSearch->toJson(), ","); // Field bathrooms
		$filterList = Concat($filterList, $this->living_area->AdvancedSearch->toJson(), ","); // Field living_area
		$filterList = Concat($filterList, $this->living_area_unit->AdvancedSearch->toJson(), ","); // Field living_area_unit
		$filterList = Concat($filterList, $this->living_area_si->AdvancedSearch->toJson(), ","); // Field living_area_si
		$filterList = Concat($filterList, $this->lot_area->AdvancedSearch->toJson(), ","); // Field lot_area
		$filterList = Concat($filterList, $this->lot_area_unit->AdvancedSearch->toJson(), ","); // Field lot_area_unit
		$filterList = Concat($filterList, $this->lot_area_si->AdvancedSearch->toJson(), ","); // Field lot_area_si
		$filterList = Concat($filterList, $this->googlemap_lt->AdvancedSearch->toJson(), ","); // Field googlemap_lt
		$filterList = Concat($filterList, $this->googlemap_ln->AdvancedSearch->toJson(), ","); // Field googlemap_ln
		$filterList = Concat($filterList, $this->finalized->AdvancedSearch->toJson(), ","); // Field finalized
		$filterList = Concat($filterList, $this->add_date->AdvancedSearch->toJson(), ","); // Field add_date
		$filterList = Concat($filterList, $this->last_finalize_date->AdvancedSearch->toJson(), ","); // Field last_finalize_date
		$filterList = Concat($filterList, $this->expire_days->AdvancedSearch->toJson(), ","); // Field expire_days
		$filterList = Concat($filterList, $this->confirmed->AdvancedSearch->toJson(), ","); // Field confirmed
		$filterList = Concat($filterList, $this->expired->AdvancedSearch->toJson(), ","); // Field expired
		$filterList = Concat($filterList, $this->build_year->AdvancedSearch->toJson(), ","); // Field build_year
		$filterList = Concat($filterList, $this->zip_id->AdvancedSearch->toJson(), ","); // Field zip_id
		$filterList = Concat($filterList, $this->zip_name->AdvancedSearch->toJson(), ","); // Field zip_name
		$filterList = Concat($filterList, $this->last_modified_time_stamp->AdvancedSearch->toJson(), ","); // Field last_modified_time_stamp
		$filterList = Concat($filterList, $this->post_code->AdvancedSearch->toJson(), ","); // Field post_code
		$filterList = Concat($filterList, $this->meta_description->AdvancedSearch->toJson(), ","); // Field meta_description
		$filterList = Concat($filterList, $this->meta_description_manual->AdvancedSearch->toJson(), ","); // Field meta_description_manual
		$filterList = Concat($filterList, $this->meta_keywords->AdvancedSearch->toJson(), ","); // Field meta_keywords
		$filterList = Concat($filterList, $this->meta_keywords_manual->AdvancedSearch->toJson(), ","); // Field meta_keywords_manual
		$filterList = Concat($filterList, $this->street_no->AdvancedSearch->toJson(), ","); // Field street_no
		$filterList = Concat($filterList, $this->sp_featured->AdvancedSearch->toJson(), ","); // Field sp_featured
		$filterList = Concat($filterList, $this->sp_hot->AdvancedSearch->toJson(), ","); // Field sp_hot
		$filterList = Concat($filterList, $this->sp_openhouse->AdvancedSearch->toJson(), ","); // Field sp_openhouse
		$filterList = Concat($filterList, $this->sp_forclosure->AdvancedSearch->toJson(), ","); // Field sp_forclosure
		$filterList = Concat($filterList, $this->textsearch->AdvancedSearch->toJson(), ","); // Field textsearch
		$filterList = Concat($filterList, $this->location_text->AdvancedSearch->toJson(), ","); // Field location_text
		$filterList = Concat($filterList, $this->field_42->AdvancedSearch->toJson(), ","); // Field field_42
		$filterList = Concat($filterList, $this->field_312->AdvancedSearch->toJson(), ","); // Field field_312
		$filterList = Concat($filterList, $this->field_313->AdvancedSearch->toJson(), ","); // Field field_313
		$filterList = Concat($filterList, $this->field_7->AdvancedSearch->toJson(), ","); // Field field_7
		$filterList = Concat($filterList, $this->n_103->AdvancedSearch->toJson(), ","); // Field n_103
		$filterList = Concat($filterList, $this->n_103_distance->AdvancedSearch->toJson(), ","); // Field n_103_distance
		$filterList = Concat($filterList, $this->n_103_distance_by->AdvancedSearch->toJson(), ","); // Field n_103_distance_by
		$filterList = Concat($filterList, $this->n_105->AdvancedSearch->toJson(), ","); // Field n_105
		$filterList = Concat($filterList, $this->n_105_distance->AdvancedSearch->toJson(), ","); // Field n_105_distance
		$filterList = Concat($filterList, $this->n_105_distance_by->AdvancedSearch->toJson(), ","); // Field n_105_distance_by
		$filterList = Concat($filterList, $this->n_107->AdvancedSearch->toJson(), ","); // Field n_107
		$filterList = Concat($filterList, $this->n_107_distance->AdvancedSearch->toJson(), ","); // Field n_107_distance
		$filterList = Concat($filterList, $this->n_107_distance_by->AdvancedSearch->toJson(), ","); // Field n_107_distance_by
		$filterList = Concat($filterList, $this->n_108->AdvancedSearch->toJson(), ","); // Field n_108
		$filterList = Concat($filterList, $this->n_108_distance->AdvancedSearch->toJson(), ","); // Field n_108_distance
		$filterList = Concat($filterList, $this->n_108_distance_by->AdvancedSearch->toJson(), ","); // Field n_108_distance_by
		$filterList = Concat($filterList, $this->n_109->AdvancedSearch->toJson(), ","); // Field n_109
		$filterList = Concat($filterList, $this->n_109_distance->AdvancedSearch->toJson(), ","); // Field n_109_distance
		$filterList = Concat($filterList, $this->n_109_distance_by->AdvancedSearch->toJson(), ","); // Field n_109_distance_by
		$filterList = Concat($filterList, $this->f_131_options->AdvancedSearch->toJson(), ","); // Field f_131_options
		$filterList = Concat($filterList, $this->f_131->AdvancedSearch->toJson(), ","); // Field f_131
		$filterList = Concat($filterList, $this->f_137_options->AdvancedSearch->toJson(), ","); // Field f_137_options
		$filterList = Concat($filterList, $this->f_137->AdvancedSearch->toJson(), ","); // Field f_137
		$filterList = Concat($filterList, $this->f_139_options->AdvancedSearch->toJson(), ","); // Field f_139_options
		$filterList = Concat($filterList, $this->f_139->AdvancedSearch->toJson(), ","); // Field f_139
		$filterList = Concat($filterList, $this->f_144_options->AdvancedSearch->toJson(), ","); // Field f_144_options
		$filterList = Concat($filterList, $this->f_144->AdvancedSearch->toJson(), ","); // Field f_144
		$filterList = Concat($filterList, $this->f_146_options->AdvancedSearch->toJson(), ","); // Field f_146_options
		$filterList = Concat($filterList, $this->f_146->AdvancedSearch->toJson(), ","); // Field f_146
		$filterList = Concat($filterList, $this->f_149_options->AdvancedSearch->toJson(), ","); // Field f_149_options
		$filterList = Concat($filterList, $this->f_149->AdvancedSearch->toJson(), ","); // Field f_149
		$filterList = Concat($filterList, $this->f_150_options->AdvancedSearch->toJson(), ","); // Field f_150_options
		$filterList = Concat($filterList, $this->f_150->AdvancedSearch->toJson(), ","); // Field f_150
		$filterList = Concat($filterList, $this->f_156_options->AdvancedSearch->toJson(), ","); // Field f_156_options
		$filterList = Concat($filterList, $this->f_156->AdvancedSearch->toJson(), ","); // Field f_156
		$filterList = Concat($filterList, $this->f_157_options->AdvancedSearch->toJson(), ","); // Field f_157_options
		$filterList = Concat($filterList, $this->f_157->AdvancedSearch->toJson(), ","); // Field f_157
		$filterList = Concat($filterList, $this->f_159_options->AdvancedSearch->toJson(), ","); // Field f_159_options
		$filterList = Concat($filterList, $this->f_159->AdvancedSearch->toJson(), ","); // Field f_159
		$filterList = Concat($filterList, $this->f_161_options->AdvancedSearch->toJson(), ","); // Field f_161_options
		$filterList = Concat($filterList, $this->f_161->AdvancedSearch->toJson(), ","); // Field f_161
		$filterList = Concat($filterList, $this->f_163_options->AdvancedSearch->toJson(), ","); // Field f_163_options
		$filterList = Concat($filterList, $this->f_163->AdvancedSearch->toJson(), ","); // Field f_163
		$filterList = Concat($filterList, $this->f_165_options->AdvancedSearch->toJson(), ","); // Field f_165_options
		$filterList = Concat($filterList, $this->f_165->AdvancedSearch->toJson(), ","); // Field f_165
		$filterList = Concat($filterList, $this->f_166_options->AdvancedSearch->toJson(), ","); // Field f_166_options
		$filterList = Concat($filterList, $this->f_166->AdvancedSearch->toJson(), ","); // Field f_166
		$filterList = Concat($filterList, $this->ref_id->AdvancedSearch->toJson(), ","); // Field ref_id
		$filterList = Concat($filterList, $this->field_54->AdvancedSearch->toJson(), ","); // Field field_54
		$filterList = Concat($filterList, $this->half_bathrooms->AdvancedSearch->toJson(), ","); // Field half_bathrooms
		$filterList = Concat($filterList, $this->field_55->AdvancedSearch->toJson(), ","); // Field field_55
		$filterList = Concat($filterList, $this->rendered->AdvancedSearch->toJson(), ","); // Field rendered
		$filterList = Concat($filterList, $this->alias->AdvancedSearch->toJson(), ","); // Field alias
		$filterList = Concat($filterList, $this->source->AdvancedSearch->toJson(), ","); // Field source
		$filterList = Concat($filterList, $this->last_sync_date->AdvancedSearch->toJson(), ","); // Field last_sync_date
		$filterList = Concat($filterList, $this->street_suffix->AdvancedSearch->toJson(), ","); // Field street_suffix
		$filterList = Concat($filterList, $this->energy_tag->AdvancedSearch->toJson(), ","); // Field energy_tag
		$filterList = Concat($filterList, $this->field_3006->AdvancedSearch->toJson(), ","); // Field field_3006
		$filterList = Concat($filterList, $this->field_3007->AdvancedSearch->toJson(), ","); // Field field_3007
		$filterList = Concat($filterList, $this->field_3008->AdvancedSearch->toJson(), ","); // Field field_3008
		$filterList = Concat($filterList, $this->importer_structure_id->AdvancedSearch->toJson(), ","); // Field importer_structure_id
		$filterList = Concat($filterList, $this->importer_params->AdvancedSearch->toJson(), ","); // Field importer_params
		$filterList = Concat($filterList, $this->field_3009->AdvancedSearch->toJson(), ","); // Field field_3009
		$filterList = Concat($filterList, $this->field_3010->AdvancedSearch->toJson(), ","); // Field field_3010
		$filterList = Concat($filterList, $this->field_3012->AdvancedSearch->toJson(), ","); // Field field_3012
		$filterList = Concat($filterList, $this->rendered_en_us->AdvancedSearch->toJson(), ","); // Field rendered_en_us
		$filterList = Concat($filterList, $this->textsearch_en_us->AdvancedSearch->toJson(), ","); // Field textsearch_en_us
		$filterList = Concat($filterList, $this->rendered_fr_fr->AdvancedSearch->toJson(), ","); // Field rendered_fr_fr
		$filterList = Concat($filterList, $this->textsearch_fr_fr->AdvancedSearch->toJson(), ","); // Field textsearch_fr_fr
		$filterList = Concat($filterList, $this->field_3013->AdvancedSearch->toJson(), ","); // Field field_3013
		$filterList = Concat($filterList, $this->field_3014->AdvancedSearch->toJson(), ","); // Field field_3014
		$filterList = Concat($filterList, $this->f_3014_options->AdvancedSearch->toJson(), ","); // Field f_3014_options
		$filterList = Concat($filterList, $this->f_3014->AdvancedSearch->toJson(), ","); // Field f_3014
		$filterList = Concat($filterList, $this->field_3015->AdvancedSearch->toJson(), ","); // Field field_3015
		$filterList = Concat($filterList, $this->field_3016->AdvancedSearch->toJson(), ","); // Field field_3016
		$filterList = Concat($filterList, $this->field_3017->AdvancedSearch->toJson(), ","); // Field field_3017
		$filterList = Concat($filterList, $this->f_3018_options->AdvancedSearch->toJson(), ","); // Field f_3018_options
		$filterList = Concat($filterList, $this->f_3018->AdvancedSearch->toJson(), ","); // Field f_3018
		$filterList = Concat($filterList, $this->f_3019_options->AdvancedSearch->toJson(), ","); // Field f_3019_options
		$filterList = Concat($filterList, $this->f_3019->AdvancedSearch->toJson(), ","); // Field f_3019
		$filterList = Concat($filterList, $this->f_3020_options->AdvancedSearch->toJson(), ","); // Field f_3020_options
		$filterList = Concat($filterList, $this->f_3020->AdvancedSearch->toJson(), ","); // Field f_3020
		$filterList = Concat($filterList, $this->f_3021_options->AdvancedSearch->toJson(), ","); // Field f_3021_options
		$filterList = Concat($filterList, $this->f_3021->AdvancedSearch->toJson(), ","); // Field f_3021
		$filterList = Concat($filterList, $this->f_3022_options->AdvancedSearch->toJson(), ","); // Field f_3022_options
		$filterList = Concat($filterList, $this->f_3022->AdvancedSearch->toJson(), ","); // Field f_3022
		$filterList = Concat($filterList, $this->f_3023_options->AdvancedSearch->toJson(), ","); // Field f_3023_options
		$filterList = Concat($filterList, $this->f_3023->AdvancedSearch->toJson(), ","); // Field f_3023
		$filterList = Concat($filterList, $this->f_3024_options->AdvancedSearch->toJson(), ","); // Field f_3024_options
		$filterList = Concat($filterList, $this->f_3024->AdvancedSearch->toJson(), ","); // Field f_3024
		$filterList = Concat($filterList, $this->f_3025_options->AdvancedSearch->toJson(), ","); // Field f_3025_options
		$filterList = Concat($filterList, $this->f_3025->AdvancedSearch->toJson(), ","); // Field f_3025
		$filterList = Concat($filterList, $this->f_3026_options->AdvancedSearch->toJson(), ","); // Field f_3026_options
		$filterList = Concat($filterList, $this->f_3026->AdvancedSearch->toJson(), ","); // Field f_3026
		$filterList = Concat($filterList, $this->f_3027_options->AdvancedSearch->toJson(), ","); // Field f_3027_options
		$filterList = Concat($filterList, $this->f_3027->AdvancedSearch->toJson(), ","); // Field f_3027
		$filterList = Concat($filterList, $this->f_3028_options->AdvancedSearch->toJson(), ","); // Field f_3028_options
		$filterList = Concat($filterList, $this->f_3028->AdvancedSearch->toJson(), ","); // Field f_3028
		$filterList = Concat($filterList, $this->f_3029_options->AdvancedSearch->toJson(), ","); // Field f_3029_options
		$filterList = Concat($filterList, $this->f_3029->AdvancedSearch->toJson(), ","); // Field f_3029
		$filterList = Concat($filterList, $this->f_3031_options->AdvancedSearch->toJson(), ","); // Field f_3031_options
		$filterList = Concat($filterList, $this->f_3031->AdvancedSearch->toJson(), ","); // Field f_3031
		$filterList = Concat($filterList, $this->f_3032_options->AdvancedSearch->toJson(), ","); // Field f_3032_options
		$filterList = Concat($filterList, $this->f_3032->AdvancedSearch->toJson(), ","); // Field f_3032
		$filterList = Concat($filterList, $this->f_3033_options->AdvancedSearch->toJson(), ","); // Field f_3033_options
		$filterList = Concat($filterList, $this->f_3033->AdvancedSearch->toJson(), ","); // Field f_3033
		$filterList = Concat($filterList, $this->f_3034_options->AdvancedSearch->toJson(), ","); // Field f_3034_options
		$filterList = Concat($filterList, $this->f_3034->AdvancedSearch->toJson(), ","); // Field f_3034
		$filterList = Concat($filterList, $this->f_3035_options->AdvancedSearch->toJson(), ","); // Field f_3035_options
		$filterList = Concat($filterList, $this->f_3035->AdvancedSearch->toJson(), ","); // Field f_3035
		$filterList = Concat($filterList, $this->f_3036_options->AdvancedSearch->toJson(), ","); // Field f_3036_options
		$filterList = Concat($filterList, $this->f_3036->AdvancedSearch->toJson(), ","); // Field f_3036
		$filterList = Concat($filterList, $this->f_3037_options->AdvancedSearch->toJson(), ","); // Field f_3037_options
		$filterList = Concat($filterList, $this->f_3037->AdvancedSearch->toJson(), ","); // Field f_3037
		$filterList = Concat($filterList, $this->f_3038_options->AdvancedSearch->toJson(), ","); // Field f_3038_options
		$filterList = Concat($filterList, $this->f_3038->AdvancedSearch->toJson(), ","); // Field f_3038
		$filterList = Concat($filterList, $this->f_3039_options->AdvancedSearch->toJson(), ","); // Field f_3039_options
		$filterList = Concat($filterList, $this->f_3039->AdvancedSearch->toJson(), ","); // Field f_3039
		$filterList = Concat($filterList, $this->f_3040_options->AdvancedSearch->toJson(), ","); // Field f_3040_options
		$filterList = Concat($filterList, $this->f_3040->AdvancedSearch->toJson(), ","); // Field f_3040
		$filterList = Concat($filterList, $this->f_3041_options->AdvancedSearch->toJson(), ","); // Field f_3041_options
		$filterList = Concat($filterList, $this->f_3041->AdvancedSearch->toJson(), ","); // Field f_3041
		$filterList = Concat($filterList, $this->f_3042_options->AdvancedSearch->toJson(), ","); // Field f_3042_options
		$filterList = Concat($filterList, $this->f_3042->AdvancedSearch->toJson(), ","); // Field f_3042
		$filterList = Concat($filterList, $this->f_3043_options->AdvancedSearch->toJson(), ","); // Field f_3043_options
		$filterList = Concat($filterList, $this->f_3043->AdvancedSearch->toJson(), ","); // Field f_3043
		$filterList = Concat($filterList, $this->f_3044_options->AdvancedSearch->toJson(), ","); // Field f_3044_options
		$filterList = Concat($filterList, $this->f_3044->AdvancedSearch->toJson(), ","); // Field f_3044
		$filterList = Concat($filterList, $this->n_3045->AdvancedSearch->toJson(), ","); // Field n_3045
		$filterList = Concat($filterList, $this->n_3045_distance->AdvancedSearch->toJson(), ","); // Field n_3045_distance
		$filterList = Concat($filterList, $this->n_3045_distance_by->AdvancedSearch->toJson(), ","); // Field n_3045_distance_by
		$filterList = Concat($filterList, $this->n_3046->AdvancedSearch->toJson(), ","); // Field n_3046
		$filterList = Concat($filterList, $this->n_3046_distance->AdvancedSearch->toJson(), ","); // Field n_3046_distance
		$filterList = Concat($filterList, $this->n_3046_distance_by->AdvancedSearch->toJson(), ","); // Field n_3046_distance_by
		$filterList = Concat($filterList, $this->n_3047->AdvancedSearch->toJson(), ","); // Field n_3047
		$filterList = Concat($filterList, $this->n_3047_distance->AdvancedSearch->toJson(), ","); // Field n_3047_distance
		$filterList = Concat($filterList, $this->n_3047_distance_by->AdvancedSearch->toJson(), ","); // Field n_3047_distance_by
		$filterList = Concat($filterList, $this->n_3048->AdvancedSearch->toJson(), ","); // Field n_3048
		$filterList = Concat($filterList, $this->n_3048_distance->AdvancedSearch->toJson(), ","); // Field n_3048_distance
		$filterList = Concat($filterList, $this->n_3048_distance_by->AdvancedSearch->toJson(), ","); // Field n_3048_distance_by
		$filterList = Concat($filterList, $this->n_3049->AdvancedSearch->toJson(), ","); // Field n_3049
		$filterList = Concat($filterList, $this->n_3049_distance->AdvancedSearch->toJson(), ","); // Field n_3049_distance
		$filterList = Concat($filterList, $this->n_3049_distance_by->AdvancedSearch->toJson(), ","); // Field n_3049_distance_by
		$filterList = Concat($filterList, $this->n_3050->AdvancedSearch->toJson(), ","); // Field n_3050
		$filterList = Concat($filterList, $this->n_3050_distance->AdvancedSearch->toJson(), ","); // Field n_3050_distance
		$filterList = Concat($filterList, $this->n_3050_distance_by->AdvancedSearch->toJson(), ","); // Field n_3050_distance_by
		$filterList = Concat($filterList, $this->n_3051->AdvancedSearch->toJson(), ","); // Field n_3051
		$filterList = Concat($filterList, $this->n_3051_distance->AdvancedSearch->toJson(), ","); // Field n_3051_distance
		$filterList = Concat($filterList, $this->n_3051_distance_by->AdvancedSearch->toJson(), ","); // Field n_3051_distance_by
		$filterList = Concat($filterList, $this->n_3052->AdvancedSearch->toJson(), ","); // Field n_3052
		$filterList = Concat($filterList, $this->n_3052_distance->AdvancedSearch->toJson(), ","); // Field n_3052_distance
		$filterList = Concat($filterList, $this->n_3052_distance_by->AdvancedSearch->toJson(), ","); // Field n_3052_distance_by
		$filterList = Concat($filterList, $this->n_3053->AdvancedSearch->toJson(), ","); // Field n_3053
		$filterList = Concat($filterList, $this->n_3053_distance->AdvancedSearch->toJson(), ","); // Field n_3053_distance
		$filterList = Concat($filterList, $this->n_3053_distance_by->AdvancedSearch->toJson(), ","); // Field n_3053_distance_by
		$filterList = Concat($filterList, $this->n_3054->AdvancedSearch->toJson(), ","); // Field n_3054
		$filterList = Concat($filterList, $this->n_3054_distance->AdvancedSearch->toJson(), ","); // Field n_3054_distance
		$filterList = Concat($filterList, $this->n_3054_distance_by->AdvancedSearch->toJson(), ","); // Field n_3054_distance_by
		$filterList = Concat($filterList, $this->n_3055->AdvancedSearch->toJson(), ","); // Field n_3055
		$filterList = Concat($filterList, $this->n_3055_distance->AdvancedSearch->toJson(), ","); // Field n_3055_distance
		$filterList = Concat($filterList, $this->n_3055_distance_by->AdvancedSearch->toJson(), ","); // Field n_3055_distance_by
		$filterList = Concat($filterList, $this->n_3056->AdvancedSearch->toJson(), ","); // Field n_3056
		$filterList = Concat($filterList, $this->n_3056_distance->AdvancedSearch->toJson(), ","); // Field n_3056_distance
		$filterList = Concat($filterList, $this->n_3056_distance_by->AdvancedSearch->toJson(), ","); // Field n_3056_distance_by
		$filterList = Concat($filterList, $this->n_3057->AdvancedSearch->toJson(), ","); // Field n_3057
		$filterList = Concat($filterList, $this->n_3057_distance->AdvancedSearch->toJson(), ","); // Field n_3057_distance
		$filterList = Concat($filterList, $this->n_3057_distance_by->AdvancedSearch->toJson(), ","); // Field n_3057_distance_by
		$filterList = Concat($filterList, $this->n_3058->AdvancedSearch->toJson(), ","); // Field n_3058
		$filterList = Concat($filterList, $this->n_3058_distance->AdvancedSearch->toJson(), ","); // Field n_3058_distance
		$filterList = Concat($filterList, $this->n_3058_distance_by->AdvancedSearch->toJson(), ","); // Field n_3058_distance_by
		$filterList = Concat($filterList, $this->n_3059->AdvancedSearch->toJson(), ","); // Field n_3059
		$filterList = Concat($filterList, $this->n_3059_distance->AdvancedSearch->toJson(), ","); // Field n_3059_distance
		$filterList = Concat($filterList, $this->n_3059_distance_by->AdvancedSearch->toJson(), ","); // Field n_3059_distance_by
		$filterList = Concat($filterList, $this->f_3060_options->AdvancedSearch->toJson(), ","); // Field f_3060_options
		$filterList = Concat($filterList, $this->f_3060->AdvancedSearch->toJson(), ","); // Field f_3060
		$filterList = Concat($filterList, $this->f_3061_options->AdvancedSearch->toJson(), ","); // Field f_3061_options
		$filterList = Concat($filterList, $this->f_3061->AdvancedSearch->toJson(), ","); // Field f_3061
		$filterList = Concat($filterList, $this->f_3062_options->AdvancedSearch->toJson(), ","); // Field f_3062_options
		$filterList = Concat($filterList, $this->f_3062->AdvancedSearch->toJson(), ","); // Field f_3062
		$filterList = Concat($filterList, $this->field_3063->AdvancedSearch->toJson(), ","); // Field field_3063
		$filterList = Concat($filterList, $this->field_3064->AdvancedSearch->toJson(), ","); // Field field_3064
		$filterList = Concat($filterList, $this->field_3065->AdvancedSearch->toJson(), ","); // Field field_3065
		$filterList = Concat($filterList, $this->field_308->AdvancedSearch->toJson(), ","); // Field field_308
		$filterList = Concat($filterList, $this->field_308_en_us->AdvancedSearch->toJson(), ","); // Field field_308_en_us
		$filterList = Concat($filterList, $this->field_308_fr_fr->AdvancedSearch->toJson(), ","); // Field field_308_fr_fr
		$filterList = Concat($filterList, $this->field_313_en_us->AdvancedSearch->toJson(), ","); // Field field_313_en_us
		$filterList = Concat($filterList, $this->field_313_fr_fr->AdvancedSearch->toJson(), ","); // Field field_313_fr_fr
		$filterList = Concat($filterList, $this->field_312_en_us->AdvancedSearch->toJson(), ","); // Field field_312_en_us
		$filterList = Concat($filterList, $this->field_312_fr_fr->AdvancedSearch->toJson(), ","); // Field field_312_fr_fr
		$filterList = Concat($filterList, $this->field_3017_en_us->AdvancedSearch->toJson(), ","); // Field field_3017_en_us
		$filterList = Concat($filterList, $this->field_3017_fr_fr->AdvancedSearch->toJson(), ","); // Field field_3017_fr_fr
		$filterList = Concat($filterList, $this->field_42_en_us->AdvancedSearch->toJson(), ","); // Field field_42_en_us
		$filterList = Concat($filterList, $this->field_42_fr_fr->AdvancedSearch->toJson(), ","); // Field field_42_fr_fr
		$filterList = Concat($filterList, $this->field_3067->AdvancedSearch->toJson(), ","); // Field field_3067
		$filterList = Concat($filterList, $this->field_3068->AdvancedSearch->toJson(), ","); // Field field_3068
		$filterList = Concat($filterList, $this->field_3069->AdvancedSearch->toJson(), ","); // Field field_3069
		$filterList = Concat($filterList, $this->field_3070->AdvancedSearch->toJson(), ","); // Field field_3070
		$filterList = Concat($filterList, $this->field_3071->AdvancedSearch->toJson(), ","); // Field field_3071
		$filterList = Concat($filterList, $this->field_3071_en_us->AdvancedSearch->toJson(), ","); // Field field_3071_en_us
		$filterList = Concat($filterList, $this->field_3071_fr_fr->AdvancedSearch->toJson(), ","); // Field field_3071_fr_fr
		$filterList = Concat($filterList, $this->field_3072->AdvancedSearch->toJson(), ","); // Field field_3072
		$filterList = Concat($filterList, $this->field_3073->AdvancedSearch->toJson(), ","); // Field field_3073
		$filterList = Concat($filterList, $this->field_3074->AdvancedSearch->toJson(), ","); // Field field_3074
		$filterList = Concat($filterList, $this->field_3074_en_us->AdvancedSearch->toJson(), ","); // Field field_3074_en_us
		$filterList = Concat($filterList, $this->field_3074_fr_fr->AdvancedSearch->toJson(), ","); // Field field_3074_fr_fr
		$filterList = Concat($filterList, $this->field_3075->AdvancedSearch->toJson(), ","); // Field field_3075
		$filterList = Concat($filterList, $this->field_3076->AdvancedSearch->toJson(), ","); // Field field_3076
		$filterList = Concat($filterList, $this->field_3077->AdvancedSearch->toJson(), ","); // Field field_3077
		$filterList = Concat($filterList, $this->field_3078->AdvancedSearch->toJson(), ","); // Field field_3078
		$filterList = Concat($filterList, $this->field_3079->AdvancedSearch->toJson(), ","); // Field field_3079
		$filterList = Concat($filterList, $this->field_3080->AdvancedSearch->toJson(), ","); // Field field_3080
		$filterList = Concat($filterList, $this->field_3076_en_us->AdvancedSearch->toJson(), ","); // Field field_3076_en_us
		$filterList = Concat($filterList, $this->field_3076_fr_fr->AdvancedSearch->toJson(), ","); // Field field_3076_fr_fr
		$filterList = Concat($filterList, $this->field_3080_en_us->AdvancedSearch->toJson(), ","); // Field field_3080_en_us
		$filterList = Concat($filterList, $this->field_3080_fr_fr->AdvancedSearch->toJson(), ","); // Field field_3080_fr_fr
		$filterList = Concat($filterList, $this->field_3081->AdvancedSearch->toJson(), ","); // Field field_3081
		$filterList = Concat($filterList, $this->field_3081_en_us->AdvancedSearch->toJson(), ","); // Field field_3081_en_us
		$filterList = Concat($filterList, $this->field_3081_fr_fr->AdvancedSearch->toJson(), ","); // Field field_3081_fr_fr
		$filterList = Concat($filterList, $this->field_3082->AdvancedSearch->toJson(), ","); // Field field_3082
		$filterList = Concat($filterList, $this->field_3082_en_us->AdvancedSearch->toJson(), ","); // Field field_3082_en_us
		$filterList = Concat($filterList, $this->field_3082_fr_fr->AdvancedSearch->toJson(), ","); // Field field_3082_fr_fr
		$filterList = Concat($filterList, $this->field_3084->AdvancedSearch->toJson(), ","); // Field field_3084
		$filterList = Concat($filterList, $this->field_3085->AdvancedSearch->toJson(), ","); // Field field_3085
		$filterList = Concat($filterList, $this->field_3086->AdvancedSearch->toJson(), ","); // Field field_3086
		$filterList = Concat($filterList, $this->field_3096->AdvancedSearch->toJson(), ","); // Field field_3096
		$filterList = Concat($filterList, $this->field_3097->AdvancedSearch->toJson(), ","); // Field field_3097
		$filterList = Concat($filterList, $this->field_3098->AdvancedSearch->toJson(), ","); // Field field_3098
		$filterList = Concat($filterList, $this->field_3099->AdvancedSearch->toJson(), ","); // Field field_3099
		$filterList = Concat($filterList, $this->field_3100->AdvancedSearch->toJson(), ","); // Field field_3100
		$filterList = Concat($filterList, $this->field_3101->AdvancedSearch->toJson(), ","); // Field field_3101
		$filterList = Concat($filterList, $this->field_3102->AdvancedSearch->toJson(), ","); // Field field_3102
		$filterList = Concat($filterList, $this->field_3103->AdvancedSearch->toJson(), ","); // Field field_3103
		$filterList = Concat($filterList, $this->field_3104->AdvancedSearch->toJson(), ","); // Field field_3104
		$filterList = Concat($filterList, $this->field_3105->AdvancedSearch->toJson(), ","); // Field field_3105
		$filterList = Concat($filterList, $this->field_3106->AdvancedSearch->toJson(), ","); // Field field_3106
		$filterList = Concat($filterList, $this->field_3107->AdvancedSearch->toJson(), ","); // Field field_3107
		$filterList = Concat($filterList, $this->field_3108->AdvancedSearch->toJson(), ","); // Field field_3108
		$filterList = Concat($filterList, $this->field_3109->AdvancedSearch->toJson(), ","); // Field field_3109
		$filterList = Concat($filterList, $this->field_3110->AdvancedSearch->toJson(), ","); // Field field_3110
		$filterList = Concat($filterList, $this->field_3111->AdvancedSearch->toJson(), ","); // Field field_3111
		$filterList = Concat($filterList, $this->field_3112->AdvancedSearch->toJson(), ","); // Field field_3112
		$filterList = Concat($filterList, $this->field_3113->AdvancedSearch->toJson(), ","); // Field field_3113
		$filterList = Concat($filterList, $this->field_3113_en_us->AdvancedSearch->toJson(), ","); // Field field_3113_en_us
		$filterList = Concat($filterList, $this->field_3113_fr_fr->AdvancedSearch->toJson(), ","); // Field field_3113_fr_fr
		$filterList = Concat($filterList, $this->field_3114->AdvancedSearch->toJson(), ","); // Field field_3114
		$filterList = Concat($filterList, $this->field_3115->AdvancedSearch->toJson(), ","); // Field field_3115
		$filterList = Concat($filterList, $this->field_3115_si->AdvancedSearch->toJson(), ","); // Field field_3115_si
		$filterList = Concat($filterList, $this->field_3115_unit->AdvancedSearch->toJson(), ","); // Field field_3115_unit
		$filterList = Concat($filterList, $this->field_3116->AdvancedSearch->toJson(), ","); // Field field_3116
		$filterList = Concat($filterList, $this->field_3117->AdvancedSearch->toJson(), ","); // Field field_3117
		$filterList = Concat($filterList, $this->field_3117_en_us->AdvancedSearch->toJson(), ","); // Field field_3117_en_us
		$filterList = Concat($filterList, $this->field_3117_fr_fr->AdvancedSearch->toJson(), ","); // Field field_3117_fr_fr
		$filterList = Concat($filterList, $this->field_3118->AdvancedSearch->toJson(), ","); // Field field_3118
		$filterList = Concat($filterList, $this->field_3118_en_us->AdvancedSearch->toJson(), ","); // Field field_3118_en_us
		$filterList = Concat($filterList, $this->field_3118_fr_fr->AdvancedSearch->toJson(), ","); // Field field_3118_fr_fr
		$filterList = Concat($filterList, $this->field_3119->AdvancedSearch->toJson(), ","); // Field field_3119
		$filterList = Concat($filterList, $this->field_3119_en_us->AdvancedSearch->toJson(), ","); // Field field_3119_en_us
		$filterList = Concat($filterList, $this->field_3119_fr_fr->AdvancedSearch->toJson(), ","); // Field field_3119_fr_fr
		$filterList = Concat($filterList, $this->field_3120->AdvancedSearch->toJson(), ","); // Field field_3120
		$filterList = Concat($filterList, $this->field_3120_en_us->AdvancedSearch->toJson(), ","); // Field field_3120_en_us
		$filterList = Concat($filterList, $this->field_3120_fr_fr->AdvancedSearch->toJson(), ","); // Field field_3120_fr_fr
		$filterList = Concat($filterList, $this->field_3121->AdvancedSearch->toJson(), ","); // Field field_3121
		$filterList = Concat($filterList, $this->field_3122->AdvancedSearch->toJson(), ","); // Field field_3122
		$filterList = Concat($filterList, $this->field_3122_si->AdvancedSearch->toJson(), ","); // Field field_3122_si
		$filterList = Concat($filterList, $this->field_3122_unit->AdvancedSearch->toJson(), ","); // Field field_3122_unit
		$filterList = Concat($filterList, $this->field_3123->AdvancedSearch->toJson(), ","); // Field field_3123
		$filterList = Concat($filterList, $this->field_3124->AdvancedSearch->toJson(), ","); // Field field_3124
		$filterList = Concat($filterList, $this->field_3125->AdvancedSearch->toJson(), ","); // Field field_3125
		$filterList = Concat($filterList, $this->field_3126->AdvancedSearch->toJson(), ","); // Field field_3126
		$filterList = Concat($filterList, $this->field_3127->AdvancedSearch->toJson(), ","); // Field field_3127
		$filterList = Concat($filterList, $this->field_3128->AdvancedSearch->toJson(), ","); // Field field_3128
		$filterList = Concat($filterList, $this->field_3129->AdvancedSearch->toJson(), ","); // Field field_3129
		$filterList = Concat($filterList, $this->field_3130->AdvancedSearch->toJson(), ","); // Field field_3130
		$filterList = Concat($filterList, $this->field_3131->AdvancedSearch->toJson(), ","); // Field field_3131
		$filterList = Concat($filterList, $this->field_3132->AdvancedSearch->toJson(), ","); // Field field_3132
		$filterList = Concat($filterList, $this->field_3133->AdvancedSearch->toJson(), ","); // Field field_3133
		$filterList = Concat($filterList, $this->field_3134->AdvancedSearch->toJson(), ","); // Field field_3134
		$filterList = Concat($filterList, $this->field_3135->AdvancedSearch->toJson(), ","); // Field field_3135
		$filterList = Concat($filterList, $this->field_3136->AdvancedSearch->toJson(), ","); // Field field_3136
		$filterList = Concat($filterList, $this->field_3137->AdvancedSearch->toJson(), ","); // Field field_3137
		$filterList = Concat($filterList, $this->field_3138->AdvancedSearch->toJson(), ","); // Field field_3138
		$filterList = Concat($filterList, $this->field_3139->AdvancedSearch->toJson(), ","); // Field field_3139
		$filterList = Concat($filterList, $this->field_3140->AdvancedSearch->toJson(), ","); // Field field_3140
		$filterList = Concat($filterList, $this->field_3141->AdvancedSearch->toJson(), ","); // Field field_3141
		$filterList = Concat($filterList, $this->field_3142->AdvancedSearch->toJson(), ","); // Field field_3142
		$filterList = Concat($filterList, $this->field_3143->AdvancedSearch->toJson(), ","); // Field field_3143
		$filterList = Concat($filterList, $this->field_3144->AdvancedSearch->toJson(), ","); // Field field_3144
		$filterList = Concat($filterList, $this->field_3145->AdvancedSearch->toJson(), ","); // Field field_3145
		$filterList = Concat($filterList, $this->field_3146->AdvancedSearch->toJson(), ","); // Field field_3146
		$filterList = Concat($filterList, $this->field_3147->AdvancedSearch->toJson(), ","); // Field field_3147
		$filterList = Concat($filterList, $this->field_3148->AdvancedSearch->toJson(), ","); // Field field_3148
		$filterList = Concat($filterList, $this->field_3149->AdvancedSearch->toJson(), ","); // Field field_3149
		$filterList = Concat($filterList, $this->field_3150->AdvancedSearch->toJson(), ","); // Field field_3150
		$filterList = Concat($filterList, $this->field_3151->AdvancedSearch->toJson(), ","); // Field field_3151
		$filterList = Concat($filterList, $this->field_3152->AdvancedSearch->toJson(), ","); // Field field_3152
		$filterList = Concat($filterList, $this->field_3153->AdvancedSearch->toJson(), ","); // Field field_3153
		$filterList = Concat($filterList, $this->field_3154->AdvancedSearch->toJson(), ","); // Field field_3154
		$filterList = Concat($filterList, $this->field_3155->AdvancedSearch->toJson(), ","); // Field field_3155
		$filterList = Concat($filterList, $this->field_3156->AdvancedSearch->toJson(), ","); // Field field_3156
		$filterList = Concat($filterList, $this->field_3157->AdvancedSearch->toJson(), ","); // Field field_3157
		$filterList = Concat($filterList, $this->field_3158->AdvancedSearch->toJson(), ","); // Field field_3158
		$filterList = Concat($filterList, $this->field_3159->AdvancedSearch->toJson(), ","); // Field field_3159
		$filterList = Concat($filterList, $this->field_3160->AdvancedSearch->toJson(), ","); // Field field_3160
		$filterList = Concat($filterList, $this->field_3161->AdvancedSearch->toJson(), ","); // Field field_3161
		$filterList = Concat($filterList, $this->field_3162->AdvancedSearch->toJson(), ","); // Field field_3162
		$filterList = Concat($filterList, $this->field_3163->AdvancedSearch->toJson(), ","); // Field field_3163
		$filterList = Concat($filterList, $this->field_3164->AdvancedSearch->toJson(), ","); // Field field_3164
		$filterList = Concat($filterList, $this->field_3165->AdvancedSearch->toJson(), ","); // Field field_3165
		$filterList = Concat($filterList, $this->field_3166->AdvancedSearch->toJson(), ","); // Field field_3166
		$filterList = Concat($filterList, $this->field_3167->AdvancedSearch->toJson(), ","); // Field field_3167
		$filterList = Concat($filterList, $this->field_3168->AdvancedSearch->toJson(), ","); // Field field_3168
		$filterList = Concat($filterList, $this->field_3169->AdvancedSearch->toJson(), ","); // Field field_3169
		$filterList = Concat($filterList, $this->field_3170->AdvancedSearch->toJson(), ","); // Field field_3170
		$filterList = Concat($filterList, $this->field_3171->AdvancedSearch->toJson(), ","); // Field field_3171
		$filterList = Concat($filterList, $this->field_3172->AdvancedSearch->toJson(), ","); // Field field_3172
		$filterList = Concat($filterList, $this->field_3173->AdvancedSearch->toJson(), ","); // Field field_3173
		$filterList = Concat($filterList, $this->field_3173_si->AdvancedSearch->toJson(), ","); // Field field_3173_si
		$filterList = Concat($filterList, $this->field_3173_unit->AdvancedSearch->toJson(), ","); // Field field_3173_unit
		$filterList = Concat($filterList, $this->field_3180->AdvancedSearch->toJson(), ","); // Field field_3180
		$filterList = Concat($filterList, $this->field_3180_en_us->AdvancedSearch->toJson(), ","); // Field field_3180_en_us
		$filterList = Concat($filterList, $this->field_3180_fr_fr->AdvancedSearch->toJson(), ","); // Field field_3180_fr_fr
		$filterList = Concat($filterList, $this->field_3181->AdvancedSearch->toJson(), ","); // Field field_3181
		$filterList = Concat($filterList, $this->field_3182->AdvancedSearch->toJson(), ","); // Field field_3182
		$filterList = Concat($filterList, $this->n_3189->AdvancedSearch->toJson(), ","); // Field n_3189
		$filterList = Concat($filterList, $this->n_3189_distance->AdvancedSearch->toJson(), ","); // Field n_3189_distance
		$filterList = Concat($filterList, $this->n_3189_distance_by->AdvancedSearch->toJson(), ","); // Field n_3189_distance_by
		$filterList = Concat($filterList, $this->field_3190->AdvancedSearch->toJson(), ","); // Field field_3190
		$filterList = Concat($filterList, $this->field_3192->AdvancedSearch->toJson(), ","); // Field field_3192
		$filterList = Concat($filterList, $this->field_3193->AdvancedSearch->toJson(), ","); // Field field_3193
		$filterList = Concat($filterList, $this->field_3195->AdvancedSearch->toJson(), ","); // Field field_3195
		$filterList = Concat($filterList, $this->field_3114_en_us->AdvancedSearch->toJson(), ","); // Field field_3114_en_us
		$filterList = Concat($filterList, $this->field_3114_fr_fr->AdvancedSearch->toJson(), ","); // Field field_3114_fr_fr
		$filterList = Concat($filterList, $this->n_3196->AdvancedSearch->toJson(), ","); // Field n_3196
		$filterList = Concat($filterList, $this->n_3196_distance->AdvancedSearch->toJson(), ","); // Field n_3196_distance
		$filterList = Concat($filterList, $this->n_3196_distance_by->AdvancedSearch->toJson(), ","); // Field n_3196_distance_by
		$filterList = Concat($filterList, $this->field_3197->AdvancedSearch->toJson(), ","); // Field field_3197
		$filterList = Concat($filterList, $this->field_3197_si->AdvancedSearch->toJson(), ","); // Field field_3197_si
		$filterList = Concat($filterList, $this->field_3197_unit->AdvancedSearch->toJson(), ","); // Field field_3197_unit

		// Return filter list in JSON
		if ($filterList != "")
			$filterList = "\"data\":{" . $filterList . "}";
		if ($savedFilterList != "")
			$filterList = Concat($filterList, "\"filters\":" . $savedFilterList, ",");
		return ($filterList != "") ? "{" . $filterList . "}" : "null";
	}

	// Process filter list
	protected function processFilterList()
	{
		global $UserProfile;
		if (Post("ajax") == "savefilters") { // Save filter request (Ajax)
			$filters = Post("filters");
			$UserProfile->setSearchFilters(CurrentUserName(), "fwp_wpl_propertieslistsrch", $filters);
			WriteJson([["success" => TRUE]]); // Success
			return TRUE;
		} elseif (Post("cmd") == "resetfilter") {
			$this->restoreFilterList();
		}
		return FALSE;
	}

	// Restore list of filters
	protected function restoreFilterList()
	{

		// Return if not reset filter
		if (Post("cmd") !== "resetfilter")
			return FALSE;
		$filter = json_decode(Post("filter"), TRUE);
		$this->Command = "search";

		// Field id
		$this->id->AdvancedSearch->SearchValue = @$filter["x_id"];
		$this->id->AdvancedSearch->SearchOperator = @$filter["z_id"];
		$this->id->AdvancedSearch->SearchCondition = @$filter["v_id"];
		$this->id->AdvancedSearch->SearchValue2 = @$filter["y_id"];
		$this->id->AdvancedSearch->SearchOperator2 = @$filter["w_id"];
		$this->id->AdvancedSearch->save();

		// Field kind
		$this->kind->AdvancedSearch->SearchValue = @$filter["x_kind"];
		$this->kind->AdvancedSearch->SearchOperator = @$filter["z_kind"];
		$this->kind->AdvancedSearch->SearchCondition = @$filter["v_kind"];
		$this->kind->AdvancedSearch->SearchValue2 = @$filter["y_kind"];
		$this->kind->AdvancedSearch->SearchOperator2 = @$filter["w_kind"];
		$this->kind->AdvancedSearch->save();

		// Field deleted
		$this->deleted->AdvancedSearch->SearchValue = @$filter["x_deleted"];
		$this->deleted->AdvancedSearch->SearchOperator = @$filter["z_deleted"];
		$this->deleted->AdvancedSearch->SearchCondition = @$filter["v_deleted"];
		$this->deleted->AdvancedSearch->SearchValue2 = @$filter["y_deleted"];
		$this->deleted->AdvancedSearch->SearchOperator2 = @$filter["w_deleted"];
		$this->deleted->AdvancedSearch->save();

		// Field mls_id
		$this->mls_id->AdvancedSearch->SearchValue = @$filter["x_mls_id"];
		$this->mls_id->AdvancedSearch->SearchOperator = @$filter["z_mls_id"];
		$this->mls_id->AdvancedSearch->SearchCondition = @$filter["v_mls_id"];
		$this->mls_id->AdvancedSearch->SearchValue2 = @$filter["y_mls_id"];
		$this->mls_id->AdvancedSearch->SearchOperator2 = @$filter["w_mls_id"];
		$this->mls_id->AdvancedSearch->save();

		// Field mls_id_num
		$this->mls_id_num->AdvancedSearch->SearchValue = @$filter["x_mls_id_num"];
		$this->mls_id_num->AdvancedSearch->SearchOperator = @$filter["z_mls_id_num"];
		$this->mls_id_num->AdvancedSearch->SearchCondition = @$filter["v_mls_id_num"];
		$this->mls_id_num->AdvancedSearch->SearchValue2 = @$filter["y_mls_id_num"];
		$this->mls_id_num->AdvancedSearch->SearchOperator2 = @$filter["w_mls_id_num"];
		$this->mls_id_num->AdvancedSearch->save();

		// Field parent
		$this->parent->AdvancedSearch->SearchValue = @$filter["x_parent"];
		$this->parent->AdvancedSearch->SearchOperator = @$filter["z_parent"];
		$this->parent->AdvancedSearch->SearchCondition = @$filter["v_parent"];
		$this->parent->AdvancedSearch->SearchValue2 = @$filter["y_parent"];
		$this->parent->AdvancedSearch->SearchOperator2 = @$filter["w_parent"];
		$this->parent->AdvancedSearch->save();

		// Field pic_numb
		$this->pic_numb->AdvancedSearch->SearchValue = @$filter["x_pic_numb"];
		$this->pic_numb->AdvancedSearch->SearchOperator = @$filter["z_pic_numb"];
		$this->pic_numb->AdvancedSearch->SearchCondition = @$filter["v_pic_numb"];
		$this->pic_numb->AdvancedSearch->SearchValue2 = @$filter["y_pic_numb"];
		$this->pic_numb->AdvancedSearch->SearchOperator2 = @$filter["w_pic_numb"];
		$this->pic_numb->AdvancedSearch->save();

		// Field user_id
		$this->user_id->AdvancedSearch->SearchValue = @$filter["x_user_id"];
		$this->user_id->AdvancedSearch->SearchOperator = @$filter["z_user_id"];
		$this->user_id->AdvancedSearch->SearchCondition = @$filter["v_user_id"];
		$this->user_id->AdvancedSearch->SearchValue2 = @$filter["y_user_id"];
		$this->user_id->AdvancedSearch->SearchOperator2 = @$filter["w_user_id"];
		$this->user_id->AdvancedSearch->save();

		// Field listing
		$this->listing->AdvancedSearch->SearchValue = @$filter["x_listing"];
		$this->listing->AdvancedSearch->SearchOperator = @$filter["z_listing"];
		$this->listing->AdvancedSearch->SearchCondition = @$filter["v_listing"];
		$this->listing->AdvancedSearch->SearchValue2 = @$filter["y_listing"];
		$this->listing->AdvancedSearch->SearchOperator2 = @$filter["w_listing"];
		$this->listing->AdvancedSearch->save();

		// Field property_type
		$this->property_type->AdvancedSearch->SearchValue = @$filter["x_property_type"];
		$this->property_type->AdvancedSearch->SearchOperator = @$filter["z_property_type"];
		$this->property_type->AdvancedSearch->SearchCondition = @$filter["v_property_type"];
		$this->property_type->AdvancedSearch->SearchValue2 = @$filter["y_property_type"];
		$this->property_type->AdvancedSearch->SearchOperator2 = @$filter["w_property_type"];
		$this->property_type->AdvancedSearch->save();

		// Field location1_id
		$this->location1_id->AdvancedSearch->SearchValue = @$filter["x_location1_id"];
		$this->location1_id->AdvancedSearch->SearchOperator = @$filter["z_location1_id"];
		$this->location1_id->AdvancedSearch->SearchCondition = @$filter["v_location1_id"];
		$this->location1_id->AdvancedSearch->SearchValue2 = @$filter["y_location1_id"];
		$this->location1_id->AdvancedSearch->SearchOperator2 = @$filter["w_location1_id"];
		$this->location1_id->AdvancedSearch->save();

		// Field location2_id
		$this->location2_id->AdvancedSearch->SearchValue = @$filter["x_location2_id"];
		$this->location2_id->AdvancedSearch->SearchOperator = @$filter["z_location2_id"];
		$this->location2_id->AdvancedSearch->SearchCondition = @$filter["v_location2_id"];
		$this->location2_id->AdvancedSearch->SearchValue2 = @$filter["y_location2_id"];
		$this->location2_id->AdvancedSearch->SearchOperator2 = @$filter["w_location2_id"];
		$this->location2_id->AdvancedSearch->save();

		// Field location3_id
		$this->location3_id->AdvancedSearch->SearchValue = @$filter["x_location3_id"];
		$this->location3_id->AdvancedSearch->SearchOperator = @$filter["z_location3_id"];
		$this->location3_id->AdvancedSearch->SearchCondition = @$filter["v_location3_id"];
		$this->location3_id->AdvancedSearch->SearchValue2 = @$filter["y_location3_id"];
		$this->location3_id->AdvancedSearch->SearchOperator2 = @$filter["w_location3_id"];
		$this->location3_id->AdvancedSearch->save();

		// Field location4_id
		$this->location4_id->AdvancedSearch->SearchValue = @$filter["x_location4_id"];
		$this->location4_id->AdvancedSearch->SearchOperator = @$filter["z_location4_id"];
		$this->location4_id->AdvancedSearch->SearchCondition = @$filter["v_location4_id"];
		$this->location4_id->AdvancedSearch->SearchValue2 = @$filter["y_location4_id"];
		$this->location4_id->AdvancedSearch->SearchOperator2 = @$filter["w_location4_id"];
		$this->location4_id->AdvancedSearch->save();

		// Field location5_id
		$this->location5_id->AdvancedSearch->SearchValue = @$filter["x_location5_id"];
		$this->location5_id->AdvancedSearch->SearchOperator = @$filter["z_location5_id"];
		$this->location5_id->AdvancedSearch->SearchCondition = @$filter["v_location5_id"];
		$this->location5_id->AdvancedSearch->SearchValue2 = @$filter["y_location5_id"];
		$this->location5_id->AdvancedSearch->SearchOperator2 = @$filter["w_location5_id"];
		$this->location5_id->AdvancedSearch->save();

		// Field location6_id
		$this->location6_id->AdvancedSearch->SearchValue = @$filter["x_location6_id"];
		$this->location6_id->AdvancedSearch->SearchOperator = @$filter["z_location6_id"];
		$this->location6_id->AdvancedSearch->SearchCondition = @$filter["v_location6_id"];
		$this->location6_id->AdvancedSearch->SearchValue2 = @$filter["y_location6_id"];
		$this->location6_id->AdvancedSearch->SearchOperator2 = @$filter["w_location6_id"];
		$this->location6_id->AdvancedSearch->save();

		// Field location7_id
		$this->location7_id->AdvancedSearch->SearchValue = @$filter["x_location7_id"];
		$this->location7_id->AdvancedSearch->SearchOperator = @$filter["z_location7_id"];
		$this->location7_id->AdvancedSearch->SearchCondition = @$filter["v_location7_id"];
		$this->location7_id->AdvancedSearch->SearchValue2 = @$filter["y_location7_id"];
		$this->location7_id->AdvancedSearch->SearchOperator2 = @$filter["w_location7_id"];
		$this->location7_id->AdvancedSearch->save();

		// Field location1_name
		$this->location1_name->AdvancedSearch->SearchValue = @$filter["x_location1_name"];
		$this->location1_name->AdvancedSearch->SearchOperator = @$filter["z_location1_name"];
		$this->location1_name->AdvancedSearch->SearchCondition = @$filter["v_location1_name"];
		$this->location1_name->AdvancedSearch->SearchValue2 = @$filter["y_location1_name"];
		$this->location1_name->AdvancedSearch->SearchOperator2 = @$filter["w_location1_name"];
		$this->location1_name->AdvancedSearch->save();

		// Field location2_name
		$this->location2_name->AdvancedSearch->SearchValue = @$filter["x_location2_name"];
		$this->location2_name->AdvancedSearch->SearchOperator = @$filter["z_location2_name"];
		$this->location2_name->AdvancedSearch->SearchCondition = @$filter["v_location2_name"];
		$this->location2_name->AdvancedSearch->SearchValue2 = @$filter["y_location2_name"];
		$this->location2_name->AdvancedSearch->SearchOperator2 = @$filter["w_location2_name"];
		$this->location2_name->AdvancedSearch->save();

		// Field location3_name
		$this->location3_name->AdvancedSearch->SearchValue = @$filter["x_location3_name"];
		$this->location3_name->AdvancedSearch->SearchOperator = @$filter["z_location3_name"];
		$this->location3_name->AdvancedSearch->SearchCondition = @$filter["v_location3_name"];
		$this->location3_name->AdvancedSearch->SearchValue2 = @$filter["y_location3_name"];
		$this->location3_name->AdvancedSearch->SearchOperator2 = @$filter["w_location3_name"];
		$this->location3_name->AdvancedSearch->save();

		// Field location4_name
		$this->location4_name->AdvancedSearch->SearchValue = @$filter["x_location4_name"];
		$this->location4_name->AdvancedSearch->SearchOperator = @$filter["z_location4_name"];
		$this->location4_name->AdvancedSearch->SearchCondition = @$filter["v_location4_name"];
		$this->location4_name->AdvancedSearch->SearchValue2 = @$filter["y_location4_name"];
		$this->location4_name->AdvancedSearch->SearchOperator2 = @$filter["w_location4_name"];
		$this->location4_name->AdvancedSearch->save();

		// Field location5_name
		$this->location5_name->AdvancedSearch->SearchValue = @$filter["x_location5_name"];
		$this->location5_name->AdvancedSearch->SearchOperator = @$filter["z_location5_name"];
		$this->location5_name->AdvancedSearch->SearchCondition = @$filter["v_location5_name"];
		$this->location5_name->AdvancedSearch->SearchValue2 = @$filter["y_location5_name"];
		$this->location5_name->AdvancedSearch->SearchOperator2 = @$filter["w_location5_name"];
		$this->location5_name->AdvancedSearch->save();

		// Field location6_name
		$this->location6_name->AdvancedSearch->SearchValue = @$filter["x_location6_name"];
		$this->location6_name->AdvancedSearch->SearchOperator = @$filter["z_location6_name"];
		$this->location6_name->AdvancedSearch->SearchCondition = @$filter["v_location6_name"];
		$this->location6_name->AdvancedSearch->SearchValue2 = @$filter["y_location6_name"];
		$this->location6_name->AdvancedSearch->SearchOperator2 = @$filter["w_location6_name"];
		$this->location6_name->AdvancedSearch->save();

		// Field location7_name
		$this->location7_name->AdvancedSearch->SearchValue = @$filter["x_location7_name"];
		$this->location7_name->AdvancedSearch->SearchOperator = @$filter["z_location7_name"];
		$this->location7_name->AdvancedSearch->SearchCondition = @$filter["v_location7_name"];
		$this->location7_name->AdvancedSearch->SearchValue2 = @$filter["y_location7_name"];
		$this->location7_name->AdvancedSearch->SearchOperator2 = @$filter["w_location7_name"];
		$this->location7_name->AdvancedSearch->save();

		// Field show_address
		$this->show_address->AdvancedSearch->SearchValue = @$filter["x_show_address"];
		$this->show_address->AdvancedSearch->SearchOperator = @$filter["z_show_address"];
		$this->show_address->AdvancedSearch->SearchCondition = @$filter["v_show_address"];
		$this->show_address->AdvancedSearch->SearchValue2 = @$filter["y_show_address"];
		$this->show_address->AdvancedSearch->SearchOperator2 = @$filter["w_show_address"];
		$this->show_address->AdvancedSearch->save();

		// Field show_marker
		$this->show_marker->AdvancedSearch->SearchValue = @$filter["x_show_marker"];
		$this->show_marker->AdvancedSearch->SearchOperator = @$filter["z_show_marker"];
		$this->show_marker->AdvancedSearch->SearchCondition = @$filter["v_show_marker"];
		$this->show_marker->AdvancedSearch->SearchValue2 = @$filter["y_show_marker"];
		$this->show_marker->AdvancedSearch->SearchOperator2 = @$filter["w_show_marker"];
		$this->show_marker->AdvancedSearch->save();

		// Field price
		$this->price->AdvancedSearch->SearchValue = @$filter["x_price"];
		$this->price->AdvancedSearch->SearchOperator = @$filter["z_price"];
		$this->price->AdvancedSearch->SearchCondition = @$filter["v_price"];
		$this->price->AdvancedSearch->SearchValue2 = @$filter["y_price"];
		$this->price->AdvancedSearch->SearchOperator2 = @$filter["w_price"];
		$this->price->AdvancedSearch->save();

		// Field price_unit
		$this->price_unit->AdvancedSearch->SearchValue = @$filter["x_price_unit"];
		$this->price_unit->AdvancedSearch->SearchOperator = @$filter["z_price_unit"];
		$this->price_unit->AdvancedSearch->SearchCondition = @$filter["v_price_unit"];
		$this->price_unit->AdvancedSearch->SearchValue2 = @$filter["y_price_unit"];
		$this->price_unit->AdvancedSearch->SearchOperator2 = @$filter["w_price_unit"];
		$this->price_unit->AdvancedSearch->save();

		// Field price_si
		$this->price_si->AdvancedSearch->SearchValue = @$filter["x_price_si"];
		$this->price_si->AdvancedSearch->SearchOperator = @$filter["z_price_si"];
		$this->price_si->AdvancedSearch->SearchCondition = @$filter["v_price_si"];
		$this->price_si->AdvancedSearch->SearchValue2 = @$filter["y_price_si"];
		$this->price_si->AdvancedSearch->SearchOperator2 = @$filter["w_price_si"];
		$this->price_si->AdvancedSearch->save();

		// Field price_period
		$this->price_period->AdvancedSearch->SearchValue = @$filter["x_price_period"];
		$this->price_period->AdvancedSearch->SearchOperator = @$filter["z_price_period"];
		$this->price_period->AdvancedSearch->SearchCondition = @$filter["v_price_period"];
		$this->price_period->AdvancedSearch->SearchValue2 = @$filter["y_price_period"];
		$this->price_period->AdvancedSearch->SearchOperator2 = @$filter["w_price_period"];
		$this->price_period->AdvancedSearch->save();

		// Field bedrooms
		$this->bedrooms->AdvancedSearch->SearchValue = @$filter["x_bedrooms"];
		$this->bedrooms->AdvancedSearch->SearchOperator = @$filter["z_bedrooms"];
		$this->bedrooms->AdvancedSearch->SearchCondition = @$filter["v_bedrooms"];
		$this->bedrooms->AdvancedSearch->SearchValue2 = @$filter["y_bedrooms"];
		$this->bedrooms->AdvancedSearch->SearchOperator2 = @$filter["w_bedrooms"];
		$this->bedrooms->AdvancedSearch->save();

		// Field rooms
		$this->rooms->AdvancedSearch->SearchValue = @$filter["x_rooms"];
		$this->rooms->AdvancedSearch->SearchOperator = @$filter["z_rooms"];
		$this->rooms->AdvancedSearch->SearchCondition = @$filter["v_rooms"];
		$this->rooms->AdvancedSearch->SearchValue2 = @$filter["y_rooms"];
		$this->rooms->AdvancedSearch->SearchOperator2 = @$filter["w_rooms"];
		$this->rooms->AdvancedSearch->save();

		// Field bathrooms
		$this->bathrooms->AdvancedSearch->SearchValue = @$filter["x_bathrooms"];
		$this->bathrooms->AdvancedSearch->SearchOperator = @$filter["z_bathrooms"];
		$this->bathrooms->AdvancedSearch->SearchCondition = @$filter["v_bathrooms"];
		$this->bathrooms->AdvancedSearch->SearchValue2 = @$filter["y_bathrooms"];
		$this->bathrooms->AdvancedSearch->SearchOperator2 = @$filter["w_bathrooms"];
		$this->bathrooms->AdvancedSearch->save();

		// Field living_area
		$this->living_area->AdvancedSearch->SearchValue = @$filter["x_living_area"];
		$this->living_area->AdvancedSearch->SearchOperator = @$filter["z_living_area"];
		$this->living_area->AdvancedSearch->SearchCondition = @$filter["v_living_area"];
		$this->living_area->AdvancedSearch->SearchValue2 = @$filter["y_living_area"];
		$this->living_area->AdvancedSearch->SearchOperator2 = @$filter["w_living_area"];
		$this->living_area->AdvancedSearch->save();

		// Field living_area_unit
		$this->living_area_unit->AdvancedSearch->SearchValue = @$filter["x_living_area_unit"];
		$this->living_area_unit->AdvancedSearch->SearchOperator = @$filter["z_living_area_unit"];
		$this->living_area_unit->AdvancedSearch->SearchCondition = @$filter["v_living_area_unit"];
		$this->living_area_unit->AdvancedSearch->SearchValue2 = @$filter["y_living_area_unit"];
		$this->living_area_unit->AdvancedSearch->SearchOperator2 = @$filter["w_living_area_unit"];
		$this->living_area_unit->AdvancedSearch->save();

		// Field living_area_si
		$this->living_area_si->AdvancedSearch->SearchValue = @$filter["x_living_area_si"];
		$this->living_area_si->AdvancedSearch->SearchOperator = @$filter["z_living_area_si"];
		$this->living_area_si->AdvancedSearch->SearchCondition = @$filter["v_living_area_si"];
		$this->living_area_si->AdvancedSearch->SearchValue2 = @$filter["y_living_area_si"];
		$this->living_area_si->AdvancedSearch->SearchOperator2 = @$filter["w_living_area_si"];
		$this->living_area_si->AdvancedSearch->save();

		// Field lot_area
		$this->lot_area->AdvancedSearch->SearchValue = @$filter["x_lot_area"];
		$this->lot_area->AdvancedSearch->SearchOperator = @$filter["z_lot_area"];
		$this->lot_area->AdvancedSearch->SearchCondition = @$filter["v_lot_area"];
		$this->lot_area->AdvancedSearch->SearchValue2 = @$filter["y_lot_area"];
		$this->lot_area->AdvancedSearch->SearchOperator2 = @$filter["w_lot_area"];
		$this->lot_area->AdvancedSearch->save();

		// Field lot_area_unit
		$this->lot_area_unit->AdvancedSearch->SearchValue = @$filter["x_lot_area_unit"];
		$this->lot_area_unit->AdvancedSearch->SearchOperator = @$filter["z_lot_area_unit"];
		$this->lot_area_unit->AdvancedSearch->SearchCondition = @$filter["v_lot_area_unit"];
		$this->lot_area_unit->AdvancedSearch->SearchValue2 = @$filter["y_lot_area_unit"];
		$this->lot_area_unit->AdvancedSearch->SearchOperator2 = @$filter["w_lot_area_unit"];
		$this->lot_area_unit->AdvancedSearch->save();

		// Field lot_area_si
		$this->lot_area_si->AdvancedSearch->SearchValue = @$filter["x_lot_area_si"];
		$this->lot_area_si->AdvancedSearch->SearchOperator = @$filter["z_lot_area_si"];
		$this->lot_area_si->AdvancedSearch->SearchCondition = @$filter["v_lot_area_si"];
		$this->lot_area_si->AdvancedSearch->SearchValue2 = @$filter["y_lot_area_si"];
		$this->lot_area_si->AdvancedSearch->SearchOperator2 = @$filter["w_lot_area_si"];
		$this->lot_area_si->AdvancedSearch->save();

		// Field googlemap_lt
		$this->googlemap_lt->AdvancedSearch->SearchValue = @$filter["x_googlemap_lt"];
		$this->googlemap_lt->AdvancedSearch->SearchOperator = @$filter["z_googlemap_lt"];
		$this->googlemap_lt->AdvancedSearch->SearchCondition = @$filter["v_googlemap_lt"];
		$this->googlemap_lt->AdvancedSearch->SearchValue2 = @$filter["y_googlemap_lt"];
		$this->googlemap_lt->AdvancedSearch->SearchOperator2 = @$filter["w_googlemap_lt"];
		$this->googlemap_lt->AdvancedSearch->save();

		// Field googlemap_ln
		$this->googlemap_ln->AdvancedSearch->SearchValue = @$filter["x_googlemap_ln"];
		$this->googlemap_ln->AdvancedSearch->SearchOperator = @$filter["z_googlemap_ln"];
		$this->googlemap_ln->AdvancedSearch->SearchCondition = @$filter["v_googlemap_ln"];
		$this->googlemap_ln->AdvancedSearch->SearchValue2 = @$filter["y_googlemap_ln"];
		$this->googlemap_ln->AdvancedSearch->SearchOperator2 = @$filter["w_googlemap_ln"];
		$this->googlemap_ln->AdvancedSearch->save();

		// Field finalized
		$this->finalized->AdvancedSearch->SearchValue = @$filter["x_finalized"];
		$this->finalized->AdvancedSearch->SearchOperator = @$filter["z_finalized"];
		$this->finalized->AdvancedSearch->SearchCondition = @$filter["v_finalized"];
		$this->finalized->AdvancedSearch->SearchValue2 = @$filter["y_finalized"];
		$this->finalized->AdvancedSearch->SearchOperator2 = @$filter["w_finalized"];
		$this->finalized->AdvancedSearch->save();

		// Field add_date
		$this->add_date->AdvancedSearch->SearchValue = @$filter["x_add_date"];
		$this->add_date->AdvancedSearch->SearchOperator = @$filter["z_add_date"];
		$this->add_date->AdvancedSearch->SearchCondition = @$filter["v_add_date"];
		$this->add_date->AdvancedSearch->SearchValue2 = @$filter["y_add_date"];
		$this->add_date->AdvancedSearch->SearchOperator2 = @$filter["w_add_date"];
		$this->add_date->AdvancedSearch->save();

		// Field last_finalize_date
		$this->last_finalize_date->AdvancedSearch->SearchValue = @$filter["x_last_finalize_date"];
		$this->last_finalize_date->AdvancedSearch->SearchOperator = @$filter["z_last_finalize_date"];
		$this->last_finalize_date->AdvancedSearch->SearchCondition = @$filter["v_last_finalize_date"];
		$this->last_finalize_date->AdvancedSearch->SearchValue2 = @$filter["y_last_finalize_date"];
		$this->last_finalize_date->AdvancedSearch->SearchOperator2 = @$filter["w_last_finalize_date"];
		$this->last_finalize_date->AdvancedSearch->save();

		// Field expire_days
		$this->expire_days->AdvancedSearch->SearchValue = @$filter["x_expire_days"];
		$this->expire_days->AdvancedSearch->SearchOperator = @$filter["z_expire_days"];
		$this->expire_days->AdvancedSearch->SearchCondition = @$filter["v_expire_days"];
		$this->expire_days->AdvancedSearch->SearchValue2 = @$filter["y_expire_days"];
		$this->expire_days->AdvancedSearch->SearchOperator2 = @$filter["w_expire_days"];
		$this->expire_days->AdvancedSearch->save();

		// Field confirmed
		$this->confirmed->AdvancedSearch->SearchValue = @$filter["x_confirmed"];
		$this->confirmed->AdvancedSearch->SearchOperator = @$filter["z_confirmed"];
		$this->confirmed->AdvancedSearch->SearchCondition = @$filter["v_confirmed"];
		$this->confirmed->AdvancedSearch->SearchValue2 = @$filter["y_confirmed"];
		$this->confirmed->AdvancedSearch->SearchOperator2 = @$filter["w_confirmed"];
		$this->confirmed->AdvancedSearch->save();

		// Field expired
		$this->expired->AdvancedSearch->SearchValue = @$filter["x_expired"];
		$this->expired->AdvancedSearch->SearchOperator = @$filter["z_expired"];
		$this->expired->AdvancedSearch->SearchCondition = @$filter["v_expired"];
		$this->expired->AdvancedSearch->SearchValue2 = @$filter["y_expired"];
		$this->expired->AdvancedSearch->SearchOperator2 = @$filter["w_expired"];
		$this->expired->AdvancedSearch->save();

		// Field build_year
		$this->build_year->AdvancedSearch->SearchValue = @$filter["x_build_year"];
		$this->build_year->AdvancedSearch->SearchOperator = @$filter["z_build_year"];
		$this->build_year->AdvancedSearch->SearchCondition = @$filter["v_build_year"];
		$this->build_year->AdvancedSearch->SearchValue2 = @$filter["y_build_year"];
		$this->build_year->AdvancedSearch->SearchOperator2 = @$filter["w_build_year"];
		$this->build_year->AdvancedSearch->save();

		// Field zip_id
		$this->zip_id->AdvancedSearch->SearchValue = @$filter["x_zip_id"];
		$this->zip_id->AdvancedSearch->SearchOperator = @$filter["z_zip_id"];
		$this->zip_id->AdvancedSearch->SearchCondition = @$filter["v_zip_id"];
		$this->zip_id->AdvancedSearch->SearchValue2 = @$filter["y_zip_id"];
		$this->zip_id->AdvancedSearch->SearchOperator2 = @$filter["w_zip_id"];
		$this->zip_id->AdvancedSearch->save();

		// Field zip_name
		$this->zip_name->AdvancedSearch->SearchValue = @$filter["x_zip_name"];
		$this->zip_name->AdvancedSearch->SearchOperator = @$filter["z_zip_name"];
		$this->zip_name->AdvancedSearch->SearchCondition = @$filter["v_zip_name"];
		$this->zip_name->AdvancedSearch->SearchValue2 = @$filter["y_zip_name"];
		$this->zip_name->AdvancedSearch->SearchOperator2 = @$filter["w_zip_name"];
		$this->zip_name->AdvancedSearch->save();

		// Field last_modified_time_stamp
		$this->last_modified_time_stamp->AdvancedSearch->SearchValue = @$filter["x_last_modified_time_stamp"];
		$this->last_modified_time_stamp->AdvancedSearch->SearchOperator = @$filter["z_last_modified_time_stamp"];
		$this->last_modified_time_stamp->AdvancedSearch->SearchCondition = @$filter["v_last_modified_time_stamp"];
		$this->last_modified_time_stamp->AdvancedSearch->SearchValue2 = @$filter["y_last_modified_time_stamp"];
		$this->last_modified_time_stamp->AdvancedSearch->SearchOperator2 = @$filter["w_last_modified_time_stamp"];
		$this->last_modified_time_stamp->AdvancedSearch->save();

		// Field post_code
		$this->post_code->AdvancedSearch->SearchValue = @$filter["x_post_code"];
		$this->post_code->AdvancedSearch->SearchOperator = @$filter["z_post_code"];
		$this->post_code->AdvancedSearch->SearchCondition = @$filter["v_post_code"];
		$this->post_code->AdvancedSearch->SearchValue2 = @$filter["y_post_code"];
		$this->post_code->AdvancedSearch->SearchOperator2 = @$filter["w_post_code"];
		$this->post_code->AdvancedSearch->save();

		// Field meta_description
		$this->meta_description->AdvancedSearch->SearchValue = @$filter["x_meta_description"];
		$this->meta_description->AdvancedSearch->SearchOperator = @$filter["z_meta_description"];
		$this->meta_description->AdvancedSearch->SearchCondition = @$filter["v_meta_description"];
		$this->meta_description->AdvancedSearch->SearchValue2 = @$filter["y_meta_description"];
		$this->meta_description->AdvancedSearch->SearchOperator2 = @$filter["w_meta_description"];
		$this->meta_description->AdvancedSearch->save();

		// Field meta_description_manual
		$this->meta_description_manual->AdvancedSearch->SearchValue = @$filter["x_meta_description_manual"];
		$this->meta_description_manual->AdvancedSearch->SearchOperator = @$filter["z_meta_description_manual"];
		$this->meta_description_manual->AdvancedSearch->SearchCondition = @$filter["v_meta_description_manual"];
		$this->meta_description_manual->AdvancedSearch->SearchValue2 = @$filter["y_meta_description_manual"];
		$this->meta_description_manual->AdvancedSearch->SearchOperator2 = @$filter["w_meta_description_manual"];
		$this->meta_description_manual->AdvancedSearch->save();

		// Field meta_keywords
		$this->meta_keywords->AdvancedSearch->SearchValue = @$filter["x_meta_keywords"];
		$this->meta_keywords->AdvancedSearch->SearchOperator = @$filter["z_meta_keywords"];
		$this->meta_keywords->AdvancedSearch->SearchCondition = @$filter["v_meta_keywords"];
		$this->meta_keywords->AdvancedSearch->SearchValue2 = @$filter["y_meta_keywords"];
		$this->meta_keywords->AdvancedSearch->SearchOperator2 = @$filter["w_meta_keywords"];
		$this->meta_keywords->AdvancedSearch->save();

		// Field meta_keywords_manual
		$this->meta_keywords_manual->AdvancedSearch->SearchValue = @$filter["x_meta_keywords_manual"];
		$this->meta_keywords_manual->AdvancedSearch->SearchOperator = @$filter["z_meta_keywords_manual"];
		$this->meta_keywords_manual->AdvancedSearch->SearchCondition = @$filter["v_meta_keywords_manual"];
		$this->meta_keywords_manual->AdvancedSearch->SearchValue2 = @$filter["y_meta_keywords_manual"];
		$this->meta_keywords_manual->AdvancedSearch->SearchOperator2 = @$filter["w_meta_keywords_manual"];
		$this->meta_keywords_manual->AdvancedSearch->save();

		// Field street_no
		$this->street_no->AdvancedSearch->SearchValue = @$filter["x_street_no"];
		$this->street_no->AdvancedSearch->SearchOperator = @$filter["z_street_no"];
		$this->street_no->AdvancedSearch->SearchCondition = @$filter["v_street_no"];
		$this->street_no->AdvancedSearch->SearchValue2 = @$filter["y_street_no"];
		$this->street_no->AdvancedSearch->SearchOperator2 = @$filter["w_street_no"];
		$this->street_no->AdvancedSearch->save();

		// Field sp_featured
		$this->sp_featured->AdvancedSearch->SearchValue = @$filter["x_sp_featured"];
		$this->sp_featured->AdvancedSearch->SearchOperator = @$filter["z_sp_featured"];
		$this->sp_featured->AdvancedSearch->SearchCondition = @$filter["v_sp_featured"];
		$this->sp_featured->AdvancedSearch->SearchValue2 = @$filter["y_sp_featured"];
		$this->sp_featured->AdvancedSearch->SearchOperator2 = @$filter["w_sp_featured"];
		$this->sp_featured->AdvancedSearch->save();

		// Field sp_hot
		$this->sp_hot->AdvancedSearch->SearchValue = @$filter["x_sp_hot"];
		$this->sp_hot->AdvancedSearch->SearchOperator = @$filter["z_sp_hot"];
		$this->sp_hot->AdvancedSearch->SearchCondition = @$filter["v_sp_hot"];
		$this->sp_hot->AdvancedSearch->SearchValue2 = @$filter["y_sp_hot"];
		$this->sp_hot->AdvancedSearch->SearchOperator2 = @$filter["w_sp_hot"];
		$this->sp_hot->AdvancedSearch->save();

		// Field sp_openhouse
		$this->sp_openhouse->AdvancedSearch->SearchValue = @$filter["x_sp_openhouse"];
		$this->sp_openhouse->AdvancedSearch->SearchOperator = @$filter["z_sp_openhouse"];
		$this->sp_openhouse->AdvancedSearch->SearchCondition = @$filter["v_sp_openhouse"];
		$this->sp_openhouse->AdvancedSearch->SearchValue2 = @$filter["y_sp_openhouse"];
		$this->sp_openhouse->AdvancedSearch->SearchOperator2 = @$filter["w_sp_openhouse"];
		$this->sp_openhouse->AdvancedSearch->save();

		// Field sp_forclosure
		$this->sp_forclosure->AdvancedSearch->SearchValue = @$filter["x_sp_forclosure"];
		$this->sp_forclosure->AdvancedSearch->SearchOperator = @$filter["z_sp_forclosure"];
		$this->sp_forclosure->AdvancedSearch->SearchCondition = @$filter["v_sp_forclosure"];
		$this->sp_forclosure->AdvancedSearch->SearchValue2 = @$filter["y_sp_forclosure"];
		$this->sp_forclosure->AdvancedSearch->SearchOperator2 = @$filter["w_sp_forclosure"];
		$this->sp_forclosure->AdvancedSearch->save();

		// Field textsearch
		$this->textsearch->AdvancedSearch->SearchValue = @$filter["x_textsearch"];
		$this->textsearch->AdvancedSearch->SearchOperator = @$filter["z_textsearch"];
		$this->textsearch->AdvancedSearch->SearchCondition = @$filter["v_textsearch"];
		$this->textsearch->AdvancedSearch->SearchValue2 = @$filter["y_textsearch"];
		$this->textsearch->AdvancedSearch->SearchOperator2 = @$filter["w_textsearch"];
		$this->textsearch->AdvancedSearch->save();

		// Field location_text
		$this->location_text->AdvancedSearch->SearchValue = @$filter["x_location_text"];
		$this->location_text->AdvancedSearch->SearchOperator = @$filter["z_location_text"];
		$this->location_text->AdvancedSearch->SearchCondition = @$filter["v_location_text"];
		$this->location_text->AdvancedSearch->SearchValue2 = @$filter["y_location_text"];
		$this->location_text->AdvancedSearch->SearchOperator2 = @$filter["w_location_text"];
		$this->location_text->AdvancedSearch->save();

		// Field field_42
		$this->field_42->AdvancedSearch->SearchValue = @$filter["x_field_42"];
		$this->field_42->AdvancedSearch->SearchOperator = @$filter["z_field_42"];
		$this->field_42->AdvancedSearch->SearchCondition = @$filter["v_field_42"];
		$this->field_42->AdvancedSearch->SearchValue2 = @$filter["y_field_42"];
		$this->field_42->AdvancedSearch->SearchOperator2 = @$filter["w_field_42"];
		$this->field_42->AdvancedSearch->save();

		// Field field_312
		$this->field_312->AdvancedSearch->SearchValue = @$filter["x_field_312"];
		$this->field_312->AdvancedSearch->SearchOperator = @$filter["z_field_312"];
		$this->field_312->AdvancedSearch->SearchCondition = @$filter["v_field_312"];
		$this->field_312->AdvancedSearch->SearchValue2 = @$filter["y_field_312"];
		$this->field_312->AdvancedSearch->SearchOperator2 = @$filter["w_field_312"];
		$this->field_312->AdvancedSearch->save();

		// Field field_313
		$this->field_313->AdvancedSearch->SearchValue = @$filter["x_field_313"];
		$this->field_313->AdvancedSearch->SearchOperator = @$filter["z_field_313"];
		$this->field_313->AdvancedSearch->SearchCondition = @$filter["v_field_313"];
		$this->field_313->AdvancedSearch->SearchValue2 = @$filter["y_field_313"];
		$this->field_313->AdvancedSearch->SearchOperator2 = @$filter["w_field_313"];
		$this->field_313->AdvancedSearch->save();

		// Field field_7
		$this->field_7->AdvancedSearch->SearchValue = @$filter["x_field_7"];
		$this->field_7->AdvancedSearch->SearchOperator = @$filter["z_field_7"];
		$this->field_7->AdvancedSearch->SearchCondition = @$filter["v_field_7"];
		$this->field_7->AdvancedSearch->SearchValue2 = @$filter["y_field_7"];
		$this->field_7->AdvancedSearch->SearchOperator2 = @$filter["w_field_7"];
		$this->field_7->AdvancedSearch->save();

		// Field n_103
		$this->n_103->AdvancedSearch->SearchValue = @$filter["x_n_103"];
		$this->n_103->AdvancedSearch->SearchOperator = @$filter["z_n_103"];
		$this->n_103->AdvancedSearch->SearchCondition = @$filter["v_n_103"];
		$this->n_103->AdvancedSearch->SearchValue2 = @$filter["y_n_103"];
		$this->n_103->AdvancedSearch->SearchOperator2 = @$filter["w_n_103"];
		$this->n_103->AdvancedSearch->save();

		// Field n_103_distance
		$this->n_103_distance->AdvancedSearch->SearchValue = @$filter["x_n_103_distance"];
		$this->n_103_distance->AdvancedSearch->SearchOperator = @$filter["z_n_103_distance"];
		$this->n_103_distance->AdvancedSearch->SearchCondition = @$filter["v_n_103_distance"];
		$this->n_103_distance->AdvancedSearch->SearchValue2 = @$filter["y_n_103_distance"];
		$this->n_103_distance->AdvancedSearch->SearchOperator2 = @$filter["w_n_103_distance"];
		$this->n_103_distance->AdvancedSearch->save();

		// Field n_103_distance_by
		$this->n_103_distance_by->AdvancedSearch->SearchValue = @$filter["x_n_103_distance_by"];
		$this->n_103_distance_by->AdvancedSearch->SearchOperator = @$filter["z_n_103_distance_by"];
		$this->n_103_distance_by->AdvancedSearch->SearchCondition = @$filter["v_n_103_distance_by"];
		$this->n_103_distance_by->AdvancedSearch->SearchValue2 = @$filter["y_n_103_distance_by"];
		$this->n_103_distance_by->AdvancedSearch->SearchOperator2 = @$filter["w_n_103_distance_by"];
		$this->n_103_distance_by->AdvancedSearch->save();

		// Field n_105
		$this->n_105->AdvancedSearch->SearchValue = @$filter["x_n_105"];
		$this->n_105->AdvancedSearch->SearchOperator = @$filter["z_n_105"];
		$this->n_105->AdvancedSearch->SearchCondition = @$filter["v_n_105"];
		$this->n_105->AdvancedSearch->SearchValue2 = @$filter["y_n_105"];
		$this->n_105->AdvancedSearch->SearchOperator2 = @$filter["w_n_105"];
		$this->n_105->AdvancedSearch->save();

		// Field n_105_distance
		$this->n_105_distance->AdvancedSearch->SearchValue = @$filter["x_n_105_distance"];
		$this->n_105_distance->AdvancedSearch->SearchOperator = @$filter["z_n_105_distance"];
		$this->n_105_distance->AdvancedSearch->SearchCondition = @$filter["v_n_105_distance"];
		$this->n_105_distance->AdvancedSearch->SearchValue2 = @$filter["y_n_105_distance"];
		$this->n_105_distance->AdvancedSearch->SearchOperator2 = @$filter["w_n_105_distance"];
		$this->n_105_distance->AdvancedSearch->save();

		// Field n_105_distance_by
		$this->n_105_distance_by->AdvancedSearch->SearchValue = @$filter["x_n_105_distance_by"];
		$this->n_105_distance_by->AdvancedSearch->SearchOperator = @$filter["z_n_105_distance_by"];
		$this->n_105_distance_by->AdvancedSearch->SearchCondition = @$filter["v_n_105_distance_by"];
		$this->n_105_distance_by->AdvancedSearch->SearchValue2 = @$filter["y_n_105_distance_by"];
		$this->n_105_distance_by->AdvancedSearch->SearchOperator2 = @$filter["w_n_105_distance_by"];
		$this->n_105_distance_by->AdvancedSearch->save();

		// Field n_107
		$this->n_107->AdvancedSearch->SearchValue = @$filter["x_n_107"];
		$this->n_107->AdvancedSearch->SearchOperator = @$filter["z_n_107"];
		$this->n_107->AdvancedSearch->SearchCondition = @$filter["v_n_107"];
		$this->n_107->AdvancedSearch->SearchValue2 = @$filter["y_n_107"];
		$this->n_107->AdvancedSearch->SearchOperator2 = @$filter["w_n_107"];
		$this->n_107->AdvancedSearch->save();

		// Field n_107_distance
		$this->n_107_distance->AdvancedSearch->SearchValue = @$filter["x_n_107_distance"];
		$this->n_107_distance->AdvancedSearch->SearchOperator = @$filter["z_n_107_distance"];
		$this->n_107_distance->AdvancedSearch->SearchCondition = @$filter["v_n_107_distance"];
		$this->n_107_distance->AdvancedSearch->SearchValue2 = @$filter["y_n_107_distance"];
		$this->n_107_distance->AdvancedSearch->SearchOperator2 = @$filter["w_n_107_distance"];
		$this->n_107_distance->AdvancedSearch->save();

		// Field n_107_distance_by
		$this->n_107_distance_by->AdvancedSearch->SearchValue = @$filter["x_n_107_distance_by"];
		$this->n_107_distance_by->AdvancedSearch->SearchOperator = @$filter["z_n_107_distance_by"];
		$this->n_107_distance_by->AdvancedSearch->SearchCondition = @$filter["v_n_107_distance_by"];
		$this->n_107_distance_by->AdvancedSearch->SearchValue2 = @$filter["y_n_107_distance_by"];
		$this->n_107_distance_by->AdvancedSearch->SearchOperator2 = @$filter["w_n_107_distance_by"];
		$this->n_107_distance_by->AdvancedSearch->save();

		// Field n_108
		$this->n_108->AdvancedSearch->SearchValue = @$filter["x_n_108"];
		$this->n_108->AdvancedSearch->SearchOperator = @$filter["z_n_108"];
		$this->n_108->AdvancedSearch->SearchCondition = @$filter["v_n_108"];
		$this->n_108->AdvancedSearch->SearchValue2 = @$filter["y_n_108"];
		$this->n_108->AdvancedSearch->SearchOperator2 = @$filter["w_n_108"];
		$this->n_108->AdvancedSearch->save();

		// Field n_108_distance
		$this->n_108_distance->AdvancedSearch->SearchValue = @$filter["x_n_108_distance"];
		$this->n_108_distance->AdvancedSearch->SearchOperator = @$filter["z_n_108_distance"];
		$this->n_108_distance->AdvancedSearch->SearchCondition = @$filter["v_n_108_distance"];
		$this->n_108_distance->AdvancedSearch->SearchValue2 = @$filter["y_n_108_distance"];
		$this->n_108_distance->AdvancedSearch->SearchOperator2 = @$filter["w_n_108_distance"];
		$this->n_108_distance->AdvancedSearch->save();

		// Field n_108_distance_by
		$this->n_108_distance_by->AdvancedSearch->SearchValue = @$filter["x_n_108_distance_by"];
		$this->n_108_distance_by->AdvancedSearch->SearchOperator = @$filter["z_n_108_distance_by"];
		$this->n_108_distance_by->AdvancedSearch->SearchCondition = @$filter["v_n_108_distance_by"];
		$this->n_108_distance_by->AdvancedSearch->SearchValue2 = @$filter["y_n_108_distance_by"];
		$this->n_108_distance_by->AdvancedSearch->SearchOperator2 = @$filter["w_n_108_distance_by"];
		$this->n_108_distance_by->AdvancedSearch->save();

		// Field n_109
		$this->n_109->AdvancedSearch->SearchValue = @$filter["x_n_109"];
		$this->n_109->AdvancedSearch->SearchOperator = @$filter["z_n_109"];
		$this->n_109->AdvancedSearch->SearchCondition = @$filter["v_n_109"];
		$this->n_109->AdvancedSearch->SearchValue2 = @$filter["y_n_109"];
		$this->n_109->AdvancedSearch->SearchOperator2 = @$filter["w_n_109"];
		$this->n_109->AdvancedSearch->save();

		// Field n_109_distance
		$this->n_109_distance->AdvancedSearch->SearchValue = @$filter["x_n_109_distance"];
		$this->n_109_distance->AdvancedSearch->SearchOperator = @$filter["z_n_109_distance"];
		$this->n_109_distance->AdvancedSearch->SearchCondition = @$filter["v_n_109_distance"];
		$this->n_109_distance->AdvancedSearch->SearchValue2 = @$filter["y_n_109_distance"];
		$this->n_109_distance->AdvancedSearch->SearchOperator2 = @$filter["w_n_109_distance"];
		$this->n_109_distance->AdvancedSearch->save();

		// Field n_109_distance_by
		$this->n_109_distance_by->AdvancedSearch->SearchValue = @$filter["x_n_109_distance_by"];
		$this->n_109_distance_by->AdvancedSearch->SearchOperator = @$filter["z_n_109_distance_by"];
		$this->n_109_distance_by->AdvancedSearch->SearchCondition = @$filter["v_n_109_distance_by"];
		$this->n_109_distance_by->AdvancedSearch->SearchValue2 = @$filter["y_n_109_distance_by"];
		$this->n_109_distance_by->AdvancedSearch->SearchOperator2 = @$filter["w_n_109_distance_by"];
		$this->n_109_distance_by->AdvancedSearch->save();

		// Field f_131_options
		$this->f_131_options->AdvancedSearch->SearchValue = @$filter["x_f_131_options"];
		$this->f_131_options->AdvancedSearch->SearchOperator = @$filter["z_f_131_options"];
		$this->f_131_options->AdvancedSearch->SearchCondition = @$filter["v_f_131_options"];
		$this->f_131_options->AdvancedSearch->SearchValue2 = @$filter["y_f_131_options"];
		$this->f_131_options->AdvancedSearch->SearchOperator2 = @$filter["w_f_131_options"];
		$this->f_131_options->AdvancedSearch->save();

		// Field f_131
		$this->f_131->AdvancedSearch->SearchValue = @$filter["x_f_131"];
		$this->f_131->AdvancedSearch->SearchOperator = @$filter["z_f_131"];
		$this->f_131->AdvancedSearch->SearchCondition = @$filter["v_f_131"];
		$this->f_131->AdvancedSearch->SearchValue2 = @$filter["y_f_131"];
		$this->f_131->AdvancedSearch->SearchOperator2 = @$filter["w_f_131"];
		$this->f_131->AdvancedSearch->save();

		// Field f_137_options
		$this->f_137_options->AdvancedSearch->SearchValue = @$filter["x_f_137_options"];
		$this->f_137_options->AdvancedSearch->SearchOperator = @$filter["z_f_137_options"];
		$this->f_137_options->AdvancedSearch->SearchCondition = @$filter["v_f_137_options"];
		$this->f_137_options->AdvancedSearch->SearchValue2 = @$filter["y_f_137_options"];
		$this->f_137_options->AdvancedSearch->SearchOperator2 = @$filter["w_f_137_options"];
		$this->f_137_options->AdvancedSearch->save();

		// Field f_137
		$this->f_137->AdvancedSearch->SearchValue = @$filter["x_f_137"];
		$this->f_137->AdvancedSearch->SearchOperator = @$filter["z_f_137"];
		$this->f_137->AdvancedSearch->SearchCondition = @$filter["v_f_137"];
		$this->f_137->AdvancedSearch->SearchValue2 = @$filter["y_f_137"];
		$this->f_137->AdvancedSearch->SearchOperator2 = @$filter["w_f_137"];
		$this->f_137->AdvancedSearch->save();

		// Field f_139_options
		$this->f_139_options->AdvancedSearch->SearchValue = @$filter["x_f_139_options"];
		$this->f_139_options->AdvancedSearch->SearchOperator = @$filter["z_f_139_options"];
		$this->f_139_options->AdvancedSearch->SearchCondition = @$filter["v_f_139_options"];
		$this->f_139_options->AdvancedSearch->SearchValue2 = @$filter["y_f_139_options"];
		$this->f_139_options->AdvancedSearch->SearchOperator2 = @$filter["w_f_139_options"];
		$this->f_139_options->AdvancedSearch->save();

		// Field f_139
		$this->f_139->AdvancedSearch->SearchValue = @$filter["x_f_139"];
		$this->f_139->AdvancedSearch->SearchOperator = @$filter["z_f_139"];
		$this->f_139->AdvancedSearch->SearchCondition = @$filter["v_f_139"];
		$this->f_139->AdvancedSearch->SearchValue2 = @$filter["y_f_139"];
		$this->f_139->AdvancedSearch->SearchOperator2 = @$filter["w_f_139"];
		$this->f_139->AdvancedSearch->save();

		// Field f_144_options
		$this->f_144_options->AdvancedSearch->SearchValue = @$filter["x_f_144_options"];
		$this->f_144_options->AdvancedSearch->SearchOperator = @$filter["z_f_144_options"];
		$this->f_144_options->AdvancedSearch->SearchCondition = @$filter["v_f_144_options"];
		$this->f_144_options->AdvancedSearch->SearchValue2 = @$filter["y_f_144_options"];
		$this->f_144_options->AdvancedSearch->SearchOperator2 = @$filter["w_f_144_options"];
		$this->f_144_options->AdvancedSearch->save();

		// Field f_144
		$this->f_144->AdvancedSearch->SearchValue = @$filter["x_f_144"];
		$this->f_144->AdvancedSearch->SearchOperator = @$filter["z_f_144"];
		$this->f_144->AdvancedSearch->SearchCondition = @$filter["v_f_144"];
		$this->f_144->AdvancedSearch->SearchValue2 = @$filter["y_f_144"];
		$this->f_144->AdvancedSearch->SearchOperator2 = @$filter["w_f_144"];
		$this->f_144->AdvancedSearch->save();

		// Field f_146_options
		$this->f_146_options->AdvancedSearch->SearchValue = @$filter["x_f_146_options"];
		$this->f_146_options->AdvancedSearch->SearchOperator = @$filter["z_f_146_options"];
		$this->f_146_options->AdvancedSearch->SearchCondition = @$filter["v_f_146_options"];
		$this->f_146_options->AdvancedSearch->SearchValue2 = @$filter["y_f_146_options"];
		$this->f_146_options->AdvancedSearch->SearchOperator2 = @$filter["w_f_146_options"];
		$this->f_146_options->AdvancedSearch->save();

		// Field f_146
		$this->f_146->AdvancedSearch->SearchValue = @$filter["x_f_146"];
		$this->f_146->AdvancedSearch->SearchOperator = @$filter["z_f_146"];
		$this->f_146->AdvancedSearch->SearchCondition = @$filter["v_f_146"];
		$this->f_146->AdvancedSearch->SearchValue2 = @$filter["y_f_146"];
		$this->f_146->AdvancedSearch->SearchOperator2 = @$filter["w_f_146"];
		$this->f_146->AdvancedSearch->save();

		// Field f_149_options
		$this->f_149_options->AdvancedSearch->SearchValue = @$filter["x_f_149_options"];
		$this->f_149_options->AdvancedSearch->SearchOperator = @$filter["z_f_149_options"];
		$this->f_149_options->AdvancedSearch->SearchCondition = @$filter["v_f_149_options"];
		$this->f_149_options->AdvancedSearch->SearchValue2 = @$filter["y_f_149_options"];
		$this->f_149_options->AdvancedSearch->SearchOperator2 = @$filter["w_f_149_options"];
		$this->f_149_options->AdvancedSearch->save();

		// Field f_149
		$this->f_149->AdvancedSearch->SearchValue = @$filter["x_f_149"];
		$this->f_149->AdvancedSearch->SearchOperator = @$filter["z_f_149"];
		$this->f_149->AdvancedSearch->SearchCondition = @$filter["v_f_149"];
		$this->f_149->AdvancedSearch->SearchValue2 = @$filter["y_f_149"];
		$this->f_149->AdvancedSearch->SearchOperator2 = @$filter["w_f_149"];
		$this->f_149->AdvancedSearch->save();

		// Field f_150_options
		$this->f_150_options->AdvancedSearch->SearchValue = @$filter["x_f_150_options"];
		$this->f_150_options->AdvancedSearch->SearchOperator = @$filter["z_f_150_options"];
		$this->f_150_options->AdvancedSearch->SearchCondition = @$filter["v_f_150_options"];
		$this->f_150_options->AdvancedSearch->SearchValue2 = @$filter["y_f_150_options"];
		$this->f_150_options->AdvancedSearch->SearchOperator2 = @$filter["w_f_150_options"];
		$this->f_150_options->AdvancedSearch->save();

		// Field f_150
		$this->f_150->AdvancedSearch->SearchValue = @$filter["x_f_150"];
		$this->f_150->AdvancedSearch->SearchOperator = @$filter["z_f_150"];
		$this->f_150->AdvancedSearch->SearchCondition = @$filter["v_f_150"];
		$this->f_150->AdvancedSearch->SearchValue2 = @$filter["y_f_150"];
		$this->f_150->AdvancedSearch->SearchOperator2 = @$filter["w_f_150"];
		$this->f_150->AdvancedSearch->save();

		// Field f_156_options
		$this->f_156_options->AdvancedSearch->SearchValue = @$filter["x_f_156_options"];
		$this->f_156_options->AdvancedSearch->SearchOperator = @$filter["z_f_156_options"];
		$this->f_156_options->AdvancedSearch->SearchCondition = @$filter["v_f_156_options"];
		$this->f_156_options->AdvancedSearch->SearchValue2 = @$filter["y_f_156_options"];
		$this->f_156_options->AdvancedSearch->SearchOperator2 = @$filter["w_f_156_options"];
		$this->f_156_options->AdvancedSearch->save();

		// Field f_156
		$this->f_156->AdvancedSearch->SearchValue = @$filter["x_f_156"];
		$this->f_156->AdvancedSearch->SearchOperator = @$filter["z_f_156"];
		$this->f_156->AdvancedSearch->SearchCondition = @$filter["v_f_156"];
		$this->f_156->AdvancedSearch->SearchValue2 = @$filter["y_f_156"];
		$this->f_156->AdvancedSearch->SearchOperator2 = @$filter["w_f_156"];
		$this->f_156->AdvancedSearch->save();

		// Field f_157_options
		$this->f_157_options->AdvancedSearch->SearchValue = @$filter["x_f_157_options"];
		$this->f_157_options->AdvancedSearch->SearchOperator = @$filter["z_f_157_options"];
		$this->f_157_options->AdvancedSearch->SearchCondition = @$filter["v_f_157_options"];
		$this->f_157_options->AdvancedSearch->SearchValue2 = @$filter["y_f_157_options"];
		$this->f_157_options->AdvancedSearch->SearchOperator2 = @$filter["w_f_157_options"];
		$this->f_157_options->AdvancedSearch->save();

		// Field f_157
		$this->f_157->AdvancedSearch->SearchValue = @$filter["x_f_157"];
		$this->f_157->AdvancedSearch->SearchOperator = @$filter["z_f_157"];
		$this->f_157->AdvancedSearch->SearchCondition = @$filter["v_f_157"];
		$this->f_157->AdvancedSearch->SearchValue2 = @$filter["y_f_157"];
		$this->f_157->AdvancedSearch->SearchOperator2 = @$filter["w_f_157"];
		$this->f_157->AdvancedSearch->save();

		// Field f_159_options
		$this->f_159_options->AdvancedSearch->SearchValue = @$filter["x_f_159_options"];
		$this->f_159_options->AdvancedSearch->SearchOperator = @$filter["z_f_159_options"];
		$this->f_159_options->AdvancedSearch->SearchCondition = @$filter["v_f_159_options"];
		$this->f_159_options->AdvancedSearch->SearchValue2 = @$filter["y_f_159_options"];
		$this->f_159_options->AdvancedSearch->SearchOperator2 = @$filter["w_f_159_options"];
		$this->f_159_options->AdvancedSearch->save();

		// Field f_159
		$this->f_159->AdvancedSearch->SearchValue = @$filter["x_f_159"];
		$this->f_159->AdvancedSearch->SearchOperator = @$filter["z_f_159"];
		$this->f_159->AdvancedSearch->SearchCondition = @$filter["v_f_159"];
		$this->f_159->AdvancedSearch->SearchValue2 = @$filter["y_f_159"];
		$this->f_159->AdvancedSearch->SearchOperator2 = @$filter["w_f_159"];
		$this->f_159->AdvancedSearch->save();

		// Field f_161_options
		$this->f_161_options->AdvancedSearch->SearchValue = @$filter["x_f_161_options"];
		$this->f_161_options->AdvancedSearch->SearchOperator = @$filter["z_f_161_options"];
		$this->f_161_options->AdvancedSearch->SearchCondition = @$filter["v_f_161_options"];
		$this->f_161_options->AdvancedSearch->SearchValue2 = @$filter["y_f_161_options"];
		$this->f_161_options->AdvancedSearch->SearchOperator2 = @$filter["w_f_161_options"];
		$this->f_161_options->AdvancedSearch->save();

		// Field f_161
		$this->f_161->AdvancedSearch->SearchValue = @$filter["x_f_161"];
		$this->f_161->AdvancedSearch->SearchOperator = @$filter["z_f_161"];
		$this->f_161->AdvancedSearch->SearchCondition = @$filter["v_f_161"];
		$this->f_161->AdvancedSearch->SearchValue2 = @$filter["y_f_161"];
		$this->f_161->AdvancedSearch->SearchOperator2 = @$filter["w_f_161"];
		$this->f_161->AdvancedSearch->save();

		// Field f_163_options
		$this->f_163_options->AdvancedSearch->SearchValue = @$filter["x_f_163_options"];
		$this->f_163_options->AdvancedSearch->SearchOperator = @$filter["z_f_163_options"];
		$this->f_163_options->AdvancedSearch->SearchCondition = @$filter["v_f_163_options"];
		$this->f_163_options->AdvancedSearch->SearchValue2 = @$filter["y_f_163_options"];
		$this->f_163_options->AdvancedSearch->SearchOperator2 = @$filter["w_f_163_options"];
		$this->f_163_options->AdvancedSearch->save();

		// Field f_163
		$this->f_163->AdvancedSearch->SearchValue = @$filter["x_f_163"];
		$this->f_163->AdvancedSearch->SearchOperator = @$filter["z_f_163"];
		$this->f_163->AdvancedSearch->SearchCondition = @$filter["v_f_163"];
		$this->f_163->AdvancedSearch->SearchValue2 = @$filter["y_f_163"];
		$this->f_163->AdvancedSearch->SearchOperator2 = @$filter["w_f_163"];
		$this->f_163->AdvancedSearch->save();

		// Field f_165_options
		$this->f_165_options->AdvancedSearch->SearchValue = @$filter["x_f_165_options"];
		$this->f_165_options->AdvancedSearch->SearchOperator = @$filter["z_f_165_options"];
		$this->f_165_options->AdvancedSearch->SearchCondition = @$filter["v_f_165_options"];
		$this->f_165_options->AdvancedSearch->SearchValue2 = @$filter["y_f_165_options"];
		$this->f_165_options->AdvancedSearch->SearchOperator2 = @$filter["w_f_165_options"];
		$this->f_165_options->AdvancedSearch->save();

		// Field f_165
		$this->f_165->AdvancedSearch->SearchValue = @$filter["x_f_165"];
		$this->f_165->AdvancedSearch->SearchOperator = @$filter["z_f_165"];
		$this->f_165->AdvancedSearch->SearchCondition = @$filter["v_f_165"];
		$this->f_165->AdvancedSearch->SearchValue2 = @$filter["y_f_165"];
		$this->f_165->AdvancedSearch->SearchOperator2 = @$filter["w_f_165"];
		$this->f_165->AdvancedSearch->save();

		// Field f_166_options
		$this->f_166_options->AdvancedSearch->SearchValue = @$filter["x_f_166_options"];
		$this->f_166_options->AdvancedSearch->SearchOperator = @$filter["z_f_166_options"];
		$this->f_166_options->AdvancedSearch->SearchCondition = @$filter["v_f_166_options"];
		$this->f_166_options->AdvancedSearch->SearchValue2 = @$filter["y_f_166_options"];
		$this->f_166_options->AdvancedSearch->SearchOperator2 = @$filter["w_f_166_options"];
		$this->f_166_options->AdvancedSearch->save();

		// Field f_166
		$this->f_166->AdvancedSearch->SearchValue = @$filter["x_f_166"];
		$this->f_166->AdvancedSearch->SearchOperator = @$filter["z_f_166"];
		$this->f_166->AdvancedSearch->SearchCondition = @$filter["v_f_166"];
		$this->f_166->AdvancedSearch->SearchValue2 = @$filter["y_f_166"];
		$this->f_166->AdvancedSearch->SearchOperator2 = @$filter["w_f_166"];
		$this->f_166->AdvancedSearch->save();

		// Field ref_id
		$this->ref_id->AdvancedSearch->SearchValue = @$filter["x_ref_id"];
		$this->ref_id->AdvancedSearch->SearchOperator = @$filter["z_ref_id"];
		$this->ref_id->AdvancedSearch->SearchCondition = @$filter["v_ref_id"];
		$this->ref_id->AdvancedSearch->SearchValue2 = @$filter["y_ref_id"];
		$this->ref_id->AdvancedSearch->SearchOperator2 = @$filter["w_ref_id"];
		$this->ref_id->AdvancedSearch->save();

		// Field field_54
		$this->field_54->AdvancedSearch->SearchValue = @$filter["x_field_54"];
		$this->field_54->AdvancedSearch->SearchOperator = @$filter["z_field_54"];
		$this->field_54->AdvancedSearch->SearchCondition = @$filter["v_field_54"];
		$this->field_54->AdvancedSearch->SearchValue2 = @$filter["y_field_54"];
		$this->field_54->AdvancedSearch->SearchOperator2 = @$filter["w_field_54"];
		$this->field_54->AdvancedSearch->save();

		// Field half_bathrooms
		$this->half_bathrooms->AdvancedSearch->SearchValue = @$filter["x_half_bathrooms"];
		$this->half_bathrooms->AdvancedSearch->SearchOperator = @$filter["z_half_bathrooms"];
		$this->half_bathrooms->AdvancedSearch->SearchCondition = @$filter["v_half_bathrooms"];
		$this->half_bathrooms->AdvancedSearch->SearchValue2 = @$filter["y_half_bathrooms"];
		$this->half_bathrooms->AdvancedSearch->SearchOperator2 = @$filter["w_half_bathrooms"];
		$this->half_bathrooms->AdvancedSearch->save();

		// Field field_55
		$this->field_55->AdvancedSearch->SearchValue = @$filter["x_field_55"];
		$this->field_55->AdvancedSearch->SearchOperator = @$filter["z_field_55"];
		$this->field_55->AdvancedSearch->SearchCondition = @$filter["v_field_55"];
		$this->field_55->AdvancedSearch->SearchValue2 = @$filter["y_field_55"];
		$this->field_55->AdvancedSearch->SearchOperator2 = @$filter["w_field_55"];
		$this->field_55->AdvancedSearch->save();

		// Field rendered
		$this->rendered->AdvancedSearch->SearchValue = @$filter["x_rendered"];
		$this->rendered->AdvancedSearch->SearchOperator = @$filter["z_rendered"];
		$this->rendered->AdvancedSearch->SearchCondition = @$filter["v_rendered"];
		$this->rendered->AdvancedSearch->SearchValue2 = @$filter["y_rendered"];
		$this->rendered->AdvancedSearch->SearchOperator2 = @$filter["w_rendered"];
		$this->rendered->AdvancedSearch->save();

		// Field alias
		$this->alias->AdvancedSearch->SearchValue = @$filter["x_alias"];
		$this->alias->AdvancedSearch->SearchOperator = @$filter["z_alias"];
		$this->alias->AdvancedSearch->SearchCondition = @$filter["v_alias"];
		$this->alias->AdvancedSearch->SearchValue2 = @$filter["y_alias"];
		$this->alias->AdvancedSearch->SearchOperator2 = @$filter["w_alias"];
		$this->alias->AdvancedSearch->save();

		// Field source
		$this->source->AdvancedSearch->SearchValue = @$filter["x_source"];
		$this->source->AdvancedSearch->SearchOperator = @$filter["z_source"];
		$this->source->AdvancedSearch->SearchCondition = @$filter["v_source"];
		$this->source->AdvancedSearch->SearchValue2 = @$filter["y_source"];
		$this->source->AdvancedSearch->SearchOperator2 = @$filter["w_source"];
		$this->source->AdvancedSearch->save();

		// Field last_sync_date
		$this->last_sync_date->AdvancedSearch->SearchValue = @$filter["x_last_sync_date"];
		$this->last_sync_date->AdvancedSearch->SearchOperator = @$filter["z_last_sync_date"];
		$this->last_sync_date->AdvancedSearch->SearchCondition = @$filter["v_last_sync_date"];
		$this->last_sync_date->AdvancedSearch->SearchValue2 = @$filter["y_last_sync_date"];
		$this->last_sync_date->AdvancedSearch->SearchOperator2 = @$filter["w_last_sync_date"];
		$this->last_sync_date->AdvancedSearch->save();

		// Field street_suffix
		$this->street_suffix->AdvancedSearch->SearchValue = @$filter["x_street_suffix"];
		$this->street_suffix->AdvancedSearch->SearchOperator = @$filter["z_street_suffix"];
		$this->street_suffix->AdvancedSearch->SearchCondition = @$filter["v_street_suffix"];
		$this->street_suffix->AdvancedSearch->SearchValue2 = @$filter["y_street_suffix"];
		$this->street_suffix->AdvancedSearch->SearchOperator2 = @$filter["w_street_suffix"];
		$this->street_suffix->AdvancedSearch->save();

		// Field energy_tag
		$this->energy_tag->AdvancedSearch->SearchValue = @$filter["x_energy_tag"];
		$this->energy_tag->AdvancedSearch->SearchOperator = @$filter["z_energy_tag"];
		$this->energy_tag->AdvancedSearch->SearchCondition = @$filter["v_energy_tag"];
		$this->energy_tag->AdvancedSearch->SearchValue2 = @$filter["y_energy_tag"];
		$this->energy_tag->AdvancedSearch->SearchOperator2 = @$filter["w_energy_tag"];
		$this->energy_tag->AdvancedSearch->save();

		// Field field_3006
		$this->field_3006->AdvancedSearch->SearchValue = @$filter["x_field_3006"];
		$this->field_3006->AdvancedSearch->SearchOperator = @$filter["z_field_3006"];
		$this->field_3006->AdvancedSearch->SearchCondition = @$filter["v_field_3006"];
		$this->field_3006->AdvancedSearch->SearchValue2 = @$filter["y_field_3006"];
		$this->field_3006->AdvancedSearch->SearchOperator2 = @$filter["w_field_3006"];
		$this->field_3006->AdvancedSearch->save();

		// Field field_3007
		$this->field_3007->AdvancedSearch->SearchValue = @$filter["x_field_3007"];
		$this->field_3007->AdvancedSearch->SearchOperator = @$filter["z_field_3007"];
		$this->field_3007->AdvancedSearch->SearchCondition = @$filter["v_field_3007"];
		$this->field_3007->AdvancedSearch->SearchValue2 = @$filter["y_field_3007"];
		$this->field_3007->AdvancedSearch->SearchOperator2 = @$filter["w_field_3007"];
		$this->field_3007->AdvancedSearch->save();

		// Field field_3008
		$this->field_3008->AdvancedSearch->SearchValue = @$filter["x_field_3008"];
		$this->field_3008->AdvancedSearch->SearchOperator = @$filter["z_field_3008"];
		$this->field_3008->AdvancedSearch->SearchCondition = @$filter["v_field_3008"];
		$this->field_3008->AdvancedSearch->SearchValue2 = @$filter["y_field_3008"];
		$this->field_3008->AdvancedSearch->SearchOperator2 = @$filter["w_field_3008"];
		$this->field_3008->AdvancedSearch->save();

		// Field importer_structure_id
		$this->importer_structure_id->AdvancedSearch->SearchValue = @$filter["x_importer_structure_id"];
		$this->importer_structure_id->AdvancedSearch->SearchOperator = @$filter["z_importer_structure_id"];
		$this->importer_structure_id->AdvancedSearch->SearchCondition = @$filter["v_importer_structure_id"];
		$this->importer_structure_id->AdvancedSearch->SearchValue2 = @$filter["y_importer_structure_id"];
		$this->importer_structure_id->AdvancedSearch->SearchOperator2 = @$filter["w_importer_structure_id"];
		$this->importer_structure_id->AdvancedSearch->save();

		// Field importer_params
		$this->importer_params->AdvancedSearch->SearchValue = @$filter["x_importer_params"];
		$this->importer_params->AdvancedSearch->SearchOperator = @$filter["z_importer_params"];
		$this->importer_params->AdvancedSearch->SearchCondition = @$filter["v_importer_params"];
		$this->importer_params->AdvancedSearch->SearchValue2 = @$filter["y_importer_params"];
		$this->importer_params->AdvancedSearch->SearchOperator2 = @$filter["w_importer_params"];
		$this->importer_params->AdvancedSearch->save();

		// Field field_3009
		$this->field_3009->AdvancedSearch->SearchValue = @$filter["x_field_3009"];
		$this->field_3009->AdvancedSearch->SearchOperator = @$filter["z_field_3009"];
		$this->field_3009->AdvancedSearch->SearchCondition = @$filter["v_field_3009"];
		$this->field_3009->AdvancedSearch->SearchValue2 = @$filter["y_field_3009"];
		$this->field_3009->AdvancedSearch->SearchOperator2 = @$filter["w_field_3009"];
		$this->field_3009->AdvancedSearch->save();

		// Field field_3010
		$this->field_3010->AdvancedSearch->SearchValue = @$filter["x_field_3010"];
		$this->field_3010->AdvancedSearch->SearchOperator = @$filter["z_field_3010"];
		$this->field_3010->AdvancedSearch->SearchCondition = @$filter["v_field_3010"];
		$this->field_3010->AdvancedSearch->SearchValue2 = @$filter["y_field_3010"];
		$this->field_3010->AdvancedSearch->SearchOperator2 = @$filter["w_field_3010"];
		$this->field_3010->AdvancedSearch->save();

		// Field field_3012
		$this->field_3012->AdvancedSearch->SearchValue = @$filter["x_field_3012"];
		$this->field_3012->AdvancedSearch->SearchOperator = @$filter["z_field_3012"];
		$this->field_3012->AdvancedSearch->SearchCondition = @$filter["v_field_3012"];
		$this->field_3012->AdvancedSearch->SearchValue2 = @$filter["y_field_3012"];
		$this->field_3012->AdvancedSearch->SearchOperator2 = @$filter["w_field_3012"];
		$this->field_3012->AdvancedSearch->save();

		// Field rendered_en_us
		$this->rendered_en_us->AdvancedSearch->SearchValue = @$filter["x_rendered_en_us"];
		$this->rendered_en_us->AdvancedSearch->SearchOperator = @$filter["z_rendered_en_us"];
		$this->rendered_en_us->AdvancedSearch->SearchCondition = @$filter["v_rendered_en_us"];
		$this->rendered_en_us->AdvancedSearch->SearchValue2 = @$filter["y_rendered_en_us"];
		$this->rendered_en_us->AdvancedSearch->SearchOperator2 = @$filter["w_rendered_en_us"];
		$this->rendered_en_us->AdvancedSearch->save();

		// Field textsearch_en_us
		$this->textsearch_en_us->AdvancedSearch->SearchValue = @$filter["x_textsearch_en_us"];
		$this->textsearch_en_us->AdvancedSearch->SearchOperator = @$filter["z_textsearch_en_us"];
		$this->textsearch_en_us->AdvancedSearch->SearchCondition = @$filter["v_textsearch_en_us"];
		$this->textsearch_en_us->AdvancedSearch->SearchValue2 = @$filter["y_textsearch_en_us"];
		$this->textsearch_en_us->AdvancedSearch->SearchOperator2 = @$filter["w_textsearch_en_us"];
		$this->textsearch_en_us->AdvancedSearch->save();

		// Field rendered_fr_fr
		$this->rendered_fr_fr->AdvancedSearch->SearchValue = @$filter["x_rendered_fr_fr"];
		$this->rendered_fr_fr->AdvancedSearch->SearchOperator = @$filter["z_rendered_fr_fr"];
		$this->rendered_fr_fr->AdvancedSearch->SearchCondition = @$filter["v_rendered_fr_fr"];
		$this->rendered_fr_fr->AdvancedSearch->SearchValue2 = @$filter["y_rendered_fr_fr"];
		$this->rendered_fr_fr->AdvancedSearch->SearchOperator2 = @$filter["w_rendered_fr_fr"];
		$this->rendered_fr_fr->AdvancedSearch->save();

		// Field textsearch_fr_fr
		$this->textsearch_fr_fr->AdvancedSearch->SearchValue = @$filter["x_textsearch_fr_fr"];
		$this->textsearch_fr_fr->AdvancedSearch->SearchOperator = @$filter["z_textsearch_fr_fr"];
		$this->textsearch_fr_fr->AdvancedSearch->SearchCondition = @$filter["v_textsearch_fr_fr"];
		$this->textsearch_fr_fr->AdvancedSearch->SearchValue2 = @$filter["y_textsearch_fr_fr"];
		$this->textsearch_fr_fr->AdvancedSearch->SearchOperator2 = @$filter["w_textsearch_fr_fr"];
		$this->textsearch_fr_fr->AdvancedSearch->save();

		// Field field_3013
		$this->field_3013->AdvancedSearch->SearchValue = @$filter["x_field_3013"];
		$this->field_3013->AdvancedSearch->SearchOperator = @$filter["z_field_3013"];
		$this->field_3013->AdvancedSearch->SearchCondition = @$filter["v_field_3013"];
		$this->field_3013->AdvancedSearch->SearchValue2 = @$filter["y_field_3013"];
		$this->field_3013->AdvancedSearch->SearchOperator2 = @$filter["w_field_3013"];
		$this->field_3013->AdvancedSearch->save();

		// Field field_3014
		$this->field_3014->AdvancedSearch->SearchValue = @$filter["x_field_3014"];
		$this->field_3014->AdvancedSearch->SearchOperator = @$filter["z_field_3014"];
		$this->field_3014->AdvancedSearch->SearchCondition = @$filter["v_field_3014"];
		$this->field_3014->AdvancedSearch->SearchValue2 = @$filter["y_field_3014"];
		$this->field_3014->AdvancedSearch->SearchOperator2 = @$filter["w_field_3014"];
		$this->field_3014->AdvancedSearch->save();

		// Field f_3014_options
		$this->f_3014_options->AdvancedSearch->SearchValue = @$filter["x_f_3014_options"];
		$this->f_3014_options->AdvancedSearch->SearchOperator = @$filter["z_f_3014_options"];
		$this->f_3014_options->AdvancedSearch->SearchCondition = @$filter["v_f_3014_options"];
		$this->f_3014_options->AdvancedSearch->SearchValue2 = @$filter["y_f_3014_options"];
		$this->f_3014_options->AdvancedSearch->SearchOperator2 = @$filter["w_f_3014_options"];
		$this->f_3014_options->AdvancedSearch->save();

		// Field f_3014
		$this->f_3014->AdvancedSearch->SearchValue = @$filter["x_f_3014"];
		$this->f_3014->AdvancedSearch->SearchOperator = @$filter["z_f_3014"];
		$this->f_3014->AdvancedSearch->SearchCondition = @$filter["v_f_3014"];
		$this->f_3014->AdvancedSearch->SearchValue2 = @$filter["y_f_3014"];
		$this->f_3014->AdvancedSearch->SearchOperator2 = @$filter["w_f_3014"];
		$this->f_3014->AdvancedSearch->save();

		// Field field_3015
		$this->field_3015->AdvancedSearch->SearchValue = @$filter["x_field_3015"];
		$this->field_3015->AdvancedSearch->SearchOperator = @$filter["z_field_3015"];
		$this->field_3015->AdvancedSearch->SearchCondition = @$filter["v_field_3015"];
		$this->field_3015->AdvancedSearch->SearchValue2 = @$filter["y_field_3015"];
		$this->field_3015->AdvancedSearch->SearchOperator2 = @$filter["w_field_3015"];
		$this->field_3015->AdvancedSearch->save();

		// Field field_3016
		$this->field_3016->AdvancedSearch->SearchValue = @$filter["x_field_3016"];
		$this->field_3016->AdvancedSearch->SearchOperator = @$filter["z_field_3016"];
		$this->field_3016->AdvancedSearch->SearchCondition = @$filter["v_field_3016"];
		$this->field_3016->AdvancedSearch->SearchValue2 = @$filter["y_field_3016"];
		$this->field_3016->AdvancedSearch->SearchOperator2 = @$filter["w_field_3016"];
		$this->field_3016->AdvancedSearch->save();

		// Field field_3017
		$this->field_3017->AdvancedSearch->SearchValue = @$filter["x_field_3017"];
		$this->field_3017->AdvancedSearch->SearchOperator = @$filter["z_field_3017"];
		$this->field_3017->AdvancedSearch->SearchCondition = @$filter["v_field_3017"];
		$this->field_3017->AdvancedSearch->SearchValue2 = @$filter["y_field_3017"];
		$this->field_3017->AdvancedSearch->SearchOperator2 = @$filter["w_field_3017"];
		$this->field_3017->AdvancedSearch->save();

		// Field f_3018_options
		$this->f_3018_options->AdvancedSearch->SearchValue = @$filter["x_f_3018_options"];
		$this->f_3018_options->AdvancedSearch->SearchOperator = @$filter["z_f_3018_options"];
		$this->f_3018_options->AdvancedSearch->SearchCondition = @$filter["v_f_3018_options"];
		$this->f_3018_options->AdvancedSearch->SearchValue2 = @$filter["y_f_3018_options"];
		$this->f_3018_options->AdvancedSearch->SearchOperator2 = @$filter["w_f_3018_options"];
		$this->f_3018_options->AdvancedSearch->save();

		// Field f_3018
		$this->f_3018->AdvancedSearch->SearchValue = @$filter["x_f_3018"];
		$this->f_3018->AdvancedSearch->SearchOperator = @$filter["z_f_3018"];
		$this->f_3018->AdvancedSearch->SearchCondition = @$filter["v_f_3018"];
		$this->f_3018->AdvancedSearch->SearchValue2 = @$filter["y_f_3018"];
		$this->f_3018->AdvancedSearch->SearchOperator2 = @$filter["w_f_3018"];
		$this->f_3018->AdvancedSearch->save();

		// Field f_3019_options
		$this->f_3019_options->AdvancedSearch->SearchValue = @$filter["x_f_3019_options"];
		$this->f_3019_options->AdvancedSearch->SearchOperator = @$filter["z_f_3019_options"];
		$this->f_3019_options->AdvancedSearch->SearchCondition = @$filter["v_f_3019_options"];
		$this->f_3019_options->AdvancedSearch->SearchValue2 = @$filter["y_f_3019_options"];
		$this->f_3019_options->AdvancedSearch->SearchOperator2 = @$filter["w_f_3019_options"];
		$this->f_3019_options->AdvancedSearch->save();

		// Field f_3019
		$this->f_3019->AdvancedSearch->SearchValue = @$filter["x_f_3019"];
		$this->f_3019->AdvancedSearch->SearchOperator = @$filter["z_f_3019"];
		$this->f_3019->AdvancedSearch->SearchCondition = @$filter["v_f_3019"];
		$this->f_3019->AdvancedSearch->SearchValue2 = @$filter["y_f_3019"];
		$this->f_3019->AdvancedSearch->SearchOperator2 = @$filter["w_f_3019"];
		$this->f_3019->AdvancedSearch->save();

		// Field f_3020_options
		$this->f_3020_options->AdvancedSearch->SearchValue = @$filter["x_f_3020_options"];
		$this->f_3020_options->AdvancedSearch->SearchOperator = @$filter["z_f_3020_options"];
		$this->f_3020_options->AdvancedSearch->SearchCondition = @$filter["v_f_3020_options"];
		$this->f_3020_options->AdvancedSearch->SearchValue2 = @$filter["y_f_3020_options"];
		$this->f_3020_options->AdvancedSearch->SearchOperator2 = @$filter["w_f_3020_options"];
		$this->f_3020_options->AdvancedSearch->save();

		// Field f_3020
		$this->f_3020->AdvancedSearch->SearchValue = @$filter["x_f_3020"];
		$this->f_3020->AdvancedSearch->SearchOperator = @$filter["z_f_3020"];
		$this->f_3020->AdvancedSearch->SearchCondition = @$filter["v_f_3020"];
		$this->f_3020->AdvancedSearch->SearchValue2 = @$filter["y_f_3020"];
		$this->f_3020->AdvancedSearch->SearchOperator2 = @$filter["w_f_3020"];
		$this->f_3020->AdvancedSearch->save();

		// Field f_3021_options
		$this->f_3021_options->AdvancedSearch->SearchValue = @$filter["x_f_3021_options"];
		$this->f_3021_options->AdvancedSearch->SearchOperator = @$filter["z_f_3021_options"];
		$this->f_3021_options->AdvancedSearch->SearchCondition = @$filter["v_f_3021_options"];
		$this->f_3021_options->AdvancedSearch->SearchValue2 = @$filter["y_f_3021_options"];
		$this->f_3021_options->AdvancedSearch->SearchOperator2 = @$filter["w_f_3021_options"];
		$this->f_3021_options->AdvancedSearch->save();

		// Field f_3021
		$this->f_3021->AdvancedSearch->SearchValue = @$filter["x_f_3021"];
		$this->f_3021->AdvancedSearch->SearchOperator = @$filter["z_f_3021"];
		$this->f_3021->AdvancedSearch->SearchCondition = @$filter["v_f_3021"];
		$this->f_3021->AdvancedSearch->SearchValue2 = @$filter["y_f_3021"];
		$this->f_3021->AdvancedSearch->SearchOperator2 = @$filter["w_f_3021"];
		$this->f_3021->AdvancedSearch->save();

		// Field f_3022_options
		$this->f_3022_options->AdvancedSearch->SearchValue = @$filter["x_f_3022_options"];
		$this->f_3022_options->AdvancedSearch->SearchOperator = @$filter["z_f_3022_options"];
		$this->f_3022_options->AdvancedSearch->SearchCondition = @$filter["v_f_3022_options"];
		$this->f_3022_options->AdvancedSearch->SearchValue2 = @$filter["y_f_3022_options"];
		$this->f_3022_options->AdvancedSearch->SearchOperator2 = @$filter["w_f_3022_options"];
		$this->f_3022_options->AdvancedSearch->save();

		// Field f_3022
		$this->f_3022->AdvancedSearch->SearchValue = @$filter["x_f_3022"];
		$this->f_3022->AdvancedSearch->SearchOperator = @$filter["z_f_3022"];
		$this->f_3022->AdvancedSearch->SearchCondition = @$filter["v_f_3022"];
		$this->f_3022->AdvancedSearch->SearchValue2 = @$filter["y_f_3022"];
		$this->f_3022->AdvancedSearch->SearchOperator2 = @$filter["w_f_3022"];
		$this->f_3022->AdvancedSearch->save();

		// Field f_3023_options
		$this->f_3023_options->AdvancedSearch->SearchValue = @$filter["x_f_3023_options"];
		$this->f_3023_options->AdvancedSearch->SearchOperator = @$filter["z_f_3023_options"];
		$this->f_3023_options->AdvancedSearch->SearchCondition = @$filter["v_f_3023_options"];
		$this->f_3023_options->AdvancedSearch->SearchValue2 = @$filter["y_f_3023_options"];
		$this->f_3023_options->AdvancedSearch->SearchOperator2 = @$filter["w_f_3023_options"];
		$this->f_3023_options->AdvancedSearch->save();

		// Field f_3023
		$this->f_3023->AdvancedSearch->SearchValue = @$filter["x_f_3023"];
		$this->f_3023->AdvancedSearch->SearchOperator = @$filter["z_f_3023"];
		$this->f_3023->AdvancedSearch->SearchCondition = @$filter["v_f_3023"];
		$this->f_3023->AdvancedSearch->SearchValue2 = @$filter["y_f_3023"];
		$this->f_3023->AdvancedSearch->SearchOperator2 = @$filter["w_f_3023"];
		$this->f_3023->AdvancedSearch->save();

		// Field f_3024_options
		$this->f_3024_options->AdvancedSearch->SearchValue = @$filter["x_f_3024_options"];
		$this->f_3024_options->AdvancedSearch->SearchOperator = @$filter["z_f_3024_options"];
		$this->f_3024_options->AdvancedSearch->SearchCondition = @$filter["v_f_3024_options"];
		$this->f_3024_options->AdvancedSearch->SearchValue2 = @$filter["y_f_3024_options"];
		$this->f_3024_options->AdvancedSearch->SearchOperator2 = @$filter["w_f_3024_options"];
		$this->f_3024_options->AdvancedSearch->save();

		// Field f_3024
		$this->f_3024->AdvancedSearch->SearchValue = @$filter["x_f_3024"];
		$this->f_3024->AdvancedSearch->SearchOperator = @$filter["z_f_3024"];
		$this->f_3024->AdvancedSearch->SearchCondition = @$filter["v_f_3024"];
		$this->f_3024->AdvancedSearch->SearchValue2 = @$filter["y_f_3024"];
		$this->f_3024->AdvancedSearch->SearchOperator2 = @$filter["w_f_3024"];
		$this->f_3024->AdvancedSearch->save();

		// Field f_3025_options
		$this->f_3025_options->AdvancedSearch->SearchValue = @$filter["x_f_3025_options"];
		$this->f_3025_options->AdvancedSearch->SearchOperator = @$filter["z_f_3025_options"];
		$this->f_3025_options->AdvancedSearch->SearchCondition = @$filter["v_f_3025_options"];
		$this->f_3025_options->AdvancedSearch->SearchValue2 = @$filter["y_f_3025_options"];
		$this->f_3025_options->AdvancedSearch->SearchOperator2 = @$filter["w_f_3025_options"];
		$this->f_3025_options->AdvancedSearch->save();

		// Field f_3025
		$this->f_3025->AdvancedSearch->SearchValue = @$filter["x_f_3025"];
		$this->f_3025->AdvancedSearch->SearchOperator = @$filter["z_f_3025"];
		$this->f_3025->AdvancedSearch->SearchCondition = @$filter["v_f_3025"];
		$this->f_3025->AdvancedSearch->SearchValue2 = @$filter["y_f_3025"];
		$this->f_3025->AdvancedSearch->SearchOperator2 = @$filter["w_f_3025"];
		$this->f_3025->AdvancedSearch->save();

		// Field f_3026_options
		$this->f_3026_options->AdvancedSearch->SearchValue = @$filter["x_f_3026_options"];
		$this->f_3026_options->AdvancedSearch->SearchOperator = @$filter["z_f_3026_options"];
		$this->f_3026_options->AdvancedSearch->SearchCondition = @$filter["v_f_3026_options"];
		$this->f_3026_options->AdvancedSearch->SearchValue2 = @$filter["y_f_3026_options"];
		$this->f_3026_options->AdvancedSearch->SearchOperator2 = @$filter["w_f_3026_options"];
		$this->f_3026_options->AdvancedSearch->save();

		// Field f_3026
		$this->f_3026->AdvancedSearch->SearchValue = @$filter["x_f_3026"];
		$this->f_3026->AdvancedSearch->SearchOperator = @$filter["z_f_3026"];
		$this->f_3026->AdvancedSearch->SearchCondition = @$filter["v_f_3026"];
		$this->f_3026->AdvancedSearch->SearchValue2 = @$filter["y_f_3026"];
		$this->f_3026->AdvancedSearch->SearchOperator2 = @$filter["w_f_3026"];
		$this->f_3026->AdvancedSearch->save();

		// Field f_3027_options
		$this->f_3027_options->AdvancedSearch->SearchValue = @$filter["x_f_3027_options"];
		$this->f_3027_options->AdvancedSearch->SearchOperator = @$filter["z_f_3027_options"];
		$this->f_3027_options->AdvancedSearch->SearchCondition = @$filter["v_f_3027_options"];
		$this->f_3027_options->AdvancedSearch->SearchValue2 = @$filter["y_f_3027_options"];
		$this->f_3027_options->AdvancedSearch->SearchOperator2 = @$filter["w_f_3027_options"];
		$this->f_3027_options->AdvancedSearch->save();

		// Field f_3027
		$this->f_3027->AdvancedSearch->SearchValue = @$filter["x_f_3027"];
		$this->f_3027->AdvancedSearch->SearchOperator = @$filter["z_f_3027"];
		$this->f_3027->AdvancedSearch->SearchCondition = @$filter["v_f_3027"];
		$this->f_3027->AdvancedSearch->SearchValue2 = @$filter["y_f_3027"];
		$this->f_3027->AdvancedSearch->SearchOperator2 = @$filter["w_f_3027"];
		$this->f_3027->AdvancedSearch->save();

		// Field f_3028_options
		$this->f_3028_options->AdvancedSearch->SearchValue = @$filter["x_f_3028_options"];
		$this->f_3028_options->AdvancedSearch->SearchOperator = @$filter["z_f_3028_options"];
		$this->f_3028_options->AdvancedSearch->SearchCondition = @$filter["v_f_3028_options"];
		$this->f_3028_options->AdvancedSearch->SearchValue2 = @$filter["y_f_3028_options"];
		$this->f_3028_options->AdvancedSearch->SearchOperator2 = @$filter["w_f_3028_options"];
		$this->f_3028_options->AdvancedSearch->save();

		// Field f_3028
		$this->f_3028->AdvancedSearch->SearchValue = @$filter["x_f_3028"];
		$this->f_3028->AdvancedSearch->SearchOperator = @$filter["z_f_3028"];
		$this->f_3028->AdvancedSearch->SearchCondition = @$filter["v_f_3028"];
		$this->f_3028->AdvancedSearch->SearchValue2 = @$filter["y_f_3028"];
		$this->f_3028->AdvancedSearch->SearchOperator2 = @$filter["w_f_3028"];
		$this->f_3028->AdvancedSearch->save();

		// Field f_3029_options
		$this->f_3029_options->AdvancedSearch->SearchValue = @$filter["x_f_3029_options"];
		$this->f_3029_options->AdvancedSearch->SearchOperator = @$filter["z_f_3029_options"];
		$this->f_3029_options->AdvancedSearch->SearchCondition = @$filter["v_f_3029_options"];
		$this->f_3029_options->AdvancedSearch->SearchValue2 = @$filter["y_f_3029_options"];
		$this->f_3029_options->AdvancedSearch->SearchOperator2 = @$filter["w_f_3029_options"];
		$this->f_3029_options->AdvancedSearch->save();

		// Field f_3029
		$this->f_3029->AdvancedSearch->SearchValue = @$filter["x_f_3029"];
		$this->f_3029->AdvancedSearch->SearchOperator = @$filter["z_f_3029"];
		$this->f_3029->AdvancedSearch->SearchCondition = @$filter["v_f_3029"];
		$this->f_3029->AdvancedSearch->SearchValue2 = @$filter["y_f_3029"];
		$this->f_3029->AdvancedSearch->SearchOperator2 = @$filter["w_f_3029"];
		$this->f_3029->AdvancedSearch->save();

		// Field f_3031_options
		$this->f_3031_options->AdvancedSearch->SearchValue = @$filter["x_f_3031_options"];
		$this->f_3031_options->AdvancedSearch->SearchOperator = @$filter["z_f_3031_options"];
		$this->f_3031_options->AdvancedSearch->SearchCondition = @$filter["v_f_3031_options"];
		$this->f_3031_options->AdvancedSearch->SearchValue2 = @$filter["y_f_3031_options"];
		$this->f_3031_options->AdvancedSearch->SearchOperator2 = @$filter["w_f_3031_options"];
		$this->f_3031_options->AdvancedSearch->save();

		// Field f_3031
		$this->f_3031->AdvancedSearch->SearchValue = @$filter["x_f_3031"];
		$this->f_3031->AdvancedSearch->SearchOperator = @$filter["z_f_3031"];
		$this->f_3031->AdvancedSearch->SearchCondition = @$filter["v_f_3031"];
		$this->f_3031->AdvancedSearch->SearchValue2 = @$filter["y_f_3031"];
		$this->f_3031->AdvancedSearch->SearchOperator2 = @$filter["w_f_3031"];
		$this->f_3031->AdvancedSearch->save();

		// Field f_3032_options
		$this->f_3032_options->AdvancedSearch->SearchValue = @$filter["x_f_3032_options"];
		$this->f_3032_options->AdvancedSearch->SearchOperator = @$filter["z_f_3032_options"];
		$this->f_3032_options->AdvancedSearch->SearchCondition = @$filter["v_f_3032_options"];
		$this->f_3032_options->AdvancedSearch->SearchValue2 = @$filter["y_f_3032_options"];
		$this->f_3032_options->AdvancedSearch->SearchOperator2 = @$filter["w_f_3032_options"];
		$this->f_3032_options->AdvancedSearch->save();

		// Field f_3032
		$this->f_3032->AdvancedSearch->SearchValue = @$filter["x_f_3032"];
		$this->f_3032->AdvancedSearch->SearchOperator = @$filter["z_f_3032"];
		$this->f_3032->AdvancedSearch->SearchCondition = @$filter["v_f_3032"];
		$this->f_3032->AdvancedSearch->SearchValue2 = @$filter["y_f_3032"];
		$this->f_3032->AdvancedSearch->SearchOperator2 = @$filter["w_f_3032"];
		$this->f_3032->AdvancedSearch->save();

		// Field f_3033_options
		$this->f_3033_options->AdvancedSearch->SearchValue = @$filter["x_f_3033_options"];
		$this->f_3033_options->AdvancedSearch->SearchOperator = @$filter["z_f_3033_options"];
		$this->f_3033_options->AdvancedSearch->SearchCondition = @$filter["v_f_3033_options"];
		$this->f_3033_options->AdvancedSearch->SearchValue2 = @$filter["y_f_3033_options"];
		$this->f_3033_options->AdvancedSearch->SearchOperator2 = @$filter["w_f_3033_options"];
		$this->f_3033_options->AdvancedSearch->save();

		// Field f_3033
		$this->f_3033->AdvancedSearch->SearchValue = @$filter["x_f_3033"];
		$this->f_3033->AdvancedSearch->SearchOperator = @$filter["z_f_3033"];
		$this->f_3033->AdvancedSearch->SearchCondition = @$filter["v_f_3033"];
		$this->f_3033->AdvancedSearch->SearchValue2 = @$filter["y_f_3033"];
		$this->f_3033->AdvancedSearch->SearchOperator2 = @$filter["w_f_3033"];
		$this->f_3033->AdvancedSearch->save();

		// Field f_3034_options
		$this->f_3034_options->AdvancedSearch->SearchValue = @$filter["x_f_3034_options"];
		$this->f_3034_options->AdvancedSearch->SearchOperator = @$filter["z_f_3034_options"];
		$this->f_3034_options->AdvancedSearch->SearchCondition = @$filter["v_f_3034_options"];
		$this->f_3034_options->AdvancedSearch->SearchValue2 = @$filter["y_f_3034_options"];
		$this->f_3034_options->AdvancedSearch->SearchOperator2 = @$filter["w_f_3034_options"];
		$this->f_3034_options->AdvancedSearch->save();

		// Field f_3034
		$this->f_3034->AdvancedSearch->SearchValue = @$filter["x_f_3034"];
		$this->f_3034->AdvancedSearch->SearchOperator = @$filter["z_f_3034"];
		$this->f_3034->AdvancedSearch->SearchCondition = @$filter["v_f_3034"];
		$this->f_3034->AdvancedSearch->SearchValue2 = @$filter["y_f_3034"];
		$this->f_3034->AdvancedSearch->SearchOperator2 = @$filter["w_f_3034"];
		$this->f_3034->AdvancedSearch->save();

		// Field f_3035_options
		$this->f_3035_options->AdvancedSearch->SearchValue = @$filter["x_f_3035_options"];
		$this->f_3035_options->AdvancedSearch->SearchOperator = @$filter["z_f_3035_options"];
		$this->f_3035_options->AdvancedSearch->SearchCondition = @$filter["v_f_3035_options"];
		$this->f_3035_options->AdvancedSearch->SearchValue2 = @$filter["y_f_3035_options"];
		$this->f_3035_options->AdvancedSearch->SearchOperator2 = @$filter["w_f_3035_options"];
		$this->f_3035_options->AdvancedSearch->save();

		// Field f_3035
		$this->f_3035->AdvancedSearch->SearchValue = @$filter["x_f_3035"];
		$this->f_3035->AdvancedSearch->SearchOperator = @$filter["z_f_3035"];
		$this->f_3035->AdvancedSearch->SearchCondition = @$filter["v_f_3035"];
		$this->f_3035->AdvancedSearch->SearchValue2 = @$filter["y_f_3035"];
		$this->f_3035->AdvancedSearch->SearchOperator2 = @$filter["w_f_3035"];
		$this->f_3035->AdvancedSearch->save();

		// Field f_3036_options
		$this->f_3036_options->AdvancedSearch->SearchValue = @$filter["x_f_3036_options"];
		$this->f_3036_options->AdvancedSearch->SearchOperator = @$filter["z_f_3036_options"];
		$this->f_3036_options->AdvancedSearch->SearchCondition = @$filter["v_f_3036_options"];
		$this->f_3036_options->AdvancedSearch->SearchValue2 = @$filter["y_f_3036_options"];
		$this->f_3036_options->AdvancedSearch->SearchOperator2 = @$filter["w_f_3036_options"];
		$this->f_3036_options->AdvancedSearch->save();

		// Field f_3036
		$this->f_3036->AdvancedSearch->SearchValue = @$filter["x_f_3036"];
		$this->f_3036->AdvancedSearch->SearchOperator = @$filter["z_f_3036"];
		$this->f_3036->AdvancedSearch->SearchCondition = @$filter["v_f_3036"];
		$this->f_3036->AdvancedSearch->SearchValue2 = @$filter["y_f_3036"];
		$this->f_3036->AdvancedSearch->SearchOperator2 = @$filter["w_f_3036"];
		$this->f_3036->AdvancedSearch->save();

		// Field f_3037_options
		$this->f_3037_options->AdvancedSearch->SearchValue = @$filter["x_f_3037_options"];
		$this->f_3037_options->AdvancedSearch->SearchOperator = @$filter["z_f_3037_options"];
		$this->f_3037_options->AdvancedSearch->SearchCondition = @$filter["v_f_3037_options"];
		$this->f_3037_options->AdvancedSearch->SearchValue2 = @$filter["y_f_3037_options"];
		$this->f_3037_options->AdvancedSearch->SearchOperator2 = @$filter["w_f_3037_options"];
		$this->f_3037_options->AdvancedSearch->save();

		// Field f_3037
		$this->f_3037->AdvancedSearch->SearchValue = @$filter["x_f_3037"];
		$this->f_3037->AdvancedSearch->SearchOperator = @$filter["z_f_3037"];
		$this->f_3037->AdvancedSearch->SearchCondition = @$filter["v_f_3037"];
		$this->f_3037->AdvancedSearch->SearchValue2 = @$filter["y_f_3037"];
		$this->f_3037->AdvancedSearch->SearchOperator2 = @$filter["w_f_3037"];
		$this->f_3037->AdvancedSearch->save();

		// Field f_3038_options
		$this->f_3038_options->AdvancedSearch->SearchValue = @$filter["x_f_3038_options"];
		$this->f_3038_options->AdvancedSearch->SearchOperator = @$filter["z_f_3038_options"];
		$this->f_3038_options->AdvancedSearch->SearchCondition = @$filter["v_f_3038_options"];
		$this->f_3038_options->AdvancedSearch->SearchValue2 = @$filter["y_f_3038_options"];
		$this->f_3038_options->AdvancedSearch->SearchOperator2 = @$filter["w_f_3038_options"];
		$this->f_3038_options->AdvancedSearch->save();

		// Field f_3038
		$this->f_3038->AdvancedSearch->SearchValue = @$filter["x_f_3038"];
		$this->f_3038->AdvancedSearch->SearchOperator = @$filter["z_f_3038"];
		$this->f_3038->AdvancedSearch->SearchCondition = @$filter["v_f_3038"];
		$this->f_3038->AdvancedSearch->SearchValue2 = @$filter["y_f_3038"];
		$this->f_3038->AdvancedSearch->SearchOperator2 = @$filter["w_f_3038"];
		$this->f_3038->AdvancedSearch->save();

		// Field f_3039_options
		$this->f_3039_options->AdvancedSearch->SearchValue = @$filter["x_f_3039_options"];
		$this->f_3039_options->AdvancedSearch->SearchOperator = @$filter["z_f_3039_options"];
		$this->f_3039_options->AdvancedSearch->SearchCondition = @$filter["v_f_3039_options"];
		$this->f_3039_options->AdvancedSearch->SearchValue2 = @$filter["y_f_3039_options"];
		$this->f_3039_options->AdvancedSearch->SearchOperator2 = @$filter["w_f_3039_options"];
		$this->f_3039_options->AdvancedSearch->save();

		// Field f_3039
		$this->f_3039->AdvancedSearch->SearchValue = @$filter["x_f_3039"];
		$this->f_3039->AdvancedSearch->SearchOperator = @$filter["z_f_3039"];
		$this->f_3039->AdvancedSearch->SearchCondition = @$filter["v_f_3039"];
		$this->f_3039->AdvancedSearch->SearchValue2 = @$filter["y_f_3039"];
		$this->f_3039->AdvancedSearch->SearchOperator2 = @$filter["w_f_3039"];
		$this->f_3039->AdvancedSearch->save();

		// Field f_3040_options
		$this->f_3040_options->AdvancedSearch->SearchValue = @$filter["x_f_3040_options"];
		$this->f_3040_options->AdvancedSearch->SearchOperator = @$filter["z_f_3040_options"];
		$this->f_3040_options->AdvancedSearch->SearchCondition = @$filter["v_f_3040_options"];
		$this->f_3040_options->AdvancedSearch->SearchValue2 = @$filter["y_f_3040_options"];
		$this->f_3040_options->AdvancedSearch->SearchOperator2 = @$filter["w_f_3040_options"];
		$this->f_3040_options->AdvancedSearch->save();

		// Field f_3040
		$this->f_3040->AdvancedSearch->SearchValue = @$filter["x_f_3040"];
		$this->f_3040->AdvancedSearch->SearchOperator = @$filter["z_f_3040"];
		$this->f_3040->AdvancedSearch->SearchCondition = @$filter["v_f_3040"];
		$this->f_3040->AdvancedSearch->SearchValue2 = @$filter["y_f_3040"];
		$this->f_3040->AdvancedSearch->SearchOperator2 = @$filter["w_f_3040"];
		$this->f_3040->AdvancedSearch->save();

		// Field f_3041_options
		$this->f_3041_options->AdvancedSearch->SearchValue = @$filter["x_f_3041_options"];
		$this->f_3041_options->AdvancedSearch->SearchOperator = @$filter["z_f_3041_options"];
		$this->f_3041_options->AdvancedSearch->SearchCondition = @$filter["v_f_3041_options"];
		$this->f_3041_options->AdvancedSearch->SearchValue2 = @$filter["y_f_3041_options"];
		$this->f_3041_options->AdvancedSearch->SearchOperator2 = @$filter["w_f_3041_options"];
		$this->f_3041_options->AdvancedSearch->save();

		// Field f_3041
		$this->f_3041->AdvancedSearch->SearchValue = @$filter["x_f_3041"];
		$this->f_3041->AdvancedSearch->SearchOperator = @$filter["z_f_3041"];
		$this->f_3041->AdvancedSearch->SearchCondition = @$filter["v_f_3041"];
		$this->f_3041->AdvancedSearch->SearchValue2 = @$filter["y_f_3041"];
		$this->f_3041->AdvancedSearch->SearchOperator2 = @$filter["w_f_3041"];
		$this->f_3041->AdvancedSearch->save();

		// Field f_3042_options
		$this->f_3042_options->AdvancedSearch->SearchValue = @$filter["x_f_3042_options"];
		$this->f_3042_options->AdvancedSearch->SearchOperator = @$filter["z_f_3042_options"];
		$this->f_3042_options->AdvancedSearch->SearchCondition = @$filter["v_f_3042_options"];
		$this->f_3042_options->AdvancedSearch->SearchValue2 = @$filter["y_f_3042_options"];
		$this->f_3042_options->AdvancedSearch->SearchOperator2 = @$filter["w_f_3042_options"];
		$this->f_3042_options->AdvancedSearch->save();

		// Field f_3042
		$this->f_3042->AdvancedSearch->SearchValue = @$filter["x_f_3042"];
		$this->f_3042->AdvancedSearch->SearchOperator = @$filter["z_f_3042"];
		$this->f_3042->AdvancedSearch->SearchCondition = @$filter["v_f_3042"];
		$this->f_3042->AdvancedSearch->SearchValue2 = @$filter["y_f_3042"];
		$this->f_3042->AdvancedSearch->SearchOperator2 = @$filter["w_f_3042"];
		$this->f_3042->AdvancedSearch->save();

		// Field f_3043_options
		$this->f_3043_options->AdvancedSearch->SearchValue = @$filter["x_f_3043_options"];
		$this->f_3043_options->AdvancedSearch->SearchOperator = @$filter["z_f_3043_options"];
		$this->f_3043_options->AdvancedSearch->SearchCondition = @$filter["v_f_3043_options"];
		$this->f_3043_options->AdvancedSearch->SearchValue2 = @$filter["y_f_3043_options"];
		$this->f_3043_options->AdvancedSearch->SearchOperator2 = @$filter["w_f_3043_options"];
		$this->f_3043_options->AdvancedSearch->save();

		// Field f_3043
		$this->f_3043->AdvancedSearch->SearchValue = @$filter["x_f_3043"];
		$this->f_3043->AdvancedSearch->SearchOperator = @$filter["z_f_3043"];
		$this->f_3043->AdvancedSearch->SearchCondition = @$filter["v_f_3043"];
		$this->f_3043->AdvancedSearch->SearchValue2 = @$filter["y_f_3043"];
		$this->f_3043->AdvancedSearch->SearchOperator2 = @$filter["w_f_3043"];
		$this->f_3043->AdvancedSearch->save();

		// Field f_3044_options
		$this->f_3044_options->AdvancedSearch->SearchValue = @$filter["x_f_3044_options"];
		$this->f_3044_options->AdvancedSearch->SearchOperator = @$filter["z_f_3044_options"];
		$this->f_3044_options->AdvancedSearch->SearchCondition = @$filter["v_f_3044_options"];
		$this->f_3044_options->AdvancedSearch->SearchValue2 = @$filter["y_f_3044_options"];
		$this->f_3044_options->AdvancedSearch->SearchOperator2 = @$filter["w_f_3044_options"];
		$this->f_3044_options->AdvancedSearch->save();

		// Field f_3044
		$this->f_3044->AdvancedSearch->SearchValue = @$filter["x_f_3044"];
		$this->f_3044->AdvancedSearch->SearchOperator = @$filter["z_f_3044"];
		$this->f_3044->AdvancedSearch->SearchCondition = @$filter["v_f_3044"];
		$this->f_3044->AdvancedSearch->SearchValue2 = @$filter["y_f_3044"];
		$this->f_3044->AdvancedSearch->SearchOperator2 = @$filter["w_f_3044"];
		$this->f_3044->AdvancedSearch->save();

		// Field n_3045
		$this->n_3045->AdvancedSearch->SearchValue = @$filter["x_n_3045"];
		$this->n_3045->AdvancedSearch->SearchOperator = @$filter["z_n_3045"];
		$this->n_3045->AdvancedSearch->SearchCondition = @$filter["v_n_3045"];
		$this->n_3045->AdvancedSearch->SearchValue2 = @$filter["y_n_3045"];
		$this->n_3045->AdvancedSearch->SearchOperator2 = @$filter["w_n_3045"];
		$this->n_3045->AdvancedSearch->save();

		// Field n_3045_distance
		$this->n_3045_distance->AdvancedSearch->SearchValue = @$filter["x_n_3045_distance"];
		$this->n_3045_distance->AdvancedSearch->SearchOperator = @$filter["z_n_3045_distance"];
		$this->n_3045_distance->AdvancedSearch->SearchCondition = @$filter["v_n_3045_distance"];
		$this->n_3045_distance->AdvancedSearch->SearchValue2 = @$filter["y_n_3045_distance"];
		$this->n_3045_distance->AdvancedSearch->SearchOperator2 = @$filter["w_n_3045_distance"];
		$this->n_3045_distance->AdvancedSearch->save();

		// Field n_3045_distance_by
		$this->n_3045_distance_by->AdvancedSearch->SearchValue = @$filter["x_n_3045_distance_by"];
		$this->n_3045_distance_by->AdvancedSearch->SearchOperator = @$filter["z_n_3045_distance_by"];
		$this->n_3045_distance_by->AdvancedSearch->SearchCondition = @$filter["v_n_3045_distance_by"];
		$this->n_3045_distance_by->AdvancedSearch->SearchValue2 = @$filter["y_n_3045_distance_by"];
		$this->n_3045_distance_by->AdvancedSearch->SearchOperator2 = @$filter["w_n_3045_distance_by"];
		$this->n_3045_distance_by->AdvancedSearch->save();

		// Field n_3046
		$this->n_3046->AdvancedSearch->SearchValue = @$filter["x_n_3046"];
		$this->n_3046->AdvancedSearch->SearchOperator = @$filter["z_n_3046"];
		$this->n_3046->AdvancedSearch->SearchCondition = @$filter["v_n_3046"];
		$this->n_3046->AdvancedSearch->SearchValue2 = @$filter["y_n_3046"];
		$this->n_3046->AdvancedSearch->SearchOperator2 = @$filter["w_n_3046"];
		$this->n_3046->AdvancedSearch->save();

		// Field n_3046_distance
		$this->n_3046_distance->AdvancedSearch->SearchValue = @$filter["x_n_3046_distance"];
		$this->n_3046_distance->AdvancedSearch->SearchOperator = @$filter["z_n_3046_distance"];
		$this->n_3046_distance->AdvancedSearch->SearchCondition = @$filter["v_n_3046_distance"];
		$this->n_3046_distance->AdvancedSearch->SearchValue2 = @$filter["y_n_3046_distance"];
		$this->n_3046_distance->AdvancedSearch->SearchOperator2 = @$filter["w_n_3046_distance"];
		$this->n_3046_distance->AdvancedSearch->save();

		// Field n_3046_distance_by
		$this->n_3046_distance_by->AdvancedSearch->SearchValue = @$filter["x_n_3046_distance_by"];
		$this->n_3046_distance_by->AdvancedSearch->SearchOperator = @$filter["z_n_3046_distance_by"];
		$this->n_3046_distance_by->AdvancedSearch->SearchCondition = @$filter["v_n_3046_distance_by"];
		$this->n_3046_distance_by->AdvancedSearch->SearchValue2 = @$filter["y_n_3046_distance_by"];
		$this->n_3046_distance_by->AdvancedSearch->SearchOperator2 = @$filter["w_n_3046_distance_by"];
		$this->n_3046_distance_by->AdvancedSearch->save();

		// Field n_3047
		$this->n_3047->AdvancedSearch->SearchValue = @$filter["x_n_3047"];
		$this->n_3047->AdvancedSearch->SearchOperator = @$filter["z_n_3047"];
		$this->n_3047->AdvancedSearch->SearchCondition = @$filter["v_n_3047"];
		$this->n_3047->AdvancedSearch->SearchValue2 = @$filter["y_n_3047"];
		$this->n_3047->AdvancedSearch->SearchOperator2 = @$filter["w_n_3047"];
		$this->n_3047->AdvancedSearch->save();

		// Field n_3047_distance
		$this->n_3047_distance->AdvancedSearch->SearchValue = @$filter["x_n_3047_distance"];
		$this->n_3047_distance->AdvancedSearch->SearchOperator = @$filter["z_n_3047_distance"];
		$this->n_3047_distance->AdvancedSearch->SearchCondition = @$filter["v_n_3047_distance"];
		$this->n_3047_distance->AdvancedSearch->SearchValue2 = @$filter["y_n_3047_distance"];
		$this->n_3047_distance->AdvancedSearch->SearchOperator2 = @$filter["w_n_3047_distance"];
		$this->n_3047_distance->AdvancedSearch->save();

		// Field n_3047_distance_by
		$this->n_3047_distance_by->AdvancedSearch->SearchValue = @$filter["x_n_3047_distance_by"];
		$this->n_3047_distance_by->AdvancedSearch->SearchOperator = @$filter["z_n_3047_distance_by"];
		$this->n_3047_distance_by->AdvancedSearch->SearchCondition = @$filter["v_n_3047_distance_by"];
		$this->n_3047_distance_by->AdvancedSearch->SearchValue2 = @$filter["y_n_3047_distance_by"];
		$this->n_3047_distance_by->AdvancedSearch->SearchOperator2 = @$filter["w_n_3047_distance_by"];
		$this->n_3047_distance_by->AdvancedSearch->save();

		// Field n_3048
		$this->n_3048->AdvancedSearch->SearchValue = @$filter["x_n_3048"];
		$this->n_3048->AdvancedSearch->SearchOperator = @$filter["z_n_3048"];
		$this->n_3048->AdvancedSearch->SearchCondition = @$filter["v_n_3048"];
		$this->n_3048->AdvancedSearch->SearchValue2 = @$filter["y_n_3048"];
		$this->n_3048->AdvancedSearch->SearchOperator2 = @$filter["w_n_3048"];
		$this->n_3048->AdvancedSearch->save();

		// Field n_3048_distance
		$this->n_3048_distance->AdvancedSearch->SearchValue = @$filter["x_n_3048_distance"];
		$this->n_3048_distance->AdvancedSearch->SearchOperator = @$filter["z_n_3048_distance"];
		$this->n_3048_distance->AdvancedSearch->SearchCondition = @$filter["v_n_3048_distance"];
		$this->n_3048_distance->AdvancedSearch->SearchValue2 = @$filter["y_n_3048_distance"];
		$this->n_3048_distance->AdvancedSearch->SearchOperator2 = @$filter["w_n_3048_distance"];
		$this->n_3048_distance->AdvancedSearch->save();

		// Field n_3048_distance_by
		$this->n_3048_distance_by->AdvancedSearch->SearchValue = @$filter["x_n_3048_distance_by"];
		$this->n_3048_distance_by->AdvancedSearch->SearchOperator = @$filter["z_n_3048_distance_by"];
		$this->n_3048_distance_by->AdvancedSearch->SearchCondition = @$filter["v_n_3048_distance_by"];
		$this->n_3048_distance_by->AdvancedSearch->SearchValue2 = @$filter["y_n_3048_distance_by"];
		$this->n_3048_distance_by->AdvancedSearch->SearchOperator2 = @$filter["w_n_3048_distance_by"];
		$this->n_3048_distance_by->AdvancedSearch->save();

		// Field n_3049
		$this->n_3049->AdvancedSearch->SearchValue = @$filter["x_n_3049"];
		$this->n_3049->AdvancedSearch->SearchOperator = @$filter["z_n_3049"];
		$this->n_3049->AdvancedSearch->SearchCondition = @$filter["v_n_3049"];
		$this->n_3049->AdvancedSearch->SearchValue2 = @$filter["y_n_3049"];
		$this->n_3049->AdvancedSearch->SearchOperator2 = @$filter["w_n_3049"];
		$this->n_3049->AdvancedSearch->save();

		// Field n_3049_distance
		$this->n_3049_distance->AdvancedSearch->SearchValue = @$filter["x_n_3049_distance"];
		$this->n_3049_distance->AdvancedSearch->SearchOperator = @$filter["z_n_3049_distance"];
		$this->n_3049_distance->AdvancedSearch->SearchCondition = @$filter["v_n_3049_distance"];
		$this->n_3049_distance->AdvancedSearch->SearchValue2 = @$filter["y_n_3049_distance"];
		$this->n_3049_distance->AdvancedSearch->SearchOperator2 = @$filter["w_n_3049_distance"];
		$this->n_3049_distance->AdvancedSearch->save();

		// Field n_3049_distance_by
		$this->n_3049_distance_by->AdvancedSearch->SearchValue = @$filter["x_n_3049_distance_by"];
		$this->n_3049_distance_by->AdvancedSearch->SearchOperator = @$filter["z_n_3049_distance_by"];
		$this->n_3049_distance_by->AdvancedSearch->SearchCondition = @$filter["v_n_3049_distance_by"];
		$this->n_3049_distance_by->AdvancedSearch->SearchValue2 = @$filter["y_n_3049_distance_by"];
		$this->n_3049_distance_by->AdvancedSearch->SearchOperator2 = @$filter["w_n_3049_distance_by"];
		$this->n_3049_distance_by->AdvancedSearch->save();

		// Field n_3050
		$this->n_3050->AdvancedSearch->SearchValue = @$filter["x_n_3050"];
		$this->n_3050->AdvancedSearch->SearchOperator = @$filter["z_n_3050"];
		$this->n_3050->AdvancedSearch->SearchCondition = @$filter["v_n_3050"];
		$this->n_3050->AdvancedSearch->SearchValue2 = @$filter["y_n_3050"];
		$this->n_3050->AdvancedSearch->SearchOperator2 = @$filter["w_n_3050"];
		$this->n_3050->AdvancedSearch->save();

		// Field n_3050_distance
		$this->n_3050_distance->AdvancedSearch->SearchValue = @$filter["x_n_3050_distance"];
		$this->n_3050_distance->AdvancedSearch->SearchOperator = @$filter["z_n_3050_distance"];
		$this->n_3050_distance->AdvancedSearch->SearchCondition = @$filter["v_n_3050_distance"];
		$this->n_3050_distance->AdvancedSearch->SearchValue2 = @$filter["y_n_3050_distance"];
		$this->n_3050_distance->AdvancedSearch->SearchOperator2 = @$filter["w_n_3050_distance"];
		$this->n_3050_distance->AdvancedSearch->save();

		// Field n_3050_distance_by
		$this->n_3050_distance_by->AdvancedSearch->SearchValue = @$filter["x_n_3050_distance_by"];
		$this->n_3050_distance_by->AdvancedSearch->SearchOperator = @$filter["z_n_3050_distance_by"];
		$this->n_3050_distance_by->AdvancedSearch->SearchCondition = @$filter["v_n_3050_distance_by"];
		$this->n_3050_distance_by->AdvancedSearch->SearchValue2 = @$filter["y_n_3050_distance_by"];
		$this->n_3050_distance_by->AdvancedSearch->SearchOperator2 = @$filter["w_n_3050_distance_by"];
		$this->n_3050_distance_by->AdvancedSearch->save();

		// Field n_3051
		$this->n_3051->AdvancedSearch->SearchValue = @$filter["x_n_3051"];
		$this->n_3051->AdvancedSearch->SearchOperator = @$filter["z_n_3051"];
		$this->n_3051->AdvancedSearch->SearchCondition = @$filter["v_n_3051"];
		$this->n_3051->AdvancedSearch->SearchValue2 = @$filter["y_n_3051"];
		$this->n_3051->AdvancedSearch->SearchOperator2 = @$filter["w_n_3051"];
		$this->n_3051->AdvancedSearch->save();

		// Field n_3051_distance
		$this->n_3051_distance->AdvancedSearch->SearchValue = @$filter["x_n_3051_distance"];
		$this->n_3051_distance->AdvancedSearch->SearchOperator = @$filter["z_n_3051_distance"];
		$this->n_3051_distance->AdvancedSearch->SearchCondition = @$filter["v_n_3051_distance"];
		$this->n_3051_distance->AdvancedSearch->SearchValue2 = @$filter["y_n_3051_distance"];
		$this->n_3051_distance->AdvancedSearch->SearchOperator2 = @$filter["w_n_3051_distance"];
		$this->n_3051_distance->AdvancedSearch->save();

		// Field n_3051_distance_by
		$this->n_3051_distance_by->AdvancedSearch->SearchValue = @$filter["x_n_3051_distance_by"];
		$this->n_3051_distance_by->AdvancedSearch->SearchOperator = @$filter["z_n_3051_distance_by"];
		$this->n_3051_distance_by->AdvancedSearch->SearchCondition = @$filter["v_n_3051_distance_by"];
		$this->n_3051_distance_by->AdvancedSearch->SearchValue2 = @$filter["y_n_3051_distance_by"];
		$this->n_3051_distance_by->AdvancedSearch->SearchOperator2 = @$filter["w_n_3051_distance_by"];
		$this->n_3051_distance_by->AdvancedSearch->save();

		// Field n_3052
		$this->n_3052->AdvancedSearch->SearchValue = @$filter["x_n_3052"];
		$this->n_3052->AdvancedSearch->SearchOperator = @$filter["z_n_3052"];
		$this->n_3052->AdvancedSearch->SearchCondition = @$filter["v_n_3052"];
		$this->n_3052->AdvancedSearch->SearchValue2 = @$filter["y_n_3052"];
		$this->n_3052->AdvancedSearch->SearchOperator2 = @$filter["w_n_3052"];
		$this->n_3052->AdvancedSearch->save();

		// Field n_3052_distance
		$this->n_3052_distance->AdvancedSearch->SearchValue = @$filter["x_n_3052_distance"];
		$this->n_3052_distance->AdvancedSearch->SearchOperator = @$filter["z_n_3052_distance"];
		$this->n_3052_distance->AdvancedSearch->SearchCondition = @$filter["v_n_3052_distance"];
		$this->n_3052_distance->AdvancedSearch->SearchValue2 = @$filter["y_n_3052_distance"];
		$this->n_3052_distance->AdvancedSearch->SearchOperator2 = @$filter["w_n_3052_distance"];
		$this->n_3052_distance->AdvancedSearch->save();

		// Field n_3052_distance_by
		$this->n_3052_distance_by->AdvancedSearch->SearchValue = @$filter["x_n_3052_distance_by"];
		$this->n_3052_distance_by->AdvancedSearch->SearchOperator = @$filter["z_n_3052_distance_by"];
		$this->n_3052_distance_by->AdvancedSearch->SearchCondition = @$filter["v_n_3052_distance_by"];
		$this->n_3052_distance_by->AdvancedSearch->SearchValue2 = @$filter["y_n_3052_distance_by"];
		$this->n_3052_distance_by->AdvancedSearch->SearchOperator2 = @$filter["w_n_3052_distance_by"];
		$this->n_3052_distance_by->AdvancedSearch->save();

		// Field n_3053
		$this->n_3053->AdvancedSearch->SearchValue = @$filter["x_n_3053"];
		$this->n_3053->AdvancedSearch->SearchOperator = @$filter["z_n_3053"];
		$this->n_3053->AdvancedSearch->SearchCondition = @$filter["v_n_3053"];
		$this->n_3053->AdvancedSearch->SearchValue2 = @$filter["y_n_3053"];
		$this->n_3053->AdvancedSearch->SearchOperator2 = @$filter["w_n_3053"];
		$this->n_3053->AdvancedSearch->save();

		// Field n_3053_distance
		$this->n_3053_distance->AdvancedSearch->SearchValue = @$filter["x_n_3053_distance"];
		$this->n_3053_distance->AdvancedSearch->SearchOperator = @$filter["z_n_3053_distance"];
		$this->n_3053_distance->AdvancedSearch->SearchCondition = @$filter["v_n_3053_distance"];
		$this->n_3053_distance->AdvancedSearch->SearchValue2 = @$filter["y_n_3053_distance"];
		$this->n_3053_distance->AdvancedSearch->SearchOperator2 = @$filter["w_n_3053_distance"];
		$this->n_3053_distance->AdvancedSearch->save();

		// Field n_3053_distance_by
		$this->n_3053_distance_by->AdvancedSearch->SearchValue = @$filter["x_n_3053_distance_by"];
		$this->n_3053_distance_by->AdvancedSearch->SearchOperator = @$filter["z_n_3053_distance_by"];
		$this->n_3053_distance_by->AdvancedSearch->SearchCondition = @$filter["v_n_3053_distance_by"];
		$this->n_3053_distance_by->AdvancedSearch->SearchValue2 = @$filter["y_n_3053_distance_by"];
		$this->n_3053_distance_by->AdvancedSearch->SearchOperator2 = @$filter["w_n_3053_distance_by"];
		$this->n_3053_distance_by->AdvancedSearch->save();

		// Field n_3054
		$this->n_3054->AdvancedSearch->SearchValue = @$filter["x_n_3054"];
		$this->n_3054->AdvancedSearch->SearchOperator = @$filter["z_n_3054"];
		$this->n_3054->AdvancedSearch->SearchCondition = @$filter["v_n_3054"];
		$this->n_3054->AdvancedSearch->SearchValue2 = @$filter["y_n_3054"];
		$this->n_3054->AdvancedSearch->SearchOperator2 = @$filter["w_n_3054"];
		$this->n_3054->AdvancedSearch->save();

		// Field n_3054_distance
		$this->n_3054_distance->AdvancedSearch->SearchValue = @$filter["x_n_3054_distance"];
		$this->n_3054_distance->AdvancedSearch->SearchOperator = @$filter["z_n_3054_distance"];
		$this->n_3054_distance->AdvancedSearch->SearchCondition = @$filter["v_n_3054_distance"];
		$this->n_3054_distance->AdvancedSearch->SearchValue2 = @$filter["y_n_3054_distance"];
		$this->n_3054_distance->AdvancedSearch->SearchOperator2 = @$filter["w_n_3054_distance"];
		$this->n_3054_distance->AdvancedSearch->save();

		// Field n_3054_distance_by
		$this->n_3054_distance_by->AdvancedSearch->SearchValue = @$filter["x_n_3054_distance_by"];
		$this->n_3054_distance_by->AdvancedSearch->SearchOperator = @$filter["z_n_3054_distance_by"];
		$this->n_3054_distance_by->AdvancedSearch->SearchCondition = @$filter["v_n_3054_distance_by"];
		$this->n_3054_distance_by->AdvancedSearch->SearchValue2 = @$filter["y_n_3054_distance_by"];
		$this->n_3054_distance_by->AdvancedSearch->SearchOperator2 = @$filter["w_n_3054_distance_by"];
		$this->n_3054_distance_by->AdvancedSearch->save();

		// Field n_3055
		$this->n_3055->AdvancedSearch->SearchValue = @$filter["x_n_3055"];
		$this->n_3055->AdvancedSearch->SearchOperator = @$filter["z_n_3055"];
		$this->n_3055->AdvancedSearch->SearchCondition = @$filter["v_n_3055"];
		$this->n_3055->AdvancedSearch->SearchValue2 = @$filter["y_n_3055"];
		$this->n_3055->AdvancedSearch->SearchOperator2 = @$filter["w_n_3055"];
		$this->n_3055->AdvancedSearch->save();

		// Field n_3055_distance
		$this->n_3055_distance->AdvancedSearch->SearchValue = @$filter["x_n_3055_distance"];
		$this->n_3055_distance->AdvancedSearch->SearchOperator = @$filter["z_n_3055_distance"];
		$this->n_3055_distance->AdvancedSearch->SearchCondition = @$filter["v_n_3055_distance"];
		$this->n_3055_distance->AdvancedSearch->SearchValue2 = @$filter["y_n_3055_distance"];
		$this->n_3055_distance->AdvancedSearch->SearchOperator2 = @$filter["w_n_3055_distance"];
		$this->n_3055_distance->AdvancedSearch->save();

		// Field n_3055_distance_by
		$this->n_3055_distance_by->AdvancedSearch->SearchValue = @$filter["x_n_3055_distance_by"];
		$this->n_3055_distance_by->AdvancedSearch->SearchOperator = @$filter["z_n_3055_distance_by"];
		$this->n_3055_distance_by->AdvancedSearch->SearchCondition = @$filter["v_n_3055_distance_by"];
		$this->n_3055_distance_by->AdvancedSearch->SearchValue2 = @$filter["y_n_3055_distance_by"];
		$this->n_3055_distance_by->AdvancedSearch->SearchOperator2 = @$filter["w_n_3055_distance_by"];
		$this->n_3055_distance_by->AdvancedSearch->save();

		// Field n_3056
		$this->n_3056->AdvancedSearch->SearchValue = @$filter["x_n_3056"];
		$this->n_3056->AdvancedSearch->SearchOperator = @$filter["z_n_3056"];
		$this->n_3056->AdvancedSearch->SearchCondition = @$filter["v_n_3056"];
		$this->n_3056->AdvancedSearch->SearchValue2 = @$filter["y_n_3056"];
		$this->n_3056->AdvancedSearch->SearchOperator2 = @$filter["w_n_3056"];
		$this->n_3056->AdvancedSearch->save();

		// Field n_3056_distance
		$this->n_3056_distance->AdvancedSearch->SearchValue = @$filter["x_n_3056_distance"];
		$this->n_3056_distance->AdvancedSearch->SearchOperator = @$filter["z_n_3056_distance"];
		$this->n_3056_distance->AdvancedSearch->SearchCondition = @$filter["v_n_3056_distance"];
		$this->n_3056_distance->AdvancedSearch->SearchValue2 = @$filter["y_n_3056_distance"];
		$this->n_3056_distance->AdvancedSearch->SearchOperator2 = @$filter["w_n_3056_distance"];
		$this->n_3056_distance->AdvancedSearch->save();

		// Field n_3056_distance_by
		$this->n_3056_distance_by->AdvancedSearch->SearchValue = @$filter["x_n_3056_distance_by"];
		$this->n_3056_distance_by->AdvancedSearch->SearchOperator = @$filter["z_n_3056_distance_by"];
		$this->n_3056_distance_by->AdvancedSearch->SearchCondition = @$filter["v_n_3056_distance_by"];
		$this->n_3056_distance_by->AdvancedSearch->SearchValue2 = @$filter["y_n_3056_distance_by"];
		$this->n_3056_distance_by->AdvancedSearch->SearchOperator2 = @$filter["w_n_3056_distance_by"];
		$this->n_3056_distance_by->AdvancedSearch->save();

		// Field n_3057
		$this->n_3057->AdvancedSearch->SearchValue = @$filter["x_n_3057"];
		$this->n_3057->AdvancedSearch->SearchOperator = @$filter["z_n_3057"];
		$this->n_3057->AdvancedSearch->SearchCondition = @$filter["v_n_3057"];
		$this->n_3057->AdvancedSearch->SearchValue2 = @$filter["y_n_3057"];
		$this->n_3057->AdvancedSearch->SearchOperator2 = @$filter["w_n_3057"];
		$this->n_3057->AdvancedSearch->save();

		// Field n_3057_distance
		$this->n_3057_distance->AdvancedSearch->SearchValue = @$filter["x_n_3057_distance"];
		$this->n_3057_distance->AdvancedSearch->SearchOperator = @$filter["z_n_3057_distance"];
		$this->n_3057_distance->AdvancedSearch->SearchCondition = @$filter["v_n_3057_distance"];
		$this->n_3057_distance->AdvancedSearch->SearchValue2 = @$filter["y_n_3057_distance"];
		$this->n_3057_distance->AdvancedSearch->SearchOperator2 = @$filter["w_n_3057_distance"];
		$this->n_3057_distance->AdvancedSearch->save();

		// Field n_3057_distance_by
		$this->n_3057_distance_by->AdvancedSearch->SearchValue = @$filter["x_n_3057_distance_by"];
		$this->n_3057_distance_by->AdvancedSearch->SearchOperator = @$filter["z_n_3057_distance_by"];
		$this->n_3057_distance_by->AdvancedSearch->SearchCondition = @$filter["v_n_3057_distance_by"];
		$this->n_3057_distance_by->AdvancedSearch->SearchValue2 = @$filter["y_n_3057_distance_by"];
		$this->n_3057_distance_by->AdvancedSearch->SearchOperator2 = @$filter["w_n_3057_distance_by"];
		$this->n_3057_distance_by->AdvancedSearch->save();

		// Field n_3058
		$this->n_3058->AdvancedSearch->SearchValue = @$filter["x_n_3058"];
		$this->n_3058->AdvancedSearch->SearchOperator = @$filter["z_n_3058"];
		$this->n_3058->AdvancedSearch->SearchCondition = @$filter["v_n_3058"];
		$this->n_3058->AdvancedSearch->SearchValue2 = @$filter["y_n_3058"];
		$this->n_3058->AdvancedSearch->SearchOperator2 = @$filter["w_n_3058"];
		$this->n_3058->AdvancedSearch->save();

		// Field n_3058_distance
		$this->n_3058_distance->AdvancedSearch->SearchValue = @$filter["x_n_3058_distance"];
		$this->n_3058_distance->AdvancedSearch->SearchOperator = @$filter["z_n_3058_distance"];
		$this->n_3058_distance->AdvancedSearch->SearchCondition = @$filter["v_n_3058_distance"];
		$this->n_3058_distance->AdvancedSearch->SearchValue2 = @$filter["y_n_3058_distance"];
		$this->n_3058_distance->AdvancedSearch->SearchOperator2 = @$filter["w_n_3058_distance"];
		$this->n_3058_distance->AdvancedSearch->save();

		// Field n_3058_distance_by
		$this->n_3058_distance_by->AdvancedSearch->SearchValue = @$filter["x_n_3058_distance_by"];
		$this->n_3058_distance_by->AdvancedSearch->SearchOperator = @$filter["z_n_3058_distance_by"];
		$this->n_3058_distance_by->AdvancedSearch->SearchCondition = @$filter["v_n_3058_distance_by"];
		$this->n_3058_distance_by->AdvancedSearch->SearchValue2 = @$filter["y_n_3058_distance_by"];
		$this->n_3058_distance_by->AdvancedSearch->SearchOperator2 = @$filter["w_n_3058_distance_by"];
		$this->n_3058_distance_by->AdvancedSearch->save();

		// Field n_3059
		$this->n_3059->AdvancedSearch->SearchValue = @$filter["x_n_3059"];
		$this->n_3059->AdvancedSearch->SearchOperator = @$filter["z_n_3059"];
		$this->n_3059->AdvancedSearch->SearchCondition = @$filter["v_n_3059"];
		$this->n_3059->AdvancedSearch->SearchValue2 = @$filter["y_n_3059"];
		$this->n_3059->AdvancedSearch->SearchOperator2 = @$filter["w_n_3059"];
		$this->n_3059->AdvancedSearch->save();

		// Field n_3059_distance
		$this->n_3059_distance->AdvancedSearch->SearchValue = @$filter["x_n_3059_distance"];
		$this->n_3059_distance->AdvancedSearch->SearchOperator = @$filter["z_n_3059_distance"];
		$this->n_3059_distance->AdvancedSearch->SearchCondition = @$filter["v_n_3059_distance"];
		$this->n_3059_distance->AdvancedSearch->SearchValue2 = @$filter["y_n_3059_distance"];
		$this->n_3059_distance->AdvancedSearch->SearchOperator2 = @$filter["w_n_3059_distance"];
		$this->n_3059_distance->AdvancedSearch->save();

		// Field n_3059_distance_by
		$this->n_3059_distance_by->AdvancedSearch->SearchValue = @$filter["x_n_3059_distance_by"];
		$this->n_3059_distance_by->AdvancedSearch->SearchOperator = @$filter["z_n_3059_distance_by"];
		$this->n_3059_distance_by->AdvancedSearch->SearchCondition = @$filter["v_n_3059_distance_by"];
		$this->n_3059_distance_by->AdvancedSearch->SearchValue2 = @$filter["y_n_3059_distance_by"];
		$this->n_3059_distance_by->AdvancedSearch->SearchOperator2 = @$filter["w_n_3059_distance_by"];
		$this->n_3059_distance_by->AdvancedSearch->save();

		// Field f_3060_options
		$this->f_3060_options->AdvancedSearch->SearchValue = @$filter["x_f_3060_options"];
		$this->f_3060_options->AdvancedSearch->SearchOperator = @$filter["z_f_3060_options"];
		$this->f_3060_options->AdvancedSearch->SearchCondition = @$filter["v_f_3060_options"];
		$this->f_3060_options->AdvancedSearch->SearchValue2 = @$filter["y_f_3060_options"];
		$this->f_3060_options->AdvancedSearch->SearchOperator2 = @$filter["w_f_3060_options"];
		$this->f_3060_options->AdvancedSearch->save();

		// Field f_3060
		$this->f_3060->AdvancedSearch->SearchValue = @$filter["x_f_3060"];
		$this->f_3060->AdvancedSearch->SearchOperator = @$filter["z_f_3060"];
		$this->f_3060->AdvancedSearch->SearchCondition = @$filter["v_f_3060"];
		$this->f_3060->AdvancedSearch->SearchValue2 = @$filter["y_f_3060"];
		$this->f_3060->AdvancedSearch->SearchOperator2 = @$filter["w_f_3060"];
		$this->f_3060->AdvancedSearch->save();

		// Field f_3061_options
		$this->f_3061_options->AdvancedSearch->SearchValue = @$filter["x_f_3061_options"];
		$this->f_3061_options->AdvancedSearch->SearchOperator = @$filter["z_f_3061_options"];
		$this->f_3061_options->AdvancedSearch->SearchCondition = @$filter["v_f_3061_options"];
		$this->f_3061_options->AdvancedSearch->SearchValue2 = @$filter["y_f_3061_options"];
		$this->f_3061_options->AdvancedSearch->SearchOperator2 = @$filter["w_f_3061_options"];
		$this->f_3061_options->AdvancedSearch->save();

		// Field f_3061
		$this->f_3061->AdvancedSearch->SearchValue = @$filter["x_f_3061"];
		$this->f_3061->AdvancedSearch->SearchOperator = @$filter["z_f_3061"];
		$this->f_3061->AdvancedSearch->SearchCondition = @$filter["v_f_3061"];
		$this->f_3061->AdvancedSearch->SearchValue2 = @$filter["y_f_3061"];
		$this->f_3061->AdvancedSearch->SearchOperator2 = @$filter["w_f_3061"];
		$this->f_3061->AdvancedSearch->save();

		// Field f_3062_options
		$this->f_3062_options->AdvancedSearch->SearchValue = @$filter["x_f_3062_options"];
		$this->f_3062_options->AdvancedSearch->SearchOperator = @$filter["z_f_3062_options"];
		$this->f_3062_options->AdvancedSearch->SearchCondition = @$filter["v_f_3062_options"];
		$this->f_3062_options->AdvancedSearch->SearchValue2 = @$filter["y_f_3062_options"];
		$this->f_3062_options->AdvancedSearch->SearchOperator2 = @$filter["w_f_3062_options"];
		$this->f_3062_options->AdvancedSearch->save();

		// Field f_3062
		$this->f_3062->AdvancedSearch->SearchValue = @$filter["x_f_3062"];
		$this->f_3062->AdvancedSearch->SearchOperator = @$filter["z_f_3062"];
		$this->f_3062->AdvancedSearch->SearchCondition = @$filter["v_f_3062"];
		$this->f_3062->AdvancedSearch->SearchValue2 = @$filter["y_f_3062"];
		$this->f_3062->AdvancedSearch->SearchOperator2 = @$filter["w_f_3062"];
		$this->f_3062->AdvancedSearch->save();

		// Field field_3063
		$this->field_3063->AdvancedSearch->SearchValue = @$filter["x_field_3063"];
		$this->field_3063->AdvancedSearch->SearchOperator = @$filter["z_field_3063"];
		$this->field_3063->AdvancedSearch->SearchCondition = @$filter["v_field_3063"];
		$this->field_3063->AdvancedSearch->SearchValue2 = @$filter["y_field_3063"];
		$this->field_3063->AdvancedSearch->SearchOperator2 = @$filter["w_field_3063"];
		$this->field_3063->AdvancedSearch->save();

		// Field field_3064
		$this->field_3064->AdvancedSearch->SearchValue = @$filter["x_field_3064"];
		$this->field_3064->AdvancedSearch->SearchOperator = @$filter["z_field_3064"];
		$this->field_3064->AdvancedSearch->SearchCondition = @$filter["v_field_3064"];
		$this->field_3064->AdvancedSearch->SearchValue2 = @$filter["y_field_3064"];
		$this->field_3064->AdvancedSearch->SearchOperator2 = @$filter["w_field_3064"];
		$this->field_3064->AdvancedSearch->save();

		// Field field_3065
		$this->field_3065->AdvancedSearch->SearchValue = @$filter["x_field_3065"];
		$this->field_3065->AdvancedSearch->SearchOperator = @$filter["z_field_3065"];
		$this->field_3065->AdvancedSearch->SearchCondition = @$filter["v_field_3065"];
		$this->field_3065->AdvancedSearch->SearchValue2 = @$filter["y_field_3065"];
		$this->field_3065->AdvancedSearch->SearchOperator2 = @$filter["w_field_3065"];
		$this->field_3065->AdvancedSearch->save();

		// Field field_308
		$this->field_308->AdvancedSearch->SearchValue = @$filter["x_field_308"];
		$this->field_308->AdvancedSearch->SearchOperator = @$filter["z_field_308"];
		$this->field_308->AdvancedSearch->SearchCondition = @$filter["v_field_308"];
		$this->field_308->AdvancedSearch->SearchValue2 = @$filter["y_field_308"];
		$this->field_308->AdvancedSearch->SearchOperator2 = @$filter["w_field_308"];
		$this->field_308->AdvancedSearch->save();

		// Field field_308_en_us
		$this->field_308_en_us->AdvancedSearch->SearchValue = @$filter["x_field_308_en_us"];
		$this->field_308_en_us->AdvancedSearch->SearchOperator = @$filter["z_field_308_en_us"];
		$this->field_308_en_us->AdvancedSearch->SearchCondition = @$filter["v_field_308_en_us"];
		$this->field_308_en_us->AdvancedSearch->SearchValue2 = @$filter["y_field_308_en_us"];
		$this->field_308_en_us->AdvancedSearch->SearchOperator2 = @$filter["w_field_308_en_us"];
		$this->field_308_en_us->AdvancedSearch->save();

		// Field field_308_fr_fr
		$this->field_308_fr_fr->AdvancedSearch->SearchValue = @$filter["x_field_308_fr_fr"];
		$this->field_308_fr_fr->AdvancedSearch->SearchOperator = @$filter["z_field_308_fr_fr"];
		$this->field_308_fr_fr->AdvancedSearch->SearchCondition = @$filter["v_field_308_fr_fr"];
		$this->field_308_fr_fr->AdvancedSearch->SearchValue2 = @$filter["y_field_308_fr_fr"];
		$this->field_308_fr_fr->AdvancedSearch->SearchOperator2 = @$filter["w_field_308_fr_fr"];
		$this->field_308_fr_fr->AdvancedSearch->save();

		// Field field_313_en_us
		$this->field_313_en_us->AdvancedSearch->SearchValue = @$filter["x_field_313_en_us"];
		$this->field_313_en_us->AdvancedSearch->SearchOperator = @$filter["z_field_313_en_us"];
		$this->field_313_en_us->AdvancedSearch->SearchCondition = @$filter["v_field_313_en_us"];
		$this->field_313_en_us->AdvancedSearch->SearchValue2 = @$filter["y_field_313_en_us"];
		$this->field_313_en_us->AdvancedSearch->SearchOperator2 = @$filter["w_field_313_en_us"];
		$this->field_313_en_us->AdvancedSearch->save();

		// Field field_313_fr_fr
		$this->field_313_fr_fr->AdvancedSearch->SearchValue = @$filter["x_field_313_fr_fr"];
		$this->field_313_fr_fr->AdvancedSearch->SearchOperator = @$filter["z_field_313_fr_fr"];
		$this->field_313_fr_fr->AdvancedSearch->SearchCondition = @$filter["v_field_313_fr_fr"];
		$this->field_313_fr_fr->AdvancedSearch->SearchValue2 = @$filter["y_field_313_fr_fr"];
		$this->field_313_fr_fr->AdvancedSearch->SearchOperator2 = @$filter["w_field_313_fr_fr"];
		$this->field_313_fr_fr->AdvancedSearch->save();

		// Field field_312_en_us
		$this->field_312_en_us->AdvancedSearch->SearchValue = @$filter["x_field_312_en_us"];
		$this->field_312_en_us->AdvancedSearch->SearchOperator = @$filter["z_field_312_en_us"];
		$this->field_312_en_us->AdvancedSearch->SearchCondition = @$filter["v_field_312_en_us"];
		$this->field_312_en_us->AdvancedSearch->SearchValue2 = @$filter["y_field_312_en_us"];
		$this->field_312_en_us->AdvancedSearch->SearchOperator2 = @$filter["w_field_312_en_us"];
		$this->field_312_en_us->AdvancedSearch->save();

		// Field field_312_fr_fr
		$this->field_312_fr_fr->AdvancedSearch->SearchValue = @$filter["x_field_312_fr_fr"];
		$this->field_312_fr_fr->AdvancedSearch->SearchOperator = @$filter["z_field_312_fr_fr"];
		$this->field_312_fr_fr->AdvancedSearch->SearchCondition = @$filter["v_field_312_fr_fr"];
		$this->field_312_fr_fr->AdvancedSearch->SearchValue2 = @$filter["y_field_312_fr_fr"];
		$this->field_312_fr_fr->AdvancedSearch->SearchOperator2 = @$filter["w_field_312_fr_fr"];
		$this->field_312_fr_fr->AdvancedSearch->save();

		// Field field_3017_en_us
		$this->field_3017_en_us->AdvancedSearch->SearchValue = @$filter["x_field_3017_en_us"];
		$this->field_3017_en_us->AdvancedSearch->SearchOperator = @$filter["z_field_3017_en_us"];
		$this->field_3017_en_us->AdvancedSearch->SearchCondition = @$filter["v_field_3017_en_us"];
		$this->field_3017_en_us->AdvancedSearch->SearchValue2 = @$filter["y_field_3017_en_us"];
		$this->field_3017_en_us->AdvancedSearch->SearchOperator2 = @$filter["w_field_3017_en_us"];
		$this->field_3017_en_us->AdvancedSearch->save();

		// Field field_3017_fr_fr
		$this->field_3017_fr_fr->AdvancedSearch->SearchValue = @$filter["x_field_3017_fr_fr"];
		$this->field_3017_fr_fr->AdvancedSearch->SearchOperator = @$filter["z_field_3017_fr_fr"];
		$this->field_3017_fr_fr->AdvancedSearch->SearchCondition = @$filter["v_field_3017_fr_fr"];
		$this->field_3017_fr_fr->AdvancedSearch->SearchValue2 = @$filter["y_field_3017_fr_fr"];
		$this->field_3017_fr_fr->AdvancedSearch->SearchOperator2 = @$filter["w_field_3017_fr_fr"];
		$this->field_3017_fr_fr->AdvancedSearch->save();

		// Field field_42_en_us
		$this->field_42_en_us->AdvancedSearch->SearchValue = @$filter["x_field_42_en_us"];
		$this->field_42_en_us->AdvancedSearch->SearchOperator = @$filter["z_field_42_en_us"];
		$this->field_42_en_us->AdvancedSearch->SearchCondition = @$filter["v_field_42_en_us"];
		$this->field_42_en_us->AdvancedSearch->SearchValue2 = @$filter["y_field_42_en_us"];
		$this->field_42_en_us->AdvancedSearch->SearchOperator2 = @$filter["w_field_42_en_us"];
		$this->field_42_en_us->AdvancedSearch->save();

		// Field field_42_fr_fr
		$this->field_42_fr_fr->AdvancedSearch->SearchValue = @$filter["x_field_42_fr_fr"];
		$this->field_42_fr_fr->AdvancedSearch->SearchOperator = @$filter["z_field_42_fr_fr"];
		$this->field_42_fr_fr->AdvancedSearch->SearchCondition = @$filter["v_field_42_fr_fr"];
		$this->field_42_fr_fr->AdvancedSearch->SearchValue2 = @$filter["y_field_42_fr_fr"];
		$this->field_42_fr_fr->AdvancedSearch->SearchOperator2 = @$filter["w_field_42_fr_fr"];
		$this->field_42_fr_fr->AdvancedSearch->save();

		// Field field_3067
		$this->field_3067->AdvancedSearch->SearchValue = @$filter["x_field_3067"];
		$this->field_3067->AdvancedSearch->SearchOperator = @$filter["z_field_3067"];
		$this->field_3067->AdvancedSearch->SearchCondition = @$filter["v_field_3067"];
		$this->field_3067->AdvancedSearch->SearchValue2 = @$filter["y_field_3067"];
		$this->field_3067->AdvancedSearch->SearchOperator2 = @$filter["w_field_3067"];
		$this->field_3067->AdvancedSearch->save();

		// Field field_3068
		$this->field_3068->AdvancedSearch->SearchValue = @$filter["x_field_3068"];
		$this->field_3068->AdvancedSearch->SearchOperator = @$filter["z_field_3068"];
		$this->field_3068->AdvancedSearch->SearchCondition = @$filter["v_field_3068"];
		$this->field_3068->AdvancedSearch->SearchValue2 = @$filter["y_field_3068"];
		$this->field_3068->AdvancedSearch->SearchOperator2 = @$filter["w_field_3068"];
		$this->field_3068->AdvancedSearch->save();

		// Field field_3069
		$this->field_3069->AdvancedSearch->SearchValue = @$filter["x_field_3069"];
		$this->field_3069->AdvancedSearch->SearchOperator = @$filter["z_field_3069"];
		$this->field_3069->AdvancedSearch->SearchCondition = @$filter["v_field_3069"];
		$this->field_3069->AdvancedSearch->SearchValue2 = @$filter["y_field_3069"];
		$this->field_3069->AdvancedSearch->SearchOperator2 = @$filter["w_field_3069"];
		$this->field_3069->AdvancedSearch->save();

		// Field field_3070
		$this->field_3070->AdvancedSearch->SearchValue = @$filter["x_field_3070"];
		$this->field_3070->AdvancedSearch->SearchOperator = @$filter["z_field_3070"];
		$this->field_3070->AdvancedSearch->SearchCondition = @$filter["v_field_3070"];
		$this->field_3070->AdvancedSearch->SearchValue2 = @$filter["y_field_3070"];
		$this->field_3070->AdvancedSearch->SearchOperator2 = @$filter["w_field_3070"];
		$this->field_3070->AdvancedSearch->save();

		// Field field_3071
		$this->field_3071->AdvancedSearch->SearchValue = @$filter["x_field_3071"];
		$this->field_3071->AdvancedSearch->SearchOperator = @$filter["z_field_3071"];
		$this->field_3071->AdvancedSearch->SearchCondition = @$filter["v_field_3071"];
		$this->field_3071->AdvancedSearch->SearchValue2 = @$filter["y_field_3071"];
		$this->field_3071->AdvancedSearch->SearchOperator2 = @$filter["w_field_3071"];
		$this->field_3071->AdvancedSearch->save();

		// Field field_3071_en_us
		$this->field_3071_en_us->AdvancedSearch->SearchValue = @$filter["x_field_3071_en_us"];
		$this->field_3071_en_us->AdvancedSearch->SearchOperator = @$filter["z_field_3071_en_us"];
		$this->field_3071_en_us->AdvancedSearch->SearchCondition = @$filter["v_field_3071_en_us"];
		$this->field_3071_en_us->AdvancedSearch->SearchValue2 = @$filter["y_field_3071_en_us"];
		$this->field_3071_en_us->AdvancedSearch->SearchOperator2 = @$filter["w_field_3071_en_us"];
		$this->field_3071_en_us->AdvancedSearch->save();

		// Field field_3071_fr_fr
		$this->field_3071_fr_fr->AdvancedSearch->SearchValue = @$filter["x_field_3071_fr_fr"];
		$this->field_3071_fr_fr->AdvancedSearch->SearchOperator = @$filter["z_field_3071_fr_fr"];
		$this->field_3071_fr_fr->AdvancedSearch->SearchCondition = @$filter["v_field_3071_fr_fr"];
		$this->field_3071_fr_fr->AdvancedSearch->SearchValue2 = @$filter["y_field_3071_fr_fr"];
		$this->field_3071_fr_fr->AdvancedSearch->SearchOperator2 = @$filter["w_field_3071_fr_fr"];
		$this->field_3071_fr_fr->AdvancedSearch->save();

		// Field field_3072
		$this->field_3072->AdvancedSearch->SearchValue = @$filter["x_field_3072"];
		$this->field_3072->AdvancedSearch->SearchOperator = @$filter["z_field_3072"];
		$this->field_3072->AdvancedSearch->SearchCondition = @$filter["v_field_3072"];
		$this->field_3072->AdvancedSearch->SearchValue2 = @$filter["y_field_3072"];
		$this->field_3072->AdvancedSearch->SearchOperator2 = @$filter["w_field_3072"];
		$this->field_3072->AdvancedSearch->save();

		// Field field_3073
		$this->field_3073->AdvancedSearch->SearchValue = @$filter["x_field_3073"];
		$this->field_3073->AdvancedSearch->SearchOperator = @$filter["z_field_3073"];
		$this->field_3073->AdvancedSearch->SearchCondition = @$filter["v_field_3073"];
		$this->field_3073->AdvancedSearch->SearchValue2 = @$filter["y_field_3073"];
		$this->field_3073->AdvancedSearch->SearchOperator2 = @$filter["w_field_3073"];
		$this->field_3073->AdvancedSearch->save();

		// Field field_3074
		$this->field_3074->AdvancedSearch->SearchValue = @$filter["x_field_3074"];
		$this->field_3074->AdvancedSearch->SearchOperator = @$filter["z_field_3074"];
		$this->field_3074->AdvancedSearch->SearchCondition = @$filter["v_field_3074"];
		$this->field_3074->AdvancedSearch->SearchValue2 = @$filter["y_field_3074"];
		$this->field_3074->AdvancedSearch->SearchOperator2 = @$filter["w_field_3074"];
		$this->field_3074->AdvancedSearch->save();

		// Field field_3074_en_us
		$this->field_3074_en_us->AdvancedSearch->SearchValue = @$filter["x_field_3074_en_us"];
		$this->field_3074_en_us->AdvancedSearch->SearchOperator = @$filter["z_field_3074_en_us"];
		$this->field_3074_en_us->AdvancedSearch->SearchCondition = @$filter["v_field_3074_en_us"];
		$this->field_3074_en_us->AdvancedSearch->SearchValue2 = @$filter["y_field_3074_en_us"];
		$this->field_3074_en_us->AdvancedSearch->SearchOperator2 = @$filter["w_field_3074_en_us"];
		$this->field_3074_en_us->AdvancedSearch->save();

		// Field field_3074_fr_fr
		$this->field_3074_fr_fr->AdvancedSearch->SearchValue = @$filter["x_field_3074_fr_fr"];
		$this->field_3074_fr_fr->AdvancedSearch->SearchOperator = @$filter["z_field_3074_fr_fr"];
		$this->field_3074_fr_fr->AdvancedSearch->SearchCondition = @$filter["v_field_3074_fr_fr"];
		$this->field_3074_fr_fr->AdvancedSearch->SearchValue2 = @$filter["y_field_3074_fr_fr"];
		$this->field_3074_fr_fr->AdvancedSearch->SearchOperator2 = @$filter["w_field_3074_fr_fr"];
		$this->field_3074_fr_fr->AdvancedSearch->save();

		// Field field_3075
		$this->field_3075->AdvancedSearch->SearchValue = @$filter["x_field_3075"];
		$this->field_3075->AdvancedSearch->SearchOperator = @$filter["z_field_3075"];
		$this->field_3075->AdvancedSearch->SearchCondition = @$filter["v_field_3075"];
		$this->field_3075->AdvancedSearch->SearchValue2 = @$filter["y_field_3075"];
		$this->field_3075->AdvancedSearch->SearchOperator2 = @$filter["w_field_3075"];
		$this->field_3075->AdvancedSearch->save();

		// Field field_3076
		$this->field_3076->AdvancedSearch->SearchValue = @$filter["x_field_3076"];
		$this->field_3076->AdvancedSearch->SearchOperator = @$filter["z_field_3076"];
		$this->field_3076->AdvancedSearch->SearchCondition = @$filter["v_field_3076"];
		$this->field_3076->AdvancedSearch->SearchValue2 = @$filter["y_field_3076"];
		$this->field_3076->AdvancedSearch->SearchOperator2 = @$filter["w_field_3076"];
		$this->field_3076->AdvancedSearch->save();

		// Field field_3077
		$this->field_3077->AdvancedSearch->SearchValue = @$filter["x_field_3077"];
		$this->field_3077->AdvancedSearch->SearchOperator = @$filter["z_field_3077"];
		$this->field_3077->AdvancedSearch->SearchCondition = @$filter["v_field_3077"];
		$this->field_3077->AdvancedSearch->SearchValue2 = @$filter["y_field_3077"];
		$this->field_3077->AdvancedSearch->SearchOperator2 = @$filter["w_field_3077"];
		$this->field_3077->AdvancedSearch->save();

		// Field field_3078
		$this->field_3078->AdvancedSearch->SearchValue = @$filter["x_field_3078"];
		$this->field_3078->AdvancedSearch->SearchOperator = @$filter["z_field_3078"];
		$this->field_3078->AdvancedSearch->SearchCondition = @$filter["v_field_3078"];
		$this->field_3078->AdvancedSearch->SearchValue2 = @$filter["y_field_3078"];
		$this->field_3078->AdvancedSearch->SearchOperator2 = @$filter["w_field_3078"];
		$this->field_3078->AdvancedSearch->save();

		// Field field_3079
		$this->field_3079->AdvancedSearch->SearchValue = @$filter["x_field_3079"];
		$this->field_3079->AdvancedSearch->SearchOperator = @$filter["z_field_3079"];
		$this->field_3079->AdvancedSearch->SearchCondition = @$filter["v_field_3079"];
		$this->field_3079->AdvancedSearch->SearchValue2 = @$filter["y_field_3079"];
		$this->field_3079->AdvancedSearch->SearchOperator2 = @$filter["w_field_3079"];
		$this->field_3079->AdvancedSearch->save();

		// Field field_3080
		$this->field_3080->AdvancedSearch->SearchValue = @$filter["x_field_3080"];
		$this->field_3080->AdvancedSearch->SearchOperator = @$filter["z_field_3080"];
		$this->field_3080->AdvancedSearch->SearchCondition = @$filter["v_field_3080"];
		$this->field_3080->AdvancedSearch->SearchValue2 = @$filter["y_field_3080"];
		$this->field_3080->AdvancedSearch->SearchOperator2 = @$filter["w_field_3080"];
		$this->field_3080->AdvancedSearch->save();

		// Field field_3076_en_us
		$this->field_3076_en_us->AdvancedSearch->SearchValue = @$filter["x_field_3076_en_us"];
		$this->field_3076_en_us->AdvancedSearch->SearchOperator = @$filter["z_field_3076_en_us"];
		$this->field_3076_en_us->AdvancedSearch->SearchCondition = @$filter["v_field_3076_en_us"];
		$this->field_3076_en_us->AdvancedSearch->SearchValue2 = @$filter["y_field_3076_en_us"];
		$this->field_3076_en_us->AdvancedSearch->SearchOperator2 = @$filter["w_field_3076_en_us"];
		$this->field_3076_en_us->AdvancedSearch->save();

		// Field field_3076_fr_fr
		$this->field_3076_fr_fr->AdvancedSearch->SearchValue = @$filter["x_field_3076_fr_fr"];
		$this->field_3076_fr_fr->AdvancedSearch->SearchOperator = @$filter["z_field_3076_fr_fr"];
		$this->field_3076_fr_fr->AdvancedSearch->SearchCondition = @$filter["v_field_3076_fr_fr"];
		$this->field_3076_fr_fr->AdvancedSearch->SearchValue2 = @$filter["y_field_3076_fr_fr"];
		$this->field_3076_fr_fr->AdvancedSearch->SearchOperator2 = @$filter["w_field_3076_fr_fr"];
		$this->field_3076_fr_fr->AdvancedSearch->save();

		// Field field_3080_en_us
		$this->field_3080_en_us->AdvancedSearch->SearchValue = @$filter["x_field_3080_en_us"];
		$this->field_3080_en_us->AdvancedSearch->SearchOperator = @$filter["z_field_3080_en_us"];
		$this->field_3080_en_us->AdvancedSearch->SearchCondition = @$filter["v_field_3080_en_us"];
		$this->field_3080_en_us->AdvancedSearch->SearchValue2 = @$filter["y_field_3080_en_us"];
		$this->field_3080_en_us->AdvancedSearch->SearchOperator2 = @$filter["w_field_3080_en_us"];
		$this->field_3080_en_us->AdvancedSearch->save();

		// Field field_3080_fr_fr
		$this->field_3080_fr_fr->AdvancedSearch->SearchValue = @$filter["x_field_3080_fr_fr"];
		$this->field_3080_fr_fr->AdvancedSearch->SearchOperator = @$filter["z_field_3080_fr_fr"];
		$this->field_3080_fr_fr->AdvancedSearch->SearchCondition = @$filter["v_field_3080_fr_fr"];
		$this->field_3080_fr_fr->AdvancedSearch->SearchValue2 = @$filter["y_field_3080_fr_fr"];
		$this->field_3080_fr_fr->AdvancedSearch->SearchOperator2 = @$filter["w_field_3080_fr_fr"];
		$this->field_3080_fr_fr->AdvancedSearch->save();

		// Field field_3081
		$this->field_3081->AdvancedSearch->SearchValue = @$filter["x_field_3081"];
		$this->field_3081->AdvancedSearch->SearchOperator = @$filter["z_field_3081"];
		$this->field_3081->AdvancedSearch->SearchCondition = @$filter["v_field_3081"];
		$this->field_3081->AdvancedSearch->SearchValue2 = @$filter["y_field_3081"];
		$this->field_3081->AdvancedSearch->SearchOperator2 = @$filter["w_field_3081"];
		$this->field_3081->AdvancedSearch->save();

		// Field field_3081_en_us
		$this->field_3081_en_us->AdvancedSearch->SearchValue = @$filter["x_field_3081_en_us"];
		$this->field_3081_en_us->AdvancedSearch->SearchOperator = @$filter["z_field_3081_en_us"];
		$this->field_3081_en_us->AdvancedSearch->SearchCondition = @$filter["v_field_3081_en_us"];
		$this->field_3081_en_us->AdvancedSearch->SearchValue2 = @$filter["y_field_3081_en_us"];
		$this->field_3081_en_us->AdvancedSearch->SearchOperator2 = @$filter["w_field_3081_en_us"];
		$this->field_3081_en_us->AdvancedSearch->save();

		// Field field_3081_fr_fr
		$this->field_3081_fr_fr->AdvancedSearch->SearchValue = @$filter["x_field_3081_fr_fr"];
		$this->field_3081_fr_fr->AdvancedSearch->SearchOperator = @$filter["z_field_3081_fr_fr"];
		$this->field_3081_fr_fr->AdvancedSearch->SearchCondition = @$filter["v_field_3081_fr_fr"];
		$this->field_3081_fr_fr->AdvancedSearch->SearchValue2 = @$filter["y_field_3081_fr_fr"];
		$this->field_3081_fr_fr->AdvancedSearch->SearchOperator2 = @$filter["w_field_3081_fr_fr"];
		$this->field_3081_fr_fr->AdvancedSearch->save();

		// Field field_3082
		$this->field_3082->AdvancedSearch->SearchValue = @$filter["x_field_3082"];
		$this->field_3082->AdvancedSearch->SearchOperator = @$filter["z_field_3082"];
		$this->field_3082->AdvancedSearch->SearchCondition = @$filter["v_field_3082"];
		$this->field_3082->AdvancedSearch->SearchValue2 = @$filter["y_field_3082"];
		$this->field_3082->AdvancedSearch->SearchOperator2 = @$filter["w_field_3082"];
		$this->field_3082->AdvancedSearch->save();

		// Field field_3082_en_us
		$this->field_3082_en_us->AdvancedSearch->SearchValue = @$filter["x_field_3082_en_us"];
		$this->field_3082_en_us->AdvancedSearch->SearchOperator = @$filter["z_field_3082_en_us"];
		$this->field_3082_en_us->AdvancedSearch->SearchCondition = @$filter["v_field_3082_en_us"];
		$this->field_3082_en_us->AdvancedSearch->SearchValue2 = @$filter["y_field_3082_en_us"];
		$this->field_3082_en_us->AdvancedSearch->SearchOperator2 = @$filter["w_field_3082_en_us"];
		$this->field_3082_en_us->AdvancedSearch->save();

		// Field field_3082_fr_fr
		$this->field_3082_fr_fr->AdvancedSearch->SearchValue = @$filter["x_field_3082_fr_fr"];
		$this->field_3082_fr_fr->AdvancedSearch->SearchOperator = @$filter["z_field_3082_fr_fr"];
		$this->field_3082_fr_fr->AdvancedSearch->SearchCondition = @$filter["v_field_3082_fr_fr"];
		$this->field_3082_fr_fr->AdvancedSearch->SearchValue2 = @$filter["y_field_3082_fr_fr"];
		$this->field_3082_fr_fr->AdvancedSearch->SearchOperator2 = @$filter["w_field_3082_fr_fr"];
		$this->field_3082_fr_fr->AdvancedSearch->save();

		// Field field_3084
		$this->field_3084->AdvancedSearch->SearchValue = @$filter["x_field_3084"];
		$this->field_3084->AdvancedSearch->SearchOperator = @$filter["z_field_3084"];
		$this->field_3084->AdvancedSearch->SearchCondition = @$filter["v_field_3084"];
		$this->field_3084->AdvancedSearch->SearchValue2 = @$filter["y_field_3084"];
		$this->field_3084->AdvancedSearch->SearchOperator2 = @$filter["w_field_3084"];
		$this->field_3084->AdvancedSearch->save();

		// Field field_3085
		$this->field_3085->AdvancedSearch->SearchValue = @$filter["x_field_3085"];
		$this->field_3085->AdvancedSearch->SearchOperator = @$filter["z_field_3085"];
		$this->field_3085->AdvancedSearch->SearchCondition = @$filter["v_field_3085"];
		$this->field_3085->AdvancedSearch->SearchValue2 = @$filter["y_field_3085"];
		$this->field_3085->AdvancedSearch->SearchOperator2 = @$filter["w_field_3085"];
		$this->field_3085->AdvancedSearch->save();

		// Field field_3086
		$this->field_3086->AdvancedSearch->SearchValue = @$filter["x_field_3086"];
		$this->field_3086->AdvancedSearch->SearchOperator = @$filter["z_field_3086"];
		$this->field_3086->AdvancedSearch->SearchCondition = @$filter["v_field_3086"];
		$this->field_3086->AdvancedSearch->SearchValue2 = @$filter["y_field_3086"];
		$this->field_3086->AdvancedSearch->SearchOperator2 = @$filter["w_field_3086"];
		$this->field_3086->AdvancedSearch->save();

		// Field field_3096
		$this->field_3096->AdvancedSearch->SearchValue = @$filter["x_field_3096"];
		$this->field_3096->AdvancedSearch->SearchOperator = @$filter["z_field_3096"];
		$this->field_3096->AdvancedSearch->SearchCondition = @$filter["v_field_3096"];
		$this->field_3096->AdvancedSearch->SearchValue2 = @$filter["y_field_3096"];
		$this->field_3096->AdvancedSearch->SearchOperator2 = @$filter["w_field_3096"];
		$this->field_3096->AdvancedSearch->save();

		// Field field_3097
		$this->field_3097->AdvancedSearch->SearchValue = @$filter["x_field_3097"];
		$this->field_3097->AdvancedSearch->SearchOperator = @$filter["z_field_3097"];
		$this->field_3097->AdvancedSearch->SearchCondition = @$filter["v_field_3097"];
		$this->field_3097->AdvancedSearch->SearchValue2 = @$filter["y_field_3097"];
		$this->field_3097->AdvancedSearch->SearchOperator2 = @$filter["w_field_3097"];
		$this->field_3097->AdvancedSearch->save();

		// Field field_3098
		$this->field_3098->AdvancedSearch->SearchValue = @$filter["x_field_3098"];
		$this->field_3098->AdvancedSearch->SearchOperator = @$filter["z_field_3098"];
		$this->field_3098->AdvancedSearch->SearchCondition = @$filter["v_field_3098"];
		$this->field_3098->AdvancedSearch->SearchValue2 = @$filter["y_field_3098"];
		$this->field_3098->AdvancedSearch->SearchOperator2 = @$filter["w_field_3098"];
		$this->field_3098->AdvancedSearch->save();

		// Field field_3099
		$this->field_3099->AdvancedSearch->SearchValue = @$filter["x_field_3099"];
		$this->field_3099->AdvancedSearch->SearchOperator = @$filter["z_field_3099"];
		$this->field_3099->AdvancedSearch->SearchCondition = @$filter["v_field_3099"];
		$this->field_3099->AdvancedSearch->SearchValue2 = @$filter["y_field_3099"];
		$this->field_3099->AdvancedSearch->SearchOperator2 = @$filter["w_field_3099"];
		$this->field_3099->AdvancedSearch->save();

		// Field field_3100
		$this->field_3100->AdvancedSearch->SearchValue = @$filter["x_field_3100"];
		$this->field_3100->AdvancedSearch->SearchOperator = @$filter["z_field_3100"];
		$this->field_3100->AdvancedSearch->SearchCondition = @$filter["v_field_3100"];
		$this->field_3100->AdvancedSearch->SearchValue2 = @$filter["y_field_3100"];
		$this->field_3100->AdvancedSearch->SearchOperator2 = @$filter["w_field_3100"];
		$this->field_3100->AdvancedSearch->save();

		// Field field_3101
		$this->field_3101->AdvancedSearch->SearchValue = @$filter["x_field_3101"];
		$this->field_3101->AdvancedSearch->SearchOperator = @$filter["z_field_3101"];
		$this->field_3101->AdvancedSearch->SearchCondition = @$filter["v_field_3101"];
		$this->field_3101->AdvancedSearch->SearchValue2 = @$filter["y_field_3101"];
		$this->field_3101->AdvancedSearch->SearchOperator2 = @$filter["w_field_3101"];
		$this->field_3101->AdvancedSearch->save();

		// Field field_3102
		$this->field_3102->AdvancedSearch->SearchValue = @$filter["x_field_3102"];
		$this->field_3102->AdvancedSearch->SearchOperator = @$filter["z_field_3102"];
		$this->field_3102->AdvancedSearch->SearchCondition = @$filter["v_field_3102"];
		$this->field_3102->AdvancedSearch->SearchValue2 = @$filter["y_field_3102"];
		$this->field_3102->AdvancedSearch->SearchOperator2 = @$filter["w_field_3102"];
		$this->field_3102->AdvancedSearch->save();

		// Field field_3103
		$this->field_3103->AdvancedSearch->SearchValue = @$filter["x_field_3103"];
		$this->field_3103->AdvancedSearch->SearchOperator = @$filter["z_field_3103"];
		$this->field_3103->AdvancedSearch->SearchCondition = @$filter["v_field_3103"];
		$this->field_3103->AdvancedSearch->SearchValue2 = @$filter["y_field_3103"];
		$this->field_3103->AdvancedSearch->SearchOperator2 = @$filter["w_field_3103"];
		$this->field_3103->AdvancedSearch->save();

		// Field field_3104
		$this->field_3104->AdvancedSearch->SearchValue = @$filter["x_field_3104"];
		$this->field_3104->AdvancedSearch->SearchOperator = @$filter["z_field_3104"];
		$this->field_3104->AdvancedSearch->SearchCondition = @$filter["v_field_3104"];
		$this->field_3104->AdvancedSearch->SearchValue2 = @$filter["y_field_3104"];
		$this->field_3104->AdvancedSearch->SearchOperator2 = @$filter["w_field_3104"];
		$this->field_3104->AdvancedSearch->save();

		// Field field_3105
		$this->field_3105->AdvancedSearch->SearchValue = @$filter["x_field_3105"];
		$this->field_3105->AdvancedSearch->SearchOperator = @$filter["z_field_3105"];
		$this->field_3105->AdvancedSearch->SearchCondition = @$filter["v_field_3105"];
		$this->field_3105->AdvancedSearch->SearchValue2 = @$filter["y_field_3105"];
		$this->field_3105->AdvancedSearch->SearchOperator2 = @$filter["w_field_3105"];
		$this->field_3105->AdvancedSearch->save();

		// Field field_3106
		$this->field_3106->AdvancedSearch->SearchValue = @$filter["x_field_3106"];
		$this->field_3106->AdvancedSearch->SearchOperator = @$filter["z_field_3106"];
		$this->field_3106->AdvancedSearch->SearchCondition = @$filter["v_field_3106"];
		$this->field_3106->AdvancedSearch->SearchValue2 = @$filter["y_field_3106"];
		$this->field_3106->AdvancedSearch->SearchOperator2 = @$filter["w_field_3106"];
		$this->field_3106->AdvancedSearch->save();

		// Field field_3107
		$this->field_3107->AdvancedSearch->SearchValue = @$filter["x_field_3107"];
		$this->field_3107->AdvancedSearch->SearchOperator = @$filter["z_field_3107"];
		$this->field_3107->AdvancedSearch->SearchCondition = @$filter["v_field_3107"];
		$this->field_3107->AdvancedSearch->SearchValue2 = @$filter["y_field_3107"];
		$this->field_3107->AdvancedSearch->SearchOperator2 = @$filter["w_field_3107"];
		$this->field_3107->AdvancedSearch->save();

		// Field field_3108
		$this->field_3108->AdvancedSearch->SearchValue = @$filter["x_field_3108"];
		$this->field_3108->AdvancedSearch->SearchOperator = @$filter["z_field_3108"];
		$this->field_3108->AdvancedSearch->SearchCondition = @$filter["v_field_3108"];
		$this->field_3108->AdvancedSearch->SearchValue2 = @$filter["y_field_3108"];
		$this->field_3108->AdvancedSearch->SearchOperator2 = @$filter["w_field_3108"];
		$this->field_3108->AdvancedSearch->save();

		// Field field_3109
		$this->field_3109->AdvancedSearch->SearchValue = @$filter["x_field_3109"];
		$this->field_3109->AdvancedSearch->SearchOperator = @$filter["z_field_3109"];
		$this->field_3109->AdvancedSearch->SearchCondition = @$filter["v_field_3109"];
		$this->field_3109->AdvancedSearch->SearchValue2 = @$filter["y_field_3109"];
		$this->field_3109->AdvancedSearch->SearchOperator2 = @$filter["w_field_3109"];
		$this->field_3109->AdvancedSearch->save();

		// Field field_3110
		$this->field_3110->AdvancedSearch->SearchValue = @$filter["x_field_3110"];
		$this->field_3110->AdvancedSearch->SearchOperator = @$filter["z_field_3110"];
		$this->field_3110->AdvancedSearch->SearchCondition = @$filter["v_field_3110"];
		$this->field_3110->AdvancedSearch->SearchValue2 = @$filter["y_field_3110"];
		$this->field_3110->AdvancedSearch->SearchOperator2 = @$filter["w_field_3110"];
		$this->field_3110->AdvancedSearch->save();

		// Field field_3111
		$this->field_3111->AdvancedSearch->SearchValue = @$filter["x_field_3111"];
		$this->field_3111->AdvancedSearch->SearchOperator = @$filter["z_field_3111"];
		$this->field_3111->AdvancedSearch->SearchCondition = @$filter["v_field_3111"];
		$this->field_3111->AdvancedSearch->SearchValue2 = @$filter["y_field_3111"];
		$this->field_3111->AdvancedSearch->SearchOperator2 = @$filter["w_field_3111"];
		$this->field_3111->AdvancedSearch->save();

		// Field field_3112
		$this->field_3112->AdvancedSearch->SearchValue = @$filter["x_field_3112"];
		$this->field_3112->AdvancedSearch->SearchOperator = @$filter["z_field_3112"];
		$this->field_3112->AdvancedSearch->SearchCondition = @$filter["v_field_3112"];
		$this->field_3112->AdvancedSearch->SearchValue2 = @$filter["y_field_3112"];
		$this->field_3112->AdvancedSearch->SearchOperator2 = @$filter["w_field_3112"];
		$this->field_3112->AdvancedSearch->save();

		// Field field_3113
		$this->field_3113->AdvancedSearch->SearchValue = @$filter["x_field_3113"];
		$this->field_3113->AdvancedSearch->SearchOperator = @$filter["z_field_3113"];
		$this->field_3113->AdvancedSearch->SearchCondition = @$filter["v_field_3113"];
		$this->field_3113->AdvancedSearch->SearchValue2 = @$filter["y_field_3113"];
		$this->field_3113->AdvancedSearch->SearchOperator2 = @$filter["w_field_3113"];
		$this->field_3113->AdvancedSearch->save();

		// Field field_3113_en_us
		$this->field_3113_en_us->AdvancedSearch->SearchValue = @$filter["x_field_3113_en_us"];
		$this->field_3113_en_us->AdvancedSearch->SearchOperator = @$filter["z_field_3113_en_us"];
		$this->field_3113_en_us->AdvancedSearch->SearchCondition = @$filter["v_field_3113_en_us"];
		$this->field_3113_en_us->AdvancedSearch->SearchValue2 = @$filter["y_field_3113_en_us"];
		$this->field_3113_en_us->AdvancedSearch->SearchOperator2 = @$filter["w_field_3113_en_us"];
		$this->field_3113_en_us->AdvancedSearch->save();

		// Field field_3113_fr_fr
		$this->field_3113_fr_fr->AdvancedSearch->SearchValue = @$filter["x_field_3113_fr_fr"];
		$this->field_3113_fr_fr->AdvancedSearch->SearchOperator = @$filter["z_field_3113_fr_fr"];
		$this->field_3113_fr_fr->AdvancedSearch->SearchCondition = @$filter["v_field_3113_fr_fr"];
		$this->field_3113_fr_fr->AdvancedSearch->SearchValue2 = @$filter["y_field_3113_fr_fr"];
		$this->field_3113_fr_fr->AdvancedSearch->SearchOperator2 = @$filter["w_field_3113_fr_fr"];
		$this->field_3113_fr_fr->AdvancedSearch->save();

		// Field field_3114
		$this->field_3114->AdvancedSearch->SearchValue = @$filter["x_field_3114"];
		$this->field_3114->AdvancedSearch->SearchOperator = @$filter["z_field_3114"];
		$this->field_3114->AdvancedSearch->SearchCondition = @$filter["v_field_3114"];
		$this->field_3114->AdvancedSearch->SearchValue2 = @$filter["y_field_3114"];
		$this->field_3114->AdvancedSearch->SearchOperator2 = @$filter["w_field_3114"];
		$this->field_3114->AdvancedSearch->save();

		// Field field_3115
		$this->field_3115->AdvancedSearch->SearchValue = @$filter["x_field_3115"];
		$this->field_3115->AdvancedSearch->SearchOperator = @$filter["z_field_3115"];
		$this->field_3115->AdvancedSearch->SearchCondition = @$filter["v_field_3115"];
		$this->field_3115->AdvancedSearch->SearchValue2 = @$filter["y_field_3115"];
		$this->field_3115->AdvancedSearch->SearchOperator2 = @$filter["w_field_3115"];
		$this->field_3115->AdvancedSearch->save();

		// Field field_3115_si
		$this->field_3115_si->AdvancedSearch->SearchValue = @$filter["x_field_3115_si"];
		$this->field_3115_si->AdvancedSearch->SearchOperator = @$filter["z_field_3115_si"];
		$this->field_3115_si->AdvancedSearch->SearchCondition = @$filter["v_field_3115_si"];
		$this->field_3115_si->AdvancedSearch->SearchValue2 = @$filter["y_field_3115_si"];
		$this->field_3115_si->AdvancedSearch->SearchOperator2 = @$filter["w_field_3115_si"];
		$this->field_3115_si->AdvancedSearch->save();

		// Field field_3115_unit
		$this->field_3115_unit->AdvancedSearch->SearchValue = @$filter["x_field_3115_unit"];
		$this->field_3115_unit->AdvancedSearch->SearchOperator = @$filter["z_field_3115_unit"];
		$this->field_3115_unit->AdvancedSearch->SearchCondition = @$filter["v_field_3115_unit"];
		$this->field_3115_unit->AdvancedSearch->SearchValue2 = @$filter["y_field_3115_unit"];
		$this->field_3115_unit->AdvancedSearch->SearchOperator2 = @$filter["w_field_3115_unit"];
		$this->field_3115_unit->AdvancedSearch->save();

		// Field field_3116
		$this->field_3116->AdvancedSearch->SearchValue = @$filter["x_field_3116"];
		$this->field_3116->AdvancedSearch->SearchOperator = @$filter["z_field_3116"];
		$this->field_3116->AdvancedSearch->SearchCondition = @$filter["v_field_3116"];
		$this->field_3116->AdvancedSearch->SearchValue2 = @$filter["y_field_3116"];
		$this->field_3116->AdvancedSearch->SearchOperator2 = @$filter["w_field_3116"];
		$this->field_3116->AdvancedSearch->save();

		// Field field_3117
		$this->field_3117->AdvancedSearch->SearchValue = @$filter["x_field_3117"];
		$this->field_3117->AdvancedSearch->SearchOperator = @$filter["z_field_3117"];
		$this->field_3117->AdvancedSearch->SearchCondition = @$filter["v_field_3117"];
		$this->field_3117->AdvancedSearch->SearchValue2 = @$filter["y_field_3117"];
		$this->field_3117->AdvancedSearch->SearchOperator2 = @$filter["w_field_3117"];
		$this->field_3117->AdvancedSearch->save();

		// Field field_3117_en_us
		$this->field_3117_en_us->AdvancedSearch->SearchValue = @$filter["x_field_3117_en_us"];
		$this->field_3117_en_us->AdvancedSearch->SearchOperator = @$filter["z_field_3117_en_us"];
		$this->field_3117_en_us->AdvancedSearch->SearchCondition = @$filter["v_field_3117_en_us"];
		$this->field_3117_en_us->AdvancedSearch->SearchValue2 = @$filter["y_field_3117_en_us"];
		$this->field_3117_en_us->AdvancedSearch->SearchOperator2 = @$filter["w_field_3117_en_us"];
		$this->field_3117_en_us->AdvancedSearch->save();

		// Field field_3117_fr_fr
		$this->field_3117_fr_fr->AdvancedSearch->SearchValue = @$filter["x_field_3117_fr_fr"];
		$this->field_3117_fr_fr->AdvancedSearch->SearchOperator = @$filter["z_field_3117_fr_fr"];
		$this->field_3117_fr_fr->AdvancedSearch->SearchCondition = @$filter["v_field_3117_fr_fr"];
		$this->field_3117_fr_fr->AdvancedSearch->SearchValue2 = @$filter["y_field_3117_fr_fr"];
		$this->field_3117_fr_fr->AdvancedSearch->SearchOperator2 = @$filter["w_field_3117_fr_fr"];
		$this->field_3117_fr_fr->AdvancedSearch->save();

		// Field field_3118
		$this->field_3118->AdvancedSearch->SearchValue = @$filter["x_field_3118"];
		$this->field_3118->AdvancedSearch->SearchOperator = @$filter["z_field_3118"];
		$this->field_3118->AdvancedSearch->SearchCondition = @$filter["v_field_3118"];
		$this->field_3118->AdvancedSearch->SearchValue2 = @$filter["y_field_3118"];
		$this->field_3118->AdvancedSearch->SearchOperator2 = @$filter["w_field_3118"];
		$this->field_3118->AdvancedSearch->save();

		// Field field_3118_en_us
		$this->field_3118_en_us->AdvancedSearch->SearchValue = @$filter["x_field_3118_en_us"];
		$this->field_3118_en_us->AdvancedSearch->SearchOperator = @$filter["z_field_3118_en_us"];
		$this->field_3118_en_us->AdvancedSearch->SearchCondition = @$filter["v_field_3118_en_us"];
		$this->field_3118_en_us->AdvancedSearch->SearchValue2 = @$filter["y_field_3118_en_us"];
		$this->field_3118_en_us->AdvancedSearch->SearchOperator2 = @$filter["w_field_3118_en_us"];
		$this->field_3118_en_us->AdvancedSearch->save();

		// Field field_3118_fr_fr
		$this->field_3118_fr_fr->AdvancedSearch->SearchValue = @$filter["x_field_3118_fr_fr"];
		$this->field_3118_fr_fr->AdvancedSearch->SearchOperator = @$filter["z_field_3118_fr_fr"];
		$this->field_3118_fr_fr->AdvancedSearch->SearchCondition = @$filter["v_field_3118_fr_fr"];
		$this->field_3118_fr_fr->AdvancedSearch->SearchValue2 = @$filter["y_field_3118_fr_fr"];
		$this->field_3118_fr_fr->AdvancedSearch->SearchOperator2 = @$filter["w_field_3118_fr_fr"];
		$this->field_3118_fr_fr->AdvancedSearch->save();

		// Field field_3119
		$this->field_3119->AdvancedSearch->SearchValue = @$filter["x_field_3119"];
		$this->field_3119->AdvancedSearch->SearchOperator = @$filter["z_field_3119"];
		$this->field_3119->AdvancedSearch->SearchCondition = @$filter["v_field_3119"];
		$this->field_3119->AdvancedSearch->SearchValue2 = @$filter["y_field_3119"];
		$this->field_3119->AdvancedSearch->SearchOperator2 = @$filter["w_field_3119"];
		$this->field_3119->AdvancedSearch->save();

		// Field field_3119_en_us
		$this->field_3119_en_us->AdvancedSearch->SearchValue = @$filter["x_field_3119_en_us"];
		$this->field_3119_en_us->AdvancedSearch->SearchOperator = @$filter["z_field_3119_en_us"];
		$this->field_3119_en_us->AdvancedSearch->SearchCondition = @$filter["v_field_3119_en_us"];
		$this->field_3119_en_us->AdvancedSearch->SearchValue2 = @$filter["y_field_3119_en_us"];
		$this->field_3119_en_us->AdvancedSearch->SearchOperator2 = @$filter["w_field_3119_en_us"];
		$this->field_3119_en_us->AdvancedSearch->save();

		// Field field_3119_fr_fr
		$this->field_3119_fr_fr->AdvancedSearch->SearchValue = @$filter["x_field_3119_fr_fr"];
		$this->field_3119_fr_fr->AdvancedSearch->SearchOperator = @$filter["z_field_3119_fr_fr"];
		$this->field_3119_fr_fr->AdvancedSearch->SearchCondition = @$filter["v_field_3119_fr_fr"];
		$this->field_3119_fr_fr->AdvancedSearch->SearchValue2 = @$filter["y_field_3119_fr_fr"];
		$this->field_3119_fr_fr->AdvancedSearch->SearchOperator2 = @$filter["w_field_3119_fr_fr"];
		$this->field_3119_fr_fr->AdvancedSearch->save();

		// Field field_3120
		$this->field_3120->AdvancedSearch->SearchValue = @$filter["x_field_3120"];
		$this->field_3120->AdvancedSearch->SearchOperator = @$filter["z_field_3120"];
		$this->field_3120->AdvancedSearch->SearchCondition = @$filter["v_field_3120"];
		$this->field_3120->AdvancedSearch->SearchValue2 = @$filter["y_field_3120"];
		$this->field_3120->AdvancedSearch->SearchOperator2 = @$filter["w_field_3120"];
		$this->field_3120->AdvancedSearch->save();

		// Field field_3120_en_us
		$this->field_3120_en_us->AdvancedSearch->SearchValue = @$filter["x_field_3120_en_us"];
		$this->field_3120_en_us->AdvancedSearch->SearchOperator = @$filter["z_field_3120_en_us"];
		$this->field_3120_en_us->AdvancedSearch->SearchCondition = @$filter["v_field_3120_en_us"];
		$this->field_3120_en_us->AdvancedSearch->SearchValue2 = @$filter["y_field_3120_en_us"];
		$this->field_3120_en_us->AdvancedSearch->SearchOperator2 = @$filter["w_field_3120_en_us"];
		$this->field_3120_en_us->AdvancedSearch->save();

		// Field field_3120_fr_fr
		$this->field_3120_fr_fr->AdvancedSearch->SearchValue = @$filter["x_field_3120_fr_fr"];
		$this->field_3120_fr_fr->AdvancedSearch->SearchOperator = @$filter["z_field_3120_fr_fr"];
		$this->field_3120_fr_fr->AdvancedSearch->SearchCondition = @$filter["v_field_3120_fr_fr"];
		$this->field_3120_fr_fr->AdvancedSearch->SearchValue2 = @$filter["y_field_3120_fr_fr"];
		$this->field_3120_fr_fr->AdvancedSearch->SearchOperator2 = @$filter["w_field_3120_fr_fr"];
		$this->field_3120_fr_fr->AdvancedSearch->save();

		// Field field_3121
		$this->field_3121->AdvancedSearch->SearchValue = @$filter["x_field_3121"];
		$this->field_3121->AdvancedSearch->SearchOperator = @$filter["z_field_3121"];
		$this->field_3121->AdvancedSearch->SearchCondition = @$filter["v_field_3121"];
		$this->field_3121->AdvancedSearch->SearchValue2 = @$filter["y_field_3121"];
		$this->field_3121->AdvancedSearch->SearchOperator2 = @$filter["w_field_3121"];
		$this->field_3121->AdvancedSearch->save();

		// Field field_3122
		$this->field_3122->AdvancedSearch->SearchValue = @$filter["x_field_3122"];
		$this->field_3122->AdvancedSearch->SearchOperator = @$filter["z_field_3122"];
		$this->field_3122->AdvancedSearch->SearchCondition = @$filter["v_field_3122"];
		$this->field_3122->AdvancedSearch->SearchValue2 = @$filter["y_field_3122"];
		$this->field_3122->AdvancedSearch->SearchOperator2 = @$filter["w_field_3122"];
		$this->field_3122->AdvancedSearch->save();

		// Field field_3122_si
		$this->field_3122_si->AdvancedSearch->SearchValue = @$filter["x_field_3122_si"];
		$this->field_3122_si->AdvancedSearch->SearchOperator = @$filter["z_field_3122_si"];
		$this->field_3122_si->AdvancedSearch->SearchCondition = @$filter["v_field_3122_si"];
		$this->field_3122_si->AdvancedSearch->SearchValue2 = @$filter["y_field_3122_si"];
		$this->field_3122_si->AdvancedSearch->SearchOperator2 = @$filter["w_field_3122_si"];
		$this->field_3122_si->AdvancedSearch->save();

		// Field field_3122_unit
		$this->field_3122_unit->AdvancedSearch->SearchValue = @$filter["x_field_3122_unit"];
		$this->field_3122_unit->AdvancedSearch->SearchOperator = @$filter["z_field_3122_unit"];
		$this->field_3122_unit->AdvancedSearch->SearchCondition = @$filter["v_field_3122_unit"];
		$this->field_3122_unit->AdvancedSearch->SearchValue2 = @$filter["y_field_3122_unit"];
		$this->field_3122_unit->AdvancedSearch->SearchOperator2 = @$filter["w_field_3122_unit"];
		$this->field_3122_unit->AdvancedSearch->save();

		// Field field_3123
		$this->field_3123->AdvancedSearch->SearchValue = @$filter["x_field_3123"];
		$this->field_3123->AdvancedSearch->SearchOperator = @$filter["z_field_3123"];
		$this->field_3123->AdvancedSearch->SearchCondition = @$filter["v_field_3123"];
		$this->field_3123->AdvancedSearch->SearchValue2 = @$filter["y_field_3123"];
		$this->field_3123->AdvancedSearch->SearchOperator2 = @$filter["w_field_3123"];
		$this->field_3123->AdvancedSearch->save();

		// Field field_3124
		$this->field_3124->AdvancedSearch->SearchValue = @$filter["x_field_3124"];
		$this->field_3124->AdvancedSearch->SearchOperator = @$filter["z_field_3124"];
		$this->field_3124->AdvancedSearch->SearchCondition = @$filter["v_field_3124"];
		$this->field_3124->AdvancedSearch->SearchValue2 = @$filter["y_field_3124"];
		$this->field_3124->AdvancedSearch->SearchOperator2 = @$filter["w_field_3124"];
		$this->field_3124->AdvancedSearch->save();

		// Field field_3125
		$this->field_3125->AdvancedSearch->SearchValue = @$filter["x_field_3125"];
		$this->field_3125->AdvancedSearch->SearchOperator = @$filter["z_field_3125"];
		$this->field_3125->AdvancedSearch->SearchCondition = @$filter["v_field_3125"];
		$this->field_3125->AdvancedSearch->SearchValue2 = @$filter["y_field_3125"];
		$this->field_3125->AdvancedSearch->SearchOperator2 = @$filter["w_field_3125"];
		$this->field_3125->AdvancedSearch->save();

		// Field field_3126
		$this->field_3126->AdvancedSearch->SearchValue = @$filter["x_field_3126"];
		$this->field_3126->AdvancedSearch->SearchOperator = @$filter["z_field_3126"];
		$this->field_3126->AdvancedSearch->SearchCondition = @$filter["v_field_3126"];
		$this->field_3126->AdvancedSearch->SearchValue2 = @$filter["y_field_3126"];
		$this->field_3126->AdvancedSearch->SearchOperator2 = @$filter["w_field_3126"];
		$this->field_3126->AdvancedSearch->save();

		// Field field_3127
		$this->field_3127->AdvancedSearch->SearchValue = @$filter["x_field_3127"];
		$this->field_3127->AdvancedSearch->SearchOperator = @$filter["z_field_3127"];
		$this->field_3127->AdvancedSearch->SearchCondition = @$filter["v_field_3127"];
		$this->field_3127->AdvancedSearch->SearchValue2 = @$filter["y_field_3127"];
		$this->field_3127->AdvancedSearch->SearchOperator2 = @$filter["w_field_3127"];
		$this->field_3127->AdvancedSearch->save();

		// Field field_3128
		$this->field_3128->AdvancedSearch->SearchValue = @$filter["x_field_3128"];
		$this->field_3128->AdvancedSearch->SearchOperator = @$filter["z_field_3128"];
		$this->field_3128->AdvancedSearch->SearchCondition = @$filter["v_field_3128"];
		$this->field_3128->AdvancedSearch->SearchValue2 = @$filter["y_field_3128"];
		$this->field_3128->AdvancedSearch->SearchOperator2 = @$filter["w_field_3128"];
		$this->field_3128->AdvancedSearch->save();

		// Field field_3129
		$this->field_3129->AdvancedSearch->SearchValue = @$filter["x_field_3129"];
		$this->field_3129->AdvancedSearch->SearchOperator = @$filter["z_field_3129"];
		$this->field_3129->AdvancedSearch->SearchCondition = @$filter["v_field_3129"];
		$this->field_3129->AdvancedSearch->SearchValue2 = @$filter["y_field_3129"];
		$this->field_3129->AdvancedSearch->SearchOperator2 = @$filter["w_field_3129"];
		$this->field_3129->AdvancedSearch->save();

		// Field field_3130
		$this->field_3130->AdvancedSearch->SearchValue = @$filter["x_field_3130"];
		$this->field_3130->AdvancedSearch->SearchOperator = @$filter["z_field_3130"];
		$this->field_3130->AdvancedSearch->SearchCondition = @$filter["v_field_3130"];
		$this->field_3130->AdvancedSearch->SearchValue2 = @$filter["y_field_3130"];
		$this->field_3130->AdvancedSearch->SearchOperator2 = @$filter["w_field_3130"];
		$this->field_3130->AdvancedSearch->save();

		// Field field_3131
		$this->field_3131->AdvancedSearch->SearchValue = @$filter["x_field_3131"];
		$this->field_3131->AdvancedSearch->SearchOperator = @$filter["z_field_3131"];
		$this->field_3131->AdvancedSearch->SearchCondition = @$filter["v_field_3131"];
		$this->field_3131->AdvancedSearch->SearchValue2 = @$filter["y_field_3131"];
		$this->field_3131->AdvancedSearch->SearchOperator2 = @$filter["w_field_3131"];
		$this->field_3131->AdvancedSearch->save();

		// Field field_3132
		$this->field_3132->AdvancedSearch->SearchValue = @$filter["x_field_3132"];
		$this->field_3132->AdvancedSearch->SearchOperator = @$filter["z_field_3132"];
		$this->field_3132->AdvancedSearch->SearchCondition = @$filter["v_field_3132"];
		$this->field_3132->AdvancedSearch->SearchValue2 = @$filter["y_field_3132"];
		$this->field_3132->AdvancedSearch->SearchOperator2 = @$filter["w_field_3132"];
		$this->field_3132->AdvancedSearch->save();

		// Field field_3133
		$this->field_3133->AdvancedSearch->SearchValue = @$filter["x_field_3133"];
		$this->field_3133->AdvancedSearch->SearchOperator = @$filter["z_field_3133"];
		$this->field_3133->AdvancedSearch->SearchCondition = @$filter["v_field_3133"];
		$this->field_3133->AdvancedSearch->SearchValue2 = @$filter["y_field_3133"];
		$this->field_3133->AdvancedSearch->SearchOperator2 = @$filter["w_field_3133"];
		$this->field_3133->AdvancedSearch->save();

		// Field field_3134
		$this->field_3134->AdvancedSearch->SearchValue = @$filter["x_field_3134"];
		$this->field_3134->AdvancedSearch->SearchOperator = @$filter["z_field_3134"];
		$this->field_3134->AdvancedSearch->SearchCondition = @$filter["v_field_3134"];
		$this->field_3134->AdvancedSearch->SearchValue2 = @$filter["y_field_3134"];
		$this->field_3134->AdvancedSearch->SearchOperator2 = @$filter["w_field_3134"];
		$this->field_3134->AdvancedSearch->save();

		// Field field_3135
		$this->field_3135->AdvancedSearch->SearchValue = @$filter["x_field_3135"];
		$this->field_3135->AdvancedSearch->SearchOperator = @$filter["z_field_3135"];
		$this->field_3135->AdvancedSearch->SearchCondition = @$filter["v_field_3135"];
		$this->field_3135->AdvancedSearch->SearchValue2 = @$filter["y_field_3135"];
		$this->field_3135->AdvancedSearch->SearchOperator2 = @$filter["w_field_3135"];
		$this->field_3135->AdvancedSearch->save();

		// Field field_3136
		$this->field_3136->AdvancedSearch->SearchValue = @$filter["x_field_3136"];
		$this->field_3136->AdvancedSearch->SearchOperator = @$filter["z_field_3136"];
		$this->field_3136->AdvancedSearch->SearchCondition = @$filter["v_field_3136"];
		$this->field_3136->AdvancedSearch->SearchValue2 = @$filter["y_field_3136"];
		$this->field_3136->AdvancedSearch->SearchOperator2 = @$filter["w_field_3136"];
		$this->field_3136->AdvancedSearch->save();

		// Field field_3137
		$this->field_3137->AdvancedSearch->SearchValue = @$filter["x_field_3137"];
		$this->field_3137->AdvancedSearch->SearchOperator = @$filter["z_field_3137"];
		$this->field_3137->AdvancedSearch->SearchCondition = @$filter["v_field_3137"];
		$this->field_3137->AdvancedSearch->SearchValue2 = @$filter["y_field_3137"];
		$this->field_3137->AdvancedSearch->SearchOperator2 = @$filter["w_field_3137"];
		$this->field_3137->AdvancedSearch->save();

		// Field field_3138
		$this->field_3138->AdvancedSearch->SearchValue = @$filter["x_field_3138"];
		$this->field_3138->AdvancedSearch->SearchOperator = @$filter["z_field_3138"];
		$this->field_3138->AdvancedSearch->SearchCondition = @$filter["v_field_3138"];
		$this->field_3138->AdvancedSearch->SearchValue2 = @$filter["y_field_3138"];
		$this->field_3138->AdvancedSearch->SearchOperator2 = @$filter["w_field_3138"];
		$this->field_3138->AdvancedSearch->save();

		// Field field_3139
		$this->field_3139->AdvancedSearch->SearchValue = @$filter["x_field_3139"];
		$this->field_3139->AdvancedSearch->SearchOperator = @$filter["z_field_3139"];
		$this->field_3139->AdvancedSearch->SearchCondition = @$filter["v_field_3139"];
		$this->field_3139->AdvancedSearch->SearchValue2 = @$filter["y_field_3139"];
		$this->field_3139->AdvancedSearch->SearchOperator2 = @$filter["w_field_3139"];
		$this->field_3139->AdvancedSearch->save();

		// Field field_3140
		$this->field_3140->AdvancedSearch->SearchValue = @$filter["x_field_3140"];
		$this->field_3140->AdvancedSearch->SearchOperator = @$filter["z_field_3140"];
		$this->field_3140->AdvancedSearch->SearchCondition = @$filter["v_field_3140"];
		$this->field_3140->AdvancedSearch->SearchValue2 = @$filter["y_field_3140"];
		$this->field_3140->AdvancedSearch->SearchOperator2 = @$filter["w_field_3140"];
		$this->field_3140->AdvancedSearch->save();

		// Field field_3141
		$this->field_3141->AdvancedSearch->SearchValue = @$filter["x_field_3141"];
		$this->field_3141->AdvancedSearch->SearchOperator = @$filter["z_field_3141"];
		$this->field_3141->AdvancedSearch->SearchCondition = @$filter["v_field_3141"];
		$this->field_3141->AdvancedSearch->SearchValue2 = @$filter["y_field_3141"];
		$this->field_3141->AdvancedSearch->SearchOperator2 = @$filter["w_field_3141"];
		$this->field_3141->AdvancedSearch->save();

		// Field field_3142
		$this->field_3142->AdvancedSearch->SearchValue = @$filter["x_field_3142"];
		$this->field_3142->AdvancedSearch->SearchOperator = @$filter["z_field_3142"];
		$this->field_3142->AdvancedSearch->SearchCondition = @$filter["v_field_3142"];
		$this->field_3142->AdvancedSearch->SearchValue2 = @$filter["y_field_3142"];
		$this->field_3142->AdvancedSearch->SearchOperator2 = @$filter["w_field_3142"];
		$this->field_3142->AdvancedSearch->save();

		// Field field_3143
		$this->field_3143->AdvancedSearch->SearchValue = @$filter["x_field_3143"];
		$this->field_3143->AdvancedSearch->SearchOperator = @$filter["z_field_3143"];
		$this->field_3143->AdvancedSearch->SearchCondition = @$filter["v_field_3143"];
		$this->field_3143->AdvancedSearch->SearchValue2 = @$filter["y_field_3143"];
		$this->field_3143->AdvancedSearch->SearchOperator2 = @$filter["w_field_3143"];
		$this->field_3143->AdvancedSearch->save();

		// Field field_3144
		$this->field_3144->AdvancedSearch->SearchValue = @$filter["x_field_3144"];
		$this->field_3144->AdvancedSearch->SearchOperator = @$filter["z_field_3144"];
		$this->field_3144->AdvancedSearch->SearchCondition = @$filter["v_field_3144"];
		$this->field_3144->AdvancedSearch->SearchValue2 = @$filter["y_field_3144"];
		$this->field_3144->AdvancedSearch->SearchOperator2 = @$filter["w_field_3144"];
		$this->field_3144->AdvancedSearch->save();

		// Field field_3145
		$this->field_3145->AdvancedSearch->SearchValue = @$filter["x_field_3145"];
		$this->field_3145->AdvancedSearch->SearchOperator = @$filter["z_field_3145"];
		$this->field_3145->AdvancedSearch->SearchCondition = @$filter["v_field_3145"];
		$this->field_3145->AdvancedSearch->SearchValue2 = @$filter["y_field_3145"];
		$this->field_3145->AdvancedSearch->SearchOperator2 = @$filter["w_field_3145"];
		$this->field_3145->AdvancedSearch->save();

		// Field field_3146
		$this->field_3146->AdvancedSearch->SearchValue = @$filter["x_field_3146"];
		$this->field_3146->AdvancedSearch->SearchOperator = @$filter["z_field_3146"];
		$this->field_3146->AdvancedSearch->SearchCondition = @$filter["v_field_3146"];
		$this->field_3146->AdvancedSearch->SearchValue2 = @$filter["y_field_3146"];
		$this->field_3146->AdvancedSearch->SearchOperator2 = @$filter["w_field_3146"];
		$this->field_3146->AdvancedSearch->save();

		// Field field_3147
		$this->field_3147->AdvancedSearch->SearchValue = @$filter["x_field_3147"];
		$this->field_3147->AdvancedSearch->SearchOperator = @$filter["z_field_3147"];
		$this->field_3147->AdvancedSearch->SearchCondition = @$filter["v_field_3147"];
		$this->field_3147->AdvancedSearch->SearchValue2 = @$filter["y_field_3147"];
		$this->field_3147->AdvancedSearch->SearchOperator2 = @$filter["w_field_3147"];
		$this->field_3147->AdvancedSearch->save();

		// Field field_3148
		$this->field_3148->AdvancedSearch->SearchValue = @$filter["x_field_3148"];
		$this->field_3148->AdvancedSearch->SearchOperator = @$filter["z_field_3148"];
		$this->field_3148->AdvancedSearch->SearchCondition = @$filter["v_field_3148"];
		$this->field_3148->AdvancedSearch->SearchValue2 = @$filter["y_field_3148"];
		$this->field_3148->AdvancedSearch->SearchOperator2 = @$filter["w_field_3148"];
		$this->field_3148->AdvancedSearch->save();

		// Field field_3149
		$this->field_3149->AdvancedSearch->SearchValue = @$filter["x_field_3149"];
		$this->field_3149->AdvancedSearch->SearchOperator = @$filter["z_field_3149"];
		$this->field_3149->AdvancedSearch->SearchCondition = @$filter["v_field_3149"];
		$this->field_3149->AdvancedSearch->SearchValue2 = @$filter["y_field_3149"];
		$this->field_3149->AdvancedSearch->SearchOperator2 = @$filter["w_field_3149"];
		$this->field_3149->AdvancedSearch->save();

		// Field field_3150
		$this->field_3150->AdvancedSearch->SearchValue = @$filter["x_field_3150"];
		$this->field_3150->AdvancedSearch->SearchOperator = @$filter["z_field_3150"];
		$this->field_3150->AdvancedSearch->SearchCondition = @$filter["v_field_3150"];
		$this->field_3150->AdvancedSearch->SearchValue2 = @$filter["y_field_3150"];
		$this->field_3150->AdvancedSearch->SearchOperator2 = @$filter["w_field_3150"];
		$this->field_3150->AdvancedSearch->save();

		// Field field_3151
		$this->field_3151->AdvancedSearch->SearchValue = @$filter["x_field_3151"];
		$this->field_3151->AdvancedSearch->SearchOperator = @$filter["z_field_3151"];
		$this->field_3151->AdvancedSearch->SearchCondition = @$filter["v_field_3151"];
		$this->field_3151->AdvancedSearch->SearchValue2 = @$filter["y_field_3151"];
		$this->field_3151->AdvancedSearch->SearchOperator2 = @$filter["w_field_3151"];
		$this->field_3151->AdvancedSearch->save();

		// Field field_3152
		$this->field_3152->AdvancedSearch->SearchValue = @$filter["x_field_3152"];
		$this->field_3152->AdvancedSearch->SearchOperator = @$filter["z_field_3152"];
		$this->field_3152->AdvancedSearch->SearchCondition = @$filter["v_field_3152"];
		$this->field_3152->AdvancedSearch->SearchValue2 = @$filter["y_field_3152"];
		$this->field_3152->AdvancedSearch->SearchOperator2 = @$filter["w_field_3152"];
		$this->field_3152->AdvancedSearch->save();

		// Field field_3153
		$this->field_3153->AdvancedSearch->SearchValue = @$filter["x_field_3153"];
		$this->field_3153->AdvancedSearch->SearchOperator = @$filter["z_field_3153"];
		$this->field_3153->AdvancedSearch->SearchCondition = @$filter["v_field_3153"];
		$this->field_3153->AdvancedSearch->SearchValue2 = @$filter["y_field_3153"];
		$this->field_3153->AdvancedSearch->SearchOperator2 = @$filter["w_field_3153"];
		$this->field_3153->AdvancedSearch->save();

		// Field field_3154
		$this->field_3154->AdvancedSearch->SearchValue = @$filter["x_field_3154"];
		$this->field_3154->AdvancedSearch->SearchOperator = @$filter["z_field_3154"];
		$this->field_3154->AdvancedSearch->SearchCondition = @$filter["v_field_3154"];
		$this->field_3154->AdvancedSearch->SearchValue2 = @$filter["y_field_3154"];
		$this->field_3154->AdvancedSearch->SearchOperator2 = @$filter["w_field_3154"];
		$this->field_3154->AdvancedSearch->save();

		// Field field_3155
		$this->field_3155->AdvancedSearch->SearchValue = @$filter["x_field_3155"];
		$this->field_3155->AdvancedSearch->SearchOperator = @$filter["z_field_3155"];
		$this->field_3155->AdvancedSearch->SearchCondition = @$filter["v_field_3155"];
		$this->field_3155->AdvancedSearch->SearchValue2 = @$filter["y_field_3155"];
		$this->field_3155->AdvancedSearch->SearchOperator2 = @$filter["w_field_3155"];
		$this->field_3155->AdvancedSearch->save();

		// Field field_3156
		$this->field_3156->AdvancedSearch->SearchValue = @$filter["x_field_3156"];
		$this->field_3156->AdvancedSearch->SearchOperator = @$filter["z_field_3156"];
		$this->field_3156->AdvancedSearch->SearchCondition = @$filter["v_field_3156"];
		$this->field_3156->AdvancedSearch->SearchValue2 = @$filter["y_field_3156"];
		$this->field_3156->AdvancedSearch->SearchOperator2 = @$filter["w_field_3156"];
		$this->field_3156->AdvancedSearch->save();

		// Field field_3157
		$this->field_3157->AdvancedSearch->SearchValue = @$filter["x_field_3157"];
		$this->field_3157->AdvancedSearch->SearchOperator = @$filter["z_field_3157"];
		$this->field_3157->AdvancedSearch->SearchCondition = @$filter["v_field_3157"];
		$this->field_3157->AdvancedSearch->SearchValue2 = @$filter["y_field_3157"];
		$this->field_3157->AdvancedSearch->SearchOperator2 = @$filter["w_field_3157"];
		$this->field_3157->AdvancedSearch->save();

		// Field field_3158
		$this->field_3158->AdvancedSearch->SearchValue = @$filter["x_field_3158"];
		$this->field_3158->AdvancedSearch->SearchOperator = @$filter["z_field_3158"];
		$this->field_3158->AdvancedSearch->SearchCondition = @$filter["v_field_3158"];
		$this->field_3158->AdvancedSearch->SearchValue2 = @$filter["y_field_3158"];
		$this->field_3158->AdvancedSearch->SearchOperator2 = @$filter["w_field_3158"];
		$this->field_3158->AdvancedSearch->save();

		// Field field_3159
		$this->field_3159->AdvancedSearch->SearchValue = @$filter["x_field_3159"];
		$this->field_3159->AdvancedSearch->SearchOperator = @$filter["z_field_3159"];
		$this->field_3159->AdvancedSearch->SearchCondition = @$filter["v_field_3159"];
		$this->field_3159->AdvancedSearch->SearchValue2 = @$filter["y_field_3159"];
		$this->field_3159->AdvancedSearch->SearchOperator2 = @$filter["w_field_3159"];
		$this->field_3159->AdvancedSearch->save();

		// Field field_3160
		$this->field_3160->AdvancedSearch->SearchValue = @$filter["x_field_3160"];
		$this->field_3160->AdvancedSearch->SearchOperator = @$filter["z_field_3160"];
		$this->field_3160->AdvancedSearch->SearchCondition = @$filter["v_field_3160"];
		$this->field_3160->AdvancedSearch->SearchValue2 = @$filter["y_field_3160"];
		$this->field_3160->AdvancedSearch->SearchOperator2 = @$filter["w_field_3160"];
		$this->field_3160->AdvancedSearch->save();

		// Field field_3161
		$this->field_3161->AdvancedSearch->SearchValue = @$filter["x_field_3161"];
		$this->field_3161->AdvancedSearch->SearchOperator = @$filter["z_field_3161"];
		$this->field_3161->AdvancedSearch->SearchCondition = @$filter["v_field_3161"];
		$this->field_3161->AdvancedSearch->SearchValue2 = @$filter["y_field_3161"];
		$this->field_3161->AdvancedSearch->SearchOperator2 = @$filter["w_field_3161"];
		$this->field_3161->AdvancedSearch->save();

		// Field field_3162
		$this->field_3162->AdvancedSearch->SearchValue = @$filter["x_field_3162"];
		$this->field_3162->AdvancedSearch->SearchOperator = @$filter["z_field_3162"];
		$this->field_3162->AdvancedSearch->SearchCondition = @$filter["v_field_3162"];
		$this->field_3162->AdvancedSearch->SearchValue2 = @$filter["y_field_3162"];
		$this->field_3162->AdvancedSearch->SearchOperator2 = @$filter["w_field_3162"];
		$this->field_3162->AdvancedSearch->save();

		// Field field_3163
		$this->field_3163->AdvancedSearch->SearchValue = @$filter["x_field_3163"];
		$this->field_3163->AdvancedSearch->SearchOperator = @$filter["z_field_3163"];
		$this->field_3163->AdvancedSearch->SearchCondition = @$filter["v_field_3163"];
		$this->field_3163->AdvancedSearch->SearchValue2 = @$filter["y_field_3163"];
		$this->field_3163->AdvancedSearch->SearchOperator2 = @$filter["w_field_3163"];
		$this->field_3163->AdvancedSearch->save();

		// Field field_3164
		$this->field_3164->AdvancedSearch->SearchValue = @$filter["x_field_3164"];
		$this->field_3164->AdvancedSearch->SearchOperator = @$filter["z_field_3164"];
		$this->field_3164->AdvancedSearch->SearchCondition = @$filter["v_field_3164"];
		$this->field_3164->AdvancedSearch->SearchValue2 = @$filter["y_field_3164"];
		$this->field_3164->AdvancedSearch->SearchOperator2 = @$filter["w_field_3164"];
		$this->field_3164->AdvancedSearch->save();

		// Field field_3165
		$this->field_3165->AdvancedSearch->SearchValue = @$filter["x_field_3165"];
		$this->field_3165->AdvancedSearch->SearchOperator = @$filter["z_field_3165"];
		$this->field_3165->AdvancedSearch->SearchCondition = @$filter["v_field_3165"];
		$this->field_3165->AdvancedSearch->SearchValue2 = @$filter["y_field_3165"];
		$this->field_3165->AdvancedSearch->SearchOperator2 = @$filter["w_field_3165"];
		$this->field_3165->AdvancedSearch->save();

		// Field field_3166
		$this->field_3166->AdvancedSearch->SearchValue = @$filter["x_field_3166"];
		$this->field_3166->AdvancedSearch->SearchOperator = @$filter["z_field_3166"];
		$this->field_3166->AdvancedSearch->SearchCondition = @$filter["v_field_3166"];
		$this->field_3166->AdvancedSearch->SearchValue2 = @$filter["y_field_3166"];
		$this->field_3166->AdvancedSearch->SearchOperator2 = @$filter["w_field_3166"];
		$this->field_3166->AdvancedSearch->save();

		// Field field_3167
		$this->field_3167->AdvancedSearch->SearchValue = @$filter["x_field_3167"];
		$this->field_3167->AdvancedSearch->SearchOperator = @$filter["z_field_3167"];
		$this->field_3167->AdvancedSearch->SearchCondition = @$filter["v_field_3167"];
		$this->field_3167->AdvancedSearch->SearchValue2 = @$filter["y_field_3167"];
		$this->field_3167->AdvancedSearch->SearchOperator2 = @$filter["w_field_3167"];
		$this->field_3167->AdvancedSearch->save();

		// Field field_3168
		$this->field_3168->AdvancedSearch->SearchValue = @$filter["x_field_3168"];
		$this->field_3168->AdvancedSearch->SearchOperator = @$filter["z_field_3168"];
		$this->field_3168->AdvancedSearch->SearchCondition = @$filter["v_field_3168"];
		$this->field_3168->AdvancedSearch->SearchValue2 = @$filter["y_field_3168"];
		$this->field_3168->AdvancedSearch->SearchOperator2 = @$filter["w_field_3168"];
		$this->field_3168->AdvancedSearch->save();

		// Field field_3169
		$this->field_3169->AdvancedSearch->SearchValue = @$filter["x_field_3169"];
		$this->field_3169->AdvancedSearch->SearchOperator = @$filter["z_field_3169"];
		$this->field_3169->AdvancedSearch->SearchCondition = @$filter["v_field_3169"];
		$this->field_3169->AdvancedSearch->SearchValue2 = @$filter["y_field_3169"];
		$this->field_3169->AdvancedSearch->SearchOperator2 = @$filter["w_field_3169"];
		$this->field_3169->AdvancedSearch->save();

		// Field field_3170
		$this->field_3170->AdvancedSearch->SearchValue = @$filter["x_field_3170"];
		$this->field_3170->AdvancedSearch->SearchOperator = @$filter["z_field_3170"];
		$this->field_3170->AdvancedSearch->SearchCondition = @$filter["v_field_3170"];
		$this->field_3170->AdvancedSearch->SearchValue2 = @$filter["y_field_3170"];
		$this->field_3170->AdvancedSearch->SearchOperator2 = @$filter["w_field_3170"];
		$this->field_3170->AdvancedSearch->save();

		// Field field_3171
		$this->field_3171->AdvancedSearch->SearchValue = @$filter["x_field_3171"];
		$this->field_3171->AdvancedSearch->SearchOperator = @$filter["z_field_3171"];
		$this->field_3171->AdvancedSearch->SearchCondition = @$filter["v_field_3171"];
		$this->field_3171->AdvancedSearch->SearchValue2 = @$filter["y_field_3171"];
		$this->field_3171->AdvancedSearch->SearchOperator2 = @$filter["w_field_3171"];
		$this->field_3171->AdvancedSearch->save();

		// Field field_3172
		$this->field_3172->AdvancedSearch->SearchValue = @$filter["x_field_3172"];
		$this->field_3172->AdvancedSearch->SearchOperator = @$filter["z_field_3172"];
		$this->field_3172->AdvancedSearch->SearchCondition = @$filter["v_field_3172"];
		$this->field_3172->AdvancedSearch->SearchValue2 = @$filter["y_field_3172"];
		$this->field_3172->AdvancedSearch->SearchOperator2 = @$filter["w_field_3172"];
		$this->field_3172->AdvancedSearch->save();

		// Field field_3173
		$this->field_3173->AdvancedSearch->SearchValue = @$filter["x_field_3173"];
		$this->field_3173->AdvancedSearch->SearchOperator = @$filter["z_field_3173"];
		$this->field_3173->AdvancedSearch->SearchCondition = @$filter["v_field_3173"];
		$this->field_3173->AdvancedSearch->SearchValue2 = @$filter["y_field_3173"];
		$this->field_3173->AdvancedSearch->SearchOperator2 = @$filter["w_field_3173"];
		$this->field_3173->AdvancedSearch->save();

		// Field field_3173_si
		$this->field_3173_si->AdvancedSearch->SearchValue = @$filter["x_field_3173_si"];
		$this->field_3173_si->AdvancedSearch->SearchOperator = @$filter["z_field_3173_si"];
		$this->field_3173_si->AdvancedSearch->SearchCondition = @$filter["v_field_3173_si"];
		$this->field_3173_si->AdvancedSearch->SearchValue2 = @$filter["y_field_3173_si"];
		$this->field_3173_si->AdvancedSearch->SearchOperator2 = @$filter["w_field_3173_si"];
		$this->field_3173_si->AdvancedSearch->save();

		// Field field_3173_unit
		$this->field_3173_unit->AdvancedSearch->SearchValue = @$filter["x_field_3173_unit"];
		$this->field_3173_unit->AdvancedSearch->SearchOperator = @$filter["z_field_3173_unit"];
		$this->field_3173_unit->AdvancedSearch->SearchCondition = @$filter["v_field_3173_unit"];
		$this->field_3173_unit->AdvancedSearch->SearchValue2 = @$filter["y_field_3173_unit"];
		$this->field_3173_unit->AdvancedSearch->SearchOperator2 = @$filter["w_field_3173_unit"];
		$this->field_3173_unit->AdvancedSearch->save();

		// Field field_3180
		$this->field_3180->AdvancedSearch->SearchValue = @$filter["x_field_3180"];
		$this->field_3180->AdvancedSearch->SearchOperator = @$filter["z_field_3180"];
		$this->field_3180->AdvancedSearch->SearchCondition = @$filter["v_field_3180"];
		$this->field_3180->AdvancedSearch->SearchValue2 = @$filter["y_field_3180"];
		$this->field_3180->AdvancedSearch->SearchOperator2 = @$filter["w_field_3180"];
		$this->field_3180->AdvancedSearch->save();

		// Field field_3180_en_us
		$this->field_3180_en_us->AdvancedSearch->SearchValue = @$filter["x_field_3180_en_us"];
		$this->field_3180_en_us->AdvancedSearch->SearchOperator = @$filter["z_field_3180_en_us"];
		$this->field_3180_en_us->AdvancedSearch->SearchCondition = @$filter["v_field_3180_en_us"];
		$this->field_3180_en_us->AdvancedSearch->SearchValue2 = @$filter["y_field_3180_en_us"];
		$this->field_3180_en_us->AdvancedSearch->SearchOperator2 = @$filter["w_field_3180_en_us"];
		$this->field_3180_en_us->AdvancedSearch->save();

		// Field field_3180_fr_fr
		$this->field_3180_fr_fr->AdvancedSearch->SearchValue = @$filter["x_field_3180_fr_fr"];
		$this->field_3180_fr_fr->AdvancedSearch->SearchOperator = @$filter["z_field_3180_fr_fr"];
		$this->field_3180_fr_fr->AdvancedSearch->SearchCondition = @$filter["v_field_3180_fr_fr"];
		$this->field_3180_fr_fr->AdvancedSearch->SearchValue2 = @$filter["y_field_3180_fr_fr"];
		$this->field_3180_fr_fr->AdvancedSearch->SearchOperator2 = @$filter["w_field_3180_fr_fr"];
		$this->field_3180_fr_fr->AdvancedSearch->save();

		// Field field_3181
		$this->field_3181->AdvancedSearch->SearchValue = @$filter["x_field_3181"];
		$this->field_3181->AdvancedSearch->SearchOperator = @$filter["z_field_3181"];
		$this->field_3181->AdvancedSearch->SearchCondition = @$filter["v_field_3181"];
		$this->field_3181->AdvancedSearch->SearchValue2 = @$filter["y_field_3181"];
		$this->field_3181->AdvancedSearch->SearchOperator2 = @$filter["w_field_3181"];
		$this->field_3181->AdvancedSearch->save();

		// Field field_3182
		$this->field_3182->AdvancedSearch->SearchValue = @$filter["x_field_3182"];
		$this->field_3182->AdvancedSearch->SearchOperator = @$filter["z_field_3182"];
		$this->field_3182->AdvancedSearch->SearchCondition = @$filter["v_field_3182"];
		$this->field_3182->AdvancedSearch->SearchValue2 = @$filter["y_field_3182"];
		$this->field_3182->AdvancedSearch->SearchOperator2 = @$filter["w_field_3182"];
		$this->field_3182->AdvancedSearch->save();

		// Field n_3189
		$this->n_3189->AdvancedSearch->SearchValue = @$filter["x_n_3189"];
		$this->n_3189->AdvancedSearch->SearchOperator = @$filter["z_n_3189"];
		$this->n_3189->AdvancedSearch->SearchCondition = @$filter["v_n_3189"];
		$this->n_3189->AdvancedSearch->SearchValue2 = @$filter["y_n_3189"];
		$this->n_3189->AdvancedSearch->SearchOperator2 = @$filter["w_n_3189"];
		$this->n_3189->AdvancedSearch->save();

		// Field n_3189_distance
		$this->n_3189_distance->AdvancedSearch->SearchValue = @$filter["x_n_3189_distance"];
		$this->n_3189_distance->AdvancedSearch->SearchOperator = @$filter["z_n_3189_distance"];
		$this->n_3189_distance->AdvancedSearch->SearchCondition = @$filter["v_n_3189_distance"];
		$this->n_3189_distance->AdvancedSearch->SearchValue2 = @$filter["y_n_3189_distance"];
		$this->n_3189_distance->AdvancedSearch->SearchOperator2 = @$filter["w_n_3189_distance"];
		$this->n_3189_distance->AdvancedSearch->save();

		// Field n_3189_distance_by
		$this->n_3189_distance_by->AdvancedSearch->SearchValue = @$filter["x_n_3189_distance_by"];
		$this->n_3189_distance_by->AdvancedSearch->SearchOperator = @$filter["z_n_3189_distance_by"];
		$this->n_3189_distance_by->AdvancedSearch->SearchCondition = @$filter["v_n_3189_distance_by"];
		$this->n_3189_distance_by->AdvancedSearch->SearchValue2 = @$filter["y_n_3189_distance_by"];
		$this->n_3189_distance_by->AdvancedSearch->SearchOperator2 = @$filter["w_n_3189_distance_by"];
		$this->n_3189_distance_by->AdvancedSearch->save();

		// Field field_3190
		$this->field_3190->AdvancedSearch->SearchValue = @$filter["x_field_3190"];
		$this->field_3190->AdvancedSearch->SearchOperator = @$filter["z_field_3190"];
		$this->field_3190->AdvancedSearch->SearchCondition = @$filter["v_field_3190"];
		$this->field_3190->AdvancedSearch->SearchValue2 = @$filter["y_field_3190"];
		$this->field_3190->AdvancedSearch->SearchOperator2 = @$filter["w_field_3190"];
		$this->field_3190->AdvancedSearch->save();

		// Field field_3192
		$this->field_3192->AdvancedSearch->SearchValue = @$filter["x_field_3192"];
		$this->field_3192->AdvancedSearch->SearchOperator = @$filter["z_field_3192"];
		$this->field_3192->AdvancedSearch->SearchCondition = @$filter["v_field_3192"];
		$this->field_3192->AdvancedSearch->SearchValue2 = @$filter["y_field_3192"];
		$this->field_3192->AdvancedSearch->SearchOperator2 = @$filter["w_field_3192"];
		$this->field_3192->AdvancedSearch->save();

		// Field field_3193
		$this->field_3193->AdvancedSearch->SearchValue = @$filter["x_field_3193"];
		$this->field_3193->AdvancedSearch->SearchOperator = @$filter["z_field_3193"];
		$this->field_3193->AdvancedSearch->SearchCondition = @$filter["v_field_3193"];
		$this->field_3193->AdvancedSearch->SearchValue2 = @$filter["y_field_3193"];
		$this->field_3193->AdvancedSearch->SearchOperator2 = @$filter["w_field_3193"];
		$this->field_3193->AdvancedSearch->save();

		// Field field_3195
		$this->field_3195->AdvancedSearch->SearchValue = @$filter["x_field_3195"];
		$this->field_3195->AdvancedSearch->SearchOperator = @$filter["z_field_3195"];
		$this->field_3195->AdvancedSearch->SearchCondition = @$filter["v_field_3195"];
		$this->field_3195->AdvancedSearch->SearchValue2 = @$filter["y_field_3195"];
		$this->field_3195->AdvancedSearch->SearchOperator2 = @$filter["w_field_3195"];
		$this->field_3195->AdvancedSearch->save();

		// Field field_3114_en_us
		$this->field_3114_en_us->AdvancedSearch->SearchValue = @$filter["x_field_3114_en_us"];
		$this->field_3114_en_us->AdvancedSearch->SearchOperator = @$filter["z_field_3114_en_us"];
		$this->field_3114_en_us->AdvancedSearch->SearchCondition = @$filter["v_field_3114_en_us"];
		$this->field_3114_en_us->AdvancedSearch->SearchValue2 = @$filter["y_field_3114_en_us"];
		$this->field_3114_en_us->AdvancedSearch->SearchOperator2 = @$filter["w_field_3114_en_us"];
		$this->field_3114_en_us->AdvancedSearch->save();

		// Field field_3114_fr_fr
		$this->field_3114_fr_fr->AdvancedSearch->SearchValue = @$filter["x_field_3114_fr_fr"];
		$this->field_3114_fr_fr->AdvancedSearch->SearchOperator = @$filter["z_field_3114_fr_fr"];
		$this->field_3114_fr_fr->AdvancedSearch->SearchCondition = @$filter["v_field_3114_fr_fr"];
		$this->field_3114_fr_fr->AdvancedSearch->SearchValue2 = @$filter["y_field_3114_fr_fr"];
		$this->field_3114_fr_fr->AdvancedSearch->SearchOperator2 = @$filter["w_field_3114_fr_fr"];
		$this->field_3114_fr_fr->AdvancedSearch->save();

		// Field n_3196
		$this->n_3196->AdvancedSearch->SearchValue = @$filter["x_n_3196"];
		$this->n_3196->AdvancedSearch->SearchOperator = @$filter["z_n_3196"];
		$this->n_3196->AdvancedSearch->SearchCondition = @$filter["v_n_3196"];
		$this->n_3196->AdvancedSearch->SearchValue2 = @$filter["y_n_3196"];
		$this->n_3196->AdvancedSearch->SearchOperator2 = @$filter["w_n_3196"];
		$this->n_3196->AdvancedSearch->save();

		// Field n_3196_distance
		$this->n_3196_distance->AdvancedSearch->SearchValue = @$filter["x_n_3196_distance"];
		$this->n_3196_distance->AdvancedSearch->SearchOperator = @$filter["z_n_3196_distance"];
		$this->n_3196_distance->AdvancedSearch->SearchCondition = @$filter["v_n_3196_distance"];
		$this->n_3196_distance->AdvancedSearch->SearchValue2 = @$filter["y_n_3196_distance"];
		$this->n_3196_distance->AdvancedSearch->SearchOperator2 = @$filter["w_n_3196_distance"];
		$this->n_3196_distance->AdvancedSearch->save();

		// Field n_3196_distance_by
		$this->n_3196_distance_by->AdvancedSearch->SearchValue = @$filter["x_n_3196_distance_by"];
		$this->n_3196_distance_by->AdvancedSearch->SearchOperator = @$filter["z_n_3196_distance_by"];
		$this->n_3196_distance_by->AdvancedSearch->SearchCondition = @$filter["v_n_3196_distance_by"];
		$this->n_3196_distance_by->AdvancedSearch->SearchValue2 = @$filter["y_n_3196_distance_by"];
		$this->n_3196_distance_by->AdvancedSearch->SearchOperator2 = @$filter["w_n_3196_distance_by"];
		$this->n_3196_distance_by->AdvancedSearch->save();

		// Field field_3197
		$this->field_3197->AdvancedSearch->SearchValue = @$filter["x_field_3197"];
		$this->field_3197->AdvancedSearch->SearchOperator = @$filter["z_field_3197"];
		$this->field_3197->AdvancedSearch->SearchCondition = @$filter["v_field_3197"];
		$this->field_3197->AdvancedSearch->SearchValue2 = @$filter["y_field_3197"];
		$this->field_3197->AdvancedSearch->SearchOperator2 = @$filter["w_field_3197"];
		$this->field_3197->AdvancedSearch->save();

		// Field field_3197_si
		$this->field_3197_si->AdvancedSearch->SearchValue = @$filter["x_field_3197_si"];
		$this->field_3197_si->AdvancedSearch->SearchOperator = @$filter["z_field_3197_si"];
		$this->field_3197_si->AdvancedSearch->SearchCondition = @$filter["v_field_3197_si"];
		$this->field_3197_si->AdvancedSearch->SearchValue2 = @$filter["y_field_3197_si"];
		$this->field_3197_si->AdvancedSearch->SearchOperator2 = @$filter["w_field_3197_si"];
		$this->field_3197_si->AdvancedSearch->save();

		// Field field_3197_unit
		$this->field_3197_unit->AdvancedSearch->SearchValue = @$filter["x_field_3197_unit"];
		$this->field_3197_unit->AdvancedSearch->SearchOperator = @$filter["z_field_3197_unit"];
		$this->field_3197_unit->AdvancedSearch->SearchCondition = @$filter["v_field_3197_unit"];
		$this->field_3197_unit->AdvancedSearch->SearchValue2 = @$filter["y_field_3197_unit"];
		$this->field_3197_unit->AdvancedSearch->SearchOperator2 = @$filter["w_field_3197_unit"];
		$this->field_3197_unit->AdvancedSearch->save();
	}

	// Advanced search WHERE clause based on QueryString
	protected function advancedSearchWhere($default = FALSE)
	{
		global $Security;
		$where = "";
		$this->buildSearchSql($where, $this->id, $default, FALSE); // id
		$this->buildSearchSql($where, $this->kind, $default, FALSE); // kind
		$this->buildSearchSql($where, $this->deleted, $default, FALSE); // deleted
		$this->buildSearchSql($where, $this->mls_id, $default, FALSE); // mls_id
		$this->buildSearchSql($where, $this->mls_id_num, $default, FALSE); // mls_id_num
		$this->buildSearchSql($where, $this->parent, $default, FALSE); // parent
		$this->buildSearchSql($where, $this->pic_numb, $default, FALSE); // pic_numb
		$this->buildSearchSql($where, $this->user_id, $default, FALSE); // user_id
		$this->buildSearchSql($where, $this->listing, $default, FALSE); // listing
		$this->buildSearchSql($where, $this->property_type, $default, FALSE); // property_type
		$this->buildSearchSql($where, $this->location1_id, $default, FALSE); // location1_id
		$this->buildSearchSql($where, $this->location2_id, $default, FALSE); // location2_id
		$this->buildSearchSql($where, $this->location3_id, $default, FALSE); // location3_id
		$this->buildSearchSql($where, $this->location4_id, $default, FALSE); // location4_id
		$this->buildSearchSql($where, $this->location5_id, $default, FALSE); // location5_id
		$this->buildSearchSql($where, $this->location6_id, $default, FALSE); // location6_id
		$this->buildSearchSql($where, $this->location7_id, $default, FALSE); // location7_id
		$this->buildSearchSql($where, $this->location1_name, $default, FALSE); // location1_name
		$this->buildSearchSql($where, $this->location2_name, $default, FALSE); // location2_name
		$this->buildSearchSql($where, $this->location3_name, $default, FALSE); // location3_name
		$this->buildSearchSql($where, $this->location4_name, $default, FALSE); // location4_name
		$this->buildSearchSql($where, $this->location5_name, $default, FALSE); // location5_name
		$this->buildSearchSql($where, $this->location6_name, $default, FALSE); // location6_name
		$this->buildSearchSql($where, $this->location7_name, $default, FALSE); // location7_name
		$this->buildSearchSql($where, $this->show_address, $default, FALSE); // show_address
		$this->buildSearchSql($where, $this->show_marker, $default, FALSE); // show_marker
		$this->buildSearchSql($where, $this->price, $default, FALSE); // price
		$this->buildSearchSql($where, $this->price_unit, $default, FALSE); // price_unit
		$this->buildSearchSql($where, $this->price_si, $default, FALSE); // price_si
		$this->buildSearchSql($where, $this->price_period, $default, FALSE); // price_period
		$this->buildSearchSql($where, $this->bedrooms, $default, FALSE); // bedrooms
		$this->buildSearchSql($where, $this->rooms, $default, FALSE); // rooms
		$this->buildSearchSql($where, $this->bathrooms, $default, FALSE); // bathrooms
		$this->buildSearchSql($where, $this->living_area, $default, FALSE); // living_area
		$this->buildSearchSql($where, $this->living_area_unit, $default, FALSE); // living_area_unit
		$this->buildSearchSql($where, $this->living_area_si, $default, FALSE); // living_area_si
		$this->buildSearchSql($where, $this->lot_area, $default, FALSE); // lot_area
		$this->buildSearchSql($where, $this->lot_area_unit, $default, FALSE); // lot_area_unit
		$this->buildSearchSql($where, $this->lot_area_si, $default, FALSE); // lot_area_si
		$this->buildSearchSql($where, $this->googlemap_lt, $default, FALSE); // googlemap_lt
		$this->buildSearchSql($where, $this->googlemap_ln, $default, FALSE); // googlemap_ln
		$this->buildSearchSql($where, $this->finalized, $default, FALSE); // finalized
		$this->buildSearchSql($where, $this->add_date, $default, FALSE); // add_date
		$this->buildSearchSql($where, $this->last_finalize_date, $default, FALSE); // last_finalize_date
		$this->buildSearchSql($where, $this->expire_days, $default, FALSE); // expire_days
		$this->buildSearchSql($where, $this->confirmed, $default, FALSE); // confirmed
		$this->buildSearchSql($where, $this->expired, $default, FALSE); // expired
		$this->buildSearchSql($where, $this->build_year, $default, FALSE); // build_year
		$this->buildSearchSql($where, $this->zip_id, $default, FALSE); // zip_id
		$this->buildSearchSql($where, $this->zip_name, $default, FALSE); // zip_name
		$this->buildSearchSql($where, $this->last_modified_time_stamp, $default, FALSE); // last_modified_time_stamp
		$this->buildSearchSql($where, $this->post_code, $default, FALSE); // post_code
		$this->buildSearchSql($where, $this->meta_description, $default, FALSE); // meta_description
		$this->buildSearchSql($where, $this->meta_description_manual, $default, FALSE); // meta_description_manual
		$this->buildSearchSql($where, $this->meta_keywords, $default, FALSE); // meta_keywords
		$this->buildSearchSql($where, $this->meta_keywords_manual, $default, FALSE); // meta_keywords_manual
		$this->buildSearchSql($where, $this->street_no, $default, FALSE); // street_no
		$this->buildSearchSql($where, $this->sp_featured, $default, FALSE); // sp_featured
		$this->buildSearchSql($where, $this->sp_hot, $default, FALSE); // sp_hot
		$this->buildSearchSql($where, $this->sp_openhouse, $default, FALSE); // sp_openhouse
		$this->buildSearchSql($where, $this->sp_forclosure, $default, FALSE); // sp_forclosure
		$this->buildSearchSql($where, $this->textsearch, $default, FALSE); // textsearch
		$this->buildSearchSql($where, $this->location_text, $default, FALSE); // location_text
		$this->buildSearchSql($where, $this->field_42, $default, FALSE); // field_42
		$this->buildSearchSql($where, $this->field_312, $default, FALSE); // field_312
		$this->buildSearchSql($where, $this->field_313, $default, FALSE); // field_313
		$this->buildSearchSql($where, $this->field_7, $default, FALSE); // field_7
		$this->buildSearchSql($where, $this->n_103, $default, FALSE); // n_103
		$this->buildSearchSql($where, $this->n_103_distance, $default, FALSE); // n_103_distance
		$this->buildSearchSql($where, $this->n_103_distance_by, $default, FALSE); // n_103_distance_by
		$this->buildSearchSql($where, $this->n_105, $default, FALSE); // n_105
		$this->buildSearchSql($where, $this->n_105_distance, $default, FALSE); // n_105_distance
		$this->buildSearchSql($where, $this->n_105_distance_by, $default, FALSE); // n_105_distance_by
		$this->buildSearchSql($where, $this->n_107, $default, FALSE); // n_107
		$this->buildSearchSql($where, $this->n_107_distance, $default, FALSE); // n_107_distance
		$this->buildSearchSql($where, $this->n_107_distance_by, $default, FALSE); // n_107_distance_by
		$this->buildSearchSql($where, $this->n_108, $default, FALSE); // n_108
		$this->buildSearchSql($where, $this->n_108_distance, $default, FALSE); // n_108_distance
		$this->buildSearchSql($where, $this->n_108_distance_by, $default, FALSE); // n_108_distance_by
		$this->buildSearchSql($where, $this->n_109, $default, FALSE); // n_109
		$this->buildSearchSql($where, $this->n_109_distance, $default, FALSE); // n_109_distance
		$this->buildSearchSql($where, $this->n_109_distance_by, $default, FALSE); // n_109_distance_by
		$this->buildSearchSql($where, $this->f_131_options, $default, FALSE); // f_131_options
		$this->buildSearchSql($where, $this->f_131, $default, FALSE); // f_131
		$this->buildSearchSql($where, $this->f_137_options, $default, FALSE); // f_137_options
		$this->buildSearchSql($where, $this->f_137, $default, FALSE); // f_137
		$this->buildSearchSql($where, $this->f_139_options, $default, FALSE); // f_139_options
		$this->buildSearchSql($where, $this->f_139, $default, FALSE); // f_139
		$this->buildSearchSql($where, $this->f_144_options, $default, FALSE); // f_144_options
		$this->buildSearchSql($where, $this->f_144, $default, FALSE); // f_144
		$this->buildSearchSql($where, $this->f_146_options, $default, FALSE); // f_146_options
		$this->buildSearchSql($where, $this->f_146, $default, FALSE); // f_146
		$this->buildSearchSql($where, $this->f_149_options, $default, FALSE); // f_149_options
		$this->buildSearchSql($where, $this->f_149, $default, FALSE); // f_149
		$this->buildSearchSql($where, $this->f_150_options, $default, FALSE); // f_150_options
		$this->buildSearchSql($where, $this->f_150, $default, FALSE); // f_150
		$this->buildSearchSql($where, $this->f_156_options, $default, FALSE); // f_156_options
		$this->buildSearchSql($where, $this->f_156, $default, FALSE); // f_156
		$this->buildSearchSql($where, $this->f_157_options, $default, FALSE); // f_157_options
		$this->buildSearchSql($where, $this->f_157, $default, FALSE); // f_157
		$this->buildSearchSql($where, $this->f_159_options, $default, FALSE); // f_159_options
		$this->buildSearchSql($where, $this->f_159, $default, FALSE); // f_159
		$this->buildSearchSql($where, $this->f_161_options, $default, FALSE); // f_161_options
		$this->buildSearchSql($where, $this->f_161, $default, FALSE); // f_161
		$this->buildSearchSql($where, $this->f_163_options, $default, FALSE); // f_163_options
		$this->buildSearchSql($where, $this->f_163, $default, FALSE); // f_163
		$this->buildSearchSql($where, $this->f_165_options, $default, FALSE); // f_165_options
		$this->buildSearchSql($where, $this->f_165, $default, FALSE); // f_165
		$this->buildSearchSql($where, $this->f_166_options, $default, FALSE); // f_166_options
		$this->buildSearchSql($where, $this->f_166, $default, FALSE); // f_166
		$this->buildSearchSql($where, $this->ref_id, $default, FALSE); // ref_id
		$this->buildSearchSql($where, $this->field_54, $default, FALSE); // field_54
		$this->buildSearchSql($where, $this->half_bathrooms, $default, FALSE); // half_bathrooms
		$this->buildSearchSql($where, $this->field_55, $default, FALSE); // field_55
		$this->buildSearchSql($where, $this->rendered, $default, FALSE); // rendered
		$this->buildSearchSql($where, $this->alias, $default, FALSE); // alias
		$this->buildSearchSql($where, $this->source, $default, FALSE); // source
		$this->buildSearchSql($where, $this->last_sync_date, $default, FALSE); // last_sync_date
		$this->buildSearchSql($where, $this->street_suffix, $default, FALSE); // street_suffix
		$this->buildSearchSql($where, $this->energy_tag, $default, FALSE); // energy_tag
		$this->buildSearchSql($where, $this->field_3006, $default, FALSE); // field_3006
		$this->buildSearchSql($where, $this->field_3007, $default, FALSE); // field_3007
		$this->buildSearchSql($where, $this->field_3008, $default, FALSE); // field_3008
		$this->buildSearchSql($where, $this->importer_structure_id, $default, FALSE); // importer_structure_id
		$this->buildSearchSql($where, $this->importer_params, $default, FALSE); // importer_params
		$this->buildSearchSql($where, $this->field_3009, $default, FALSE); // field_3009
		$this->buildSearchSql($where, $this->field_3010, $default, FALSE); // field_3010
		$this->buildSearchSql($where, $this->field_3012, $default, FALSE); // field_3012
		$this->buildSearchSql($where, $this->rendered_en_us, $default, FALSE); // rendered_en_us
		$this->buildSearchSql($where, $this->textsearch_en_us, $default, FALSE); // textsearch_en_us
		$this->buildSearchSql($where, $this->rendered_fr_fr, $default, FALSE); // rendered_fr_fr
		$this->buildSearchSql($where, $this->textsearch_fr_fr, $default, FALSE); // textsearch_fr_fr
		$this->buildSearchSql($where, $this->field_3013, $default, FALSE); // field_3013
		$this->buildSearchSql($where, $this->field_3014, $default, FALSE); // field_3014
		$this->buildSearchSql($where, $this->f_3014_options, $default, FALSE); // f_3014_options
		$this->buildSearchSql($where, $this->f_3014, $default, FALSE); // f_3014
		$this->buildSearchSql($where, $this->field_3015, $default, FALSE); // field_3015
		$this->buildSearchSql($where, $this->field_3016, $default, FALSE); // field_3016
		$this->buildSearchSql($where, $this->field_3017, $default, FALSE); // field_3017
		$this->buildSearchSql($where, $this->f_3018_options, $default, FALSE); // f_3018_options
		$this->buildSearchSql($where, $this->f_3018, $default, FALSE); // f_3018
		$this->buildSearchSql($where, $this->f_3019_options, $default, FALSE); // f_3019_options
		$this->buildSearchSql($where, $this->f_3019, $default, FALSE); // f_3019
		$this->buildSearchSql($where, $this->f_3020_options, $default, FALSE); // f_3020_options
		$this->buildSearchSql($where, $this->f_3020, $default, FALSE); // f_3020
		$this->buildSearchSql($where, $this->f_3021_options, $default, FALSE); // f_3021_options
		$this->buildSearchSql($where, $this->f_3021, $default, FALSE); // f_3021
		$this->buildSearchSql($where, $this->f_3022_options, $default, FALSE); // f_3022_options
		$this->buildSearchSql($where, $this->f_3022, $default, FALSE); // f_3022
		$this->buildSearchSql($where, $this->f_3023_options, $default, FALSE); // f_3023_options
		$this->buildSearchSql($where, $this->f_3023, $default, FALSE); // f_3023
		$this->buildSearchSql($where, $this->f_3024_options, $default, FALSE); // f_3024_options
		$this->buildSearchSql($where, $this->f_3024, $default, FALSE); // f_3024
		$this->buildSearchSql($where, $this->f_3025_options, $default, FALSE); // f_3025_options
		$this->buildSearchSql($where, $this->f_3025, $default, FALSE); // f_3025
		$this->buildSearchSql($where, $this->f_3026_options, $default, FALSE); // f_3026_options
		$this->buildSearchSql($where, $this->f_3026, $default, FALSE); // f_3026
		$this->buildSearchSql($where, $this->f_3027_options, $default, FALSE); // f_3027_options
		$this->buildSearchSql($where, $this->f_3027, $default, FALSE); // f_3027
		$this->buildSearchSql($where, $this->f_3028_options, $default, FALSE); // f_3028_options
		$this->buildSearchSql($where, $this->f_3028, $default, FALSE); // f_3028
		$this->buildSearchSql($where, $this->f_3029_options, $default, FALSE); // f_3029_options
		$this->buildSearchSql($where, $this->f_3029, $default, FALSE); // f_3029
		$this->buildSearchSql($where, $this->f_3031_options, $default, FALSE); // f_3031_options
		$this->buildSearchSql($where, $this->f_3031, $default, FALSE); // f_3031
		$this->buildSearchSql($where, $this->f_3032_options, $default, FALSE); // f_3032_options
		$this->buildSearchSql($where, $this->f_3032, $default, FALSE); // f_3032
		$this->buildSearchSql($where, $this->f_3033_options, $default, FALSE); // f_3033_options
		$this->buildSearchSql($where, $this->f_3033, $default, FALSE); // f_3033
		$this->buildSearchSql($where, $this->f_3034_options, $default, FALSE); // f_3034_options
		$this->buildSearchSql($where, $this->f_3034, $default, FALSE); // f_3034
		$this->buildSearchSql($where, $this->f_3035_options, $default, FALSE); // f_3035_options
		$this->buildSearchSql($where, $this->f_3035, $default, FALSE); // f_3035
		$this->buildSearchSql($where, $this->f_3036_options, $default, FALSE); // f_3036_options
		$this->buildSearchSql($where, $this->f_3036, $default, FALSE); // f_3036
		$this->buildSearchSql($where, $this->f_3037_options, $default, FALSE); // f_3037_options
		$this->buildSearchSql($where, $this->f_3037, $default, FALSE); // f_3037
		$this->buildSearchSql($where, $this->f_3038_options, $default, FALSE); // f_3038_options
		$this->buildSearchSql($where, $this->f_3038, $default, FALSE); // f_3038
		$this->buildSearchSql($where, $this->f_3039_options, $default, FALSE); // f_3039_options
		$this->buildSearchSql($where, $this->f_3039, $default, FALSE); // f_3039
		$this->buildSearchSql($where, $this->f_3040_options, $default, FALSE); // f_3040_options
		$this->buildSearchSql($where, $this->f_3040, $default, FALSE); // f_3040
		$this->buildSearchSql($where, $this->f_3041_options, $default, FALSE); // f_3041_options
		$this->buildSearchSql($where, $this->f_3041, $default, FALSE); // f_3041
		$this->buildSearchSql($where, $this->f_3042_options, $default, FALSE); // f_3042_options
		$this->buildSearchSql($where, $this->f_3042, $default, FALSE); // f_3042
		$this->buildSearchSql($where, $this->f_3043_options, $default, FALSE); // f_3043_options
		$this->buildSearchSql($where, $this->f_3043, $default, FALSE); // f_3043
		$this->buildSearchSql($where, $this->f_3044_options, $default, FALSE); // f_3044_options
		$this->buildSearchSql($where, $this->f_3044, $default, FALSE); // f_3044
		$this->buildSearchSql($where, $this->n_3045, $default, FALSE); // n_3045
		$this->buildSearchSql($where, $this->n_3045_distance, $default, FALSE); // n_3045_distance
		$this->buildSearchSql($where, $this->n_3045_distance_by, $default, FALSE); // n_3045_distance_by
		$this->buildSearchSql($where, $this->n_3046, $default, FALSE); // n_3046
		$this->buildSearchSql($where, $this->n_3046_distance, $default, FALSE); // n_3046_distance
		$this->buildSearchSql($where, $this->n_3046_distance_by, $default, FALSE); // n_3046_distance_by
		$this->buildSearchSql($where, $this->n_3047, $default, FALSE); // n_3047
		$this->buildSearchSql($where, $this->n_3047_distance, $default, FALSE); // n_3047_distance
		$this->buildSearchSql($where, $this->n_3047_distance_by, $default, FALSE); // n_3047_distance_by
		$this->buildSearchSql($where, $this->n_3048, $default, FALSE); // n_3048
		$this->buildSearchSql($where, $this->n_3048_distance, $default, FALSE); // n_3048_distance
		$this->buildSearchSql($where, $this->n_3048_distance_by, $default, FALSE); // n_3048_distance_by
		$this->buildSearchSql($where, $this->n_3049, $default, FALSE); // n_3049
		$this->buildSearchSql($where, $this->n_3049_distance, $default, FALSE); // n_3049_distance
		$this->buildSearchSql($where, $this->n_3049_distance_by, $default, FALSE); // n_3049_distance_by
		$this->buildSearchSql($where, $this->n_3050, $default, FALSE); // n_3050
		$this->buildSearchSql($where, $this->n_3050_distance, $default, FALSE); // n_3050_distance
		$this->buildSearchSql($where, $this->n_3050_distance_by, $default, FALSE); // n_3050_distance_by
		$this->buildSearchSql($where, $this->n_3051, $default, FALSE); // n_3051
		$this->buildSearchSql($where, $this->n_3051_distance, $default, FALSE); // n_3051_distance
		$this->buildSearchSql($where, $this->n_3051_distance_by, $default, FALSE); // n_3051_distance_by
		$this->buildSearchSql($where, $this->n_3052, $default, FALSE); // n_3052
		$this->buildSearchSql($where, $this->n_3052_distance, $default, FALSE); // n_3052_distance
		$this->buildSearchSql($where, $this->n_3052_distance_by, $default, FALSE); // n_3052_distance_by
		$this->buildSearchSql($where, $this->n_3053, $default, FALSE); // n_3053
		$this->buildSearchSql($where, $this->n_3053_distance, $default, FALSE); // n_3053_distance
		$this->buildSearchSql($where, $this->n_3053_distance_by, $default, FALSE); // n_3053_distance_by
		$this->buildSearchSql($where, $this->n_3054, $default, FALSE); // n_3054
		$this->buildSearchSql($where, $this->n_3054_distance, $default, FALSE); // n_3054_distance
		$this->buildSearchSql($where, $this->n_3054_distance_by, $default, FALSE); // n_3054_distance_by
		$this->buildSearchSql($where, $this->n_3055, $default, FALSE); // n_3055
		$this->buildSearchSql($where, $this->n_3055_distance, $default, FALSE); // n_3055_distance
		$this->buildSearchSql($where, $this->n_3055_distance_by, $default, FALSE); // n_3055_distance_by
		$this->buildSearchSql($where, $this->n_3056, $default, FALSE); // n_3056
		$this->buildSearchSql($where, $this->n_3056_distance, $default, FALSE); // n_3056_distance
		$this->buildSearchSql($where, $this->n_3056_distance_by, $default, FALSE); // n_3056_distance_by
		$this->buildSearchSql($where, $this->n_3057, $default, FALSE); // n_3057
		$this->buildSearchSql($where, $this->n_3057_distance, $default, FALSE); // n_3057_distance
		$this->buildSearchSql($where, $this->n_3057_distance_by, $default, FALSE); // n_3057_distance_by
		$this->buildSearchSql($where, $this->n_3058, $default, FALSE); // n_3058
		$this->buildSearchSql($where, $this->n_3058_distance, $default, FALSE); // n_3058_distance
		$this->buildSearchSql($where, $this->n_3058_distance_by, $default, FALSE); // n_3058_distance_by
		$this->buildSearchSql($where, $this->n_3059, $default, FALSE); // n_3059
		$this->buildSearchSql($where, $this->n_3059_distance, $default, FALSE); // n_3059_distance
		$this->buildSearchSql($where, $this->n_3059_distance_by, $default, FALSE); // n_3059_distance_by
		$this->buildSearchSql($where, $this->f_3060_options, $default, FALSE); // f_3060_options
		$this->buildSearchSql($where, $this->f_3060, $default, FALSE); // f_3060
		$this->buildSearchSql($where, $this->f_3061_options, $default, FALSE); // f_3061_options
		$this->buildSearchSql($where, $this->f_3061, $default, FALSE); // f_3061
		$this->buildSearchSql($where, $this->f_3062_options, $default, FALSE); // f_3062_options
		$this->buildSearchSql($where, $this->f_3062, $default, FALSE); // f_3062
		$this->buildSearchSql($where, $this->field_3063, $default, FALSE); // field_3063
		$this->buildSearchSql($where, $this->field_3064, $default, FALSE); // field_3064
		$this->buildSearchSql($where, $this->field_3065, $default, FALSE); // field_3065
		$this->buildSearchSql($where, $this->field_308, $default, FALSE); // field_308
		$this->buildSearchSql($where, $this->field_308_en_us, $default, FALSE); // field_308_en_us
		$this->buildSearchSql($where, $this->field_308_fr_fr, $default, FALSE); // field_308_fr_fr
		$this->buildSearchSql($where, $this->field_313_en_us, $default, FALSE); // field_313_en_us
		$this->buildSearchSql($where, $this->field_313_fr_fr, $default, FALSE); // field_313_fr_fr
		$this->buildSearchSql($where, $this->field_312_en_us, $default, FALSE); // field_312_en_us
		$this->buildSearchSql($where, $this->field_312_fr_fr, $default, FALSE); // field_312_fr_fr
		$this->buildSearchSql($where, $this->field_3017_en_us, $default, FALSE); // field_3017_en_us
		$this->buildSearchSql($where, $this->field_3017_fr_fr, $default, FALSE); // field_3017_fr_fr
		$this->buildSearchSql($where, $this->field_42_en_us, $default, FALSE); // field_42_en_us
		$this->buildSearchSql($where, $this->field_42_fr_fr, $default, FALSE); // field_42_fr_fr
		$this->buildSearchSql($where, $this->field_3067, $default, FALSE); // field_3067
		$this->buildSearchSql($where, $this->field_3068, $default, FALSE); // field_3068
		$this->buildSearchSql($where, $this->field_3069, $default, FALSE); // field_3069
		$this->buildSearchSql($where, $this->field_3070, $default, FALSE); // field_3070
		$this->buildSearchSql($where, $this->field_3071, $default, FALSE); // field_3071
		$this->buildSearchSql($where, $this->field_3071_en_us, $default, FALSE); // field_3071_en_us
		$this->buildSearchSql($where, $this->field_3071_fr_fr, $default, FALSE); // field_3071_fr_fr
		$this->buildSearchSql($where, $this->field_3072, $default, FALSE); // field_3072
		$this->buildSearchSql($where, $this->field_3073, $default, FALSE); // field_3073
		$this->buildSearchSql($where, $this->field_3074, $default, FALSE); // field_3074
		$this->buildSearchSql($where, $this->field_3074_en_us, $default, FALSE); // field_3074_en_us
		$this->buildSearchSql($where, $this->field_3074_fr_fr, $default, FALSE); // field_3074_fr_fr
		$this->buildSearchSql($where, $this->field_3075, $default, FALSE); // field_3075
		$this->buildSearchSql($where, $this->field_3076, $default, FALSE); // field_3076
		$this->buildSearchSql($where, $this->field_3077, $default, FALSE); // field_3077
		$this->buildSearchSql($where, $this->field_3078, $default, FALSE); // field_3078
		$this->buildSearchSql($where, $this->field_3079, $default, FALSE); // field_3079
		$this->buildSearchSql($where, $this->field_3080, $default, FALSE); // field_3080
		$this->buildSearchSql($where, $this->field_3076_en_us, $default, FALSE); // field_3076_en_us
		$this->buildSearchSql($where, $this->field_3076_fr_fr, $default, FALSE); // field_3076_fr_fr
		$this->buildSearchSql($where, $this->field_3080_en_us, $default, FALSE); // field_3080_en_us
		$this->buildSearchSql($where, $this->field_3080_fr_fr, $default, FALSE); // field_3080_fr_fr
		$this->buildSearchSql($where, $this->field_3081, $default, FALSE); // field_3081
		$this->buildSearchSql($where, $this->field_3081_en_us, $default, FALSE); // field_3081_en_us
		$this->buildSearchSql($where, $this->field_3081_fr_fr, $default, FALSE); // field_3081_fr_fr
		$this->buildSearchSql($where, $this->field_3082, $default, FALSE); // field_3082
		$this->buildSearchSql($where, $this->field_3082_en_us, $default, FALSE); // field_3082_en_us
		$this->buildSearchSql($where, $this->field_3082_fr_fr, $default, FALSE); // field_3082_fr_fr
		$this->buildSearchSql($where, $this->field_3084, $default, FALSE); // field_3084
		$this->buildSearchSql($where, $this->field_3085, $default, FALSE); // field_3085
		$this->buildSearchSql($where, $this->field_3086, $default, FALSE); // field_3086
		$this->buildSearchSql($where, $this->field_3096, $default, FALSE); // field_3096
		$this->buildSearchSql($where, $this->field_3097, $default, FALSE); // field_3097
		$this->buildSearchSql($where, $this->field_3098, $default, FALSE); // field_3098
		$this->buildSearchSql($where, $this->field_3099, $default, FALSE); // field_3099
		$this->buildSearchSql($where, $this->field_3100, $default, FALSE); // field_3100
		$this->buildSearchSql($where, $this->field_3101, $default, FALSE); // field_3101
		$this->buildSearchSql($where, $this->field_3102, $default, FALSE); // field_3102
		$this->buildSearchSql($where, $this->field_3103, $default, FALSE); // field_3103
		$this->buildSearchSql($where, $this->field_3104, $default, FALSE); // field_3104
		$this->buildSearchSql($where, $this->field_3105, $default, FALSE); // field_3105
		$this->buildSearchSql($where, $this->field_3106, $default, FALSE); // field_3106
		$this->buildSearchSql($where, $this->field_3107, $default, FALSE); // field_3107
		$this->buildSearchSql($where, $this->field_3108, $default, FALSE); // field_3108
		$this->buildSearchSql($where, $this->field_3109, $default, FALSE); // field_3109
		$this->buildSearchSql($where, $this->field_3110, $default, FALSE); // field_3110
		$this->buildSearchSql($where, $this->field_3111, $default, FALSE); // field_3111
		$this->buildSearchSql($where, $this->field_3112, $default, FALSE); // field_3112
		$this->buildSearchSql($where, $this->field_3113, $default, FALSE); // field_3113
		$this->buildSearchSql($where, $this->field_3113_en_us, $default, FALSE); // field_3113_en_us
		$this->buildSearchSql($where, $this->field_3113_fr_fr, $default, FALSE); // field_3113_fr_fr
		$this->buildSearchSql($where, $this->field_3114, $default, FALSE); // field_3114
		$this->buildSearchSql($where, $this->field_3115, $default, FALSE); // field_3115
		$this->buildSearchSql($where, $this->field_3115_si, $default, FALSE); // field_3115_si
		$this->buildSearchSql($where, $this->field_3115_unit, $default, FALSE); // field_3115_unit
		$this->buildSearchSql($where, $this->field_3116, $default, FALSE); // field_3116
		$this->buildSearchSql($where, $this->field_3117, $default, FALSE); // field_3117
		$this->buildSearchSql($where, $this->field_3117_en_us, $default, FALSE); // field_3117_en_us
		$this->buildSearchSql($where, $this->field_3117_fr_fr, $default, FALSE); // field_3117_fr_fr
		$this->buildSearchSql($where, $this->field_3118, $default, FALSE); // field_3118
		$this->buildSearchSql($where, $this->field_3118_en_us, $default, FALSE); // field_3118_en_us
		$this->buildSearchSql($where, $this->field_3118_fr_fr, $default, FALSE); // field_3118_fr_fr
		$this->buildSearchSql($where, $this->field_3119, $default, FALSE); // field_3119
		$this->buildSearchSql($where, $this->field_3119_en_us, $default, FALSE); // field_3119_en_us
		$this->buildSearchSql($where, $this->field_3119_fr_fr, $default, FALSE); // field_3119_fr_fr
		$this->buildSearchSql($where, $this->field_3120, $default, FALSE); // field_3120
		$this->buildSearchSql($where, $this->field_3120_en_us, $default, FALSE); // field_3120_en_us
		$this->buildSearchSql($where, $this->field_3120_fr_fr, $default, FALSE); // field_3120_fr_fr
		$this->buildSearchSql($where, $this->field_3121, $default, FALSE); // field_3121
		$this->buildSearchSql($where, $this->field_3122, $default, FALSE); // field_3122
		$this->buildSearchSql($where, $this->field_3122_si, $default, FALSE); // field_3122_si
		$this->buildSearchSql($where, $this->field_3122_unit, $default, FALSE); // field_3122_unit
		$this->buildSearchSql($where, $this->field_3123, $default, FALSE); // field_3123
		$this->buildSearchSql($where, $this->field_3124, $default, FALSE); // field_3124
		$this->buildSearchSql($where, $this->field_3125, $default, FALSE); // field_3125
		$this->buildSearchSql($where, $this->field_3126, $default, FALSE); // field_3126
		$this->buildSearchSql($where, $this->field_3127, $default, FALSE); // field_3127
		$this->buildSearchSql($where, $this->field_3128, $default, FALSE); // field_3128
		$this->buildSearchSql($where, $this->field_3129, $default, FALSE); // field_3129
		$this->buildSearchSql($where, $this->field_3130, $default, FALSE); // field_3130
		$this->buildSearchSql($where, $this->field_3131, $default, FALSE); // field_3131
		$this->buildSearchSql($where, $this->field_3132, $default, FALSE); // field_3132
		$this->buildSearchSql($where, $this->field_3133, $default, FALSE); // field_3133
		$this->buildSearchSql($where, $this->field_3134, $default, FALSE); // field_3134
		$this->buildSearchSql($where, $this->field_3135, $default, FALSE); // field_3135
		$this->buildSearchSql($where, $this->field_3136, $default, FALSE); // field_3136
		$this->buildSearchSql($where, $this->field_3137, $default, FALSE); // field_3137
		$this->buildSearchSql($where, $this->field_3138, $default, FALSE); // field_3138
		$this->buildSearchSql($where, $this->field_3139, $default, FALSE); // field_3139
		$this->buildSearchSql($where, $this->field_3140, $default, FALSE); // field_3140
		$this->buildSearchSql($where, $this->field_3141, $default, FALSE); // field_3141
		$this->buildSearchSql($where, $this->field_3142, $default, FALSE); // field_3142
		$this->buildSearchSql($where, $this->field_3143, $default, FALSE); // field_3143
		$this->buildSearchSql($where, $this->field_3144, $default, FALSE); // field_3144
		$this->buildSearchSql($where, $this->field_3145, $default, FALSE); // field_3145
		$this->buildSearchSql($where, $this->field_3146, $default, FALSE); // field_3146
		$this->buildSearchSql($where, $this->field_3147, $default, FALSE); // field_3147
		$this->buildSearchSql($where, $this->field_3148, $default, FALSE); // field_3148
		$this->buildSearchSql($where, $this->field_3149, $default, FALSE); // field_3149
		$this->buildSearchSql($where, $this->field_3150, $default, FALSE); // field_3150
		$this->buildSearchSql($where, $this->field_3151, $default, FALSE); // field_3151
		$this->buildSearchSql($where, $this->field_3152, $default, FALSE); // field_3152
		$this->buildSearchSql($where, $this->field_3153, $default, FALSE); // field_3153
		$this->buildSearchSql($where, $this->field_3154, $default, FALSE); // field_3154
		$this->buildSearchSql($where, $this->field_3155, $default, FALSE); // field_3155
		$this->buildSearchSql($where, $this->field_3156, $default, FALSE); // field_3156
		$this->buildSearchSql($where, $this->field_3157, $default, FALSE); // field_3157
		$this->buildSearchSql($where, $this->field_3158, $default, FALSE); // field_3158
		$this->buildSearchSql($where, $this->field_3159, $default, FALSE); // field_3159
		$this->buildSearchSql($where, $this->field_3160, $default, FALSE); // field_3160
		$this->buildSearchSql($where, $this->field_3161, $default, FALSE); // field_3161
		$this->buildSearchSql($where, $this->field_3162, $default, FALSE); // field_3162
		$this->buildSearchSql($where, $this->field_3163, $default, FALSE); // field_3163
		$this->buildSearchSql($where, $this->field_3164, $default, FALSE); // field_3164
		$this->buildSearchSql($where, $this->field_3165, $default, FALSE); // field_3165
		$this->buildSearchSql($where, $this->field_3166, $default, FALSE); // field_3166
		$this->buildSearchSql($where, $this->field_3167, $default, FALSE); // field_3167
		$this->buildSearchSql($where, $this->field_3168, $default, FALSE); // field_3168
		$this->buildSearchSql($where, $this->field_3169, $default, FALSE); // field_3169
		$this->buildSearchSql($where, $this->field_3170, $default, FALSE); // field_3170
		$this->buildSearchSql($where, $this->field_3171, $default, FALSE); // field_3171
		$this->buildSearchSql($where, $this->field_3172, $default, FALSE); // field_3172
		$this->buildSearchSql($where, $this->field_3173, $default, FALSE); // field_3173
		$this->buildSearchSql($where, $this->field_3173_si, $default, FALSE); // field_3173_si
		$this->buildSearchSql($where, $this->field_3173_unit, $default, FALSE); // field_3173_unit
		$this->buildSearchSql($where, $this->field_3180, $default, FALSE); // field_3180
		$this->buildSearchSql($where, $this->field_3180_en_us, $default, FALSE); // field_3180_en_us
		$this->buildSearchSql($where, $this->field_3180_fr_fr, $default, FALSE); // field_3180_fr_fr
		$this->buildSearchSql($where, $this->field_3181, $default, FALSE); // field_3181
		$this->buildSearchSql($where, $this->field_3182, $default, FALSE); // field_3182
		$this->buildSearchSql($where, $this->n_3189, $default, FALSE); // n_3189
		$this->buildSearchSql($where, $this->n_3189_distance, $default, FALSE); // n_3189_distance
		$this->buildSearchSql($where, $this->n_3189_distance_by, $default, FALSE); // n_3189_distance_by
		$this->buildSearchSql($where, $this->field_3190, $default, FALSE); // field_3190
		$this->buildSearchSql($where, $this->field_3192, $default, FALSE); // field_3192
		$this->buildSearchSql($where, $this->field_3193, $default, FALSE); // field_3193
		$this->buildSearchSql($where, $this->field_3195, $default, FALSE); // field_3195
		$this->buildSearchSql($where, $this->field_3114_en_us, $default, FALSE); // field_3114_en_us
		$this->buildSearchSql($where, $this->field_3114_fr_fr, $default, FALSE); // field_3114_fr_fr
		$this->buildSearchSql($where, $this->n_3196, $default, FALSE); // n_3196
		$this->buildSearchSql($where, $this->n_3196_distance, $default, FALSE); // n_3196_distance
		$this->buildSearchSql($where, $this->n_3196_distance_by, $default, FALSE); // n_3196_distance_by
		$this->buildSearchSql($where, $this->field_3197, $default, FALSE); // field_3197
		$this->buildSearchSql($where, $this->field_3197_si, $default, FALSE); // field_3197_si
		$this->buildSearchSql($where, $this->field_3197_unit, $default, FALSE); // field_3197_unit

		// Set up search parm
		if (!$default && $where != "" && in_array($this->Command, ["", "reset", "resetall"])) {
			$this->Command = "search";
		}
		if (!$default && $this->Command == "search") {
			$this->id->AdvancedSearch->save(); // id
			$this->kind->AdvancedSearch->save(); // kind
			$this->deleted->AdvancedSearch->save(); // deleted
			$this->mls_id->AdvancedSearch->save(); // mls_id
			$this->mls_id_num->AdvancedSearch->save(); // mls_id_num
			$this->parent->AdvancedSearch->save(); // parent
			$this->pic_numb->AdvancedSearch->save(); // pic_numb
			$this->user_id->AdvancedSearch->save(); // user_id
			$this->listing->AdvancedSearch->save(); // listing
			$this->property_type->AdvancedSearch->save(); // property_type
			$this->location1_id->AdvancedSearch->save(); // location1_id
			$this->location2_id->AdvancedSearch->save(); // location2_id
			$this->location3_id->AdvancedSearch->save(); // location3_id
			$this->location4_id->AdvancedSearch->save(); // location4_id
			$this->location5_id->AdvancedSearch->save(); // location5_id
			$this->location6_id->AdvancedSearch->save(); // location6_id
			$this->location7_id->AdvancedSearch->save(); // location7_id
			$this->location1_name->AdvancedSearch->save(); // location1_name
			$this->location2_name->AdvancedSearch->save(); // location2_name
			$this->location3_name->AdvancedSearch->save(); // location3_name
			$this->location4_name->AdvancedSearch->save(); // location4_name
			$this->location5_name->AdvancedSearch->save(); // location5_name
			$this->location6_name->AdvancedSearch->save(); // location6_name
			$this->location7_name->AdvancedSearch->save(); // location7_name
			$this->show_address->AdvancedSearch->save(); // show_address
			$this->show_marker->AdvancedSearch->save(); // show_marker
			$this->price->AdvancedSearch->save(); // price
			$this->price_unit->AdvancedSearch->save(); // price_unit
			$this->price_si->AdvancedSearch->save(); // price_si
			$this->price_period->AdvancedSearch->save(); // price_period
			$this->bedrooms->AdvancedSearch->save(); // bedrooms
			$this->rooms->AdvancedSearch->save(); // rooms
			$this->bathrooms->AdvancedSearch->save(); // bathrooms
			$this->living_area->AdvancedSearch->save(); // living_area
			$this->living_area_unit->AdvancedSearch->save(); // living_area_unit
			$this->living_area_si->AdvancedSearch->save(); // living_area_si
			$this->lot_area->AdvancedSearch->save(); // lot_area
			$this->lot_area_unit->AdvancedSearch->save(); // lot_area_unit
			$this->lot_area_si->AdvancedSearch->save(); // lot_area_si
			$this->googlemap_lt->AdvancedSearch->save(); // googlemap_lt
			$this->googlemap_ln->AdvancedSearch->save(); // googlemap_ln
			$this->finalized->AdvancedSearch->save(); // finalized
			$this->add_date->AdvancedSearch->save(); // add_date
			$this->last_finalize_date->AdvancedSearch->save(); // last_finalize_date
			$this->expire_days->AdvancedSearch->save(); // expire_days
			$this->confirmed->AdvancedSearch->save(); // confirmed
			$this->expired->AdvancedSearch->save(); // expired
			$this->build_year->AdvancedSearch->save(); // build_year
			$this->zip_id->AdvancedSearch->save(); // zip_id
			$this->zip_name->AdvancedSearch->save(); // zip_name
			$this->last_modified_time_stamp->AdvancedSearch->save(); // last_modified_time_stamp
			$this->post_code->AdvancedSearch->save(); // post_code
			$this->meta_description->AdvancedSearch->save(); // meta_description
			$this->meta_description_manual->AdvancedSearch->save(); // meta_description_manual
			$this->meta_keywords->AdvancedSearch->save(); // meta_keywords
			$this->meta_keywords_manual->AdvancedSearch->save(); // meta_keywords_manual
			$this->street_no->AdvancedSearch->save(); // street_no
			$this->sp_featured->AdvancedSearch->save(); // sp_featured
			$this->sp_hot->AdvancedSearch->save(); // sp_hot
			$this->sp_openhouse->AdvancedSearch->save(); // sp_openhouse
			$this->sp_forclosure->AdvancedSearch->save(); // sp_forclosure
			$this->textsearch->AdvancedSearch->save(); // textsearch
			$this->location_text->AdvancedSearch->save(); // location_text
			$this->field_42->AdvancedSearch->save(); // field_42
			$this->field_312->AdvancedSearch->save(); // field_312
			$this->field_313->AdvancedSearch->save(); // field_313
			$this->field_7->AdvancedSearch->save(); // field_7
			$this->n_103->AdvancedSearch->save(); // n_103
			$this->n_103_distance->AdvancedSearch->save(); // n_103_distance
			$this->n_103_distance_by->AdvancedSearch->save(); // n_103_distance_by
			$this->n_105->AdvancedSearch->save(); // n_105
			$this->n_105_distance->AdvancedSearch->save(); // n_105_distance
			$this->n_105_distance_by->AdvancedSearch->save(); // n_105_distance_by
			$this->n_107->AdvancedSearch->save(); // n_107
			$this->n_107_distance->AdvancedSearch->save(); // n_107_distance
			$this->n_107_distance_by->AdvancedSearch->save(); // n_107_distance_by
			$this->n_108->AdvancedSearch->save(); // n_108
			$this->n_108_distance->AdvancedSearch->save(); // n_108_distance
			$this->n_108_distance_by->AdvancedSearch->save(); // n_108_distance_by
			$this->n_109->AdvancedSearch->save(); // n_109
			$this->n_109_distance->AdvancedSearch->save(); // n_109_distance
			$this->n_109_distance_by->AdvancedSearch->save(); // n_109_distance_by
			$this->f_131_options->AdvancedSearch->save(); // f_131_options
			$this->f_131->AdvancedSearch->save(); // f_131
			$this->f_137_options->AdvancedSearch->save(); // f_137_options
			$this->f_137->AdvancedSearch->save(); // f_137
			$this->f_139_options->AdvancedSearch->save(); // f_139_options
			$this->f_139->AdvancedSearch->save(); // f_139
			$this->f_144_options->AdvancedSearch->save(); // f_144_options
			$this->f_144->AdvancedSearch->save(); // f_144
			$this->f_146_options->AdvancedSearch->save(); // f_146_options
			$this->f_146->AdvancedSearch->save(); // f_146
			$this->f_149_options->AdvancedSearch->save(); // f_149_options
			$this->f_149->AdvancedSearch->save(); // f_149
			$this->f_150_options->AdvancedSearch->save(); // f_150_options
			$this->f_150->AdvancedSearch->save(); // f_150
			$this->f_156_options->AdvancedSearch->save(); // f_156_options
			$this->f_156->AdvancedSearch->save(); // f_156
			$this->f_157_options->AdvancedSearch->save(); // f_157_options
			$this->f_157->AdvancedSearch->save(); // f_157
			$this->f_159_options->AdvancedSearch->save(); // f_159_options
			$this->f_159->AdvancedSearch->save(); // f_159
			$this->f_161_options->AdvancedSearch->save(); // f_161_options
			$this->f_161->AdvancedSearch->save(); // f_161
			$this->f_163_options->AdvancedSearch->save(); // f_163_options
			$this->f_163->AdvancedSearch->save(); // f_163
			$this->f_165_options->AdvancedSearch->save(); // f_165_options
			$this->f_165->AdvancedSearch->save(); // f_165
			$this->f_166_options->AdvancedSearch->save(); // f_166_options
			$this->f_166->AdvancedSearch->save(); // f_166
			$this->ref_id->AdvancedSearch->save(); // ref_id
			$this->field_54->AdvancedSearch->save(); // field_54
			$this->half_bathrooms->AdvancedSearch->save(); // half_bathrooms
			$this->field_55->AdvancedSearch->save(); // field_55
			$this->rendered->AdvancedSearch->save(); // rendered
			$this->alias->AdvancedSearch->save(); // alias
			$this->source->AdvancedSearch->save(); // source
			$this->last_sync_date->AdvancedSearch->save(); // last_sync_date
			$this->street_suffix->AdvancedSearch->save(); // street_suffix
			$this->energy_tag->AdvancedSearch->save(); // energy_tag
			$this->field_3006->AdvancedSearch->save(); // field_3006
			$this->field_3007->AdvancedSearch->save(); // field_3007
			$this->field_3008->AdvancedSearch->save(); // field_3008
			$this->importer_structure_id->AdvancedSearch->save(); // importer_structure_id
			$this->importer_params->AdvancedSearch->save(); // importer_params
			$this->field_3009->AdvancedSearch->save(); // field_3009
			$this->field_3010->AdvancedSearch->save(); // field_3010
			$this->field_3012->AdvancedSearch->save(); // field_3012
			$this->rendered_en_us->AdvancedSearch->save(); // rendered_en_us
			$this->textsearch_en_us->AdvancedSearch->save(); // textsearch_en_us
			$this->rendered_fr_fr->AdvancedSearch->save(); // rendered_fr_fr
			$this->textsearch_fr_fr->AdvancedSearch->save(); // textsearch_fr_fr
			$this->field_3013->AdvancedSearch->save(); // field_3013
			$this->field_3014->AdvancedSearch->save(); // field_3014
			$this->f_3014_options->AdvancedSearch->save(); // f_3014_options
			$this->f_3014->AdvancedSearch->save(); // f_3014
			$this->field_3015->AdvancedSearch->save(); // field_3015
			$this->field_3016->AdvancedSearch->save(); // field_3016
			$this->field_3017->AdvancedSearch->save(); // field_3017
			$this->f_3018_options->AdvancedSearch->save(); // f_3018_options
			$this->f_3018->AdvancedSearch->save(); // f_3018
			$this->f_3019_options->AdvancedSearch->save(); // f_3019_options
			$this->f_3019->AdvancedSearch->save(); // f_3019
			$this->f_3020_options->AdvancedSearch->save(); // f_3020_options
			$this->f_3020->AdvancedSearch->save(); // f_3020
			$this->f_3021_options->AdvancedSearch->save(); // f_3021_options
			$this->f_3021->AdvancedSearch->save(); // f_3021
			$this->f_3022_options->AdvancedSearch->save(); // f_3022_options
			$this->f_3022->AdvancedSearch->save(); // f_3022
			$this->f_3023_options->AdvancedSearch->save(); // f_3023_options
			$this->f_3023->AdvancedSearch->save(); // f_3023
			$this->f_3024_options->AdvancedSearch->save(); // f_3024_options
			$this->f_3024->AdvancedSearch->save(); // f_3024
			$this->f_3025_options->AdvancedSearch->save(); // f_3025_options
			$this->f_3025->AdvancedSearch->save(); // f_3025
			$this->f_3026_options->AdvancedSearch->save(); // f_3026_options
			$this->f_3026->AdvancedSearch->save(); // f_3026
			$this->f_3027_options->AdvancedSearch->save(); // f_3027_options
			$this->f_3027->AdvancedSearch->save(); // f_3027
			$this->f_3028_options->AdvancedSearch->save(); // f_3028_options
			$this->f_3028->AdvancedSearch->save(); // f_3028
			$this->f_3029_options->AdvancedSearch->save(); // f_3029_options
			$this->f_3029->AdvancedSearch->save(); // f_3029
			$this->f_3031_options->AdvancedSearch->save(); // f_3031_options
			$this->f_3031->AdvancedSearch->save(); // f_3031
			$this->f_3032_options->AdvancedSearch->save(); // f_3032_options
			$this->f_3032->AdvancedSearch->save(); // f_3032
			$this->f_3033_options->AdvancedSearch->save(); // f_3033_options
			$this->f_3033->AdvancedSearch->save(); // f_3033
			$this->f_3034_options->AdvancedSearch->save(); // f_3034_options
			$this->f_3034->AdvancedSearch->save(); // f_3034
			$this->f_3035_options->AdvancedSearch->save(); // f_3035_options
			$this->f_3035->AdvancedSearch->save(); // f_3035
			$this->f_3036_options->AdvancedSearch->save(); // f_3036_options
			$this->f_3036->AdvancedSearch->save(); // f_3036
			$this->f_3037_options->AdvancedSearch->save(); // f_3037_options
			$this->f_3037->AdvancedSearch->save(); // f_3037
			$this->f_3038_options->AdvancedSearch->save(); // f_3038_options
			$this->f_3038->AdvancedSearch->save(); // f_3038
			$this->f_3039_options->AdvancedSearch->save(); // f_3039_options
			$this->f_3039->AdvancedSearch->save(); // f_3039
			$this->f_3040_options->AdvancedSearch->save(); // f_3040_options
			$this->f_3040->AdvancedSearch->save(); // f_3040
			$this->f_3041_options->AdvancedSearch->save(); // f_3041_options
			$this->f_3041->AdvancedSearch->save(); // f_3041
			$this->f_3042_options->AdvancedSearch->save(); // f_3042_options
			$this->f_3042->AdvancedSearch->save(); // f_3042
			$this->f_3043_options->AdvancedSearch->save(); // f_3043_options
			$this->f_3043->AdvancedSearch->save(); // f_3043
			$this->f_3044_options->AdvancedSearch->save(); // f_3044_options
			$this->f_3044->AdvancedSearch->save(); // f_3044
			$this->n_3045->AdvancedSearch->save(); // n_3045
			$this->n_3045_distance->AdvancedSearch->save(); // n_3045_distance
			$this->n_3045_distance_by->AdvancedSearch->save(); // n_3045_distance_by
			$this->n_3046->AdvancedSearch->save(); // n_3046
			$this->n_3046_distance->AdvancedSearch->save(); // n_3046_distance
			$this->n_3046_distance_by->AdvancedSearch->save(); // n_3046_distance_by
			$this->n_3047->AdvancedSearch->save(); // n_3047
			$this->n_3047_distance->AdvancedSearch->save(); // n_3047_distance
			$this->n_3047_distance_by->AdvancedSearch->save(); // n_3047_distance_by
			$this->n_3048->AdvancedSearch->save(); // n_3048
			$this->n_3048_distance->AdvancedSearch->save(); // n_3048_distance
			$this->n_3048_distance_by->AdvancedSearch->save(); // n_3048_distance_by
			$this->n_3049->AdvancedSearch->save(); // n_3049
			$this->n_3049_distance->AdvancedSearch->save(); // n_3049_distance
			$this->n_3049_distance_by->AdvancedSearch->save(); // n_3049_distance_by
			$this->n_3050->AdvancedSearch->save(); // n_3050
			$this->n_3050_distance->AdvancedSearch->save(); // n_3050_distance
			$this->n_3050_distance_by->AdvancedSearch->save(); // n_3050_distance_by
			$this->n_3051->AdvancedSearch->save(); // n_3051
			$this->n_3051_distance->AdvancedSearch->save(); // n_3051_distance
			$this->n_3051_distance_by->AdvancedSearch->save(); // n_3051_distance_by
			$this->n_3052->AdvancedSearch->save(); // n_3052
			$this->n_3052_distance->AdvancedSearch->save(); // n_3052_distance
			$this->n_3052_distance_by->AdvancedSearch->save(); // n_3052_distance_by
			$this->n_3053->AdvancedSearch->save(); // n_3053
			$this->n_3053_distance->AdvancedSearch->save(); // n_3053_distance
			$this->n_3053_distance_by->AdvancedSearch->save(); // n_3053_distance_by
			$this->n_3054->AdvancedSearch->save(); // n_3054
			$this->n_3054_distance->AdvancedSearch->save(); // n_3054_distance
			$this->n_3054_distance_by->AdvancedSearch->save(); // n_3054_distance_by
			$this->n_3055->AdvancedSearch->save(); // n_3055
			$this->n_3055_distance->AdvancedSearch->save(); // n_3055_distance
			$this->n_3055_distance_by->AdvancedSearch->save(); // n_3055_distance_by
			$this->n_3056->AdvancedSearch->save(); // n_3056
			$this->n_3056_distance->AdvancedSearch->save(); // n_3056_distance
			$this->n_3056_distance_by->AdvancedSearch->save(); // n_3056_distance_by
			$this->n_3057->AdvancedSearch->save(); // n_3057
			$this->n_3057_distance->AdvancedSearch->save(); // n_3057_distance
			$this->n_3057_distance_by->AdvancedSearch->save(); // n_3057_distance_by
			$this->n_3058->AdvancedSearch->save(); // n_3058
			$this->n_3058_distance->AdvancedSearch->save(); // n_3058_distance
			$this->n_3058_distance_by->AdvancedSearch->save(); // n_3058_distance_by
			$this->n_3059->AdvancedSearch->save(); // n_3059
			$this->n_3059_distance->AdvancedSearch->save(); // n_3059_distance
			$this->n_3059_distance_by->AdvancedSearch->save(); // n_3059_distance_by
			$this->f_3060_options->AdvancedSearch->save(); // f_3060_options
			$this->f_3060->AdvancedSearch->save(); // f_3060
			$this->f_3061_options->AdvancedSearch->save(); // f_3061_options
			$this->f_3061->AdvancedSearch->save(); // f_3061
			$this->f_3062_options->AdvancedSearch->save(); // f_3062_options
			$this->f_3062->AdvancedSearch->save(); // f_3062
			$this->field_3063->AdvancedSearch->save(); // field_3063
			$this->field_3064->AdvancedSearch->save(); // field_3064
			$this->field_3065->AdvancedSearch->save(); // field_3065
			$this->field_308->AdvancedSearch->save(); // field_308
			$this->field_308_en_us->AdvancedSearch->save(); // field_308_en_us
			$this->field_308_fr_fr->AdvancedSearch->save(); // field_308_fr_fr
			$this->field_313_en_us->AdvancedSearch->save(); // field_313_en_us
			$this->field_313_fr_fr->AdvancedSearch->save(); // field_313_fr_fr
			$this->field_312_en_us->AdvancedSearch->save(); // field_312_en_us
			$this->field_312_fr_fr->AdvancedSearch->save(); // field_312_fr_fr
			$this->field_3017_en_us->AdvancedSearch->save(); // field_3017_en_us
			$this->field_3017_fr_fr->AdvancedSearch->save(); // field_3017_fr_fr
			$this->field_42_en_us->AdvancedSearch->save(); // field_42_en_us
			$this->field_42_fr_fr->AdvancedSearch->save(); // field_42_fr_fr
			$this->field_3067->AdvancedSearch->save(); // field_3067
			$this->field_3068->AdvancedSearch->save(); // field_3068
			$this->field_3069->AdvancedSearch->save(); // field_3069
			$this->field_3070->AdvancedSearch->save(); // field_3070
			$this->field_3071->AdvancedSearch->save(); // field_3071
			$this->field_3071_en_us->AdvancedSearch->save(); // field_3071_en_us
			$this->field_3071_fr_fr->AdvancedSearch->save(); // field_3071_fr_fr
			$this->field_3072->AdvancedSearch->save(); // field_3072
			$this->field_3073->AdvancedSearch->save(); // field_3073
			$this->field_3074->AdvancedSearch->save(); // field_3074
			$this->field_3074_en_us->AdvancedSearch->save(); // field_3074_en_us
			$this->field_3074_fr_fr->AdvancedSearch->save(); // field_3074_fr_fr
			$this->field_3075->AdvancedSearch->save(); // field_3075
			$this->field_3076->AdvancedSearch->save(); // field_3076
			$this->field_3077->AdvancedSearch->save(); // field_3077
			$this->field_3078->AdvancedSearch->save(); // field_3078
			$this->field_3079->AdvancedSearch->save(); // field_3079
			$this->field_3080->AdvancedSearch->save(); // field_3080
			$this->field_3076_en_us->AdvancedSearch->save(); // field_3076_en_us
			$this->field_3076_fr_fr->AdvancedSearch->save(); // field_3076_fr_fr
			$this->field_3080_en_us->AdvancedSearch->save(); // field_3080_en_us
			$this->field_3080_fr_fr->AdvancedSearch->save(); // field_3080_fr_fr
			$this->field_3081->AdvancedSearch->save(); // field_3081
			$this->field_3081_en_us->AdvancedSearch->save(); // field_3081_en_us
			$this->field_3081_fr_fr->AdvancedSearch->save(); // field_3081_fr_fr
			$this->field_3082->AdvancedSearch->save(); // field_3082
			$this->field_3082_en_us->AdvancedSearch->save(); // field_3082_en_us
			$this->field_3082_fr_fr->AdvancedSearch->save(); // field_3082_fr_fr
			$this->field_3084->AdvancedSearch->save(); // field_3084
			$this->field_3085->AdvancedSearch->save(); // field_3085
			$this->field_3086->AdvancedSearch->save(); // field_3086
			$this->field_3096->AdvancedSearch->save(); // field_3096
			$this->field_3097->AdvancedSearch->save(); // field_3097
			$this->field_3098->AdvancedSearch->save(); // field_3098
			$this->field_3099->AdvancedSearch->save(); // field_3099
			$this->field_3100->AdvancedSearch->save(); // field_3100
			$this->field_3101->AdvancedSearch->save(); // field_3101
			$this->field_3102->AdvancedSearch->save(); // field_3102
			$this->field_3103->AdvancedSearch->save(); // field_3103
			$this->field_3104->AdvancedSearch->save(); // field_3104
			$this->field_3105->AdvancedSearch->save(); // field_3105
			$this->field_3106->AdvancedSearch->save(); // field_3106
			$this->field_3107->AdvancedSearch->save(); // field_3107
			$this->field_3108->AdvancedSearch->save(); // field_3108
			$this->field_3109->AdvancedSearch->save(); // field_3109
			$this->field_3110->AdvancedSearch->save(); // field_3110
			$this->field_3111->AdvancedSearch->save(); // field_3111
			$this->field_3112->AdvancedSearch->save(); // field_3112
			$this->field_3113->AdvancedSearch->save(); // field_3113
			$this->field_3113_en_us->AdvancedSearch->save(); // field_3113_en_us
			$this->field_3113_fr_fr->AdvancedSearch->save(); // field_3113_fr_fr
			$this->field_3114->AdvancedSearch->save(); // field_3114
			$this->field_3115->AdvancedSearch->save(); // field_3115
			$this->field_3115_si->AdvancedSearch->save(); // field_3115_si
			$this->field_3115_unit->AdvancedSearch->save(); // field_3115_unit
			$this->field_3116->AdvancedSearch->save(); // field_3116
			$this->field_3117->AdvancedSearch->save(); // field_3117
			$this->field_3117_en_us->AdvancedSearch->save(); // field_3117_en_us
			$this->field_3117_fr_fr->AdvancedSearch->save(); // field_3117_fr_fr
			$this->field_3118->AdvancedSearch->save(); // field_3118
			$this->field_3118_en_us->AdvancedSearch->save(); // field_3118_en_us
			$this->field_3118_fr_fr->AdvancedSearch->save(); // field_3118_fr_fr
			$this->field_3119->AdvancedSearch->save(); // field_3119
			$this->field_3119_en_us->AdvancedSearch->save(); // field_3119_en_us
			$this->field_3119_fr_fr->AdvancedSearch->save(); // field_3119_fr_fr
			$this->field_3120->AdvancedSearch->save(); // field_3120
			$this->field_3120_en_us->AdvancedSearch->save(); // field_3120_en_us
			$this->field_3120_fr_fr->AdvancedSearch->save(); // field_3120_fr_fr
			$this->field_3121->AdvancedSearch->save(); // field_3121
			$this->field_3122->AdvancedSearch->save(); // field_3122
			$this->field_3122_si->AdvancedSearch->save(); // field_3122_si
			$this->field_3122_unit->AdvancedSearch->save(); // field_3122_unit
			$this->field_3123->AdvancedSearch->save(); // field_3123
			$this->field_3124->AdvancedSearch->save(); // field_3124
			$this->field_3125->AdvancedSearch->save(); // field_3125
			$this->field_3126->AdvancedSearch->save(); // field_3126
			$this->field_3127->AdvancedSearch->save(); // field_3127
			$this->field_3128->AdvancedSearch->save(); // field_3128
			$this->field_3129->AdvancedSearch->save(); // field_3129
			$this->field_3130->AdvancedSearch->save(); // field_3130
			$this->field_3131->AdvancedSearch->save(); // field_3131
			$this->field_3132->AdvancedSearch->save(); // field_3132
			$this->field_3133->AdvancedSearch->save(); // field_3133
			$this->field_3134->AdvancedSearch->save(); // field_3134
			$this->field_3135->AdvancedSearch->save(); // field_3135
			$this->field_3136->AdvancedSearch->save(); // field_3136
			$this->field_3137->AdvancedSearch->save(); // field_3137
			$this->field_3138->AdvancedSearch->save(); // field_3138
			$this->field_3139->AdvancedSearch->save(); // field_3139
			$this->field_3140->AdvancedSearch->save(); // field_3140
			$this->field_3141->AdvancedSearch->save(); // field_3141
			$this->field_3142->AdvancedSearch->save(); // field_3142
			$this->field_3143->AdvancedSearch->save(); // field_3143
			$this->field_3144->AdvancedSearch->save(); // field_3144
			$this->field_3145->AdvancedSearch->save(); // field_3145
			$this->field_3146->AdvancedSearch->save(); // field_3146
			$this->field_3147->AdvancedSearch->save(); // field_3147
			$this->field_3148->AdvancedSearch->save(); // field_3148
			$this->field_3149->AdvancedSearch->save(); // field_3149
			$this->field_3150->AdvancedSearch->save(); // field_3150
			$this->field_3151->AdvancedSearch->save(); // field_3151
			$this->field_3152->AdvancedSearch->save(); // field_3152
			$this->field_3153->AdvancedSearch->save(); // field_3153
			$this->field_3154->AdvancedSearch->save(); // field_3154
			$this->field_3155->AdvancedSearch->save(); // field_3155
			$this->field_3156->AdvancedSearch->save(); // field_3156
			$this->field_3157->AdvancedSearch->save(); // field_3157
			$this->field_3158->AdvancedSearch->save(); // field_3158
			$this->field_3159->AdvancedSearch->save(); // field_3159
			$this->field_3160->AdvancedSearch->save(); // field_3160
			$this->field_3161->AdvancedSearch->save(); // field_3161
			$this->field_3162->AdvancedSearch->save(); // field_3162
			$this->field_3163->AdvancedSearch->save(); // field_3163
			$this->field_3164->AdvancedSearch->save(); // field_3164
			$this->field_3165->AdvancedSearch->save(); // field_3165
			$this->field_3166->AdvancedSearch->save(); // field_3166
			$this->field_3167->AdvancedSearch->save(); // field_3167
			$this->field_3168->AdvancedSearch->save(); // field_3168
			$this->field_3169->AdvancedSearch->save(); // field_3169
			$this->field_3170->AdvancedSearch->save(); // field_3170
			$this->field_3171->AdvancedSearch->save(); // field_3171
			$this->field_3172->AdvancedSearch->save(); // field_3172
			$this->field_3173->AdvancedSearch->save(); // field_3173
			$this->field_3173_si->AdvancedSearch->save(); // field_3173_si
			$this->field_3173_unit->AdvancedSearch->save(); // field_3173_unit
			$this->field_3180->AdvancedSearch->save(); // field_3180
			$this->field_3180_en_us->AdvancedSearch->save(); // field_3180_en_us
			$this->field_3180_fr_fr->AdvancedSearch->save(); // field_3180_fr_fr
			$this->field_3181->AdvancedSearch->save(); // field_3181
			$this->field_3182->AdvancedSearch->save(); // field_3182
			$this->n_3189->AdvancedSearch->save(); // n_3189
			$this->n_3189_distance->AdvancedSearch->save(); // n_3189_distance
			$this->n_3189_distance_by->AdvancedSearch->save(); // n_3189_distance_by
			$this->field_3190->AdvancedSearch->save(); // field_3190
			$this->field_3192->AdvancedSearch->save(); // field_3192
			$this->field_3193->AdvancedSearch->save(); // field_3193
			$this->field_3195->AdvancedSearch->save(); // field_3195
			$this->field_3114_en_us->AdvancedSearch->save(); // field_3114_en_us
			$this->field_3114_fr_fr->AdvancedSearch->save(); // field_3114_fr_fr
			$this->n_3196->AdvancedSearch->save(); // n_3196
			$this->n_3196_distance->AdvancedSearch->save(); // n_3196_distance
			$this->n_3196_distance_by->AdvancedSearch->save(); // n_3196_distance_by
			$this->field_3197->AdvancedSearch->save(); // field_3197
			$this->field_3197_si->AdvancedSearch->save(); // field_3197_si
			$this->field_3197_unit->AdvancedSearch->save(); // field_3197_unit
		}
		return $where;
	}

	// Build search SQL
	protected function buildSearchSql(&$where, &$fld, $default, $multiValue)
	{
		$fldParm = $fld->Param;
		$fldVal = ($default) ? $fld->AdvancedSearch->SearchValueDefault : $fld->AdvancedSearch->SearchValue;
		$fldOpr = ($default) ? $fld->AdvancedSearch->SearchOperatorDefault : $fld->AdvancedSearch->SearchOperator;
		$fldCond = ($default) ? $fld->AdvancedSearch->SearchConditionDefault : $fld->AdvancedSearch->SearchCondition;
		$fldVal2 = ($default) ? $fld->AdvancedSearch->SearchValue2Default : $fld->AdvancedSearch->SearchValue2;
		$fldOpr2 = ($default) ? $fld->AdvancedSearch->SearchOperator2Default : $fld->AdvancedSearch->SearchOperator2;
		$wrk = "";
		if (is_array($fldVal))
			$fldVal = implode(Config("MULTIPLE_OPTION_SEPARATOR"), $fldVal);
		if (is_array($fldVal2))
			$fldVal2 = implode(Config("MULTIPLE_OPTION_SEPARATOR"), $fldVal2);
		$fldOpr = strtoupper(trim($fldOpr));
		if ($fldOpr == "")
			$fldOpr = "=";
		$fldOpr2 = strtoupper(trim($fldOpr2));
		if ($fldOpr2 == "")
			$fldOpr2 = "=";
		if (Config("SEARCH_MULTI_VALUE_OPTION") == 1 || !IsMultiSearchOperator($fldOpr))
			$multiValue = FALSE;
		if ($multiValue) {
			$wrk1 = ($fldVal != "") ? GetMultiSearchSql($fld, $fldOpr, $fldVal, $this->Dbid) : ""; // Field value 1
			$wrk2 = ($fldVal2 != "") ? GetMultiSearchSql($fld, $fldOpr2, $fldVal2, $this->Dbid) : ""; // Field value 2
			$wrk = $wrk1; // Build final SQL
			if ($wrk2 != "")
				$wrk = ($wrk != "") ? "($wrk) $fldCond ($wrk2)" : $wrk2;
		} else {
			$fldVal = $this->convertSearchValue($fld, $fldVal);
			$fldVal2 = $this->convertSearchValue($fld, $fldVal2);
			$wrk = GetSearchSql($fld, $fldVal, $fldOpr, $fldCond, $fldVal2, $fldOpr2, $this->Dbid);
		}
		AddFilter($where, $wrk);
	}

	// Convert search value
	protected function convertSearchValue(&$fld, $fldVal)
	{
		if ($fldVal == Config("NULL_VALUE") || $fldVal == Config("NOT_NULL_VALUE"))
			return $fldVal;
		$value = $fldVal;
		if ($fld->isBoolean()) {
			if ($fldVal != "")
				$value = (SameText($fldVal, "1") || SameText($fldVal, "y") || SameText($fldVal, "t")) ? $fld->TrueValue : $fld->FalseValue;
		} elseif ($fld->DataType == DATATYPE_DATE || $fld->DataType == DATATYPE_TIME) {
			if ($fldVal != "")
				$value = UnFormatDateTime($fldVal, $fld->DateTimeFormat);
		}
		return $value;
	}

	// Check if search parm exists
	protected function checkSearchParms()
	{
		if ($this->id->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->kind->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->deleted->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->mls_id->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->mls_id_num->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->parent->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->pic_numb->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->user_id->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->listing->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->property_type->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->location1_id->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->location2_id->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->location3_id->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->location4_id->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->location5_id->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->location6_id->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->location7_id->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->location1_name->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->location2_name->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->location3_name->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->location4_name->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->location5_name->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->location6_name->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->location7_name->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->show_address->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->show_marker->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->price->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->price_unit->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->price_si->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->price_period->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->bedrooms->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->rooms->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->bathrooms->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->living_area->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->living_area_unit->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->living_area_si->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->lot_area->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->lot_area_unit->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->lot_area_si->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->googlemap_lt->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->googlemap_ln->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->finalized->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->add_date->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->last_finalize_date->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->expire_days->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->confirmed->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->expired->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->build_year->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->zip_id->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->zip_name->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->last_modified_time_stamp->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->post_code->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->meta_description->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->meta_description_manual->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->meta_keywords->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->meta_keywords_manual->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->street_no->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->sp_featured->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->sp_hot->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->sp_openhouse->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->sp_forclosure->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->textsearch->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->location_text->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_42->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_312->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_313->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_7->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->n_103->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->n_103_distance->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->n_103_distance_by->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->n_105->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->n_105_distance->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->n_105_distance_by->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->n_107->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->n_107_distance->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->n_107_distance_by->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->n_108->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->n_108_distance->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->n_108_distance_by->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->n_109->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->n_109_distance->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->n_109_distance_by->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_131_options->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_131->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_137_options->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_137->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_139_options->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_139->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_144_options->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_144->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_146_options->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_146->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_149_options->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_149->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_150_options->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_150->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_156_options->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_156->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_157_options->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_157->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_159_options->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_159->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_161_options->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_161->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_163_options->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_163->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_165_options->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_165->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_166_options->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_166->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->ref_id->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_54->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->half_bathrooms->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_55->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->rendered->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->alias->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->source->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->last_sync_date->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->street_suffix->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->energy_tag->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3006->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3007->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3008->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->importer_structure_id->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->importer_params->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3009->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3010->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3012->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->rendered_en_us->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->textsearch_en_us->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->rendered_fr_fr->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->textsearch_fr_fr->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3013->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3014->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_3014_options->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_3014->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3015->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3016->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3017->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_3018_options->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_3018->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_3019_options->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_3019->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_3020_options->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_3020->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_3021_options->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_3021->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_3022_options->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_3022->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_3023_options->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_3023->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_3024_options->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_3024->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_3025_options->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_3025->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_3026_options->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_3026->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_3027_options->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_3027->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_3028_options->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_3028->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_3029_options->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_3029->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_3031_options->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_3031->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_3032_options->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_3032->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_3033_options->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_3033->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_3034_options->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_3034->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_3035_options->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_3035->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_3036_options->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_3036->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_3037_options->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_3037->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_3038_options->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_3038->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_3039_options->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_3039->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_3040_options->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_3040->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_3041_options->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_3041->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_3042_options->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_3042->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_3043_options->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_3043->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_3044_options->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_3044->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->n_3045->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->n_3045_distance->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->n_3045_distance_by->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->n_3046->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->n_3046_distance->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->n_3046_distance_by->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->n_3047->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->n_3047_distance->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->n_3047_distance_by->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->n_3048->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->n_3048_distance->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->n_3048_distance_by->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->n_3049->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->n_3049_distance->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->n_3049_distance_by->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->n_3050->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->n_3050_distance->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->n_3050_distance_by->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->n_3051->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->n_3051_distance->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->n_3051_distance_by->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->n_3052->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->n_3052_distance->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->n_3052_distance_by->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->n_3053->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->n_3053_distance->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->n_3053_distance_by->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->n_3054->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->n_3054_distance->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->n_3054_distance_by->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->n_3055->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->n_3055_distance->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->n_3055_distance_by->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->n_3056->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->n_3056_distance->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->n_3056_distance_by->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->n_3057->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->n_3057_distance->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->n_3057_distance_by->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->n_3058->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->n_3058_distance->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->n_3058_distance_by->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->n_3059->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->n_3059_distance->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->n_3059_distance_by->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_3060_options->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_3060->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_3061_options->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_3061->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_3062_options->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->f_3062->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3063->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3064->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3065->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_308->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_308_en_us->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_308_fr_fr->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_313_en_us->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_313_fr_fr->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_312_en_us->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_312_fr_fr->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3017_en_us->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3017_fr_fr->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_42_en_us->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_42_fr_fr->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3067->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3068->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3069->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3070->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3071->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3071_en_us->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3071_fr_fr->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3072->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3073->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3074->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3074_en_us->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3074_fr_fr->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3075->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3076->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3077->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3078->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3079->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3080->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3076_en_us->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3076_fr_fr->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3080_en_us->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3080_fr_fr->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3081->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3081_en_us->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3081_fr_fr->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3082->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3082_en_us->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3082_fr_fr->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3084->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3085->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3086->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3096->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3097->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3098->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3099->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3100->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3101->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3102->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3103->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3104->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3105->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3106->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3107->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3108->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3109->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3110->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3111->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3112->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3113->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3113_en_us->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3113_fr_fr->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3114->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3115->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3115_si->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3115_unit->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3116->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3117->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3117_en_us->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3117_fr_fr->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3118->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3118_en_us->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3118_fr_fr->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3119->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3119_en_us->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3119_fr_fr->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3120->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3120_en_us->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3120_fr_fr->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3121->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3122->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3122_si->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3122_unit->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3123->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3124->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3125->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3126->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3127->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3128->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3129->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3130->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3131->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3132->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3133->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3134->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3135->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3136->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3137->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3138->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3139->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3140->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3141->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3142->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3143->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3144->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3145->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3146->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3147->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3148->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3149->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3150->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3151->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3152->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3153->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3154->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3155->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3156->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3157->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3158->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3159->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3160->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3161->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3162->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3163->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3164->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3165->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3166->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3167->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3168->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3169->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3170->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3171->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3172->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3173->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3173_si->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3173_unit->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3180->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3180_en_us->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3180_fr_fr->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3181->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3182->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->n_3189->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->n_3189_distance->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->n_3189_distance_by->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3190->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3192->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3193->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3195->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3114_en_us->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3114_fr_fr->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->n_3196->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->n_3196_distance->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->n_3196_distance_by->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3197->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3197_si->AdvancedSearch->issetSession())
			return TRUE;
		if ($this->field_3197_unit->AdvancedSearch->issetSession())
			return TRUE;
		return FALSE;
	}

	// Clear all search parameters
	protected function resetSearchParms()
	{

		// Clear search WHERE clause
		$this->SearchWhere = "";
		$this->setSearchWhere($this->SearchWhere);

		// Clear advanced search parameters
		$this->resetAdvancedSearchParms();
	}

	// Load advanced search default values
	protected function loadAdvancedSearchDefault()
	{
		return FALSE;
	}

	// Clear all advanced search parameters
	protected function resetAdvancedSearchParms()
	{
		$this->id->AdvancedSearch->unsetSession();
		$this->kind->AdvancedSearch->unsetSession();
		$this->deleted->AdvancedSearch->unsetSession();
		$this->mls_id->AdvancedSearch->unsetSession();
		$this->mls_id_num->AdvancedSearch->unsetSession();
		$this->parent->AdvancedSearch->unsetSession();
		$this->pic_numb->AdvancedSearch->unsetSession();
		$this->user_id->AdvancedSearch->unsetSession();
		$this->listing->AdvancedSearch->unsetSession();
		$this->property_type->AdvancedSearch->unsetSession();
		$this->location1_id->AdvancedSearch->unsetSession();
		$this->location2_id->AdvancedSearch->unsetSession();
		$this->location3_id->AdvancedSearch->unsetSession();
		$this->location4_id->AdvancedSearch->unsetSession();
		$this->location5_id->AdvancedSearch->unsetSession();
		$this->location6_id->AdvancedSearch->unsetSession();
		$this->location7_id->AdvancedSearch->unsetSession();
		$this->location1_name->AdvancedSearch->unsetSession();
		$this->location2_name->AdvancedSearch->unsetSession();
		$this->location3_name->AdvancedSearch->unsetSession();
		$this->location4_name->AdvancedSearch->unsetSession();
		$this->location5_name->AdvancedSearch->unsetSession();
		$this->location6_name->AdvancedSearch->unsetSession();
		$this->location7_name->AdvancedSearch->unsetSession();
		$this->show_address->AdvancedSearch->unsetSession();
		$this->show_marker->AdvancedSearch->unsetSession();
		$this->price->AdvancedSearch->unsetSession();
		$this->price_unit->AdvancedSearch->unsetSession();
		$this->price_si->AdvancedSearch->unsetSession();
		$this->price_period->AdvancedSearch->unsetSession();
		$this->bedrooms->AdvancedSearch->unsetSession();
		$this->rooms->AdvancedSearch->unsetSession();
		$this->bathrooms->AdvancedSearch->unsetSession();
		$this->living_area->AdvancedSearch->unsetSession();
		$this->living_area_unit->AdvancedSearch->unsetSession();
		$this->living_area_si->AdvancedSearch->unsetSession();
		$this->lot_area->AdvancedSearch->unsetSession();
		$this->lot_area_unit->AdvancedSearch->unsetSession();
		$this->lot_area_si->AdvancedSearch->unsetSession();
		$this->googlemap_lt->AdvancedSearch->unsetSession();
		$this->googlemap_ln->AdvancedSearch->unsetSession();
		$this->finalized->AdvancedSearch->unsetSession();
		$this->add_date->AdvancedSearch->unsetSession();
		$this->last_finalize_date->AdvancedSearch->unsetSession();
		$this->expire_days->AdvancedSearch->unsetSession();
		$this->confirmed->AdvancedSearch->unsetSession();
		$this->expired->AdvancedSearch->unsetSession();
		$this->build_year->AdvancedSearch->unsetSession();
		$this->zip_id->AdvancedSearch->unsetSession();
		$this->zip_name->AdvancedSearch->unsetSession();
		$this->last_modified_time_stamp->AdvancedSearch->unsetSession();
		$this->post_code->AdvancedSearch->unsetSession();
		$this->meta_description->AdvancedSearch->unsetSession();
		$this->meta_description_manual->AdvancedSearch->unsetSession();
		$this->meta_keywords->AdvancedSearch->unsetSession();
		$this->meta_keywords_manual->AdvancedSearch->unsetSession();
		$this->street_no->AdvancedSearch->unsetSession();
		$this->sp_featured->AdvancedSearch->unsetSession();
		$this->sp_hot->AdvancedSearch->unsetSession();
		$this->sp_openhouse->AdvancedSearch->unsetSession();
		$this->sp_forclosure->AdvancedSearch->unsetSession();
		$this->textsearch->AdvancedSearch->unsetSession();
		$this->location_text->AdvancedSearch->unsetSession();
		$this->field_42->AdvancedSearch->unsetSession();
		$this->field_312->AdvancedSearch->unsetSession();
		$this->field_313->AdvancedSearch->unsetSession();
		$this->field_7->AdvancedSearch->unsetSession();
		$this->n_103->AdvancedSearch->unsetSession();
		$this->n_103_distance->AdvancedSearch->unsetSession();
		$this->n_103_distance_by->AdvancedSearch->unsetSession();
		$this->n_105->AdvancedSearch->unsetSession();
		$this->n_105_distance->AdvancedSearch->unsetSession();
		$this->n_105_distance_by->AdvancedSearch->unsetSession();
		$this->n_107->AdvancedSearch->unsetSession();
		$this->n_107_distance->AdvancedSearch->unsetSession();
		$this->n_107_distance_by->AdvancedSearch->unsetSession();
		$this->n_108->AdvancedSearch->unsetSession();
		$this->n_108_distance->AdvancedSearch->unsetSession();
		$this->n_108_distance_by->AdvancedSearch->unsetSession();
		$this->n_109->AdvancedSearch->unsetSession();
		$this->n_109_distance->AdvancedSearch->unsetSession();
		$this->n_109_distance_by->AdvancedSearch->unsetSession();
		$this->f_131_options->AdvancedSearch->unsetSession();
		$this->f_131->AdvancedSearch->unsetSession();
		$this->f_137_options->AdvancedSearch->unsetSession();
		$this->f_137->AdvancedSearch->unsetSession();
		$this->f_139_options->AdvancedSearch->unsetSession();
		$this->f_139->AdvancedSearch->unsetSession();
		$this->f_144_options->AdvancedSearch->unsetSession();
		$this->f_144->AdvancedSearch->unsetSession();
		$this->f_146_options->AdvancedSearch->unsetSession();
		$this->f_146->AdvancedSearch->unsetSession();
		$this->f_149_options->AdvancedSearch->unsetSession();
		$this->f_149->AdvancedSearch->unsetSession();
		$this->f_150_options->AdvancedSearch->unsetSession();
		$this->f_150->AdvancedSearch->unsetSession();
		$this->f_156_options->AdvancedSearch->unsetSession();
		$this->f_156->AdvancedSearch->unsetSession();
		$this->f_157_options->AdvancedSearch->unsetSession();
		$this->f_157->AdvancedSearch->unsetSession();
		$this->f_159_options->AdvancedSearch->unsetSession();
		$this->f_159->AdvancedSearch->unsetSession();
		$this->f_161_options->AdvancedSearch->unsetSession();
		$this->f_161->AdvancedSearch->unsetSession();
		$this->f_163_options->AdvancedSearch->unsetSession();
		$this->f_163->AdvancedSearch->unsetSession();
		$this->f_165_options->AdvancedSearch->unsetSession();
		$this->f_165->AdvancedSearch->unsetSession();
		$this->f_166_options->AdvancedSearch->unsetSession();
		$this->f_166->AdvancedSearch->unsetSession();
		$this->ref_id->AdvancedSearch->unsetSession();
		$this->field_54->AdvancedSearch->unsetSession();
		$this->half_bathrooms->AdvancedSearch->unsetSession();
		$this->field_55->AdvancedSearch->unsetSession();
		$this->rendered->AdvancedSearch->unsetSession();
		$this->alias->AdvancedSearch->unsetSession();
		$this->source->AdvancedSearch->unsetSession();
		$this->last_sync_date->AdvancedSearch->unsetSession();
		$this->street_suffix->AdvancedSearch->unsetSession();
		$this->energy_tag->AdvancedSearch->unsetSession();
		$this->field_3006->AdvancedSearch->unsetSession();
		$this->field_3007->AdvancedSearch->unsetSession();
		$this->field_3008->AdvancedSearch->unsetSession();
		$this->importer_structure_id->AdvancedSearch->unsetSession();
		$this->importer_params->AdvancedSearch->unsetSession();
		$this->field_3009->AdvancedSearch->unsetSession();
		$this->field_3010->AdvancedSearch->unsetSession();
		$this->field_3012->AdvancedSearch->unsetSession();
		$this->rendered_en_us->AdvancedSearch->unsetSession();
		$this->textsearch_en_us->AdvancedSearch->unsetSession();
		$this->rendered_fr_fr->AdvancedSearch->unsetSession();
		$this->textsearch_fr_fr->AdvancedSearch->unsetSession();
		$this->field_3013->AdvancedSearch->unsetSession();
		$this->field_3014->AdvancedSearch->unsetSession();
		$this->f_3014_options->AdvancedSearch->unsetSession();
		$this->f_3014->AdvancedSearch->unsetSession();
		$this->field_3015->AdvancedSearch->unsetSession();
		$this->field_3016->AdvancedSearch->unsetSession();
		$this->field_3017->AdvancedSearch->unsetSession();
		$this->f_3018_options->AdvancedSearch->unsetSession();
		$this->f_3018->AdvancedSearch->unsetSession();
		$this->f_3019_options->AdvancedSearch->unsetSession();
		$this->f_3019->AdvancedSearch->unsetSession();
		$this->f_3020_options->AdvancedSearch->unsetSession();
		$this->f_3020->AdvancedSearch->unsetSession();
		$this->f_3021_options->AdvancedSearch->unsetSession();
		$this->f_3021->AdvancedSearch->unsetSession();
		$this->f_3022_options->AdvancedSearch->unsetSession();
		$this->f_3022->AdvancedSearch->unsetSession();
		$this->f_3023_options->AdvancedSearch->unsetSession();
		$this->f_3023->AdvancedSearch->unsetSession();
		$this->f_3024_options->AdvancedSearch->unsetSession();
		$this->f_3024->AdvancedSearch->unsetSession();
		$this->f_3025_options->AdvancedSearch->unsetSession();
		$this->f_3025->AdvancedSearch->unsetSession();
		$this->f_3026_options->AdvancedSearch->unsetSession();
		$this->f_3026->AdvancedSearch->unsetSession();
		$this->f_3027_options->AdvancedSearch->unsetSession();
		$this->f_3027->AdvancedSearch->unsetSession();
		$this->f_3028_options->AdvancedSearch->unsetSession();
		$this->f_3028->AdvancedSearch->unsetSession();
		$this->f_3029_options->AdvancedSearch->unsetSession();
		$this->f_3029->AdvancedSearch->unsetSession();
		$this->f_3031_options->AdvancedSearch->unsetSession();
		$this->f_3031->AdvancedSearch->unsetSession();
		$this->f_3032_options->AdvancedSearch->unsetSession();
		$this->f_3032->AdvancedSearch->unsetSession();
		$this->f_3033_options->AdvancedSearch->unsetSession();
		$this->f_3033->AdvancedSearch->unsetSession();
		$this->f_3034_options->AdvancedSearch->unsetSession();
		$this->f_3034->AdvancedSearch->unsetSession();
		$this->f_3035_options->AdvancedSearch->unsetSession();
		$this->f_3035->AdvancedSearch->unsetSession();
		$this->f_3036_options->AdvancedSearch->unsetSession();
		$this->f_3036->AdvancedSearch->unsetSession();
		$this->f_3037_options->AdvancedSearch->unsetSession();
		$this->f_3037->AdvancedSearch->unsetSession();
		$this->f_3038_options->AdvancedSearch->unsetSession();
		$this->f_3038->AdvancedSearch->unsetSession();
		$this->f_3039_options->AdvancedSearch->unsetSession();
		$this->f_3039->AdvancedSearch->unsetSession();
		$this->f_3040_options->AdvancedSearch->unsetSession();
		$this->f_3040->AdvancedSearch->unsetSession();
		$this->f_3041_options->AdvancedSearch->unsetSession();
		$this->f_3041->AdvancedSearch->unsetSession();
		$this->f_3042_options->AdvancedSearch->unsetSession();
		$this->f_3042->AdvancedSearch->unsetSession();
		$this->f_3043_options->AdvancedSearch->unsetSession();
		$this->f_3043->AdvancedSearch->unsetSession();
		$this->f_3044_options->AdvancedSearch->unsetSession();
		$this->f_3044->AdvancedSearch->unsetSession();
		$this->n_3045->AdvancedSearch->unsetSession();
		$this->n_3045_distance->AdvancedSearch->unsetSession();
		$this->n_3045_distance_by->AdvancedSearch->unsetSession();
		$this->n_3046->AdvancedSearch->unsetSession();
		$this->n_3046_distance->AdvancedSearch->unsetSession();
		$this->n_3046_distance_by->AdvancedSearch->unsetSession();
		$this->n_3047->AdvancedSearch->unsetSession();
		$this->n_3047_distance->AdvancedSearch->unsetSession();
		$this->n_3047_distance_by->AdvancedSearch->unsetSession();
		$this->n_3048->AdvancedSearch->unsetSession();
		$this->n_3048_distance->AdvancedSearch->unsetSession();
		$this->n_3048_distance_by->AdvancedSearch->unsetSession();
		$this->n_3049->AdvancedSearch->unsetSession();
		$this->n_3049_distance->AdvancedSearch->unsetSession();
		$this->n_3049_distance_by->AdvancedSearch->unsetSession();
		$this->n_3050->AdvancedSearch->unsetSession();
		$this->n_3050_distance->AdvancedSearch->unsetSession();
		$this->n_3050_distance_by->AdvancedSearch->unsetSession();
		$this->n_3051->AdvancedSearch->unsetSession();
		$this->n_3051_distance->AdvancedSearch->unsetSession();
		$this->n_3051_distance_by->AdvancedSearch->unsetSession();
		$this->n_3052->AdvancedSearch->unsetSession();
		$this->n_3052_distance->AdvancedSearch->unsetSession();
		$this->n_3052_distance_by->AdvancedSearch->unsetSession();
		$this->n_3053->AdvancedSearch->unsetSession();
		$this->n_3053_distance->AdvancedSearch->unsetSession();
		$this->n_3053_distance_by->AdvancedSearch->unsetSession();
		$this->n_3054->AdvancedSearch->unsetSession();
		$this->n_3054_distance->AdvancedSearch->unsetSession();
		$this->n_3054_distance_by->AdvancedSearch->unsetSession();
		$this->n_3055->AdvancedSearch->unsetSession();
		$this->n_3055_distance->AdvancedSearch->unsetSession();
		$this->n_3055_distance_by->AdvancedSearch->unsetSession();
		$this->n_3056->AdvancedSearch->unsetSession();
		$this->n_3056_distance->AdvancedSearch->unsetSession();
		$this->n_3056_distance_by->AdvancedSearch->unsetSession();
		$this->n_3057->AdvancedSearch->unsetSession();
		$this->n_3057_distance->AdvancedSearch->unsetSession();
		$this->n_3057_distance_by->AdvancedSearch->unsetSession();
		$this->n_3058->AdvancedSearch->unsetSession();
		$this->n_3058_distance->AdvancedSearch->unsetSession();
		$this->n_3058_distance_by->AdvancedSearch->unsetSession();
		$this->n_3059->AdvancedSearch->unsetSession();
		$this->n_3059_distance->AdvancedSearch->unsetSession();
		$this->n_3059_distance_by->AdvancedSearch->unsetSession();
		$this->f_3060_options->AdvancedSearch->unsetSession();
		$this->f_3060->AdvancedSearch->unsetSession();
		$this->f_3061_options->AdvancedSearch->unsetSession();
		$this->f_3061->AdvancedSearch->unsetSession();
		$this->f_3062_options->AdvancedSearch->unsetSession();
		$this->f_3062->AdvancedSearch->unsetSession();
		$this->field_3063->AdvancedSearch->unsetSession();
		$this->field_3064->AdvancedSearch->unsetSession();
		$this->field_3065->AdvancedSearch->unsetSession();
		$this->field_308->AdvancedSearch->unsetSession();
		$this->field_308_en_us->AdvancedSearch->unsetSession();
		$this->field_308_fr_fr->AdvancedSearch->unsetSession();
		$this->field_313_en_us->AdvancedSearch->unsetSession();
		$this->field_313_fr_fr->AdvancedSearch->unsetSession();
		$this->field_312_en_us->AdvancedSearch->unsetSession();
		$this->field_312_fr_fr->AdvancedSearch->unsetSession();
		$this->field_3017_en_us->AdvancedSearch->unsetSession();
		$this->field_3017_fr_fr->AdvancedSearch->unsetSession();
		$this->field_42_en_us->AdvancedSearch->unsetSession();
		$this->field_42_fr_fr->AdvancedSearch->unsetSession();
		$this->field_3067->AdvancedSearch->unsetSession();
		$this->field_3068->AdvancedSearch->unsetSession();
		$this->field_3069->AdvancedSearch->unsetSession();
		$this->field_3070->AdvancedSearch->unsetSession();
		$this->field_3071->AdvancedSearch->unsetSession();
		$this->field_3071_en_us->AdvancedSearch->unsetSession();
		$this->field_3071_fr_fr->AdvancedSearch->unsetSession();
		$this->field_3072->AdvancedSearch->unsetSession();
		$this->field_3073->AdvancedSearch->unsetSession();
		$this->field_3074->AdvancedSearch->unsetSession();
		$this->field_3074_en_us->AdvancedSearch->unsetSession();
		$this->field_3074_fr_fr->AdvancedSearch->unsetSession();
		$this->field_3075->AdvancedSearch->unsetSession();
		$this->field_3076->AdvancedSearch->unsetSession();
		$this->field_3077->AdvancedSearch->unsetSession();
		$this->field_3078->AdvancedSearch->unsetSession();
		$this->field_3079->AdvancedSearch->unsetSession();
		$this->field_3080->AdvancedSearch->unsetSession();
		$this->field_3076_en_us->AdvancedSearch->unsetSession();
		$this->field_3076_fr_fr->AdvancedSearch->unsetSession();
		$this->field_3080_en_us->AdvancedSearch->unsetSession();
		$this->field_3080_fr_fr->AdvancedSearch->unsetSession();
		$this->field_3081->AdvancedSearch->unsetSession();
		$this->field_3081_en_us->AdvancedSearch->unsetSession();
		$this->field_3081_fr_fr->AdvancedSearch->unsetSession();
		$this->field_3082->AdvancedSearch->unsetSession();
		$this->field_3082_en_us->AdvancedSearch->unsetSession();
		$this->field_3082_fr_fr->AdvancedSearch->unsetSession();
		$this->field_3084->AdvancedSearch->unsetSession();
		$this->field_3085->AdvancedSearch->unsetSession();
		$this->field_3086->AdvancedSearch->unsetSession();
		$this->field_3096->AdvancedSearch->unsetSession();
		$this->field_3097->AdvancedSearch->unsetSession();
		$this->field_3098->AdvancedSearch->unsetSession();
		$this->field_3099->AdvancedSearch->unsetSession();
		$this->field_3100->AdvancedSearch->unsetSession();
		$this->field_3101->AdvancedSearch->unsetSession();
		$this->field_3102->AdvancedSearch->unsetSession();
		$this->field_3103->AdvancedSearch->unsetSession();
		$this->field_3104->AdvancedSearch->unsetSession();
		$this->field_3105->AdvancedSearch->unsetSession();
		$this->field_3106->AdvancedSearch->unsetSession();
		$this->field_3107->AdvancedSearch->unsetSession();
		$this->field_3108->AdvancedSearch->unsetSession();
		$this->field_3109->AdvancedSearch->unsetSession();
		$this->field_3110->AdvancedSearch->unsetSession();
		$this->field_3111->AdvancedSearch->unsetSession();
		$this->field_3112->AdvancedSearch->unsetSession();
		$this->field_3113->AdvancedSearch->unsetSession();
		$this->field_3113_en_us->AdvancedSearch->unsetSession();
		$this->field_3113_fr_fr->AdvancedSearch->unsetSession();
		$this->field_3114->AdvancedSearch->unsetSession();
		$this->field_3115->AdvancedSearch->unsetSession();
		$this->field_3115_si->AdvancedSearch->unsetSession();
		$this->field_3115_unit->AdvancedSearch->unsetSession();
		$this->field_3116->AdvancedSearch->unsetSession();
		$this->field_3117->AdvancedSearch->unsetSession();
		$this->field_3117_en_us->AdvancedSearch->unsetSession();
		$this->field_3117_fr_fr->AdvancedSearch->unsetSession();
		$this->field_3118->AdvancedSearch->unsetSession();
		$this->field_3118_en_us->AdvancedSearch->unsetSession();
		$this->field_3118_fr_fr->AdvancedSearch->unsetSession();
		$this->field_3119->AdvancedSearch->unsetSession();
		$this->field_3119_en_us->AdvancedSearch->unsetSession();
		$this->field_3119_fr_fr->AdvancedSearch->unsetSession();
		$this->field_3120->AdvancedSearch->unsetSession();
		$this->field_3120_en_us->AdvancedSearch->unsetSession();
		$this->field_3120_fr_fr->AdvancedSearch->unsetSession();
		$this->field_3121->AdvancedSearch->unsetSession();
		$this->field_3122->AdvancedSearch->unsetSession();
		$this->field_3122_si->AdvancedSearch->unsetSession();
		$this->field_3122_unit->AdvancedSearch->unsetSession();
		$this->field_3123->AdvancedSearch->unsetSession();
		$this->field_3124->AdvancedSearch->unsetSession();
		$this->field_3125->AdvancedSearch->unsetSession();
		$this->field_3126->AdvancedSearch->unsetSession();
		$this->field_3127->AdvancedSearch->unsetSession();
		$this->field_3128->AdvancedSearch->unsetSession();
		$this->field_3129->AdvancedSearch->unsetSession();
		$this->field_3130->AdvancedSearch->unsetSession();
		$this->field_3131->AdvancedSearch->unsetSession();
		$this->field_3132->AdvancedSearch->unsetSession();
		$this->field_3133->AdvancedSearch->unsetSession();
		$this->field_3134->AdvancedSearch->unsetSession();
		$this->field_3135->AdvancedSearch->unsetSession();
		$this->field_3136->AdvancedSearch->unsetSession();
		$this->field_3137->AdvancedSearch->unsetSession();
		$this->field_3138->AdvancedSearch->unsetSession();
		$this->field_3139->AdvancedSearch->unsetSession();
		$this->field_3140->AdvancedSearch->unsetSession();
		$this->field_3141->AdvancedSearch->unsetSession();
		$this->field_3142->AdvancedSearch->unsetSession();
		$this->field_3143->AdvancedSearch->unsetSession();
		$this->field_3144->AdvancedSearch->unsetSession();
		$this->field_3145->AdvancedSearch->unsetSession();
		$this->field_3146->AdvancedSearch->unsetSession();
		$this->field_3147->AdvancedSearch->unsetSession();
		$this->field_3148->AdvancedSearch->unsetSession();
		$this->field_3149->AdvancedSearch->unsetSession();
		$this->field_3150->AdvancedSearch->unsetSession();
		$this->field_3151->AdvancedSearch->unsetSession();
		$this->field_3152->AdvancedSearch->unsetSession();
		$this->field_3153->AdvancedSearch->unsetSession();
		$this->field_3154->AdvancedSearch->unsetSession();
		$this->field_3155->AdvancedSearch->unsetSession();
		$this->field_3156->AdvancedSearch->unsetSession();
		$this->field_3157->AdvancedSearch->unsetSession();
		$this->field_3158->AdvancedSearch->unsetSession();
		$this->field_3159->AdvancedSearch->unsetSession();
		$this->field_3160->AdvancedSearch->unsetSession();
		$this->field_3161->AdvancedSearch->unsetSession();
		$this->field_3162->AdvancedSearch->unsetSession();
		$this->field_3163->AdvancedSearch->unsetSession();
		$this->field_3164->AdvancedSearch->unsetSession();
		$this->field_3165->AdvancedSearch->unsetSession();
		$this->field_3166->AdvancedSearch->unsetSession();
		$this->field_3167->AdvancedSearch->unsetSession();
		$this->field_3168->AdvancedSearch->unsetSession();
		$this->field_3169->AdvancedSearch->unsetSession();
		$this->field_3170->AdvancedSearch->unsetSession();
		$this->field_3171->AdvancedSearch->unsetSession();
		$this->field_3172->AdvancedSearch->unsetSession();
		$this->field_3173->AdvancedSearch->unsetSession();
		$this->field_3173_si->AdvancedSearch->unsetSession();
		$this->field_3173_unit->AdvancedSearch->unsetSession();
		$this->field_3180->AdvancedSearch->unsetSession();
		$this->field_3180_en_us->AdvancedSearch->unsetSession();
		$this->field_3180_fr_fr->AdvancedSearch->unsetSession();
		$this->field_3181->AdvancedSearch->unsetSession();
		$this->field_3182->AdvancedSearch->unsetSession();
		$this->n_3189->AdvancedSearch->unsetSession();
		$this->n_3189_distance->AdvancedSearch->unsetSession();
		$this->n_3189_distance_by->AdvancedSearch->unsetSession();
		$this->field_3190->AdvancedSearch->unsetSession();
		$this->field_3192->AdvancedSearch->unsetSession();
		$this->field_3193->AdvancedSearch->unsetSession();
		$this->field_3195->AdvancedSearch->unsetSession();
		$this->field_3114_en_us->AdvancedSearch->unsetSession();
		$this->field_3114_fr_fr->AdvancedSearch->unsetSession();
		$this->n_3196->AdvancedSearch->unsetSession();
		$this->n_3196_distance->AdvancedSearch->unsetSession();
		$this->n_3196_distance_by->AdvancedSearch->unsetSession();
		$this->field_3197->AdvancedSearch->unsetSession();
		$this->field_3197_si->AdvancedSearch->unsetSession();
		$this->field_3197_unit->AdvancedSearch->unsetSession();
	}

	// Restore all search parameters
	protected function restoreSearchParms()
	{
		$this->RestoreSearch = TRUE;

		// Restore advanced search values
		$this->id->AdvancedSearch->load();
		$this->kind->AdvancedSearch->load();
		$this->deleted->AdvancedSearch->load();
		$this->mls_id->AdvancedSearch->load();
		$this->mls_id_num->AdvancedSearch->load();
		$this->parent->AdvancedSearch->load();
		$this->pic_numb->AdvancedSearch->load();
		$this->user_id->AdvancedSearch->load();
		$this->listing->AdvancedSearch->load();
		$this->property_type->AdvancedSearch->load();
		$this->location1_id->AdvancedSearch->load();
		$this->location2_id->AdvancedSearch->load();
		$this->location3_id->AdvancedSearch->load();
		$this->location4_id->AdvancedSearch->load();
		$this->location5_id->AdvancedSearch->load();
		$this->location6_id->AdvancedSearch->load();
		$this->location7_id->AdvancedSearch->load();
		$this->location1_name->AdvancedSearch->load();
		$this->location2_name->AdvancedSearch->load();
		$this->location3_name->AdvancedSearch->load();
		$this->location4_name->AdvancedSearch->load();
		$this->location5_name->AdvancedSearch->load();
		$this->location6_name->AdvancedSearch->load();
		$this->location7_name->AdvancedSearch->load();
		$this->show_address->AdvancedSearch->load();
		$this->show_marker->AdvancedSearch->load();
		$this->price->AdvancedSearch->load();
		$this->price_unit->AdvancedSearch->load();
		$this->price_si->AdvancedSearch->load();
		$this->price_period->AdvancedSearch->load();
		$this->bedrooms->AdvancedSearch->load();
		$this->rooms->AdvancedSearch->load();
		$this->bathrooms->AdvancedSearch->load();
		$this->living_area->AdvancedSearch->load();
		$this->living_area_unit->AdvancedSearch->load();
		$this->living_area_si->AdvancedSearch->load();
		$this->lot_area->AdvancedSearch->load();
		$this->lot_area_unit->AdvancedSearch->load();
		$this->lot_area_si->AdvancedSearch->load();
		$this->googlemap_lt->AdvancedSearch->load();
		$this->googlemap_ln->AdvancedSearch->load();
		$this->finalized->AdvancedSearch->load();
		$this->add_date->AdvancedSearch->load();
		$this->last_finalize_date->AdvancedSearch->load();
		$this->expire_days->AdvancedSearch->load();
		$this->confirmed->AdvancedSearch->load();
		$this->expired->AdvancedSearch->load();
		$this->build_year->AdvancedSearch->load();
		$this->zip_id->AdvancedSearch->load();
		$this->zip_name->AdvancedSearch->load();
		$this->last_modified_time_stamp->AdvancedSearch->load();
		$this->post_code->AdvancedSearch->load();
		$this->meta_description->AdvancedSearch->load();
		$this->meta_description_manual->AdvancedSearch->load();
		$this->meta_keywords->AdvancedSearch->load();
		$this->meta_keywords_manual->AdvancedSearch->load();
		$this->street_no->AdvancedSearch->load();
		$this->sp_featured->AdvancedSearch->load();
		$this->sp_hot->AdvancedSearch->load();
		$this->sp_openhouse->AdvancedSearch->load();
		$this->sp_forclosure->AdvancedSearch->load();
		$this->textsearch->AdvancedSearch->load();
		$this->location_text->AdvancedSearch->load();
		$this->field_42->AdvancedSearch->load();
		$this->field_312->AdvancedSearch->load();
		$this->field_313->AdvancedSearch->load();
		$this->field_7->AdvancedSearch->load();
		$this->n_103->AdvancedSearch->load();
		$this->n_103_distance->AdvancedSearch->load();
		$this->n_103_distance_by->AdvancedSearch->load();
		$this->n_105->AdvancedSearch->load();
		$this->n_105_distance->AdvancedSearch->load();
		$this->n_105_distance_by->AdvancedSearch->load();
		$this->n_107->AdvancedSearch->load();
		$this->n_107_distance->AdvancedSearch->load();
		$this->n_107_distance_by->AdvancedSearch->load();
		$this->n_108->AdvancedSearch->load();
		$this->n_108_distance->AdvancedSearch->load();
		$this->n_108_distance_by->AdvancedSearch->load();
		$this->n_109->AdvancedSearch->load();
		$this->n_109_distance->AdvancedSearch->load();
		$this->n_109_distance_by->AdvancedSearch->load();
		$this->f_131_options->AdvancedSearch->load();
		$this->f_131->AdvancedSearch->load();
		$this->f_137_options->AdvancedSearch->load();
		$this->f_137->AdvancedSearch->load();
		$this->f_139_options->AdvancedSearch->load();
		$this->f_139->AdvancedSearch->load();
		$this->f_144_options->AdvancedSearch->load();
		$this->f_144->AdvancedSearch->load();
		$this->f_146_options->AdvancedSearch->load();
		$this->f_146->AdvancedSearch->load();
		$this->f_149_options->AdvancedSearch->load();
		$this->f_149->AdvancedSearch->load();
		$this->f_150_options->AdvancedSearch->load();
		$this->f_150->AdvancedSearch->load();
		$this->f_156_options->AdvancedSearch->load();
		$this->f_156->AdvancedSearch->load();
		$this->f_157_options->AdvancedSearch->load();
		$this->f_157->AdvancedSearch->load();
		$this->f_159_options->AdvancedSearch->load();
		$this->f_159->AdvancedSearch->load();
		$this->f_161_options->AdvancedSearch->load();
		$this->f_161->AdvancedSearch->load();
		$this->f_163_options->AdvancedSearch->load();
		$this->f_163->AdvancedSearch->load();
		$this->f_165_options->AdvancedSearch->load();
		$this->f_165->AdvancedSearch->load();
		$this->f_166_options->AdvancedSearch->load();
		$this->f_166->AdvancedSearch->load();
		$this->ref_id->AdvancedSearch->load();
		$this->field_54->AdvancedSearch->load();
		$this->half_bathrooms->AdvancedSearch->load();
		$this->field_55->AdvancedSearch->load();
		$this->rendered->AdvancedSearch->load();
		$this->alias->AdvancedSearch->load();
		$this->source->AdvancedSearch->load();
		$this->last_sync_date->AdvancedSearch->load();
		$this->street_suffix->AdvancedSearch->load();
		$this->energy_tag->AdvancedSearch->load();
		$this->field_3006->AdvancedSearch->load();
		$this->field_3007->AdvancedSearch->load();
		$this->field_3008->AdvancedSearch->load();
		$this->importer_structure_id->AdvancedSearch->load();
		$this->importer_params->AdvancedSearch->load();
		$this->field_3009->AdvancedSearch->load();
		$this->field_3010->AdvancedSearch->load();
		$this->field_3012->AdvancedSearch->load();
		$this->rendered_en_us->AdvancedSearch->load();
		$this->textsearch_en_us->AdvancedSearch->load();
		$this->rendered_fr_fr->AdvancedSearch->load();
		$this->textsearch_fr_fr->AdvancedSearch->load();
		$this->field_3013->AdvancedSearch->load();
		$this->field_3014->AdvancedSearch->load();
		$this->f_3014_options->AdvancedSearch->load();
		$this->f_3014->AdvancedSearch->load();
		$this->field_3015->AdvancedSearch->load();
		$this->field_3016->AdvancedSearch->load();
		$this->field_3017->AdvancedSearch->load();
		$this->f_3018_options->AdvancedSearch->load();
		$this->f_3018->AdvancedSearch->load();
		$this->f_3019_options->AdvancedSearch->load();
		$this->f_3019->AdvancedSearch->load();
		$this->f_3020_options->AdvancedSearch->load();
		$this->f_3020->AdvancedSearch->load();
		$this->f_3021_options->AdvancedSearch->load();
		$this->f_3021->AdvancedSearch->load();
		$this->f_3022_options->AdvancedSearch->load();
		$this->f_3022->AdvancedSearch->load();
		$this->f_3023_options->AdvancedSearch->load();
		$this->f_3023->AdvancedSearch->load();
		$this->f_3024_options->AdvancedSearch->load();
		$this->f_3024->AdvancedSearch->load();
		$this->f_3025_options->AdvancedSearch->load();
		$this->f_3025->AdvancedSearch->load();
		$this->f_3026_options->AdvancedSearch->load();
		$this->f_3026->AdvancedSearch->load();
		$this->f_3027_options->AdvancedSearch->load();
		$this->f_3027->AdvancedSearch->load();
		$this->f_3028_options->AdvancedSearch->load();
		$this->f_3028->AdvancedSearch->load();
		$this->f_3029_options->AdvancedSearch->load();
		$this->f_3029->AdvancedSearch->load();
		$this->f_3031_options->AdvancedSearch->load();
		$this->f_3031->AdvancedSearch->load();
		$this->f_3032_options->AdvancedSearch->load();
		$this->f_3032->AdvancedSearch->load();
		$this->f_3033_options->AdvancedSearch->load();
		$this->f_3033->AdvancedSearch->load();
		$this->f_3034_options->AdvancedSearch->load();
		$this->f_3034->AdvancedSearch->load();
		$this->f_3035_options->AdvancedSearch->load();
		$this->f_3035->AdvancedSearch->load();
		$this->f_3036_options->AdvancedSearch->load();
		$this->f_3036->AdvancedSearch->load();
		$this->f_3037_options->AdvancedSearch->load();
		$this->f_3037->AdvancedSearch->load();
		$this->f_3038_options->AdvancedSearch->load();
		$this->f_3038->AdvancedSearch->load();
		$this->f_3039_options->AdvancedSearch->load();
		$this->f_3039->AdvancedSearch->load();
		$this->f_3040_options->AdvancedSearch->load();
		$this->f_3040->AdvancedSearch->load();
		$this->f_3041_options->AdvancedSearch->load();
		$this->f_3041->AdvancedSearch->load();
		$this->f_3042_options->AdvancedSearch->load();
		$this->f_3042->AdvancedSearch->load();
		$this->f_3043_options->AdvancedSearch->load();
		$this->f_3043->AdvancedSearch->load();
		$this->f_3044_options->AdvancedSearch->load();
		$this->f_3044->AdvancedSearch->load();
		$this->n_3045->AdvancedSearch->load();
		$this->n_3045_distance->AdvancedSearch->load();
		$this->n_3045_distance_by->AdvancedSearch->load();
		$this->n_3046->AdvancedSearch->load();
		$this->n_3046_distance->AdvancedSearch->load();
		$this->n_3046_distance_by->AdvancedSearch->load();
		$this->n_3047->AdvancedSearch->load();
		$this->n_3047_distance->AdvancedSearch->load();
		$this->n_3047_distance_by->AdvancedSearch->load();
		$this->n_3048->AdvancedSearch->load();
		$this->n_3048_distance->AdvancedSearch->load();
		$this->n_3048_distance_by->AdvancedSearch->load();
		$this->n_3049->AdvancedSearch->load();
		$this->n_3049_distance->AdvancedSearch->load();
		$this->n_3049_distance_by->AdvancedSearch->load();
		$this->n_3050->AdvancedSearch->load();
		$this->n_3050_distance->AdvancedSearch->load();
		$this->n_3050_distance_by->AdvancedSearch->load();
		$this->n_3051->AdvancedSearch->load();
		$this->n_3051_distance->AdvancedSearch->load();
		$this->n_3051_distance_by->AdvancedSearch->load();
		$this->n_3052->AdvancedSearch->load();
		$this->n_3052_distance->AdvancedSearch->load();
		$this->n_3052_distance_by->AdvancedSearch->load();
		$this->n_3053->AdvancedSearch->load();
		$this->n_3053_distance->AdvancedSearch->load();
		$this->n_3053_distance_by->AdvancedSearch->load();
		$this->n_3054->AdvancedSearch->load();
		$this->n_3054_distance->AdvancedSearch->load();
		$this->n_3054_distance_by->AdvancedSearch->load();
		$this->n_3055->AdvancedSearch->load();
		$this->n_3055_distance->AdvancedSearch->load();
		$this->n_3055_distance_by->AdvancedSearch->load();
		$this->n_3056->AdvancedSearch->load();
		$this->n_3056_distance->AdvancedSearch->load();
		$this->n_3056_distance_by->AdvancedSearch->load();
		$this->n_3057->AdvancedSearch->load();
		$this->n_3057_distance->AdvancedSearch->load();
		$this->n_3057_distance_by->AdvancedSearch->load();
		$this->n_3058->AdvancedSearch->load();
		$this->n_3058_distance->AdvancedSearch->load();
		$this->n_3058_distance_by->AdvancedSearch->load();
		$this->n_3059->AdvancedSearch->load();
		$this->n_3059_distance->AdvancedSearch->load();
		$this->n_3059_distance_by->AdvancedSearch->load();
		$this->f_3060_options->AdvancedSearch->load();
		$this->f_3060->AdvancedSearch->load();
		$this->f_3061_options->AdvancedSearch->load();
		$this->f_3061->AdvancedSearch->load();
		$this->f_3062_options->AdvancedSearch->load();
		$this->f_3062->AdvancedSearch->load();
		$this->field_3063->AdvancedSearch->load();
		$this->field_3064->AdvancedSearch->load();
		$this->field_3065->AdvancedSearch->load();
		$this->field_308->AdvancedSearch->load();
		$this->field_308_en_us->AdvancedSearch->load();
		$this->field_308_fr_fr->AdvancedSearch->load();
		$this->field_313_en_us->AdvancedSearch->load();
		$this->field_313_fr_fr->AdvancedSearch->load();
		$this->field_312_en_us->AdvancedSearch->load();
		$this->field_312_fr_fr->AdvancedSearch->load();
		$this->field_3017_en_us->AdvancedSearch->load();
		$this->field_3017_fr_fr->AdvancedSearch->load();
		$this->field_42_en_us->AdvancedSearch->load();
		$this->field_42_fr_fr->AdvancedSearch->load();
		$this->field_3067->AdvancedSearch->load();
		$this->field_3068->AdvancedSearch->load();
		$this->field_3069->AdvancedSearch->load();
		$this->field_3070->AdvancedSearch->load();
		$this->field_3071->AdvancedSearch->load();
		$this->field_3071_en_us->AdvancedSearch->load();
		$this->field_3071_fr_fr->AdvancedSearch->load();
		$this->field_3072->AdvancedSearch->load();
		$this->field_3073->AdvancedSearch->load();
		$this->field_3074->AdvancedSearch->load();
		$this->field_3074_en_us->AdvancedSearch->load();
		$this->field_3074_fr_fr->AdvancedSearch->load();
		$this->field_3075->AdvancedSearch->load();
		$this->field_3076->AdvancedSearch->load();
		$this->field_3077->AdvancedSearch->load();
		$this->field_3078->AdvancedSearch->load();
		$this->field_3079->AdvancedSearch->load();
		$this->field_3080->AdvancedSearch->load();
		$this->field_3076_en_us->AdvancedSearch->load();
		$this->field_3076_fr_fr->AdvancedSearch->load();
		$this->field_3080_en_us->AdvancedSearch->load();
		$this->field_3080_fr_fr->AdvancedSearch->load();
		$this->field_3081->AdvancedSearch->load();
		$this->field_3081_en_us->AdvancedSearch->load();
		$this->field_3081_fr_fr->AdvancedSearch->load();
		$this->field_3082->AdvancedSearch->load();
		$this->field_3082_en_us->AdvancedSearch->load();
		$this->field_3082_fr_fr->AdvancedSearch->load();
		$this->field_3084->AdvancedSearch->load();
		$this->field_3085->AdvancedSearch->load();
		$this->field_3086->AdvancedSearch->load();
		$this->field_3096->AdvancedSearch->load();
		$this->field_3097->AdvancedSearch->load();
		$this->field_3098->AdvancedSearch->load();
		$this->field_3099->AdvancedSearch->load();
		$this->field_3100->AdvancedSearch->load();
		$this->field_3101->AdvancedSearch->load();
		$this->field_3102->AdvancedSearch->load();
		$this->field_3103->AdvancedSearch->load();
		$this->field_3104->AdvancedSearch->load();
		$this->field_3105->AdvancedSearch->load();
		$this->field_3106->AdvancedSearch->load();
		$this->field_3107->AdvancedSearch->load();
		$this->field_3108->AdvancedSearch->load();
		$this->field_3109->AdvancedSearch->load();
		$this->field_3110->AdvancedSearch->load();
		$this->field_3111->AdvancedSearch->load();
		$this->field_3112->AdvancedSearch->load();
		$this->field_3113->AdvancedSearch->load();
		$this->field_3113_en_us->AdvancedSearch->load();
		$this->field_3113_fr_fr->AdvancedSearch->load();
		$this->field_3114->AdvancedSearch->load();
		$this->field_3115->AdvancedSearch->load();
		$this->field_3115_si->AdvancedSearch->load();
		$this->field_3115_unit->AdvancedSearch->load();
		$this->field_3116->AdvancedSearch->load();
		$this->field_3117->AdvancedSearch->load();
		$this->field_3117_en_us->AdvancedSearch->load();
		$this->field_3117_fr_fr->AdvancedSearch->load();
		$this->field_3118->AdvancedSearch->load();
		$this->field_3118_en_us->AdvancedSearch->load();
		$this->field_3118_fr_fr->AdvancedSearch->load();
		$this->field_3119->AdvancedSearch->load();
		$this->field_3119_en_us->AdvancedSearch->load();
		$this->field_3119_fr_fr->AdvancedSearch->load();
		$this->field_3120->AdvancedSearch->load();
		$this->field_3120_en_us->AdvancedSearch->load();
		$this->field_3120_fr_fr->AdvancedSearch->load();
		$this->field_3121->AdvancedSearch->load();
		$this->field_3122->AdvancedSearch->load();
		$this->field_3122_si->AdvancedSearch->load();
		$this->field_3122_unit->AdvancedSearch->load();
		$this->field_3123->AdvancedSearch->load();
		$this->field_3124->AdvancedSearch->load();
		$this->field_3125->AdvancedSearch->load();
		$this->field_3126->AdvancedSearch->load();
		$this->field_3127->AdvancedSearch->load();
		$this->field_3128->AdvancedSearch->load();
		$this->field_3129->AdvancedSearch->load();
		$this->field_3130->AdvancedSearch->load();
		$this->field_3131->AdvancedSearch->load();
		$this->field_3132->AdvancedSearch->load();
		$this->field_3133->AdvancedSearch->load();
		$this->field_3134->AdvancedSearch->load();
		$this->field_3135->AdvancedSearch->load();
		$this->field_3136->AdvancedSearch->load();
		$this->field_3137->AdvancedSearch->load();
		$this->field_3138->AdvancedSearch->load();
		$this->field_3139->AdvancedSearch->load();
		$this->field_3140->AdvancedSearch->load();
		$this->field_3141->AdvancedSearch->load();
		$this->field_3142->AdvancedSearch->load();
		$this->field_3143->AdvancedSearch->load();
		$this->field_3144->AdvancedSearch->load();
		$this->field_3145->AdvancedSearch->load();
		$this->field_3146->AdvancedSearch->load();
		$this->field_3147->AdvancedSearch->load();
		$this->field_3148->AdvancedSearch->load();
		$this->field_3149->AdvancedSearch->load();
		$this->field_3150->AdvancedSearch->load();
		$this->field_3151->AdvancedSearch->load();
		$this->field_3152->AdvancedSearch->load();
		$this->field_3153->AdvancedSearch->load();
		$this->field_3154->AdvancedSearch->load();
		$this->field_3155->AdvancedSearch->load();
		$this->field_3156->AdvancedSearch->load();
		$this->field_3157->AdvancedSearch->load();
		$this->field_3158->AdvancedSearch->load();
		$this->field_3159->AdvancedSearch->load();
		$this->field_3160->AdvancedSearch->load();
		$this->field_3161->AdvancedSearch->load();
		$this->field_3162->AdvancedSearch->load();
		$this->field_3163->AdvancedSearch->load();
		$this->field_3164->AdvancedSearch->load();
		$this->field_3165->AdvancedSearch->load();
		$this->field_3166->AdvancedSearch->load();
		$this->field_3167->AdvancedSearch->load();
		$this->field_3168->AdvancedSearch->load();
		$this->field_3169->AdvancedSearch->load();
		$this->field_3170->AdvancedSearch->load();
		$this->field_3171->AdvancedSearch->load();
		$this->field_3172->AdvancedSearch->load();
		$this->field_3173->AdvancedSearch->load();
		$this->field_3173_si->AdvancedSearch->load();
		$this->field_3173_unit->AdvancedSearch->load();
		$this->field_3180->AdvancedSearch->load();
		$this->field_3180_en_us->AdvancedSearch->load();
		$this->field_3180_fr_fr->AdvancedSearch->load();
		$this->field_3181->AdvancedSearch->load();
		$this->field_3182->AdvancedSearch->load();
		$this->n_3189->AdvancedSearch->load();
		$this->n_3189_distance->AdvancedSearch->load();
		$this->n_3189_distance_by->AdvancedSearch->load();
		$this->field_3190->AdvancedSearch->load();
		$this->field_3192->AdvancedSearch->load();
		$this->field_3193->AdvancedSearch->load();
		$this->field_3195->AdvancedSearch->load();
		$this->field_3114_en_us->AdvancedSearch->load();
		$this->field_3114_fr_fr->AdvancedSearch->load();
		$this->n_3196->AdvancedSearch->load();
		$this->n_3196_distance->AdvancedSearch->load();
		$this->n_3196_distance_by->AdvancedSearch->load();
		$this->field_3197->AdvancedSearch->load();
		$this->field_3197_si->AdvancedSearch->load();
		$this->field_3197_unit->AdvancedSearch->load();
	}

	// Set up sort parameters
	protected function setupSortOrder()
	{

		// Check for Ctrl pressed
		$ctrl = Get("ctrl") !== NULL;

		// Check for "order" parameter
		if (Get("order") !== NULL) {
			$this->CurrentOrder = Get("order");
			$this->CurrentOrderType = Get("ordertype", "");
			$this->updateSort($this->id, $ctrl); // id
			$this->updateSort($this->field_3119, $ctrl); // field_3119
			$this->updateSort($this->field_3119_en_us, $ctrl); // field_3119_en_us
			$this->updateSort($this->field_3119_fr_fr, $ctrl); // field_3119_fr_fr
			$this->updateSort($this->field_3120, $ctrl); // field_3120
			$this->updateSort($this->field_3120_en_us, $ctrl); // field_3120_en_us
			$this->updateSort($this->field_3120_fr_fr, $ctrl); // field_3120_fr_fr
			$this->updateSort($this->field_3190, $ctrl); // field_3190
			$this->updateSort($this->field_3192, $ctrl); // field_3192
			$this->updateSort($this->field_3193, $ctrl); // field_3193
			$this->updateSort($this->field_3195, $ctrl); // field_3195
			$this->updateSort($this->field_3114_en_us, $ctrl); // field_3114_en_us
			$this->updateSort($this->field_3114_fr_fr, $ctrl); // field_3114_fr_fr
			$this->updateSort($this->n_3196, $ctrl); // n_3196
			$this->updateSort($this->n_3196_distance, $ctrl); // n_3196_distance
			$this->updateSort($this->n_3196_distance_by, $ctrl); // n_3196_distance_by
			$this->updateSort($this->field_3197, $ctrl); // field_3197
			$this->updateSort($this->field_3197_si, $ctrl); // field_3197_si
			$this->updateSort($this->field_3197_unit, $ctrl); // field_3197_unit
			$this->setStartRecordNumber(1); // Reset start position
		}
	}

	// Load sort order parameters
	protected function loadSortOrder()
	{
		$orderBy = $this->getSessionOrderBy(); // Get ORDER BY from Session
		if ($orderBy == "") {
			if ($this->getSqlOrderBy() != "") {
				$orderBy = $this->getSqlOrderBy();
				$this->setSessionOrderBy($orderBy);
				$this->id->setSort("ASC");
			}
		}
	}

	// Reset command
	// - cmd=reset (Reset search parameters)
	// - cmd=resetall (Reset search and master/detail parameters)
	// - cmd=resetsort (Reset sort parameters)

	protected function resetCmd()
	{

		// Check if reset command
		if (StartsString("reset", $this->Command)) {

			// Reset search criteria
			if ($this->Command == "reset" || $this->Command == "resetall")
				$this->resetSearchParms();

			// Reset sorting order
			if ($this->Command == "resetsort") {
				$orderBy = "";
				$this->setSessionOrderBy($orderBy);
				$this->id->setSort("");
				$this->field_3119->setSort("");
				$this->field_3119_en_us->setSort("");
				$this->field_3119_fr_fr->setSort("");
				$this->field_3120->setSort("");
				$this->field_3120_en_us->setSort("");
				$this->field_3120_fr_fr->setSort("");
				$this->field_3190->setSort("");
				$this->field_3192->setSort("");
				$this->field_3193->setSort("");
				$this->field_3195->setSort("");
				$this->field_3114_en_us->setSort("");
				$this->field_3114_fr_fr->setSort("");
				$this->n_3196->setSort("");
				$this->n_3196_distance->setSort("");
				$this->n_3196_distance_by->setSort("");
				$this->field_3197->setSort("");
				$this->field_3197_si->setSort("");
				$this->field_3197_unit->setSort("");
			}

			// Reset start position
			$this->StartRecord = 1;
			$this->setStartRecordNumber($this->StartRecord);
		}
	}

	// Set up list options
	protected function setupListOptions()
	{
		global $Security, $Language;

		// Add group option item
		$item = &$this->ListOptions->add($this->ListOptions->GroupOptionName);
		$item->Body = "";
		$item->OnLeft = TRUE;
		$item->Visible = FALSE;

		// List actions
		$item = &$this->ListOptions->add("listactions");
		$item->CssClass = "text-nowrap";
		$item->OnLeft = TRUE;
		$item->Visible = FALSE;
		$item->ShowInButtonGroup = FALSE;
		$item->ShowInDropDown = FALSE;

		// "checkbox"
		$item = &$this->ListOptions->add("checkbox");
		$item->Visible = $Security->canDelete();
		$item->OnLeft = TRUE;
		$item->Header = "<div class=\"custom-control custom-checkbox d-inline-block\"><input type=\"checkbox\" name=\"key\" id=\"key\" class=\"custom-control-input\" onclick=\"ew.selectAllKey(this);\"><label class=\"custom-control-label\" for=\"key\"></label></div>";
		$item->moveTo(0);
		$item->ShowInDropDown = FALSE;
		$item->ShowInButtonGroup = FALSE;

		// Drop down button for ListOptions
		$this->ListOptions->UseDropDownButton = FALSE;
		$this->ListOptions->DropDownButtonPhrase = $Language->phrase("ButtonListOptions");
		$this->ListOptions->UseButtonGroup = TRUE;
		if ($this->ListOptions->UseButtonGroup && IsMobile())
			$this->ListOptions->UseDropDownButton = TRUE;

		//$this->ListOptions->ButtonClass = ""; // Class for button group
		// Call ListOptions_Load event

		$this->ListOptions_Load();
		$this->setupListOptionsExt();
		$item = $this->ListOptions[$this->ListOptions->GroupOptionName];
		$item->Visible = $this->ListOptions->groupOptionVisible();
	}

	// Render list options
	public function renderListOptions()
	{
		global $Security, $Language, $CurrentForm;
		$this->ListOptions->loadDefault();

		// Call ListOptions_Rendering event
		$this->ListOptions_Rendering();

		// Set up list action buttons
		$opt = $this->ListOptions["listactions"];
		if ($opt && !$this->isExport() && !$this->CurrentAction) {
			$body = "";
			$links = [];
			foreach ($this->ListActions->Items as $listaction) {
				if ($listaction->Select == ACTION_SINGLE && $listaction->Allow) {
					$action = $listaction->Action;
					$caption = $listaction->Caption;
					$icon = ($listaction->Icon != "") ? "<i class=\"" . HtmlEncode(str_replace(" ew-icon", "", $listaction->Icon)) . "\" data-caption=\"" . HtmlTitle($caption) . "\"></i> " : "";
					$links[] = "<li><a class=\"dropdown-item ew-action ew-list-action\" data-action=\"" . HtmlEncode($action) . "\" data-caption=\"" . HtmlTitle($caption) . "\" href=\"#\" onclick=\"return ew.submitAction(event,jQuery.extend({key:" . $this->keyToJson(TRUE) . "}," . $listaction->toJson(TRUE) . "));\">" . $icon . $listaction->Caption . "</a></li>";
					if (count($links) == 1) // Single button
						$body = "<a class=\"ew-action ew-list-action\" data-action=\"" . HtmlEncode($action) . "\" title=\"" . HtmlTitle($caption) . "\" data-caption=\"" . HtmlTitle($caption) . "\" href=\"#\" onclick=\"return ew.submitAction(event,jQuery.extend({key:" . $this->keyToJson(TRUE) . "}," . $listaction->toJson(TRUE) . "));\">" . $icon . $listaction->Caption . "</a>";
				}
			}
			if (count($links) > 1) { // More than one buttons, use dropdown
				$body = "<button class=\"dropdown-toggle btn btn-default ew-actions\" title=\"" . HtmlTitle($Language->phrase("ListActionButton")) . "\" data-toggle=\"dropdown\">" . $Language->phrase("ListActionButton") . "</button>";
				$content = "";
				foreach ($links as $link)
					$content .= "<li>" . $link . "</li>";
				$body .= "<ul class=\"dropdown-menu" . ($opt->OnLeft ? "" : " dropdown-menu-right") . "\">". $content . "</ul>";
				$body = "<div class=\"btn-group btn-group-sm\">" . $body . "</div>";
			}
			if (count($links) > 0) {
				$opt->Body = $body;
				$opt->Visible = TRUE;
			}
		}

		// "checkbox"
		$opt = $this->ListOptions["checkbox"];
		$opt->Body = "<div class=\"custom-control custom-checkbox d-inline-block\"><input type=\"checkbox\" id=\"key_m_" . $this->RowCount . "\" name=\"key_m[]\" class=\"custom-control-input ew-multi-select\" value=\"" . HtmlEncode($this->id->CurrentValue) . "\" onclick=\"ew.clickMultiCheckbox(event);\"><label class=\"custom-control-label\" for=\"key_m_" . $this->RowCount . "\"></label></div>";
		$this->renderListOptionsExt();

		// Call ListOptions_Rendered event
		$this->ListOptions_Rendered();
	}

	// Set up other options
	protected function setupOtherOptions()
	{
		global $Language, $Security;
		$options = &$this->OtherOptions;
		$option = $options["action"];

		// Add multi delete
		$item = &$option->add("multidelete");
		$item->Body = "<a class=\"ew-action ew-multi-delete\" title=\"" . HtmlTitle($Language->phrase("DeleteSelectedLink")) . "\" data-caption=\"" . HtmlTitle($Language->phrase("DeleteSelectedLink")) . "\" href=\"#\" onclick=\"return ew.submitAction(event, {f:document.fwp_wpl_propertieslist, url:'" . $this->MultiDeleteUrl . "', data:{action:'show'}});return false;\">" . $Language->phrase("DeleteSelectedLink") . "</a>";
		$item->Visible = $Security->canDelete();

		// Set up options default
		foreach ($options as $option) {
			$option->UseDropDownButton = FALSE;
			$option->UseButtonGroup = TRUE;

			//$option->ButtonClass = ""; // Class for button group
			$item = &$option->add($option->GroupOptionName);
			$item->Body = "";
			$item->Visible = FALSE;
		}
		$options["addedit"]->DropDownButtonPhrase = $Language->phrase("ButtonAddEdit");
		$options["detail"]->DropDownButtonPhrase = $Language->phrase("ButtonDetails");
		$options["action"]->DropDownButtonPhrase = $Language->phrase("ButtonActions");

		// Filter button
		$item = &$this->FilterOptions->add("savecurrentfilter");
		$item->Body = "<a class=\"ew-save-filter\" data-form=\"fwp_wpl_propertieslistsrch\" href=\"#\" onclick=\"return false;\">" . $Language->phrase("SaveCurrentFilter") . "</a>";
		$item->Visible = TRUE;
		$item = &$this->FilterOptions->add("deletefilter");
		$item->Body = "<a class=\"ew-delete-filter\" data-form=\"fwp_wpl_propertieslistsrch\" href=\"#\" onclick=\"return false;\">" . $Language->phrase("DeleteFilter") . "</a>";
		$item->Visible = TRUE;
		$this->FilterOptions->UseDropDownButton = TRUE;
		$this->FilterOptions->UseButtonGroup = !$this->FilterOptions->UseDropDownButton;
		$this->FilterOptions->DropDownButtonPhrase = $Language->phrase("Filters");

		// Add group option item
		$item = &$this->FilterOptions->add($this->FilterOptions->GroupOptionName);
		$item->Body = "";
		$item->Visible = FALSE;
	}

	// Render other options
	public function renderOtherOptions()
	{
		global $Language, $Security;
		$options = &$this->OtherOptions;
			$option = $options["action"];

			// Set up list action buttons
			foreach ($this->ListActions->Items as $listaction) {
				if ($listaction->Select == ACTION_MULTIPLE) {
					$item = &$option->add("custom_" . $listaction->Action);
					$caption = $listaction->Caption;
					$icon = ($listaction->Icon != "") ? "<i class=\"" . HtmlEncode($listaction->Icon) . "\" data-caption=\"" . HtmlEncode($caption) . "\"></i> " . $caption : $caption;
					$item->Body = "<a class=\"ew-action ew-list-action\" title=\"" . HtmlEncode($caption) . "\" data-caption=\"" . HtmlEncode($caption) . "\" href=\"#\" onclick=\"return ew.submitAction(event,jQuery.extend({f:document.fwp_wpl_propertieslist}," . $listaction->toJson(TRUE) . "));\">" . $icon . "</a>";
					$item->Visible = $listaction->Allow;
				}
			}

			// Hide grid edit and other options
			if ($this->TotalRecords <= 0) {
				$option = $options["addedit"];
				$item = $option["gridedit"];
				if ($item)
					$item->Visible = FALSE;
				$option = $options["action"];
				$option->hideAllOptions();
			}
	}

	// Process list action
	protected function processListAction()
	{
		global $Language, $Security;
		$userlist = "";
		$user = "";
		$filter = $this->getFilterFromRecordKeys();
		$userAction = Post("useraction", "");
		if ($filter != "" && $userAction != "") {

			// Check permission first
			$actionCaption = $userAction;
			if (array_key_exists($userAction, $this->ListActions->Items)) {
				$actionCaption = $this->ListActions[$userAction]->Caption;
				if (!$this->ListActions[$userAction]->Allow) {
					$errmsg = str_replace('%s', $actionCaption, $Language->phrase("CustomActionNotAllowed"));
					if (Post("ajax") == $userAction) // Ajax
						echo "<p class=\"text-danger\">" . $errmsg . "</p>";
					else
						$this->setFailureMessage($errmsg);
					return FALSE;
				}
			}
			$this->CurrentFilter = $filter;
			$sql = $this->getCurrentSql();
			$conn = $this->getConnection();
			$conn->raiseErrorFn = Config("ERROR_FUNC");
			$rs = $conn->execute($sql);
			$conn->raiseErrorFn = "";
			$this->CurrentAction = $userAction;

			// Call row action event
			if ($rs && !$rs->EOF) {
				$conn->beginTrans();
				$this->SelectedCount = $rs->RecordCount();
				$this->SelectedIndex = 0;
				while (!$rs->EOF) {
					$this->SelectedIndex++;
					$row = $rs->fields;
					$processed = $this->Row_CustomAction($userAction, $row);
					if (!$processed)
						break;
					$rs->moveNext();
				}
				if ($processed) {
					$conn->commitTrans(); // Commit the changes
					if ($this->getSuccessMessage() == "" && !ob_get_length()) // No output
						$this->setSuccessMessage(str_replace('%s', $actionCaption, $Language->phrase("CustomActionCompleted"))); // Set up success message
				} else {
					$conn->rollbackTrans(); // Rollback changes

					// Set up error message
					if ($this->getSuccessMessage() != "" || $this->getFailureMessage() != "") {

						// Use the message, do nothing
					} elseif ($this->CancelMessage != "") {
						$this->setFailureMessage($this->CancelMessage);
						$this->CancelMessage = "";
					} else {
						$this->setFailureMessage(str_replace('%s', $actionCaption, $Language->phrase("CustomActionFailed")));
					}
				}
			}
			if ($rs)
				$rs->close();
			$this->CurrentAction = ""; // Clear action
			if (Post("ajax") == $userAction) { // Ajax
				if ($this->getSuccessMessage() != "") {
					echo "<p class=\"text-success\">" . $this->getSuccessMessage() . "</p>";
					$this->clearSuccessMessage(); // Clear message
				}
				if ($this->getFailureMessage() != "") {
					echo "<p class=\"text-danger\">" . $this->getFailureMessage() . "</p>";
					$this->clearFailureMessage(); // Clear message
				}
				return TRUE;
			}
		}
		return FALSE; // Not ajax request
	}

	// Set up list options (extended codes)
	protected function setupListOptionsExt()
	{
	}

	// Render list options (extended codes)
	protected function renderListOptionsExt()
	{
	}

	// Load search values for validation
	protected function loadSearchValues()
	{

		// Load search values
		$got = FALSE;

		// id
		if (!$this->isAddOrEdit() && $this->id->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->id->AdvancedSearch->SearchValue != "" || $this->id->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// kind
		if (!$this->isAddOrEdit() && $this->kind->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->kind->AdvancedSearch->SearchValue != "" || $this->kind->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// deleted
		if (!$this->isAddOrEdit() && $this->deleted->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->deleted->AdvancedSearch->SearchValue != "" || $this->deleted->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}
		if (is_array($this->deleted->AdvancedSearch->SearchValue))
			$this->deleted->AdvancedSearch->SearchValue = implode(Config("MULTIPLE_OPTION_SEPARATOR"), $this->deleted->AdvancedSearch->SearchValue);
		if (is_array($this->deleted->AdvancedSearch->SearchValue2))
			$this->deleted->AdvancedSearch->SearchValue2 = implode(Config("MULTIPLE_OPTION_SEPARATOR"), $this->deleted->AdvancedSearch->SearchValue2);

		// mls_id
		if (!$this->isAddOrEdit() && $this->mls_id->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->mls_id->AdvancedSearch->SearchValue != "" || $this->mls_id->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// mls_id_num
		if (!$this->isAddOrEdit() && $this->mls_id_num->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->mls_id_num->AdvancedSearch->SearchValue != "" || $this->mls_id_num->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// parent
		if (!$this->isAddOrEdit() && $this->parent->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->parent->AdvancedSearch->SearchValue != "" || $this->parent->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// pic_numb
		if (!$this->isAddOrEdit() && $this->pic_numb->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->pic_numb->AdvancedSearch->SearchValue != "" || $this->pic_numb->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// user_id
		if (!$this->isAddOrEdit() && $this->user_id->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->user_id->AdvancedSearch->SearchValue != "" || $this->user_id->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// listing
		if (!$this->isAddOrEdit() && $this->listing->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->listing->AdvancedSearch->SearchValue != "" || $this->listing->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// property_type
		if (!$this->isAddOrEdit() && $this->property_type->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->property_type->AdvancedSearch->SearchValue != "" || $this->property_type->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// location1_id
		if (!$this->isAddOrEdit() && $this->location1_id->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->location1_id->AdvancedSearch->SearchValue != "" || $this->location1_id->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// location2_id
		if (!$this->isAddOrEdit() && $this->location2_id->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->location2_id->AdvancedSearch->SearchValue != "" || $this->location2_id->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// location3_id
		if (!$this->isAddOrEdit() && $this->location3_id->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->location3_id->AdvancedSearch->SearchValue != "" || $this->location3_id->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// location4_id
		if (!$this->isAddOrEdit() && $this->location4_id->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->location4_id->AdvancedSearch->SearchValue != "" || $this->location4_id->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// location5_id
		if (!$this->isAddOrEdit() && $this->location5_id->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->location5_id->AdvancedSearch->SearchValue != "" || $this->location5_id->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// location6_id
		if (!$this->isAddOrEdit() && $this->location6_id->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->location6_id->AdvancedSearch->SearchValue != "" || $this->location6_id->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// location7_id
		if (!$this->isAddOrEdit() && $this->location7_id->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->location7_id->AdvancedSearch->SearchValue != "" || $this->location7_id->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// location1_name
		if (!$this->isAddOrEdit() && $this->location1_name->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->location1_name->AdvancedSearch->SearchValue != "" || $this->location1_name->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// location2_name
		if (!$this->isAddOrEdit() && $this->location2_name->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->location2_name->AdvancedSearch->SearchValue != "" || $this->location2_name->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// location3_name
		if (!$this->isAddOrEdit() && $this->location3_name->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->location3_name->AdvancedSearch->SearchValue != "" || $this->location3_name->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// location4_name
		if (!$this->isAddOrEdit() && $this->location4_name->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->location4_name->AdvancedSearch->SearchValue != "" || $this->location4_name->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// location5_name
		if (!$this->isAddOrEdit() && $this->location5_name->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->location5_name->AdvancedSearch->SearchValue != "" || $this->location5_name->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// location6_name
		if (!$this->isAddOrEdit() && $this->location6_name->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->location6_name->AdvancedSearch->SearchValue != "" || $this->location6_name->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// location7_name
		if (!$this->isAddOrEdit() && $this->location7_name->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->location7_name->AdvancedSearch->SearchValue != "" || $this->location7_name->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// show_address
		if (!$this->isAddOrEdit() && $this->show_address->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->show_address->AdvancedSearch->SearchValue != "" || $this->show_address->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// show_marker
		if (!$this->isAddOrEdit() && $this->show_marker->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->show_marker->AdvancedSearch->SearchValue != "" || $this->show_marker->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// price
		if (!$this->isAddOrEdit() && $this->price->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->price->AdvancedSearch->SearchValue != "" || $this->price->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// price_unit
		if (!$this->isAddOrEdit() && $this->price_unit->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->price_unit->AdvancedSearch->SearchValue != "" || $this->price_unit->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// price_si
		if (!$this->isAddOrEdit() && $this->price_si->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->price_si->AdvancedSearch->SearchValue != "" || $this->price_si->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// price_period
		if (!$this->isAddOrEdit() && $this->price_period->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->price_period->AdvancedSearch->SearchValue != "" || $this->price_period->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// bedrooms
		if (!$this->isAddOrEdit() && $this->bedrooms->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->bedrooms->AdvancedSearch->SearchValue != "" || $this->bedrooms->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// rooms
		if (!$this->isAddOrEdit() && $this->rooms->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->rooms->AdvancedSearch->SearchValue != "" || $this->rooms->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// bathrooms
		if (!$this->isAddOrEdit() && $this->bathrooms->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->bathrooms->AdvancedSearch->SearchValue != "" || $this->bathrooms->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// living_area
		if (!$this->isAddOrEdit() && $this->living_area->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->living_area->AdvancedSearch->SearchValue != "" || $this->living_area->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// living_area_unit
		if (!$this->isAddOrEdit() && $this->living_area_unit->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->living_area_unit->AdvancedSearch->SearchValue != "" || $this->living_area_unit->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// living_area_si
		if (!$this->isAddOrEdit() && $this->living_area_si->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->living_area_si->AdvancedSearch->SearchValue != "" || $this->living_area_si->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// lot_area
		if (!$this->isAddOrEdit() && $this->lot_area->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->lot_area->AdvancedSearch->SearchValue != "" || $this->lot_area->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// lot_area_unit
		if (!$this->isAddOrEdit() && $this->lot_area_unit->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->lot_area_unit->AdvancedSearch->SearchValue != "" || $this->lot_area_unit->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// lot_area_si
		if (!$this->isAddOrEdit() && $this->lot_area_si->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->lot_area_si->AdvancedSearch->SearchValue != "" || $this->lot_area_si->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// googlemap_lt
		if (!$this->isAddOrEdit() && $this->googlemap_lt->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->googlemap_lt->AdvancedSearch->SearchValue != "" || $this->googlemap_lt->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// googlemap_ln
		if (!$this->isAddOrEdit() && $this->googlemap_ln->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->googlemap_ln->AdvancedSearch->SearchValue != "" || $this->googlemap_ln->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// finalized
		if (!$this->isAddOrEdit() && $this->finalized->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->finalized->AdvancedSearch->SearchValue != "" || $this->finalized->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// add_date
		if (!$this->isAddOrEdit() && $this->add_date->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->add_date->AdvancedSearch->SearchValue != "" || $this->add_date->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// last_finalize_date
		if (!$this->isAddOrEdit() && $this->last_finalize_date->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->last_finalize_date->AdvancedSearch->SearchValue != "" || $this->last_finalize_date->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// expire_days
		if (!$this->isAddOrEdit() && $this->expire_days->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->expire_days->AdvancedSearch->SearchValue != "" || $this->expire_days->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// confirmed
		if (!$this->isAddOrEdit() && $this->confirmed->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->confirmed->AdvancedSearch->SearchValue != "" || $this->confirmed->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// expired
		if (!$this->isAddOrEdit() && $this->expired->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->expired->AdvancedSearch->SearchValue != "" || $this->expired->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// build_year
		if (!$this->isAddOrEdit() && $this->build_year->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->build_year->AdvancedSearch->SearchValue != "" || $this->build_year->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// zip_id
		if (!$this->isAddOrEdit() && $this->zip_id->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->zip_id->AdvancedSearch->SearchValue != "" || $this->zip_id->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// zip_name
		if (!$this->isAddOrEdit() && $this->zip_name->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->zip_name->AdvancedSearch->SearchValue != "" || $this->zip_name->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// last_modified_time_stamp
		if (!$this->isAddOrEdit() && $this->last_modified_time_stamp->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->last_modified_time_stamp->AdvancedSearch->SearchValue != "" || $this->last_modified_time_stamp->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// post_code
		if (!$this->isAddOrEdit() && $this->post_code->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->post_code->AdvancedSearch->SearchValue != "" || $this->post_code->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// meta_description
		if (!$this->isAddOrEdit() && $this->meta_description->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->meta_description->AdvancedSearch->SearchValue != "" || $this->meta_description->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// meta_description_manual
		if (!$this->isAddOrEdit() && $this->meta_description_manual->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->meta_description_manual->AdvancedSearch->SearchValue != "" || $this->meta_description_manual->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// meta_keywords
		if (!$this->isAddOrEdit() && $this->meta_keywords->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->meta_keywords->AdvancedSearch->SearchValue != "" || $this->meta_keywords->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// meta_keywords_manual
		if (!$this->isAddOrEdit() && $this->meta_keywords_manual->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->meta_keywords_manual->AdvancedSearch->SearchValue != "" || $this->meta_keywords_manual->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// street_no
		if (!$this->isAddOrEdit() && $this->street_no->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->street_no->AdvancedSearch->SearchValue != "" || $this->street_no->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// sp_featured
		if (!$this->isAddOrEdit() && $this->sp_featured->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->sp_featured->AdvancedSearch->SearchValue != "" || $this->sp_featured->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// sp_hot
		if (!$this->isAddOrEdit() && $this->sp_hot->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->sp_hot->AdvancedSearch->SearchValue != "" || $this->sp_hot->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// sp_openhouse
		if (!$this->isAddOrEdit() && $this->sp_openhouse->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->sp_openhouse->AdvancedSearch->SearchValue != "" || $this->sp_openhouse->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// sp_forclosure
		if (!$this->isAddOrEdit() && $this->sp_forclosure->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->sp_forclosure->AdvancedSearch->SearchValue != "" || $this->sp_forclosure->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// textsearch
		if (!$this->isAddOrEdit() && $this->textsearch->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->textsearch->AdvancedSearch->SearchValue != "" || $this->textsearch->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// location_text
		if (!$this->isAddOrEdit() && $this->location_text->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->location_text->AdvancedSearch->SearchValue != "" || $this->location_text->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_42
		if (!$this->isAddOrEdit() && $this->field_42->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_42->AdvancedSearch->SearchValue != "" || $this->field_42->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_312
		if (!$this->isAddOrEdit() && $this->field_312->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_312->AdvancedSearch->SearchValue != "" || $this->field_312->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_313
		if (!$this->isAddOrEdit() && $this->field_313->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_313->AdvancedSearch->SearchValue != "" || $this->field_313->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_7
		if (!$this->isAddOrEdit() && $this->field_7->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_7->AdvancedSearch->SearchValue != "" || $this->field_7->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// n_103
		if (!$this->isAddOrEdit() && $this->n_103->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->n_103->AdvancedSearch->SearchValue != "" || $this->n_103->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// n_103_distance
		if (!$this->isAddOrEdit() && $this->n_103_distance->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->n_103_distance->AdvancedSearch->SearchValue != "" || $this->n_103_distance->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// n_103_distance_by
		if (!$this->isAddOrEdit() && $this->n_103_distance_by->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->n_103_distance_by->AdvancedSearch->SearchValue != "" || $this->n_103_distance_by->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// n_105
		if (!$this->isAddOrEdit() && $this->n_105->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->n_105->AdvancedSearch->SearchValue != "" || $this->n_105->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// n_105_distance
		if (!$this->isAddOrEdit() && $this->n_105_distance->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->n_105_distance->AdvancedSearch->SearchValue != "" || $this->n_105_distance->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// n_105_distance_by
		if (!$this->isAddOrEdit() && $this->n_105_distance_by->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->n_105_distance_by->AdvancedSearch->SearchValue != "" || $this->n_105_distance_by->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// n_107
		if (!$this->isAddOrEdit() && $this->n_107->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->n_107->AdvancedSearch->SearchValue != "" || $this->n_107->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// n_107_distance
		if (!$this->isAddOrEdit() && $this->n_107_distance->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->n_107_distance->AdvancedSearch->SearchValue != "" || $this->n_107_distance->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// n_107_distance_by
		if (!$this->isAddOrEdit() && $this->n_107_distance_by->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->n_107_distance_by->AdvancedSearch->SearchValue != "" || $this->n_107_distance_by->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// n_108
		if (!$this->isAddOrEdit() && $this->n_108->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->n_108->AdvancedSearch->SearchValue != "" || $this->n_108->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// n_108_distance
		if (!$this->isAddOrEdit() && $this->n_108_distance->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->n_108_distance->AdvancedSearch->SearchValue != "" || $this->n_108_distance->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// n_108_distance_by
		if (!$this->isAddOrEdit() && $this->n_108_distance_by->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->n_108_distance_by->AdvancedSearch->SearchValue != "" || $this->n_108_distance_by->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// n_109
		if (!$this->isAddOrEdit() && $this->n_109->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->n_109->AdvancedSearch->SearchValue != "" || $this->n_109->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// n_109_distance
		if (!$this->isAddOrEdit() && $this->n_109_distance->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->n_109_distance->AdvancedSearch->SearchValue != "" || $this->n_109_distance->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// n_109_distance_by
		if (!$this->isAddOrEdit() && $this->n_109_distance_by->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->n_109_distance_by->AdvancedSearch->SearchValue != "" || $this->n_109_distance_by->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_131_options
		if (!$this->isAddOrEdit() && $this->f_131_options->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_131_options->AdvancedSearch->SearchValue != "" || $this->f_131_options->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_131
		if (!$this->isAddOrEdit() && $this->f_131->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_131->AdvancedSearch->SearchValue != "" || $this->f_131->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_137_options
		if (!$this->isAddOrEdit() && $this->f_137_options->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_137_options->AdvancedSearch->SearchValue != "" || $this->f_137_options->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_137
		if (!$this->isAddOrEdit() && $this->f_137->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_137->AdvancedSearch->SearchValue != "" || $this->f_137->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_139_options
		if (!$this->isAddOrEdit() && $this->f_139_options->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_139_options->AdvancedSearch->SearchValue != "" || $this->f_139_options->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_139
		if (!$this->isAddOrEdit() && $this->f_139->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_139->AdvancedSearch->SearchValue != "" || $this->f_139->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_144_options
		if (!$this->isAddOrEdit() && $this->f_144_options->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_144_options->AdvancedSearch->SearchValue != "" || $this->f_144_options->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_144
		if (!$this->isAddOrEdit() && $this->f_144->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_144->AdvancedSearch->SearchValue != "" || $this->f_144->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_146_options
		if (!$this->isAddOrEdit() && $this->f_146_options->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_146_options->AdvancedSearch->SearchValue != "" || $this->f_146_options->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_146
		if (!$this->isAddOrEdit() && $this->f_146->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_146->AdvancedSearch->SearchValue != "" || $this->f_146->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_149_options
		if (!$this->isAddOrEdit() && $this->f_149_options->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_149_options->AdvancedSearch->SearchValue != "" || $this->f_149_options->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_149
		if (!$this->isAddOrEdit() && $this->f_149->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_149->AdvancedSearch->SearchValue != "" || $this->f_149->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_150_options
		if (!$this->isAddOrEdit() && $this->f_150_options->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_150_options->AdvancedSearch->SearchValue != "" || $this->f_150_options->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_150
		if (!$this->isAddOrEdit() && $this->f_150->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_150->AdvancedSearch->SearchValue != "" || $this->f_150->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_156_options
		if (!$this->isAddOrEdit() && $this->f_156_options->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_156_options->AdvancedSearch->SearchValue != "" || $this->f_156_options->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_156
		if (!$this->isAddOrEdit() && $this->f_156->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_156->AdvancedSearch->SearchValue != "" || $this->f_156->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_157_options
		if (!$this->isAddOrEdit() && $this->f_157_options->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_157_options->AdvancedSearch->SearchValue != "" || $this->f_157_options->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_157
		if (!$this->isAddOrEdit() && $this->f_157->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_157->AdvancedSearch->SearchValue != "" || $this->f_157->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_159_options
		if (!$this->isAddOrEdit() && $this->f_159_options->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_159_options->AdvancedSearch->SearchValue != "" || $this->f_159_options->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_159
		if (!$this->isAddOrEdit() && $this->f_159->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_159->AdvancedSearch->SearchValue != "" || $this->f_159->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_161_options
		if (!$this->isAddOrEdit() && $this->f_161_options->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_161_options->AdvancedSearch->SearchValue != "" || $this->f_161_options->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_161
		if (!$this->isAddOrEdit() && $this->f_161->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_161->AdvancedSearch->SearchValue != "" || $this->f_161->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_163_options
		if (!$this->isAddOrEdit() && $this->f_163_options->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_163_options->AdvancedSearch->SearchValue != "" || $this->f_163_options->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_163
		if (!$this->isAddOrEdit() && $this->f_163->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_163->AdvancedSearch->SearchValue != "" || $this->f_163->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_165_options
		if (!$this->isAddOrEdit() && $this->f_165_options->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_165_options->AdvancedSearch->SearchValue != "" || $this->f_165_options->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_165
		if (!$this->isAddOrEdit() && $this->f_165->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_165->AdvancedSearch->SearchValue != "" || $this->f_165->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_166_options
		if (!$this->isAddOrEdit() && $this->f_166_options->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_166_options->AdvancedSearch->SearchValue != "" || $this->f_166_options->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_166
		if (!$this->isAddOrEdit() && $this->f_166->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_166->AdvancedSearch->SearchValue != "" || $this->f_166->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// ref_id
		if (!$this->isAddOrEdit() && $this->ref_id->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->ref_id->AdvancedSearch->SearchValue != "" || $this->ref_id->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_54
		if (!$this->isAddOrEdit() && $this->field_54->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_54->AdvancedSearch->SearchValue != "" || $this->field_54->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// half_bathrooms
		if (!$this->isAddOrEdit() && $this->half_bathrooms->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->half_bathrooms->AdvancedSearch->SearchValue != "" || $this->half_bathrooms->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_55
		if (!$this->isAddOrEdit() && $this->field_55->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_55->AdvancedSearch->SearchValue != "" || $this->field_55->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// rendered
		if (!$this->isAddOrEdit() && $this->rendered->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->rendered->AdvancedSearch->SearchValue != "" || $this->rendered->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// alias
		if (!$this->isAddOrEdit() && $this->alias->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->alias->AdvancedSearch->SearchValue != "" || $this->alias->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// source
		if (!$this->isAddOrEdit() && $this->source->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->source->AdvancedSearch->SearchValue != "" || $this->source->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// last_sync_date
		if (!$this->isAddOrEdit() && $this->last_sync_date->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->last_sync_date->AdvancedSearch->SearchValue != "" || $this->last_sync_date->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// street_suffix
		if (!$this->isAddOrEdit() && $this->street_suffix->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->street_suffix->AdvancedSearch->SearchValue != "" || $this->street_suffix->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// energy_tag
		if (!$this->isAddOrEdit() && $this->energy_tag->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->energy_tag->AdvancedSearch->SearchValue != "" || $this->energy_tag->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3006
		if (!$this->isAddOrEdit() && $this->field_3006->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3006->AdvancedSearch->SearchValue != "" || $this->field_3006->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3007
		if (!$this->isAddOrEdit() && $this->field_3007->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3007->AdvancedSearch->SearchValue != "" || $this->field_3007->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3008
		if (!$this->isAddOrEdit() && $this->field_3008->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3008->AdvancedSearch->SearchValue != "" || $this->field_3008->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// importer_structure_id
		if (!$this->isAddOrEdit() && $this->importer_structure_id->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->importer_structure_id->AdvancedSearch->SearchValue != "" || $this->importer_structure_id->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// importer_params
		if (!$this->isAddOrEdit() && $this->importer_params->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->importer_params->AdvancedSearch->SearchValue != "" || $this->importer_params->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3009
		if (!$this->isAddOrEdit() && $this->field_3009->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3009->AdvancedSearch->SearchValue != "" || $this->field_3009->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3010
		if (!$this->isAddOrEdit() && $this->field_3010->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3010->AdvancedSearch->SearchValue != "" || $this->field_3010->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3012
		if (!$this->isAddOrEdit() && $this->field_3012->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3012->AdvancedSearch->SearchValue != "" || $this->field_3012->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// rendered_en_us
		if (!$this->isAddOrEdit() && $this->rendered_en_us->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->rendered_en_us->AdvancedSearch->SearchValue != "" || $this->rendered_en_us->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// textsearch_en_us
		if (!$this->isAddOrEdit() && $this->textsearch_en_us->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->textsearch_en_us->AdvancedSearch->SearchValue != "" || $this->textsearch_en_us->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// rendered_fr_fr
		if (!$this->isAddOrEdit() && $this->rendered_fr_fr->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->rendered_fr_fr->AdvancedSearch->SearchValue != "" || $this->rendered_fr_fr->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// textsearch_fr_fr
		if (!$this->isAddOrEdit() && $this->textsearch_fr_fr->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->textsearch_fr_fr->AdvancedSearch->SearchValue != "" || $this->textsearch_fr_fr->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3013
		if (!$this->isAddOrEdit() && $this->field_3013->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3013->AdvancedSearch->SearchValue != "" || $this->field_3013->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3014
		if (!$this->isAddOrEdit() && $this->field_3014->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3014->AdvancedSearch->SearchValue != "" || $this->field_3014->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_3014_options
		if (!$this->isAddOrEdit() && $this->f_3014_options->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_3014_options->AdvancedSearch->SearchValue != "" || $this->f_3014_options->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_3014
		if (!$this->isAddOrEdit() && $this->f_3014->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_3014->AdvancedSearch->SearchValue != "" || $this->f_3014->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3015
		if (!$this->isAddOrEdit() && $this->field_3015->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3015->AdvancedSearch->SearchValue != "" || $this->field_3015->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3016
		if (!$this->isAddOrEdit() && $this->field_3016->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3016->AdvancedSearch->SearchValue != "" || $this->field_3016->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3017
		if (!$this->isAddOrEdit() && $this->field_3017->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3017->AdvancedSearch->SearchValue != "" || $this->field_3017->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_3018_options
		if (!$this->isAddOrEdit() && $this->f_3018_options->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_3018_options->AdvancedSearch->SearchValue != "" || $this->f_3018_options->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_3018
		if (!$this->isAddOrEdit() && $this->f_3018->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_3018->AdvancedSearch->SearchValue != "" || $this->f_3018->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_3019_options
		if (!$this->isAddOrEdit() && $this->f_3019_options->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_3019_options->AdvancedSearch->SearchValue != "" || $this->f_3019_options->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_3019
		if (!$this->isAddOrEdit() && $this->f_3019->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_3019->AdvancedSearch->SearchValue != "" || $this->f_3019->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_3020_options
		if (!$this->isAddOrEdit() && $this->f_3020_options->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_3020_options->AdvancedSearch->SearchValue != "" || $this->f_3020_options->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_3020
		if (!$this->isAddOrEdit() && $this->f_3020->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_3020->AdvancedSearch->SearchValue != "" || $this->f_3020->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_3021_options
		if (!$this->isAddOrEdit() && $this->f_3021_options->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_3021_options->AdvancedSearch->SearchValue != "" || $this->f_3021_options->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_3021
		if (!$this->isAddOrEdit() && $this->f_3021->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_3021->AdvancedSearch->SearchValue != "" || $this->f_3021->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_3022_options
		if (!$this->isAddOrEdit() && $this->f_3022_options->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_3022_options->AdvancedSearch->SearchValue != "" || $this->f_3022_options->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_3022
		if (!$this->isAddOrEdit() && $this->f_3022->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_3022->AdvancedSearch->SearchValue != "" || $this->f_3022->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_3023_options
		if (!$this->isAddOrEdit() && $this->f_3023_options->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_3023_options->AdvancedSearch->SearchValue != "" || $this->f_3023_options->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_3023
		if (!$this->isAddOrEdit() && $this->f_3023->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_3023->AdvancedSearch->SearchValue != "" || $this->f_3023->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_3024_options
		if (!$this->isAddOrEdit() && $this->f_3024_options->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_3024_options->AdvancedSearch->SearchValue != "" || $this->f_3024_options->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_3024
		if (!$this->isAddOrEdit() && $this->f_3024->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_3024->AdvancedSearch->SearchValue != "" || $this->f_3024->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_3025_options
		if (!$this->isAddOrEdit() && $this->f_3025_options->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_3025_options->AdvancedSearch->SearchValue != "" || $this->f_3025_options->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_3025
		if (!$this->isAddOrEdit() && $this->f_3025->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_3025->AdvancedSearch->SearchValue != "" || $this->f_3025->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_3026_options
		if (!$this->isAddOrEdit() && $this->f_3026_options->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_3026_options->AdvancedSearch->SearchValue != "" || $this->f_3026_options->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_3026
		if (!$this->isAddOrEdit() && $this->f_3026->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_3026->AdvancedSearch->SearchValue != "" || $this->f_3026->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_3027_options
		if (!$this->isAddOrEdit() && $this->f_3027_options->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_3027_options->AdvancedSearch->SearchValue != "" || $this->f_3027_options->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_3027
		if (!$this->isAddOrEdit() && $this->f_3027->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_3027->AdvancedSearch->SearchValue != "" || $this->f_3027->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_3028_options
		if (!$this->isAddOrEdit() && $this->f_3028_options->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_3028_options->AdvancedSearch->SearchValue != "" || $this->f_3028_options->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_3028
		if (!$this->isAddOrEdit() && $this->f_3028->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_3028->AdvancedSearch->SearchValue != "" || $this->f_3028->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_3029_options
		if (!$this->isAddOrEdit() && $this->f_3029_options->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_3029_options->AdvancedSearch->SearchValue != "" || $this->f_3029_options->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_3029
		if (!$this->isAddOrEdit() && $this->f_3029->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_3029->AdvancedSearch->SearchValue != "" || $this->f_3029->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_3031_options
		if (!$this->isAddOrEdit() && $this->f_3031_options->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_3031_options->AdvancedSearch->SearchValue != "" || $this->f_3031_options->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_3031
		if (!$this->isAddOrEdit() && $this->f_3031->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_3031->AdvancedSearch->SearchValue != "" || $this->f_3031->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_3032_options
		if (!$this->isAddOrEdit() && $this->f_3032_options->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_3032_options->AdvancedSearch->SearchValue != "" || $this->f_3032_options->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_3032
		if (!$this->isAddOrEdit() && $this->f_3032->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_3032->AdvancedSearch->SearchValue != "" || $this->f_3032->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_3033_options
		if (!$this->isAddOrEdit() && $this->f_3033_options->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_3033_options->AdvancedSearch->SearchValue != "" || $this->f_3033_options->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_3033
		if (!$this->isAddOrEdit() && $this->f_3033->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_3033->AdvancedSearch->SearchValue != "" || $this->f_3033->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_3034_options
		if (!$this->isAddOrEdit() && $this->f_3034_options->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_3034_options->AdvancedSearch->SearchValue != "" || $this->f_3034_options->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_3034
		if (!$this->isAddOrEdit() && $this->f_3034->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_3034->AdvancedSearch->SearchValue != "" || $this->f_3034->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_3035_options
		if (!$this->isAddOrEdit() && $this->f_3035_options->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_3035_options->AdvancedSearch->SearchValue != "" || $this->f_3035_options->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_3035
		if (!$this->isAddOrEdit() && $this->f_3035->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_3035->AdvancedSearch->SearchValue != "" || $this->f_3035->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_3036_options
		if (!$this->isAddOrEdit() && $this->f_3036_options->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_3036_options->AdvancedSearch->SearchValue != "" || $this->f_3036_options->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_3036
		if (!$this->isAddOrEdit() && $this->f_3036->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_3036->AdvancedSearch->SearchValue != "" || $this->f_3036->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_3037_options
		if (!$this->isAddOrEdit() && $this->f_3037_options->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_3037_options->AdvancedSearch->SearchValue != "" || $this->f_3037_options->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_3037
		if (!$this->isAddOrEdit() && $this->f_3037->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_3037->AdvancedSearch->SearchValue != "" || $this->f_3037->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_3038_options
		if (!$this->isAddOrEdit() && $this->f_3038_options->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_3038_options->AdvancedSearch->SearchValue != "" || $this->f_3038_options->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_3038
		if (!$this->isAddOrEdit() && $this->f_3038->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_3038->AdvancedSearch->SearchValue != "" || $this->f_3038->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_3039_options
		if (!$this->isAddOrEdit() && $this->f_3039_options->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_3039_options->AdvancedSearch->SearchValue != "" || $this->f_3039_options->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_3039
		if (!$this->isAddOrEdit() && $this->f_3039->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_3039->AdvancedSearch->SearchValue != "" || $this->f_3039->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_3040_options
		if (!$this->isAddOrEdit() && $this->f_3040_options->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_3040_options->AdvancedSearch->SearchValue != "" || $this->f_3040_options->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_3040
		if (!$this->isAddOrEdit() && $this->f_3040->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_3040->AdvancedSearch->SearchValue != "" || $this->f_3040->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_3041_options
		if (!$this->isAddOrEdit() && $this->f_3041_options->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_3041_options->AdvancedSearch->SearchValue != "" || $this->f_3041_options->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_3041
		if (!$this->isAddOrEdit() && $this->f_3041->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_3041->AdvancedSearch->SearchValue != "" || $this->f_3041->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_3042_options
		if (!$this->isAddOrEdit() && $this->f_3042_options->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_3042_options->AdvancedSearch->SearchValue != "" || $this->f_3042_options->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_3042
		if (!$this->isAddOrEdit() && $this->f_3042->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_3042->AdvancedSearch->SearchValue != "" || $this->f_3042->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_3043_options
		if (!$this->isAddOrEdit() && $this->f_3043_options->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_3043_options->AdvancedSearch->SearchValue != "" || $this->f_3043_options->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_3043
		if (!$this->isAddOrEdit() && $this->f_3043->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_3043->AdvancedSearch->SearchValue != "" || $this->f_3043->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_3044_options
		if (!$this->isAddOrEdit() && $this->f_3044_options->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_3044_options->AdvancedSearch->SearchValue != "" || $this->f_3044_options->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_3044
		if (!$this->isAddOrEdit() && $this->f_3044->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_3044->AdvancedSearch->SearchValue != "" || $this->f_3044->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// n_3045
		if (!$this->isAddOrEdit() && $this->n_3045->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->n_3045->AdvancedSearch->SearchValue != "" || $this->n_3045->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// n_3045_distance
		if (!$this->isAddOrEdit() && $this->n_3045_distance->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->n_3045_distance->AdvancedSearch->SearchValue != "" || $this->n_3045_distance->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// n_3045_distance_by
		if (!$this->isAddOrEdit() && $this->n_3045_distance_by->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->n_3045_distance_by->AdvancedSearch->SearchValue != "" || $this->n_3045_distance_by->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// n_3046
		if (!$this->isAddOrEdit() && $this->n_3046->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->n_3046->AdvancedSearch->SearchValue != "" || $this->n_3046->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// n_3046_distance
		if (!$this->isAddOrEdit() && $this->n_3046_distance->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->n_3046_distance->AdvancedSearch->SearchValue != "" || $this->n_3046_distance->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// n_3046_distance_by
		if (!$this->isAddOrEdit() && $this->n_3046_distance_by->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->n_3046_distance_by->AdvancedSearch->SearchValue != "" || $this->n_3046_distance_by->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// n_3047
		if (!$this->isAddOrEdit() && $this->n_3047->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->n_3047->AdvancedSearch->SearchValue != "" || $this->n_3047->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// n_3047_distance
		if (!$this->isAddOrEdit() && $this->n_3047_distance->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->n_3047_distance->AdvancedSearch->SearchValue != "" || $this->n_3047_distance->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// n_3047_distance_by
		if (!$this->isAddOrEdit() && $this->n_3047_distance_by->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->n_3047_distance_by->AdvancedSearch->SearchValue != "" || $this->n_3047_distance_by->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// n_3048
		if (!$this->isAddOrEdit() && $this->n_3048->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->n_3048->AdvancedSearch->SearchValue != "" || $this->n_3048->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// n_3048_distance
		if (!$this->isAddOrEdit() && $this->n_3048_distance->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->n_3048_distance->AdvancedSearch->SearchValue != "" || $this->n_3048_distance->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// n_3048_distance_by
		if (!$this->isAddOrEdit() && $this->n_3048_distance_by->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->n_3048_distance_by->AdvancedSearch->SearchValue != "" || $this->n_3048_distance_by->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// n_3049
		if (!$this->isAddOrEdit() && $this->n_3049->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->n_3049->AdvancedSearch->SearchValue != "" || $this->n_3049->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// n_3049_distance
		if (!$this->isAddOrEdit() && $this->n_3049_distance->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->n_3049_distance->AdvancedSearch->SearchValue != "" || $this->n_3049_distance->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// n_3049_distance_by
		if (!$this->isAddOrEdit() && $this->n_3049_distance_by->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->n_3049_distance_by->AdvancedSearch->SearchValue != "" || $this->n_3049_distance_by->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// n_3050
		if (!$this->isAddOrEdit() && $this->n_3050->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->n_3050->AdvancedSearch->SearchValue != "" || $this->n_3050->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// n_3050_distance
		if (!$this->isAddOrEdit() && $this->n_3050_distance->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->n_3050_distance->AdvancedSearch->SearchValue != "" || $this->n_3050_distance->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// n_3050_distance_by
		if (!$this->isAddOrEdit() && $this->n_3050_distance_by->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->n_3050_distance_by->AdvancedSearch->SearchValue != "" || $this->n_3050_distance_by->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// n_3051
		if (!$this->isAddOrEdit() && $this->n_3051->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->n_3051->AdvancedSearch->SearchValue != "" || $this->n_3051->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// n_3051_distance
		if (!$this->isAddOrEdit() && $this->n_3051_distance->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->n_3051_distance->AdvancedSearch->SearchValue != "" || $this->n_3051_distance->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// n_3051_distance_by
		if (!$this->isAddOrEdit() && $this->n_3051_distance_by->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->n_3051_distance_by->AdvancedSearch->SearchValue != "" || $this->n_3051_distance_by->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// n_3052
		if (!$this->isAddOrEdit() && $this->n_3052->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->n_3052->AdvancedSearch->SearchValue != "" || $this->n_3052->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// n_3052_distance
		if (!$this->isAddOrEdit() && $this->n_3052_distance->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->n_3052_distance->AdvancedSearch->SearchValue != "" || $this->n_3052_distance->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// n_3052_distance_by
		if (!$this->isAddOrEdit() && $this->n_3052_distance_by->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->n_3052_distance_by->AdvancedSearch->SearchValue != "" || $this->n_3052_distance_by->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// n_3053
		if (!$this->isAddOrEdit() && $this->n_3053->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->n_3053->AdvancedSearch->SearchValue != "" || $this->n_3053->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// n_3053_distance
		if (!$this->isAddOrEdit() && $this->n_3053_distance->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->n_3053_distance->AdvancedSearch->SearchValue != "" || $this->n_3053_distance->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// n_3053_distance_by
		if (!$this->isAddOrEdit() && $this->n_3053_distance_by->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->n_3053_distance_by->AdvancedSearch->SearchValue != "" || $this->n_3053_distance_by->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// n_3054
		if (!$this->isAddOrEdit() && $this->n_3054->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->n_3054->AdvancedSearch->SearchValue != "" || $this->n_3054->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// n_3054_distance
		if (!$this->isAddOrEdit() && $this->n_3054_distance->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->n_3054_distance->AdvancedSearch->SearchValue != "" || $this->n_3054_distance->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// n_3054_distance_by
		if (!$this->isAddOrEdit() && $this->n_3054_distance_by->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->n_3054_distance_by->AdvancedSearch->SearchValue != "" || $this->n_3054_distance_by->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// n_3055
		if (!$this->isAddOrEdit() && $this->n_3055->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->n_3055->AdvancedSearch->SearchValue != "" || $this->n_3055->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// n_3055_distance
		if (!$this->isAddOrEdit() && $this->n_3055_distance->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->n_3055_distance->AdvancedSearch->SearchValue != "" || $this->n_3055_distance->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// n_3055_distance_by
		if (!$this->isAddOrEdit() && $this->n_3055_distance_by->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->n_3055_distance_by->AdvancedSearch->SearchValue != "" || $this->n_3055_distance_by->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// n_3056
		if (!$this->isAddOrEdit() && $this->n_3056->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->n_3056->AdvancedSearch->SearchValue != "" || $this->n_3056->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// n_3056_distance
		if (!$this->isAddOrEdit() && $this->n_3056_distance->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->n_3056_distance->AdvancedSearch->SearchValue != "" || $this->n_3056_distance->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// n_3056_distance_by
		if (!$this->isAddOrEdit() && $this->n_3056_distance_by->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->n_3056_distance_by->AdvancedSearch->SearchValue != "" || $this->n_3056_distance_by->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// n_3057
		if (!$this->isAddOrEdit() && $this->n_3057->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->n_3057->AdvancedSearch->SearchValue != "" || $this->n_3057->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// n_3057_distance
		if (!$this->isAddOrEdit() && $this->n_3057_distance->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->n_3057_distance->AdvancedSearch->SearchValue != "" || $this->n_3057_distance->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// n_3057_distance_by
		if (!$this->isAddOrEdit() && $this->n_3057_distance_by->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->n_3057_distance_by->AdvancedSearch->SearchValue != "" || $this->n_3057_distance_by->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// n_3058
		if (!$this->isAddOrEdit() && $this->n_3058->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->n_3058->AdvancedSearch->SearchValue != "" || $this->n_3058->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// n_3058_distance
		if (!$this->isAddOrEdit() && $this->n_3058_distance->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->n_3058_distance->AdvancedSearch->SearchValue != "" || $this->n_3058_distance->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// n_3058_distance_by
		if (!$this->isAddOrEdit() && $this->n_3058_distance_by->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->n_3058_distance_by->AdvancedSearch->SearchValue != "" || $this->n_3058_distance_by->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// n_3059
		if (!$this->isAddOrEdit() && $this->n_3059->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->n_3059->AdvancedSearch->SearchValue != "" || $this->n_3059->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// n_3059_distance
		if (!$this->isAddOrEdit() && $this->n_3059_distance->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->n_3059_distance->AdvancedSearch->SearchValue != "" || $this->n_3059_distance->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// n_3059_distance_by
		if (!$this->isAddOrEdit() && $this->n_3059_distance_by->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->n_3059_distance_by->AdvancedSearch->SearchValue != "" || $this->n_3059_distance_by->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_3060_options
		if (!$this->isAddOrEdit() && $this->f_3060_options->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_3060_options->AdvancedSearch->SearchValue != "" || $this->f_3060_options->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_3060
		if (!$this->isAddOrEdit() && $this->f_3060->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_3060->AdvancedSearch->SearchValue != "" || $this->f_3060->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_3061_options
		if (!$this->isAddOrEdit() && $this->f_3061_options->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_3061_options->AdvancedSearch->SearchValue != "" || $this->f_3061_options->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_3061
		if (!$this->isAddOrEdit() && $this->f_3061->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_3061->AdvancedSearch->SearchValue != "" || $this->f_3061->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_3062_options
		if (!$this->isAddOrEdit() && $this->f_3062_options->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_3062_options->AdvancedSearch->SearchValue != "" || $this->f_3062_options->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// f_3062
		if (!$this->isAddOrEdit() && $this->f_3062->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->f_3062->AdvancedSearch->SearchValue != "" || $this->f_3062->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3063
		if (!$this->isAddOrEdit() && $this->field_3063->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3063->AdvancedSearch->SearchValue != "" || $this->field_3063->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3064
		if (!$this->isAddOrEdit() && $this->field_3064->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3064->AdvancedSearch->SearchValue != "" || $this->field_3064->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3065
		if (!$this->isAddOrEdit() && $this->field_3065->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3065->AdvancedSearch->SearchValue != "" || $this->field_3065->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_308
		if (!$this->isAddOrEdit() && $this->field_308->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_308->AdvancedSearch->SearchValue != "" || $this->field_308->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_308_en_us
		if (!$this->isAddOrEdit() && $this->field_308_en_us->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_308_en_us->AdvancedSearch->SearchValue != "" || $this->field_308_en_us->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_308_fr_fr
		if (!$this->isAddOrEdit() && $this->field_308_fr_fr->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_308_fr_fr->AdvancedSearch->SearchValue != "" || $this->field_308_fr_fr->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_313_en_us
		if (!$this->isAddOrEdit() && $this->field_313_en_us->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_313_en_us->AdvancedSearch->SearchValue != "" || $this->field_313_en_us->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_313_fr_fr
		if (!$this->isAddOrEdit() && $this->field_313_fr_fr->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_313_fr_fr->AdvancedSearch->SearchValue != "" || $this->field_313_fr_fr->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_312_en_us
		if (!$this->isAddOrEdit() && $this->field_312_en_us->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_312_en_us->AdvancedSearch->SearchValue != "" || $this->field_312_en_us->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_312_fr_fr
		if (!$this->isAddOrEdit() && $this->field_312_fr_fr->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_312_fr_fr->AdvancedSearch->SearchValue != "" || $this->field_312_fr_fr->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3017_en_us
		if (!$this->isAddOrEdit() && $this->field_3017_en_us->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3017_en_us->AdvancedSearch->SearchValue != "" || $this->field_3017_en_us->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3017_fr_fr
		if (!$this->isAddOrEdit() && $this->field_3017_fr_fr->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3017_fr_fr->AdvancedSearch->SearchValue != "" || $this->field_3017_fr_fr->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_42_en_us
		if (!$this->isAddOrEdit() && $this->field_42_en_us->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_42_en_us->AdvancedSearch->SearchValue != "" || $this->field_42_en_us->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_42_fr_fr
		if (!$this->isAddOrEdit() && $this->field_42_fr_fr->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_42_fr_fr->AdvancedSearch->SearchValue != "" || $this->field_42_fr_fr->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3067
		if (!$this->isAddOrEdit() && $this->field_3067->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3067->AdvancedSearch->SearchValue != "" || $this->field_3067->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3068
		if (!$this->isAddOrEdit() && $this->field_3068->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3068->AdvancedSearch->SearchValue != "" || $this->field_3068->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3069
		if (!$this->isAddOrEdit() && $this->field_3069->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3069->AdvancedSearch->SearchValue != "" || $this->field_3069->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3070
		if (!$this->isAddOrEdit() && $this->field_3070->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3070->AdvancedSearch->SearchValue != "" || $this->field_3070->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3071
		if (!$this->isAddOrEdit() && $this->field_3071->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3071->AdvancedSearch->SearchValue != "" || $this->field_3071->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3071_en_us
		if (!$this->isAddOrEdit() && $this->field_3071_en_us->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3071_en_us->AdvancedSearch->SearchValue != "" || $this->field_3071_en_us->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3071_fr_fr
		if (!$this->isAddOrEdit() && $this->field_3071_fr_fr->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3071_fr_fr->AdvancedSearch->SearchValue != "" || $this->field_3071_fr_fr->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3072
		if (!$this->isAddOrEdit() && $this->field_3072->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3072->AdvancedSearch->SearchValue != "" || $this->field_3072->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3073
		if (!$this->isAddOrEdit() && $this->field_3073->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3073->AdvancedSearch->SearchValue != "" || $this->field_3073->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3074
		if (!$this->isAddOrEdit() && $this->field_3074->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3074->AdvancedSearch->SearchValue != "" || $this->field_3074->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3074_en_us
		if (!$this->isAddOrEdit() && $this->field_3074_en_us->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3074_en_us->AdvancedSearch->SearchValue != "" || $this->field_3074_en_us->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3074_fr_fr
		if (!$this->isAddOrEdit() && $this->field_3074_fr_fr->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3074_fr_fr->AdvancedSearch->SearchValue != "" || $this->field_3074_fr_fr->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3075
		if (!$this->isAddOrEdit() && $this->field_3075->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3075->AdvancedSearch->SearchValue != "" || $this->field_3075->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3076
		if (!$this->isAddOrEdit() && $this->field_3076->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3076->AdvancedSearch->SearchValue != "" || $this->field_3076->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3077
		if (!$this->isAddOrEdit() && $this->field_3077->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3077->AdvancedSearch->SearchValue != "" || $this->field_3077->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3078
		if (!$this->isAddOrEdit() && $this->field_3078->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3078->AdvancedSearch->SearchValue != "" || $this->field_3078->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3079
		if (!$this->isAddOrEdit() && $this->field_3079->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3079->AdvancedSearch->SearchValue != "" || $this->field_3079->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3080
		if (!$this->isAddOrEdit() && $this->field_3080->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3080->AdvancedSearch->SearchValue != "" || $this->field_3080->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3076_en_us
		if (!$this->isAddOrEdit() && $this->field_3076_en_us->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3076_en_us->AdvancedSearch->SearchValue != "" || $this->field_3076_en_us->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3076_fr_fr
		if (!$this->isAddOrEdit() && $this->field_3076_fr_fr->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3076_fr_fr->AdvancedSearch->SearchValue != "" || $this->field_3076_fr_fr->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3080_en_us
		if (!$this->isAddOrEdit() && $this->field_3080_en_us->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3080_en_us->AdvancedSearch->SearchValue != "" || $this->field_3080_en_us->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3080_fr_fr
		if (!$this->isAddOrEdit() && $this->field_3080_fr_fr->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3080_fr_fr->AdvancedSearch->SearchValue != "" || $this->field_3080_fr_fr->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3081
		if (!$this->isAddOrEdit() && $this->field_3081->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3081->AdvancedSearch->SearchValue != "" || $this->field_3081->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3081_en_us
		if (!$this->isAddOrEdit() && $this->field_3081_en_us->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3081_en_us->AdvancedSearch->SearchValue != "" || $this->field_3081_en_us->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3081_fr_fr
		if (!$this->isAddOrEdit() && $this->field_3081_fr_fr->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3081_fr_fr->AdvancedSearch->SearchValue != "" || $this->field_3081_fr_fr->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3082
		if (!$this->isAddOrEdit() && $this->field_3082->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3082->AdvancedSearch->SearchValue != "" || $this->field_3082->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3082_en_us
		if (!$this->isAddOrEdit() && $this->field_3082_en_us->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3082_en_us->AdvancedSearch->SearchValue != "" || $this->field_3082_en_us->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3082_fr_fr
		if (!$this->isAddOrEdit() && $this->field_3082_fr_fr->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3082_fr_fr->AdvancedSearch->SearchValue != "" || $this->field_3082_fr_fr->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3084
		if (!$this->isAddOrEdit() && $this->field_3084->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3084->AdvancedSearch->SearchValue != "" || $this->field_3084->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3085
		if (!$this->isAddOrEdit() && $this->field_3085->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3085->AdvancedSearch->SearchValue != "" || $this->field_3085->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3086
		if (!$this->isAddOrEdit() && $this->field_3086->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3086->AdvancedSearch->SearchValue != "" || $this->field_3086->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3096
		if (!$this->isAddOrEdit() && $this->field_3096->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3096->AdvancedSearch->SearchValue != "" || $this->field_3096->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3097
		if (!$this->isAddOrEdit() && $this->field_3097->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3097->AdvancedSearch->SearchValue != "" || $this->field_3097->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3098
		if (!$this->isAddOrEdit() && $this->field_3098->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3098->AdvancedSearch->SearchValue != "" || $this->field_3098->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3099
		if (!$this->isAddOrEdit() && $this->field_3099->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3099->AdvancedSearch->SearchValue != "" || $this->field_3099->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3100
		if (!$this->isAddOrEdit() && $this->field_3100->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3100->AdvancedSearch->SearchValue != "" || $this->field_3100->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3101
		if (!$this->isAddOrEdit() && $this->field_3101->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3101->AdvancedSearch->SearchValue != "" || $this->field_3101->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3102
		if (!$this->isAddOrEdit() && $this->field_3102->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3102->AdvancedSearch->SearchValue != "" || $this->field_3102->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3103
		if (!$this->isAddOrEdit() && $this->field_3103->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3103->AdvancedSearch->SearchValue != "" || $this->field_3103->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3104
		if (!$this->isAddOrEdit() && $this->field_3104->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3104->AdvancedSearch->SearchValue != "" || $this->field_3104->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3105
		if (!$this->isAddOrEdit() && $this->field_3105->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3105->AdvancedSearch->SearchValue != "" || $this->field_3105->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3106
		if (!$this->isAddOrEdit() && $this->field_3106->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3106->AdvancedSearch->SearchValue != "" || $this->field_3106->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3107
		if (!$this->isAddOrEdit() && $this->field_3107->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3107->AdvancedSearch->SearchValue != "" || $this->field_3107->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3108
		if (!$this->isAddOrEdit() && $this->field_3108->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3108->AdvancedSearch->SearchValue != "" || $this->field_3108->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3109
		if (!$this->isAddOrEdit() && $this->field_3109->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3109->AdvancedSearch->SearchValue != "" || $this->field_3109->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3110
		if (!$this->isAddOrEdit() && $this->field_3110->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3110->AdvancedSearch->SearchValue != "" || $this->field_3110->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3111
		if (!$this->isAddOrEdit() && $this->field_3111->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3111->AdvancedSearch->SearchValue != "" || $this->field_3111->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3112
		if (!$this->isAddOrEdit() && $this->field_3112->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3112->AdvancedSearch->SearchValue != "" || $this->field_3112->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3113
		if (!$this->isAddOrEdit() && $this->field_3113->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3113->AdvancedSearch->SearchValue != "" || $this->field_3113->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3113_en_us
		if (!$this->isAddOrEdit() && $this->field_3113_en_us->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3113_en_us->AdvancedSearch->SearchValue != "" || $this->field_3113_en_us->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3113_fr_fr
		if (!$this->isAddOrEdit() && $this->field_3113_fr_fr->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3113_fr_fr->AdvancedSearch->SearchValue != "" || $this->field_3113_fr_fr->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3114
		if (!$this->isAddOrEdit() && $this->field_3114->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3114->AdvancedSearch->SearchValue != "" || $this->field_3114->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3115
		if (!$this->isAddOrEdit() && $this->field_3115->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3115->AdvancedSearch->SearchValue != "" || $this->field_3115->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3115_si
		if (!$this->isAddOrEdit() && $this->field_3115_si->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3115_si->AdvancedSearch->SearchValue != "" || $this->field_3115_si->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3115_unit
		if (!$this->isAddOrEdit() && $this->field_3115_unit->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3115_unit->AdvancedSearch->SearchValue != "" || $this->field_3115_unit->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3116
		if (!$this->isAddOrEdit() && $this->field_3116->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3116->AdvancedSearch->SearchValue != "" || $this->field_3116->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3117
		if (!$this->isAddOrEdit() && $this->field_3117->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3117->AdvancedSearch->SearchValue != "" || $this->field_3117->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3117_en_us
		if (!$this->isAddOrEdit() && $this->field_3117_en_us->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3117_en_us->AdvancedSearch->SearchValue != "" || $this->field_3117_en_us->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3117_fr_fr
		if (!$this->isAddOrEdit() && $this->field_3117_fr_fr->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3117_fr_fr->AdvancedSearch->SearchValue != "" || $this->field_3117_fr_fr->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3118
		if (!$this->isAddOrEdit() && $this->field_3118->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3118->AdvancedSearch->SearchValue != "" || $this->field_3118->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3118_en_us
		if (!$this->isAddOrEdit() && $this->field_3118_en_us->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3118_en_us->AdvancedSearch->SearchValue != "" || $this->field_3118_en_us->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3118_fr_fr
		if (!$this->isAddOrEdit() && $this->field_3118_fr_fr->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3118_fr_fr->AdvancedSearch->SearchValue != "" || $this->field_3118_fr_fr->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3119
		if (!$this->isAddOrEdit() && $this->field_3119->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3119->AdvancedSearch->SearchValue != "" || $this->field_3119->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3119_en_us
		if (!$this->isAddOrEdit() && $this->field_3119_en_us->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3119_en_us->AdvancedSearch->SearchValue != "" || $this->field_3119_en_us->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3119_fr_fr
		if (!$this->isAddOrEdit() && $this->field_3119_fr_fr->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3119_fr_fr->AdvancedSearch->SearchValue != "" || $this->field_3119_fr_fr->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3120
		if (!$this->isAddOrEdit() && $this->field_3120->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3120->AdvancedSearch->SearchValue != "" || $this->field_3120->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3120_en_us
		if (!$this->isAddOrEdit() && $this->field_3120_en_us->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3120_en_us->AdvancedSearch->SearchValue != "" || $this->field_3120_en_us->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3120_fr_fr
		if (!$this->isAddOrEdit() && $this->field_3120_fr_fr->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3120_fr_fr->AdvancedSearch->SearchValue != "" || $this->field_3120_fr_fr->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3121
		if (!$this->isAddOrEdit() && $this->field_3121->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3121->AdvancedSearch->SearchValue != "" || $this->field_3121->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3122
		if (!$this->isAddOrEdit() && $this->field_3122->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3122->AdvancedSearch->SearchValue != "" || $this->field_3122->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3122_si
		if (!$this->isAddOrEdit() && $this->field_3122_si->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3122_si->AdvancedSearch->SearchValue != "" || $this->field_3122_si->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3122_unit
		if (!$this->isAddOrEdit() && $this->field_3122_unit->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3122_unit->AdvancedSearch->SearchValue != "" || $this->field_3122_unit->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3123
		if (!$this->isAddOrEdit() && $this->field_3123->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3123->AdvancedSearch->SearchValue != "" || $this->field_3123->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3124
		if (!$this->isAddOrEdit() && $this->field_3124->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3124->AdvancedSearch->SearchValue != "" || $this->field_3124->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3125
		if (!$this->isAddOrEdit() && $this->field_3125->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3125->AdvancedSearch->SearchValue != "" || $this->field_3125->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3126
		if (!$this->isAddOrEdit() && $this->field_3126->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3126->AdvancedSearch->SearchValue != "" || $this->field_3126->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3127
		if (!$this->isAddOrEdit() && $this->field_3127->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3127->AdvancedSearch->SearchValue != "" || $this->field_3127->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3128
		if (!$this->isAddOrEdit() && $this->field_3128->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3128->AdvancedSearch->SearchValue != "" || $this->field_3128->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3129
		if (!$this->isAddOrEdit() && $this->field_3129->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3129->AdvancedSearch->SearchValue != "" || $this->field_3129->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3130
		if (!$this->isAddOrEdit() && $this->field_3130->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3130->AdvancedSearch->SearchValue != "" || $this->field_3130->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3131
		if (!$this->isAddOrEdit() && $this->field_3131->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3131->AdvancedSearch->SearchValue != "" || $this->field_3131->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3132
		if (!$this->isAddOrEdit() && $this->field_3132->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3132->AdvancedSearch->SearchValue != "" || $this->field_3132->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3133
		if (!$this->isAddOrEdit() && $this->field_3133->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3133->AdvancedSearch->SearchValue != "" || $this->field_3133->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3134
		if (!$this->isAddOrEdit() && $this->field_3134->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3134->AdvancedSearch->SearchValue != "" || $this->field_3134->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3135
		if (!$this->isAddOrEdit() && $this->field_3135->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3135->AdvancedSearch->SearchValue != "" || $this->field_3135->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3136
		if (!$this->isAddOrEdit() && $this->field_3136->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3136->AdvancedSearch->SearchValue != "" || $this->field_3136->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3137
		if (!$this->isAddOrEdit() && $this->field_3137->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3137->AdvancedSearch->SearchValue != "" || $this->field_3137->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3138
		if (!$this->isAddOrEdit() && $this->field_3138->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3138->AdvancedSearch->SearchValue != "" || $this->field_3138->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3139
		if (!$this->isAddOrEdit() && $this->field_3139->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3139->AdvancedSearch->SearchValue != "" || $this->field_3139->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3140
		if (!$this->isAddOrEdit() && $this->field_3140->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3140->AdvancedSearch->SearchValue != "" || $this->field_3140->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3141
		if (!$this->isAddOrEdit() && $this->field_3141->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3141->AdvancedSearch->SearchValue != "" || $this->field_3141->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3142
		if (!$this->isAddOrEdit() && $this->field_3142->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3142->AdvancedSearch->SearchValue != "" || $this->field_3142->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3143
		if (!$this->isAddOrEdit() && $this->field_3143->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3143->AdvancedSearch->SearchValue != "" || $this->field_3143->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3144
		if (!$this->isAddOrEdit() && $this->field_3144->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3144->AdvancedSearch->SearchValue != "" || $this->field_3144->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3145
		if (!$this->isAddOrEdit() && $this->field_3145->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3145->AdvancedSearch->SearchValue != "" || $this->field_3145->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3146
		if (!$this->isAddOrEdit() && $this->field_3146->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3146->AdvancedSearch->SearchValue != "" || $this->field_3146->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3147
		if (!$this->isAddOrEdit() && $this->field_3147->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3147->AdvancedSearch->SearchValue != "" || $this->field_3147->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3148
		if (!$this->isAddOrEdit() && $this->field_3148->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3148->AdvancedSearch->SearchValue != "" || $this->field_3148->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3149
		if (!$this->isAddOrEdit() && $this->field_3149->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3149->AdvancedSearch->SearchValue != "" || $this->field_3149->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3150
		if (!$this->isAddOrEdit() && $this->field_3150->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3150->AdvancedSearch->SearchValue != "" || $this->field_3150->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3151
		if (!$this->isAddOrEdit() && $this->field_3151->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3151->AdvancedSearch->SearchValue != "" || $this->field_3151->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3152
		if (!$this->isAddOrEdit() && $this->field_3152->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3152->AdvancedSearch->SearchValue != "" || $this->field_3152->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3153
		if (!$this->isAddOrEdit() && $this->field_3153->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3153->AdvancedSearch->SearchValue != "" || $this->field_3153->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3154
		if (!$this->isAddOrEdit() && $this->field_3154->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3154->AdvancedSearch->SearchValue != "" || $this->field_3154->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3155
		if (!$this->isAddOrEdit() && $this->field_3155->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3155->AdvancedSearch->SearchValue != "" || $this->field_3155->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3156
		if (!$this->isAddOrEdit() && $this->field_3156->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3156->AdvancedSearch->SearchValue != "" || $this->field_3156->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3157
		if (!$this->isAddOrEdit() && $this->field_3157->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3157->AdvancedSearch->SearchValue != "" || $this->field_3157->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3158
		if (!$this->isAddOrEdit() && $this->field_3158->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3158->AdvancedSearch->SearchValue != "" || $this->field_3158->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3159
		if (!$this->isAddOrEdit() && $this->field_3159->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3159->AdvancedSearch->SearchValue != "" || $this->field_3159->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3160
		if (!$this->isAddOrEdit() && $this->field_3160->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3160->AdvancedSearch->SearchValue != "" || $this->field_3160->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3161
		if (!$this->isAddOrEdit() && $this->field_3161->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3161->AdvancedSearch->SearchValue != "" || $this->field_3161->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3162
		if (!$this->isAddOrEdit() && $this->field_3162->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3162->AdvancedSearch->SearchValue != "" || $this->field_3162->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3163
		if (!$this->isAddOrEdit() && $this->field_3163->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3163->AdvancedSearch->SearchValue != "" || $this->field_3163->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3164
		if (!$this->isAddOrEdit() && $this->field_3164->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3164->AdvancedSearch->SearchValue != "" || $this->field_3164->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3165
		if (!$this->isAddOrEdit() && $this->field_3165->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3165->AdvancedSearch->SearchValue != "" || $this->field_3165->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3166
		if (!$this->isAddOrEdit() && $this->field_3166->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3166->AdvancedSearch->SearchValue != "" || $this->field_3166->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3167
		if (!$this->isAddOrEdit() && $this->field_3167->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3167->AdvancedSearch->SearchValue != "" || $this->field_3167->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3168
		if (!$this->isAddOrEdit() && $this->field_3168->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3168->AdvancedSearch->SearchValue != "" || $this->field_3168->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3169
		if (!$this->isAddOrEdit() && $this->field_3169->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3169->AdvancedSearch->SearchValue != "" || $this->field_3169->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3170
		if (!$this->isAddOrEdit() && $this->field_3170->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3170->AdvancedSearch->SearchValue != "" || $this->field_3170->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3171
		if (!$this->isAddOrEdit() && $this->field_3171->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3171->AdvancedSearch->SearchValue != "" || $this->field_3171->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3172
		if (!$this->isAddOrEdit() && $this->field_3172->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3172->AdvancedSearch->SearchValue != "" || $this->field_3172->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3173
		if (!$this->isAddOrEdit() && $this->field_3173->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3173->AdvancedSearch->SearchValue != "" || $this->field_3173->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3173_si
		if (!$this->isAddOrEdit() && $this->field_3173_si->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3173_si->AdvancedSearch->SearchValue != "" || $this->field_3173_si->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3173_unit
		if (!$this->isAddOrEdit() && $this->field_3173_unit->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3173_unit->AdvancedSearch->SearchValue != "" || $this->field_3173_unit->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3180
		if (!$this->isAddOrEdit() && $this->field_3180->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3180->AdvancedSearch->SearchValue != "" || $this->field_3180->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3180_en_us
		if (!$this->isAddOrEdit() && $this->field_3180_en_us->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3180_en_us->AdvancedSearch->SearchValue != "" || $this->field_3180_en_us->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3180_fr_fr
		if (!$this->isAddOrEdit() && $this->field_3180_fr_fr->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3180_fr_fr->AdvancedSearch->SearchValue != "" || $this->field_3180_fr_fr->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3181
		if (!$this->isAddOrEdit() && $this->field_3181->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3181->AdvancedSearch->SearchValue != "" || $this->field_3181->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3182
		if (!$this->isAddOrEdit() && $this->field_3182->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3182->AdvancedSearch->SearchValue != "" || $this->field_3182->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// n_3189
		if (!$this->isAddOrEdit() && $this->n_3189->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->n_3189->AdvancedSearch->SearchValue != "" || $this->n_3189->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// n_3189_distance
		if (!$this->isAddOrEdit() && $this->n_3189_distance->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->n_3189_distance->AdvancedSearch->SearchValue != "" || $this->n_3189_distance->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// n_3189_distance_by
		if (!$this->isAddOrEdit() && $this->n_3189_distance_by->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->n_3189_distance_by->AdvancedSearch->SearchValue != "" || $this->n_3189_distance_by->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3190
		if (!$this->isAddOrEdit() && $this->field_3190->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3190->AdvancedSearch->SearchValue != "" || $this->field_3190->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3192
		if (!$this->isAddOrEdit() && $this->field_3192->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3192->AdvancedSearch->SearchValue != "" || $this->field_3192->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3193
		if (!$this->isAddOrEdit() && $this->field_3193->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3193->AdvancedSearch->SearchValue != "" || $this->field_3193->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3195
		if (!$this->isAddOrEdit() && $this->field_3195->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3195->AdvancedSearch->SearchValue != "" || $this->field_3195->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3114_en_us
		if (!$this->isAddOrEdit() && $this->field_3114_en_us->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3114_en_us->AdvancedSearch->SearchValue != "" || $this->field_3114_en_us->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3114_fr_fr
		if (!$this->isAddOrEdit() && $this->field_3114_fr_fr->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3114_fr_fr->AdvancedSearch->SearchValue != "" || $this->field_3114_fr_fr->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// n_3196
		if (!$this->isAddOrEdit() && $this->n_3196->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->n_3196->AdvancedSearch->SearchValue != "" || $this->n_3196->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// n_3196_distance
		if (!$this->isAddOrEdit() && $this->n_3196_distance->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->n_3196_distance->AdvancedSearch->SearchValue != "" || $this->n_3196_distance->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// n_3196_distance_by
		if (!$this->isAddOrEdit() && $this->n_3196_distance_by->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->n_3196_distance_by->AdvancedSearch->SearchValue != "" || $this->n_3196_distance_by->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3197
		if (!$this->isAddOrEdit() && $this->field_3197->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3197->AdvancedSearch->SearchValue != "" || $this->field_3197->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3197_si
		if (!$this->isAddOrEdit() && $this->field_3197_si->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3197_si->AdvancedSearch->SearchValue != "" || $this->field_3197_si->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}

		// field_3197_unit
		if (!$this->isAddOrEdit() && $this->field_3197_unit->AdvancedSearch->get()) {
			$got = TRUE;
			if (($this->field_3197_unit->AdvancedSearch->SearchValue != "" || $this->field_3197_unit->AdvancedSearch->SearchValue2 != "") && $this->Command == "")
				$this->Command = "search";
		}
		return $got;
	}

	// Load recordset
	public function loadRecordset($offset = -1, $rowcnt = -1)
	{

		// Load List page SQL
		$sql = $this->getListSql();
		$conn = $this->getConnection();

		// Load recordset
		$dbtype = GetConnectionType($this->Dbid);
		if ($this->UseSelectLimit) {
			$conn->raiseErrorFn = Config("ERROR_FUNC");
			if ($dbtype == "MSSQL") {
				$rs = $conn->selectLimit($sql, $rowcnt, $offset, ["_hasOrderBy" => trim($this->getOrderBy()) || trim($this->getSessionOrderBy())]);
			} else {
				$rs = $conn->selectLimit($sql, $rowcnt, $offset);
			}
			$conn->raiseErrorFn = "";
		} else {
			$rs = LoadRecordset($sql, $conn);
		}

		// Call Recordset Selected event
		$this->Recordset_Selected($rs);
		return $rs;
	}

	// Load row based on key values
	public function loadRow()
	{
		global $Security, $Language;
		$filter = $this->getRecordFilter();

		// Call Row Selecting event
		$this->Row_Selecting($filter);

		// Load SQL based on filter
		$this->CurrentFilter = $filter;
		$sql = $this->getCurrentSql();
		$conn = $this->getConnection();
		$res = FALSE;
		$rs = LoadRecordset($sql, $conn);
		if ($rs && !$rs->EOF) {
			$res = TRUE;
			$this->loadRowValues($rs); // Load row values
			$rs->close();
		}
		return $res;
	}

	// Load row values from recordset
	public function loadRowValues($rs = NULL)
	{
		if ($rs && !$rs->EOF)
			$row = $rs->fields;
		else
			$row = $this->newRow();

		// Call Row Selected event
		$this->Row_Selected($row);
		if (!$rs || $rs->EOF)
			return;
		$this->id->setDbValue($row['id']);
		$this->kind->setDbValue($row['kind']);
		$this->deleted->setDbValue($row['deleted']);
		$this->mls_id->setDbValue($row['mls_id']);
		$this->mls_id_num->setDbValue($row['mls_id_num']);
		$this->parent->setDbValue($row['parent']);
		$this->pic_numb->setDbValue($row['pic_numb']);
		$this->user_id->setDbValue($row['user_id']);
		$this->listing->setDbValue($row['listing']);
		$this->property_type->setDbValue($row['property_type']);
		$this->location1_id->setDbValue($row['location1_id']);
		$this->location2_id->setDbValue($row['location2_id']);
		$this->location3_id->setDbValue($row['location3_id']);
		$this->location4_id->setDbValue($row['location4_id']);
		$this->location5_id->setDbValue($row['location5_id']);
		$this->location6_id->setDbValue($row['location6_id']);
		$this->location7_id->setDbValue($row['location7_id']);
		$this->location1_name->setDbValue($row['location1_name']);
		$this->location2_name->setDbValue($row['location2_name']);
		$this->location3_name->setDbValue($row['location3_name']);
		$this->location4_name->setDbValue($row['location4_name']);
		$this->location5_name->setDbValue($row['location5_name']);
		$this->location6_name->setDbValue($row['location6_name']);
		$this->location7_name->setDbValue($row['location7_name']);
		$this->show_address->setDbValue($row['show_address']);
		$this->show_marker->setDbValue($row['show_marker']);
		$this->price->setDbValue($row['price']);
		$this->price_unit->setDbValue($row['price_unit']);
		$this->price_si->setDbValue($row['price_si']);
		$this->price_period->setDbValue($row['price_period']);
		$this->bedrooms->setDbValue($row['bedrooms']);
		$this->rooms->setDbValue($row['rooms']);
		$this->bathrooms->setDbValue($row['bathrooms']);
		$this->living_area->setDbValue($row['living_area']);
		$this->living_area_unit->setDbValue($row['living_area_unit']);
		$this->living_area_si->setDbValue($row['living_area_si']);
		$this->lot_area->setDbValue($row['lot_area']);
		$this->lot_area_unit->setDbValue($row['lot_area_unit']);
		$this->lot_area_si->setDbValue($row['lot_area_si']);
		$this->googlemap_lt->setDbValue($row['googlemap_lt']);
		$this->googlemap_ln->setDbValue($row['googlemap_ln']);
		$this->finalized->setDbValue($row['finalized']);
		$this->add_date->setDbValue($row['add_date']);
		$this->last_finalize_date->setDbValue($row['last_finalize_date']);
		$this->expire_days->setDbValue($row['expire_days']);
		$this->confirmed->setDbValue($row['confirmed']);
		$this->expired->setDbValue($row['expired']);
		$this->build_year->setDbValue($row['build_year']);
		$this->zip_id->setDbValue($row['zip_id']);
		$this->zip_name->setDbValue($row['zip_name']);
		$this->last_modified_time_stamp->setDbValue($row['last_modified_time_stamp']);
		$this->post_code->setDbValue($row['post_code']);
		$this->meta_description->setDbValue($row['meta_description']);
		$this->meta_description_manual->setDbValue($row['meta_description_manual']);
		$this->meta_keywords->setDbValue($row['meta_keywords']);
		$this->meta_keywords_manual->setDbValue($row['meta_keywords_manual']);
		$this->street_no->setDbValue($row['street_no']);
		$this->sp_featured->setDbValue($row['sp_featured']);
		$this->sp_hot->setDbValue($row['sp_hot']);
		$this->sp_openhouse->setDbValue($row['sp_openhouse']);
		$this->sp_forclosure->setDbValue($row['sp_forclosure']);
		$this->textsearch->setDbValue($row['textsearch']);
		$this->location_text->setDbValue($row['location_text']);
		$this->field_42->setDbValue($row['field_42']);
		$this->field_312->setDbValue($row['field_312']);
		$this->field_313->setDbValue($row['field_313']);
		$this->field_7->setDbValue($row['field_7']);
		$this->n_103->setDbValue($row['n_103']);
		$this->n_103_distance->setDbValue($row['n_103_distance']);
		$this->n_103_distance_by->setDbValue($row['n_103_distance_by']);
		$this->n_105->setDbValue($row['n_105']);
		$this->n_105_distance->setDbValue($row['n_105_distance']);
		$this->n_105_distance_by->setDbValue($row['n_105_distance_by']);
		$this->n_107->setDbValue($row['n_107']);
		$this->n_107_distance->setDbValue($row['n_107_distance']);
		$this->n_107_distance_by->setDbValue($row['n_107_distance_by']);
		$this->n_108->setDbValue($row['n_108']);
		$this->n_108_distance->setDbValue($row['n_108_distance']);
		$this->n_108_distance_by->setDbValue($row['n_108_distance_by']);
		$this->n_109->setDbValue($row['n_109']);
		$this->n_109_distance->setDbValue($row['n_109_distance']);
		$this->n_109_distance_by->setDbValue($row['n_109_distance_by']);
		$this->f_131_options->setDbValue($row['f_131_options']);
		$this->f_131->setDbValue($row['f_131']);
		$this->f_137_options->setDbValue($row['f_137_options']);
		$this->f_137->setDbValue($row['f_137']);
		$this->f_139_options->setDbValue($row['f_139_options']);
		$this->f_139->setDbValue($row['f_139']);
		$this->f_144_options->setDbValue($row['f_144_options']);
		$this->f_144->setDbValue($row['f_144']);
		$this->f_146_options->setDbValue($row['f_146_options']);
		$this->f_146->setDbValue($row['f_146']);
		$this->f_149_options->setDbValue($row['f_149_options']);
		$this->f_149->setDbValue($row['f_149']);
		$this->f_150_options->setDbValue($row['f_150_options']);
		$this->f_150->setDbValue($row['f_150']);
		$this->f_156_options->setDbValue($row['f_156_options']);
		$this->f_156->setDbValue($row['f_156']);
		$this->f_157_options->setDbValue($row['f_157_options']);
		$this->f_157->setDbValue($row['f_157']);
		$this->f_159_options->setDbValue($row['f_159_options']);
		$this->f_159->setDbValue($row['f_159']);
		$this->f_161_options->setDbValue($row['f_161_options']);
		$this->f_161->setDbValue($row['f_161']);
		$this->f_163_options->setDbValue($row['f_163_options']);
		$this->f_163->setDbValue($row['f_163']);
		$this->f_165_options->setDbValue($row['f_165_options']);
		$this->f_165->setDbValue($row['f_165']);
		$this->f_166_options->setDbValue($row['f_166_options']);
		$this->f_166->setDbValue($row['f_166']);
		$this->ref_id->setDbValue($row['ref_id']);
		$this->field_54->setDbValue($row['field_54']);
		$this->half_bathrooms->setDbValue($row['half_bathrooms']);
		$this->field_55->setDbValue($row['field_55']);
		$this->rendered->setDbValue($row['rendered']);
		$this->alias->setDbValue($row['alias']);
		$this->source->setDbValue($row['source']);
		$this->last_sync_date->setDbValue($row['last_sync_date']);
		$this->street_suffix->setDbValue($row['street_suffix']);
		$this->energy_tag->setDbValue($row['energy_tag']);
		$this->field_3006->setDbValue($row['field_3006']);
		$this->field_3007->setDbValue($row['field_3007']);
		$this->field_3008->setDbValue($row['field_3008']);
		$this->importer_structure_id->setDbValue($row['importer_structure_id']);
		$this->importer_params->setDbValue($row['importer_params']);
		$this->field_3009->setDbValue($row['field_3009']);
		$this->field_3010->setDbValue($row['field_3010']);
		$this->field_3012->setDbValue($row['field_3012']);
		$this->rendered_en_us->setDbValue($row['rendered_en_us']);
		$this->textsearch_en_us->setDbValue($row['textsearch_en_us']);
		$this->rendered_fr_fr->setDbValue($row['rendered_fr_fr']);
		$this->textsearch_fr_fr->setDbValue($row['textsearch_fr_fr']);
		$this->field_3013->setDbValue($row['field_3013']);
		$this->field_3014->setDbValue($row['field_3014']);
		$this->f_3014_options->setDbValue($row['f_3014_options']);
		$this->f_3014->setDbValue($row['f_3014']);
		$this->field_3015->setDbValue($row['field_3015']);
		$this->field_3016->setDbValue($row['field_3016']);
		$this->field_3017->setDbValue($row['field_3017']);
		$this->f_3018_options->setDbValue($row['f_3018_options']);
		$this->f_3018->setDbValue($row['f_3018']);
		$this->f_3019_options->setDbValue($row['f_3019_options']);
		$this->f_3019->setDbValue($row['f_3019']);
		$this->f_3020_options->setDbValue($row['f_3020_options']);
		$this->f_3020->setDbValue($row['f_3020']);
		$this->f_3021_options->setDbValue($row['f_3021_options']);
		$this->f_3021->setDbValue($row['f_3021']);
		$this->f_3022_options->setDbValue($row['f_3022_options']);
		$this->f_3022->setDbValue($row['f_3022']);
		$this->f_3023_options->setDbValue($row['f_3023_options']);
		$this->f_3023->setDbValue($row['f_3023']);
		$this->f_3024_options->setDbValue($row['f_3024_options']);
		$this->f_3024->setDbValue($row['f_3024']);
		$this->f_3025_options->setDbValue($row['f_3025_options']);
		$this->f_3025->setDbValue($row['f_3025']);
		$this->f_3026_options->setDbValue($row['f_3026_options']);
		$this->f_3026->setDbValue($row['f_3026']);
		$this->f_3027_options->setDbValue($row['f_3027_options']);
		$this->f_3027->setDbValue($row['f_3027']);
		$this->f_3028_options->setDbValue($row['f_3028_options']);
		$this->f_3028->setDbValue($row['f_3028']);
		$this->f_3029_options->setDbValue($row['f_3029_options']);
		$this->f_3029->setDbValue($row['f_3029']);
		$this->f_3031_options->setDbValue($row['f_3031_options']);
		$this->f_3031->setDbValue($row['f_3031']);
		$this->f_3032_options->setDbValue($row['f_3032_options']);
		$this->f_3032->setDbValue($row['f_3032']);
		$this->f_3033_options->setDbValue($row['f_3033_options']);
		$this->f_3033->setDbValue($row['f_3033']);
		$this->f_3034_options->setDbValue($row['f_3034_options']);
		$this->f_3034->setDbValue($row['f_3034']);
		$this->f_3035_options->setDbValue($row['f_3035_options']);
		$this->f_3035->setDbValue($row['f_3035']);
		$this->f_3036_options->setDbValue($row['f_3036_options']);
		$this->f_3036->setDbValue($row['f_3036']);
		$this->f_3037_options->setDbValue($row['f_3037_options']);
		$this->f_3037->setDbValue($row['f_3037']);
		$this->f_3038_options->setDbValue($row['f_3038_options']);
		$this->f_3038->setDbValue($row['f_3038']);
		$this->f_3039_options->setDbValue($row['f_3039_options']);
		$this->f_3039->setDbValue($row['f_3039']);
		$this->f_3040_options->setDbValue($row['f_3040_options']);
		$this->f_3040->setDbValue($row['f_3040']);
		$this->f_3041_options->setDbValue($row['f_3041_options']);
		$this->f_3041->setDbValue($row['f_3041']);
		$this->f_3042_options->setDbValue($row['f_3042_options']);
		$this->f_3042->setDbValue($row['f_3042']);
		$this->f_3043_options->setDbValue($row['f_3043_options']);
		$this->f_3043->setDbValue($row['f_3043']);
		$this->f_3044_options->setDbValue($row['f_3044_options']);
		$this->f_3044->setDbValue($row['f_3044']);
		$this->n_3045->setDbValue($row['n_3045']);
		$this->n_3045_distance->setDbValue($row['n_3045_distance']);
		$this->n_3045_distance_by->setDbValue($row['n_3045_distance_by']);
		$this->n_3046->setDbValue($row['n_3046']);
		$this->n_3046_distance->setDbValue($row['n_3046_distance']);
		$this->n_3046_distance_by->setDbValue($row['n_3046_distance_by']);
		$this->n_3047->setDbValue($row['n_3047']);
		$this->n_3047_distance->setDbValue($row['n_3047_distance']);
		$this->n_3047_distance_by->setDbValue($row['n_3047_distance_by']);
		$this->n_3048->setDbValue($row['n_3048']);
		$this->n_3048_distance->setDbValue($row['n_3048_distance']);
		$this->n_3048_distance_by->setDbValue($row['n_3048_distance_by']);
		$this->n_3049->setDbValue($row['n_3049']);
		$this->n_3049_distance->setDbValue($row['n_3049_distance']);
		$this->n_3049_distance_by->setDbValue($row['n_3049_distance_by']);
		$this->n_3050->setDbValue($row['n_3050']);
		$this->n_3050_distance->setDbValue($row['n_3050_distance']);
		$this->n_3050_distance_by->setDbValue($row['n_3050_distance_by']);
		$this->n_3051->setDbValue($row['n_3051']);
		$this->n_3051_distance->setDbValue($row['n_3051_distance']);
		$this->n_3051_distance_by->setDbValue($row['n_3051_distance_by']);
		$this->n_3052->setDbValue($row['n_3052']);
		$this->n_3052_distance->setDbValue($row['n_3052_distance']);
		$this->n_3052_distance_by->setDbValue($row['n_3052_distance_by']);
		$this->n_3053->setDbValue($row['n_3053']);
		$this->n_3053_distance->setDbValue($row['n_3053_distance']);
		$this->n_3053_distance_by->setDbValue($row['n_3053_distance_by']);
		$this->n_3054->setDbValue($row['n_3054']);
		$this->n_3054_distance->setDbValue($row['n_3054_distance']);
		$this->n_3054_distance_by->setDbValue($row['n_3054_distance_by']);
		$this->n_3055->setDbValue($row['n_3055']);
		$this->n_3055_distance->setDbValue($row['n_3055_distance']);
		$this->n_3055_distance_by->setDbValue($row['n_3055_distance_by']);
		$this->n_3056->setDbValue($row['n_3056']);
		$this->n_3056_distance->setDbValue($row['n_3056_distance']);
		$this->n_3056_distance_by->setDbValue($row['n_3056_distance_by']);
		$this->n_3057->setDbValue($row['n_3057']);
		$this->n_3057_distance->setDbValue($row['n_3057_distance']);
		$this->n_3057_distance_by->setDbValue($row['n_3057_distance_by']);
		$this->n_3058->setDbValue($row['n_3058']);
		$this->n_3058_distance->setDbValue($row['n_3058_distance']);
		$this->n_3058_distance_by->setDbValue($row['n_3058_distance_by']);
		$this->n_3059->setDbValue($row['n_3059']);
		$this->n_3059_distance->setDbValue($row['n_3059_distance']);
		$this->n_3059_distance_by->setDbValue($row['n_3059_distance_by']);
		$this->f_3060_options->setDbValue($row['f_3060_options']);
		$this->f_3060->setDbValue($row['f_3060']);
		$this->f_3061_options->setDbValue($row['f_3061_options']);
		$this->f_3061->setDbValue($row['f_3061']);
		$this->f_3062_options->setDbValue($row['f_3062_options']);
		$this->f_3062->setDbValue($row['f_3062']);
		$this->field_3063->setDbValue($row['field_3063']);
		$this->field_3064->setDbValue($row['field_3064']);
		$this->field_3065->setDbValue($row['field_3065']);
		$this->field_308->setDbValue($row['field_308']);
		$this->field_308_en_us->setDbValue($row['field_308_en_us']);
		$this->field_308_fr_fr->setDbValue($row['field_308_fr_fr']);
		$this->field_313_en_us->setDbValue($row['field_313_en_us']);
		$this->field_313_fr_fr->setDbValue($row['field_313_fr_fr']);
		$this->field_312_en_us->setDbValue($row['field_312_en_us']);
		$this->field_312_fr_fr->setDbValue($row['field_312_fr_fr']);
		$this->field_3017_en_us->setDbValue($row['field_3017_en_us']);
		$this->field_3017_fr_fr->setDbValue($row['field_3017_fr_fr']);
		$this->field_42_en_us->setDbValue($row['field_42_en_us']);
		$this->field_42_fr_fr->setDbValue($row['field_42_fr_fr']);
		$this->field_3067->setDbValue($row['field_3067']);
		$this->field_3068->setDbValue($row['field_3068']);
		$this->field_3069->setDbValue($row['field_3069']);
		$this->field_3070->setDbValue($row['field_3070']);
		$this->field_3071->setDbValue($row['field_3071']);
		$this->field_3071_en_us->setDbValue($row['field_3071_en_us']);
		$this->field_3071_fr_fr->setDbValue($row['field_3071_fr_fr']);
		$this->field_3072->setDbValue($row['field_3072']);
		$this->field_3073->setDbValue($row['field_3073']);
		$this->field_3074->setDbValue($row['field_3074']);
		$this->field_3074_en_us->setDbValue($row['field_3074_en_us']);
		$this->field_3074_fr_fr->setDbValue($row['field_3074_fr_fr']);
		$this->field_3075->setDbValue($row['field_3075']);
		$this->field_3076->setDbValue($row['field_3076']);
		$this->field_3077->setDbValue($row['field_3077']);
		$this->field_3078->setDbValue($row['field_3078']);
		$this->field_3079->setDbValue($row['field_3079']);
		$this->field_3080->setDbValue($row['field_3080']);
		$this->field_3076_en_us->setDbValue($row['field_3076_en_us']);
		$this->field_3076_fr_fr->setDbValue($row['field_3076_fr_fr']);
		$this->field_3080_en_us->setDbValue($row['field_3080_en_us']);
		$this->field_3080_fr_fr->setDbValue($row['field_3080_fr_fr']);
		$this->field_3081->setDbValue($row['field_3081']);
		$this->field_3081_en_us->setDbValue($row['field_3081_en_us']);
		$this->field_3081_fr_fr->setDbValue($row['field_3081_fr_fr']);
		$this->field_3082->setDbValue($row['field_3082']);
		$this->field_3082_en_us->setDbValue($row['field_3082_en_us']);
		$this->field_3082_fr_fr->setDbValue($row['field_3082_fr_fr']);
		$this->field_3084->setDbValue($row['field_3084']);
		$this->field_3085->setDbValue($row['field_3085']);
		$this->field_3086->setDbValue($row['field_3086']);
		$this->field_3096->setDbValue($row['field_3096']);
		$this->field_3097->setDbValue($row['field_3097']);
		$this->field_3098->setDbValue($row['field_3098']);
		$this->field_3099->setDbValue($row['field_3099']);
		$this->field_3100->setDbValue($row['field_3100']);
		$this->field_3101->setDbValue($row['field_3101']);
		$this->field_3102->setDbValue($row['field_3102']);
		$this->field_3103->setDbValue($row['field_3103']);
		$this->field_3104->setDbValue($row['field_3104']);
		$this->field_3105->setDbValue($row['field_3105']);
		$this->field_3106->setDbValue($row['field_3106']);
		$this->field_3107->setDbValue($row['field_3107']);
		$this->field_3108->setDbValue($row['field_3108']);
		$this->field_3109->setDbValue($row['field_3109']);
		$this->field_3110->setDbValue($row['field_3110']);
		$this->field_3111->setDbValue($row['field_3111']);
		$this->field_3112->setDbValue($row['field_3112']);
		$this->field_3113->setDbValue($row['field_3113']);
		$this->field_3113_en_us->setDbValue($row['field_3113_en_us']);
		$this->field_3113_fr_fr->setDbValue($row['field_3113_fr_fr']);
		$this->field_3114->setDbValue($row['field_3114']);
		$this->field_3115->setDbValue($row['field_3115']);
		$this->field_3115_si->setDbValue($row['field_3115_si']);
		$this->field_3115_unit->setDbValue($row['field_3115_unit']);
		$this->field_3116->setDbValue($row['field_3116']);
		$this->field_3117->setDbValue($row['field_3117']);
		$this->field_3117_en_us->setDbValue($row['field_3117_en_us']);
		$this->field_3117_fr_fr->setDbValue($row['field_3117_fr_fr']);
		$this->field_3118->setDbValue($row['field_3118']);
		$this->field_3118_en_us->setDbValue($row['field_3118_en_us']);
		$this->field_3118_fr_fr->setDbValue($row['field_3118_fr_fr']);
		$this->field_3119->setDbValue($row['field_3119']);
		$this->field_3119_en_us->setDbValue($row['field_3119_en_us']);
		$this->field_3119_fr_fr->setDbValue($row['field_3119_fr_fr']);
		$this->field_3120->setDbValue($row['field_3120']);
		$this->field_3120_en_us->setDbValue($row['field_3120_en_us']);
		$this->field_3120_fr_fr->setDbValue($row['field_3120_fr_fr']);
		$this->field_3121->setDbValue($row['field_3121']);
		$this->field_3122->setDbValue($row['field_3122']);
		$this->field_3122_si->setDbValue($row['field_3122_si']);
		$this->field_3122_unit->setDbValue($row['field_3122_unit']);
		$this->field_3123->setDbValue($row['field_3123']);
		$this->field_3124->setDbValue($row['field_3124']);
		$this->field_3125->setDbValue($row['field_3125']);
		$this->field_3126->setDbValue($row['field_3126']);
		$this->field_3127->setDbValue($row['field_3127']);
		$this->field_3128->setDbValue($row['field_3128']);
		$this->field_3129->setDbValue($row['field_3129']);
		$this->field_3130->setDbValue($row['field_3130']);
		$this->field_3131->setDbValue($row['field_3131']);
		$this->field_3132->setDbValue($row['field_3132']);
		$this->field_3133->setDbValue($row['field_3133']);
		$this->field_3134->setDbValue($row['field_3134']);
		$this->field_3135->setDbValue($row['field_3135']);
		$this->field_3136->setDbValue($row['field_3136']);
		$this->field_3137->setDbValue($row['field_3137']);
		$this->field_3138->setDbValue($row['field_3138']);
		$this->field_3139->setDbValue($row['field_3139']);
		$this->field_3140->setDbValue($row['field_3140']);
		$this->field_3141->setDbValue($row['field_3141']);
		$this->field_3142->setDbValue($row['field_3142']);
		$this->field_3143->setDbValue($row['field_3143']);
		$this->field_3144->setDbValue($row['field_3144']);
		$this->field_3145->setDbValue($row['field_3145']);
		$this->field_3146->setDbValue($row['field_3146']);
		$this->field_3147->setDbValue($row['field_3147']);
		$this->field_3148->setDbValue($row['field_3148']);
		$this->field_3149->setDbValue($row['field_3149']);
		$this->field_3150->setDbValue($row['field_3150']);
		$this->field_3151->setDbValue($row['field_3151']);
		$this->field_3152->setDbValue($row['field_3152']);
		$this->field_3153->setDbValue($row['field_3153']);
		$this->field_3154->setDbValue($row['field_3154']);
		$this->field_3155->setDbValue($row['field_3155']);
		$this->field_3156->setDbValue($row['field_3156']);
		$this->field_3157->setDbValue($row['field_3157']);
		$this->field_3158->setDbValue($row['field_3158']);
		$this->field_3159->setDbValue($row['field_3159']);
		$this->field_3160->setDbValue($row['field_3160']);
		$this->field_3161->setDbValue($row['field_3161']);
		$this->field_3162->setDbValue($row['field_3162']);
		$this->field_3163->setDbValue($row['field_3163']);
		$this->field_3164->setDbValue($row['field_3164']);
		$this->field_3165->setDbValue($row['field_3165']);
		$this->field_3166->setDbValue($row['field_3166']);
		$this->field_3167->setDbValue($row['field_3167']);
		$this->field_3168->setDbValue($row['field_3168']);
		$this->field_3169->setDbValue($row['field_3169']);
		$this->field_3170->setDbValue($row['field_3170']);
		$this->field_3171->setDbValue($row['field_3171']);
		$this->field_3172->setDbValue($row['field_3172']);
		$this->field_3173->setDbValue($row['field_3173']);
		$this->field_3173_si->setDbValue($row['field_3173_si']);
		$this->field_3173_unit->setDbValue($row['field_3173_unit']);
		$this->field_3180->setDbValue($row['field_3180']);
		$this->field_3180_en_us->setDbValue($row['field_3180_en_us']);
		$this->field_3180_fr_fr->setDbValue($row['field_3180_fr_fr']);
		$this->field_3181->setDbValue($row['field_3181']);
		$this->field_3182->setDbValue($row['field_3182']);
		$this->n_3189->setDbValue($row['n_3189']);
		$this->n_3189_distance->setDbValue($row['n_3189_distance']);
		$this->n_3189_distance_by->setDbValue($row['n_3189_distance_by']);
		$this->field_3190->setDbValue($row['field_3190']);
		$this->field_3192->setDbValue($row['field_3192']);
		$this->field_3193->setDbValue($row['field_3193']);
		$this->field_3195->setDbValue($row['field_3195']);
		$this->field_3114_en_us->setDbValue($row['field_3114_en_us']);
		$this->field_3114_fr_fr->setDbValue($row['field_3114_fr_fr']);
		$this->n_3196->setDbValue($row['n_3196']);
		$this->n_3196_distance->setDbValue($row['n_3196_distance']);
		$this->n_3196_distance_by->setDbValue($row['n_3196_distance_by']);
		$this->field_3197->setDbValue($row['field_3197']);
		$this->field_3197_si->setDbValue($row['field_3197_si']);
		$this->field_3197_unit->setDbValue($row['field_3197_unit']);
	}

	// Return a row with default values
	protected function newRow()
	{
		$row = [];
		$row['id'] = NULL;
		$row['kind'] = NULL;
		$row['deleted'] = NULL;
		$row['mls_id'] = NULL;
		$row['mls_id_num'] = NULL;
		$row['parent'] = NULL;
		$row['pic_numb'] = NULL;
		$row['user_id'] = NULL;
		$row['listing'] = NULL;
		$row['property_type'] = NULL;
		$row['location1_id'] = NULL;
		$row['location2_id'] = NULL;
		$row['location3_id'] = NULL;
		$row['location4_id'] = NULL;
		$row['location5_id'] = NULL;
		$row['location6_id'] = NULL;
		$row['location7_id'] = NULL;
		$row['location1_name'] = NULL;
		$row['location2_name'] = NULL;
		$row['location3_name'] = NULL;
		$row['location4_name'] = NULL;
		$row['location5_name'] = NULL;
		$row['location6_name'] = NULL;
		$row['location7_name'] = NULL;
		$row['show_address'] = NULL;
		$row['show_marker'] = NULL;
		$row['price'] = NULL;
		$row['price_unit'] = NULL;
		$row['price_si'] = NULL;
		$row['price_period'] = NULL;
		$row['bedrooms'] = NULL;
		$row['rooms'] = NULL;
		$row['bathrooms'] = NULL;
		$row['living_area'] = NULL;
		$row['living_area_unit'] = NULL;
		$row['living_area_si'] = NULL;
		$row['lot_area'] = NULL;
		$row['lot_area_unit'] = NULL;
		$row['lot_area_si'] = NULL;
		$row['googlemap_lt'] = NULL;
		$row['googlemap_ln'] = NULL;
		$row['finalized'] = NULL;
		$row['add_date'] = NULL;
		$row['last_finalize_date'] = NULL;
		$row['expire_days'] = NULL;
		$row['confirmed'] = NULL;
		$row['expired'] = NULL;
		$row['build_year'] = NULL;
		$row['zip_id'] = NULL;
		$row['zip_name'] = NULL;
		$row['last_modified_time_stamp'] = NULL;
		$row['post_code'] = NULL;
		$row['meta_description'] = NULL;
		$row['meta_description_manual'] = NULL;
		$row['meta_keywords'] = NULL;
		$row['meta_keywords_manual'] = NULL;
		$row['street_no'] = NULL;
		$row['sp_featured'] = NULL;
		$row['sp_hot'] = NULL;
		$row['sp_openhouse'] = NULL;
		$row['sp_forclosure'] = NULL;
		$row['textsearch'] = NULL;
		$row['location_text'] = NULL;
		$row['field_42'] = NULL;
		$row['field_312'] = NULL;
		$row['field_313'] = NULL;
		$row['field_7'] = NULL;
		$row['n_103'] = NULL;
		$row['n_103_distance'] = NULL;
		$row['n_103_distance_by'] = NULL;
		$row['n_105'] = NULL;
		$row['n_105_distance'] = NULL;
		$row['n_105_distance_by'] = NULL;
		$row['n_107'] = NULL;
		$row['n_107_distance'] = NULL;
		$row['n_107_distance_by'] = NULL;
		$row['n_108'] = NULL;
		$row['n_108_distance'] = NULL;
		$row['n_108_distance_by'] = NULL;
		$row['n_109'] = NULL;
		$row['n_109_distance'] = NULL;
		$row['n_109_distance_by'] = NULL;
		$row['f_131_options'] = NULL;
		$row['f_131'] = NULL;
		$row['f_137_options'] = NULL;
		$row['f_137'] = NULL;
		$row['f_139_options'] = NULL;
		$row['f_139'] = NULL;
		$row['f_144_options'] = NULL;
		$row['f_144'] = NULL;
		$row['f_146_options'] = NULL;
		$row['f_146'] = NULL;
		$row['f_149_options'] = NULL;
		$row['f_149'] = NULL;
		$row['f_150_options'] = NULL;
		$row['f_150'] = NULL;
		$row['f_156_options'] = NULL;
		$row['f_156'] = NULL;
		$row['f_157_options'] = NULL;
		$row['f_157'] = NULL;
		$row['f_159_options'] = NULL;
		$row['f_159'] = NULL;
		$row['f_161_options'] = NULL;
		$row['f_161'] = NULL;
		$row['f_163_options'] = NULL;
		$row['f_163'] = NULL;
		$row['f_165_options'] = NULL;
		$row['f_165'] = NULL;
		$row['f_166_options'] = NULL;
		$row['f_166'] = NULL;
		$row['ref_id'] = NULL;
		$row['field_54'] = NULL;
		$row['half_bathrooms'] = NULL;
		$row['field_55'] = NULL;
		$row['rendered'] = NULL;
		$row['alias'] = NULL;
		$row['source'] = NULL;
		$row['last_sync_date'] = NULL;
		$row['street_suffix'] = NULL;
		$row['energy_tag'] = NULL;
		$row['field_3006'] = NULL;
		$row['field_3007'] = NULL;
		$row['field_3008'] = NULL;
		$row['importer_structure_id'] = NULL;
		$row['importer_params'] = NULL;
		$row['field_3009'] = NULL;
		$row['field_3010'] = NULL;
		$row['field_3012'] = NULL;
		$row['rendered_en_us'] = NULL;
		$row['textsearch_en_us'] = NULL;
		$row['rendered_fr_fr'] = NULL;
		$row['textsearch_fr_fr'] = NULL;
		$row['field_3013'] = NULL;
		$row['field_3014'] = NULL;
		$row['f_3014_options'] = NULL;
		$row['f_3014'] = NULL;
		$row['field_3015'] = NULL;
		$row['field_3016'] = NULL;
		$row['field_3017'] = NULL;
		$row['f_3018_options'] = NULL;
		$row['f_3018'] = NULL;
		$row['f_3019_options'] = NULL;
		$row['f_3019'] = NULL;
		$row['f_3020_options'] = NULL;
		$row['f_3020'] = NULL;
		$row['f_3021_options'] = NULL;
		$row['f_3021'] = NULL;
		$row['f_3022_options'] = NULL;
		$row['f_3022'] = NULL;
		$row['f_3023_options'] = NULL;
		$row['f_3023'] = NULL;
		$row['f_3024_options'] = NULL;
		$row['f_3024'] = NULL;
		$row['f_3025_options'] = NULL;
		$row['f_3025'] = NULL;
		$row['f_3026_options'] = NULL;
		$row['f_3026'] = NULL;
		$row['f_3027_options'] = NULL;
		$row['f_3027'] = NULL;
		$row['f_3028_options'] = NULL;
		$row['f_3028'] = NULL;
		$row['f_3029_options'] = NULL;
		$row['f_3029'] = NULL;
		$row['f_3031_options'] = NULL;
		$row['f_3031'] = NULL;
		$row['f_3032_options'] = NULL;
		$row['f_3032'] = NULL;
		$row['f_3033_options'] = NULL;
		$row['f_3033'] = NULL;
		$row['f_3034_options'] = NULL;
		$row['f_3034'] = NULL;
		$row['f_3035_options'] = NULL;
		$row['f_3035'] = NULL;
		$row['f_3036_options'] = NULL;
		$row['f_3036'] = NULL;
		$row['f_3037_options'] = NULL;
		$row['f_3037'] = NULL;
		$row['f_3038_options'] = NULL;
		$row['f_3038'] = NULL;
		$row['f_3039_options'] = NULL;
		$row['f_3039'] = NULL;
		$row['f_3040_options'] = NULL;
		$row['f_3040'] = NULL;
		$row['f_3041_options'] = NULL;
		$row['f_3041'] = NULL;
		$row['f_3042_options'] = NULL;
		$row['f_3042'] = NULL;
		$row['f_3043_options'] = NULL;
		$row['f_3043'] = NULL;
		$row['f_3044_options'] = NULL;
		$row['f_3044'] = NULL;
		$row['n_3045'] = NULL;
		$row['n_3045_distance'] = NULL;
		$row['n_3045_distance_by'] = NULL;
		$row['n_3046'] = NULL;
		$row['n_3046_distance'] = NULL;
		$row['n_3046_distance_by'] = NULL;
		$row['n_3047'] = NULL;
		$row['n_3047_distance'] = NULL;
		$row['n_3047_distance_by'] = NULL;
		$row['n_3048'] = NULL;
		$row['n_3048_distance'] = NULL;
		$row['n_3048_distance_by'] = NULL;
		$row['n_3049'] = NULL;
		$row['n_3049_distance'] = NULL;
		$row['n_3049_distance_by'] = NULL;
		$row['n_3050'] = NULL;
		$row['n_3050_distance'] = NULL;
		$row['n_3050_distance_by'] = NULL;
		$row['n_3051'] = NULL;
		$row['n_3051_distance'] = NULL;
		$row['n_3051_distance_by'] = NULL;
		$row['n_3052'] = NULL;
		$row['n_3052_distance'] = NULL;
		$row['n_3052_distance_by'] = NULL;
		$row['n_3053'] = NULL;
		$row['n_3053_distance'] = NULL;
		$row['n_3053_distance_by'] = NULL;
		$row['n_3054'] = NULL;
		$row['n_3054_distance'] = NULL;
		$row['n_3054_distance_by'] = NULL;
		$row['n_3055'] = NULL;
		$row['n_3055_distance'] = NULL;
		$row['n_3055_distance_by'] = NULL;
		$row['n_3056'] = NULL;
		$row['n_3056_distance'] = NULL;
		$row['n_3056_distance_by'] = NULL;
		$row['n_3057'] = NULL;
		$row['n_3057_distance'] = NULL;
		$row['n_3057_distance_by'] = NULL;
		$row['n_3058'] = NULL;
		$row['n_3058_distance'] = NULL;
		$row['n_3058_distance_by'] = NULL;
		$row['n_3059'] = NULL;
		$row['n_3059_distance'] = NULL;
		$row['n_3059_distance_by'] = NULL;
		$row['f_3060_options'] = NULL;
		$row['f_3060'] = NULL;
		$row['f_3061_options'] = NULL;
		$row['f_3061'] = NULL;
		$row['f_3062_options'] = NULL;
		$row['f_3062'] = NULL;
		$row['field_3063'] = NULL;
		$row['field_3064'] = NULL;
		$row['field_3065'] = NULL;
		$row['field_308'] = NULL;
		$row['field_308_en_us'] = NULL;
		$row['field_308_fr_fr'] = NULL;
		$row['field_313_en_us'] = NULL;
		$row['field_313_fr_fr'] = NULL;
		$row['field_312_en_us'] = NULL;
		$row['field_312_fr_fr'] = NULL;
		$row['field_3017_en_us'] = NULL;
		$row['field_3017_fr_fr'] = NULL;
		$row['field_42_en_us'] = NULL;
		$row['field_42_fr_fr'] = NULL;
		$row['field_3067'] = NULL;
		$row['field_3068'] = NULL;
		$row['field_3069'] = NULL;
		$row['field_3070'] = NULL;
		$row['field_3071'] = NULL;
		$row['field_3071_en_us'] = NULL;
		$row['field_3071_fr_fr'] = NULL;
		$row['field_3072'] = NULL;
		$row['field_3073'] = NULL;
		$row['field_3074'] = NULL;
		$row['field_3074_en_us'] = NULL;
		$row['field_3074_fr_fr'] = NULL;
		$row['field_3075'] = NULL;
		$row['field_3076'] = NULL;
		$row['field_3077'] = NULL;
		$row['field_3078'] = NULL;
		$row['field_3079'] = NULL;
		$row['field_3080'] = NULL;
		$row['field_3076_en_us'] = NULL;
		$row['field_3076_fr_fr'] = NULL;
		$row['field_3080_en_us'] = NULL;
		$row['field_3080_fr_fr'] = NULL;
		$row['field_3081'] = NULL;
		$row['field_3081_en_us'] = NULL;
		$row['field_3081_fr_fr'] = NULL;
		$row['field_3082'] = NULL;
		$row['field_3082_en_us'] = NULL;
		$row['field_3082_fr_fr'] = NULL;
		$row['field_3084'] = NULL;
		$row['field_3085'] = NULL;
		$row['field_3086'] = NULL;
		$row['field_3096'] = NULL;
		$row['field_3097'] = NULL;
		$row['field_3098'] = NULL;
		$row['field_3099'] = NULL;
		$row['field_3100'] = NULL;
		$row['field_3101'] = NULL;
		$row['field_3102'] = NULL;
		$row['field_3103'] = NULL;
		$row['field_3104'] = NULL;
		$row['field_3105'] = NULL;
		$row['field_3106'] = NULL;
		$row['field_3107'] = NULL;
		$row['field_3108'] = NULL;
		$row['field_3109'] = NULL;
		$row['field_3110'] = NULL;
		$row['field_3111'] = NULL;
		$row['field_3112'] = NULL;
		$row['field_3113'] = NULL;
		$row['field_3113_en_us'] = NULL;
		$row['field_3113_fr_fr'] = NULL;
		$row['field_3114'] = NULL;
		$row['field_3115'] = NULL;
		$row['field_3115_si'] = NULL;
		$row['field_3115_unit'] = NULL;
		$row['field_3116'] = NULL;
		$row['field_3117'] = NULL;
		$row['field_3117_en_us'] = NULL;
		$row['field_3117_fr_fr'] = NULL;
		$row['field_3118'] = NULL;
		$row['field_3118_en_us'] = NULL;
		$row['field_3118_fr_fr'] = NULL;
		$row['field_3119'] = NULL;
		$row['field_3119_en_us'] = NULL;
		$row['field_3119_fr_fr'] = NULL;
		$row['field_3120'] = NULL;
		$row['field_3120_en_us'] = NULL;
		$row['field_3120_fr_fr'] = NULL;
		$row['field_3121'] = NULL;
		$row['field_3122'] = NULL;
		$row['field_3122_si'] = NULL;
		$row['field_3122_unit'] = NULL;
		$row['field_3123'] = NULL;
		$row['field_3124'] = NULL;
		$row['field_3125'] = NULL;
		$row['field_3126'] = NULL;
		$row['field_3127'] = NULL;
		$row['field_3128'] = NULL;
		$row['field_3129'] = NULL;
		$row['field_3130'] = NULL;
		$row['field_3131'] = NULL;
		$row['field_3132'] = NULL;
		$row['field_3133'] = NULL;
		$row['field_3134'] = NULL;
		$row['field_3135'] = NULL;
		$row['field_3136'] = NULL;
		$row['field_3137'] = NULL;
		$row['field_3138'] = NULL;
		$row['field_3139'] = NULL;
		$row['field_3140'] = NULL;
		$row['field_3141'] = NULL;
		$row['field_3142'] = NULL;
		$row['field_3143'] = NULL;
		$row['field_3144'] = NULL;
		$row['field_3145'] = NULL;
		$row['field_3146'] = NULL;
		$row['field_3147'] = NULL;
		$row['field_3148'] = NULL;
		$row['field_3149'] = NULL;
		$row['field_3150'] = NULL;
		$row['field_3151'] = NULL;
		$row['field_3152'] = NULL;
		$row['field_3153'] = NULL;
		$row['field_3154'] = NULL;
		$row['field_3155'] = NULL;
		$row['field_3156'] = NULL;
		$row['field_3157'] = NULL;
		$row['field_3158'] = NULL;
		$row['field_3159'] = NULL;
		$row['field_3160'] = NULL;
		$row['field_3161'] = NULL;
		$row['field_3162'] = NULL;
		$row['field_3163'] = NULL;
		$row['field_3164'] = NULL;
		$row['field_3165'] = NULL;
		$row['field_3166'] = NULL;
		$row['field_3167'] = NULL;
		$row['field_3168'] = NULL;
		$row['field_3169'] = NULL;
		$row['field_3170'] = NULL;
		$row['field_3171'] = NULL;
		$row['field_3172'] = NULL;
		$row['field_3173'] = NULL;
		$row['field_3173_si'] = NULL;
		$row['field_3173_unit'] = NULL;
		$row['field_3180'] = NULL;
		$row['field_3180_en_us'] = NULL;
		$row['field_3180_fr_fr'] = NULL;
		$row['field_3181'] = NULL;
		$row['field_3182'] = NULL;
		$row['n_3189'] = NULL;
		$row['n_3189_distance'] = NULL;
		$row['n_3189_distance_by'] = NULL;
		$row['field_3190'] = NULL;
		$row['field_3192'] = NULL;
		$row['field_3193'] = NULL;
		$row['field_3195'] = NULL;
		$row['field_3114_en_us'] = NULL;
		$row['field_3114_fr_fr'] = NULL;
		$row['n_3196'] = NULL;
		$row['n_3196_distance'] = NULL;
		$row['n_3196_distance_by'] = NULL;
		$row['field_3197'] = NULL;
		$row['field_3197_si'] = NULL;
		$row['field_3197_unit'] = NULL;
		return $row;
	}

	// Load old record
	protected function loadOldRecord()
	{

		// Load key values from Session
		$validKey = TRUE;
		if (strval($this->getKey("id")) != "")
			$this->id->OldValue = $this->getKey("id"); // id
		else
			$validKey = FALSE;

		// Load old record
		$this->OldRecordset = NULL;
		if ($validKey) {
			$this->CurrentFilter = $this->getRecordFilter();
			$sql = $this->getCurrentSql();
			$conn = $this->getConnection();
			$this->OldRecordset = LoadRecordset($sql, $conn);
		}
		$this->loadRowValues($this->OldRecordset); // Load row values
		return $validKey;
	}

	// Render row values based on field settings
	public function renderRow()
	{
		global $Security, $Language, $CurrentLanguage;

		// Initialize URLs
		$this->ViewUrl = $this->getViewUrl();
		$this->EditUrl = $this->getEditUrl();
		$this->InlineEditUrl = $this->getInlineEditUrl();
		$this->CopyUrl = $this->getCopyUrl();
		$this->InlineCopyUrl = $this->getInlineCopyUrl();
		$this->DeleteUrl = $this->getDeleteUrl();

		// Convert decimal values if posted back
		if ($this->field_3197->FormValue == $this->field_3197->CurrentValue && is_numeric(ConvertToFloatString($this->field_3197->CurrentValue)))
			$this->field_3197->CurrentValue = ConvertToFloatString($this->field_3197->CurrentValue);

		// Convert decimal values if posted back
		if ($this->field_3197_si->FormValue == $this->field_3197_si->CurrentValue && is_numeric(ConvertToFloatString($this->field_3197_si->CurrentValue)))
			$this->field_3197_si->CurrentValue = ConvertToFloatString($this->field_3197_si->CurrentValue);

		// Call Row_Rendering event
		$this->Row_Rendering();

		// Common render codes for all row types
		// id
		// kind
		// deleted
		// mls_id
		// mls_id_num
		// parent
		// pic_numb
		// user_id
		// listing
		// property_type
		// location1_id
		// location2_id
		// location3_id
		// location4_id
		// location5_id
		// location6_id
		// location7_id
		// location1_name
		// location2_name
		// location3_name
		// location4_name
		// location5_name
		// location6_name
		// location7_name
		// show_address
		// show_marker
		// price
		// price_unit
		// price_si
		// price_period
		// bedrooms
		// rooms
		// bathrooms
		// living_area
		// living_area_unit
		// living_area_si
		// lot_area
		// lot_area_unit
		// lot_area_si
		// googlemap_lt
		// googlemap_ln
		// finalized
		// add_date
		// last_finalize_date
		// expire_days
		// confirmed
		// expired
		// build_year
		// zip_id
		// zip_name
		// last_modified_time_stamp
		// post_code
		// meta_description
		// meta_description_manual
		// meta_keywords
		// meta_keywords_manual
		// street_no
		// sp_featured
		// sp_hot
		// sp_openhouse
		// sp_forclosure
		// textsearch
		// location_text
		// field_42
		// field_312
		// field_313
		// field_7
		// n_103
		// n_103_distance
		// n_103_distance_by
		// n_105
		// n_105_distance
		// n_105_distance_by
		// n_107
		// n_107_distance
		// n_107_distance_by
		// n_108
		// n_108_distance
		// n_108_distance_by
		// n_109
		// n_109_distance
		// n_109_distance_by
		// f_131_options
		// f_131
		// f_137_options
		// f_137
		// f_139_options
		// f_139
		// f_144_options
		// f_144
		// f_146_options
		// f_146
		// f_149_options
		// f_149
		// f_150_options
		// f_150
		// f_156_options
		// f_156
		// f_157_options
		// f_157
		// f_159_options
		// f_159
		// f_161_options
		// f_161
		// f_163_options
		// f_163
		// f_165_options
		// f_165
		// f_166_options
		// f_166
		// ref_id
		// field_54
		// half_bathrooms
		// field_55
		// rendered
		// alias
		// source
		// last_sync_date
		// street_suffix
		// energy_tag
		// field_3006
		// field_3007
		// field_3008
		// importer_structure_id
		// importer_params
		// field_3009
		// field_3010
		// field_3012
		// rendered_en_us
		// textsearch_en_us
		// rendered_fr_fr
		// textsearch_fr_fr
		// field_3013
		// field_3014
		// f_3014_options
		// f_3014
		// field_3015
		// field_3016
		// field_3017
		// f_3018_options
		// f_3018
		// f_3019_options
		// f_3019
		// f_3020_options
		// f_3020
		// f_3021_options
		// f_3021
		// f_3022_options
		// f_3022
		// f_3023_options
		// f_3023
		// f_3024_options
		// f_3024
		// f_3025_options
		// f_3025
		// f_3026_options
		// f_3026
		// f_3027_options
		// f_3027
		// f_3028_options
		// f_3028
		// f_3029_options
		// f_3029
		// f_3031_options
		// f_3031
		// f_3032_options
		// f_3032
		// f_3033_options
		// f_3033
		// f_3034_options
		// f_3034
		// f_3035_options
		// f_3035
		// f_3036_options
		// f_3036
		// f_3037_options
		// f_3037
		// f_3038_options
		// f_3038
		// f_3039_options
		// f_3039
		// f_3040_options
		// f_3040
		// f_3041_options
		// f_3041
		// f_3042_options
		// f_3042
		// f_3043_options
		// f_3043
		// f_3044_options
		// f_3044
		// n_3045
		// n_3045_distance
		// n_3045_distance_by
		// n_3046
		// n_3046_distance
		// n_3046_distance_by
		// n_3047
		// n_3047_distance
		// n_3047_distance_by
		// n_3048
		// n_3048_distance
		// n_3048_distance_by
		// n_3049
		// n_3049_distance
		// n_3049_distance_by
		// n_3050
		// n_3050_distance
		// n_3050_distance_by
		// n_3051
		// n_3051_distance
		// n_3051_distance_by
		// n_3052
		// n_3052_distance
		// n_3052_distance_by
		// n_3053
		// n_3053_distance
		// n_3053_distance_by
		// n_3054
		// n_3054_distance
		// n_3054_distance_by
		// n_3055
		// n_3055_distance
		// n_3055_distance_by
		// n_3056
		// n_3056_distance
		// n_3056_distance_by
		// n_3057
		// n_3057_distance
		// n_3057_distance_by
		// n_3058
		// n_3058_distance
		// n_3058_distance_by
		// n_3059
		// n_3059_distance
		// n_3059_distance_by
		// f_3060_options
		// f_3060
		// f_3061_options
		// f_3061
		// f_3062_options
		// f_3062
		// field_3063
		// field_3064
		// field_3065
		// field_308
		// field_308_en_us
		// field_308_fr_fr
		// field_313_en_us
		// field_313_fr_fr
		// field_312_en_us
		// field_312_fr_fr
		// field_3017_en_us
		// field_3017_fr_fr
		// field_42_en_us
		// field_42_fr_fr
		// field_3067
		// field_3068
		// field_3069
		// field_3070
		// field_3071
		// field_3071_en_us
		// field_3071_fr_fr
		// field_3072
		// field_3073
		// field_3074
		// field_3074_en_us
		// field_3074_fr_fr
		// field_3075
		// field_3076
		// field_3077
		// field_3078
		// field_3079
		// field_3080
		// field_3076_en_us
		// field_3076_fr_fr
		// field_3080_en_us
		// field_3080_fr_fr
		// field_3081
		// field_3081_en_us
		// field_3081_fr_fr
		// field_3082
		// field_3082_en_us
		// field_3082_fr_fr
		// field_3084
		// field_3085
		// field_3086
		// field_3096
		// field_3097
		// field_3098
		// field_3099
		// field_3100
		// field_3101
		// field_3102
		// field_3103
		// field_3104
		// field_3105
		// field_3106
		// field_3107
		// field_3108
		// field_3109
		// field_3110
		// field_3111
		// field_3112
		// field_3113
		// field_3113_en_us
		// field_3113_fr_fr
		// field_3114
		// field_3115
		// field_3115_si
		// field_3115_unit
		// field_3116
		// field_3117
		// field_3117_en_us
		// field_3117_fr_fr
		// field_3118
		// field_3118_en_us
		// field_3118_fr_fr
		// field_3119
		// field_3119_en_us
		// field_3119_fr_fr
		// field_3120
		// field_3120_en_us
		// field_3120_fr_fr
		// field_3121
		// field_3122
		// field_3122_si
		// field_3122_unit
		// field_3123
		// field_3124
		// field_3125
		// field_3126
		// field_3127
		// field_3128
		// field_3129
		// field_3130
		// field_3131
		// field_3132
		// field_3133
		// field_3134
		// field_3135
		// field_3136
		// field_3137
		// field_3138
		// field_3139
		// field_3140
		// field_3141
		// field_3142
		// field_3143
		// field_3144
		// field_3145
		// field_3146
		// field_3147
		// field_3148
		// field_3149
		// field_3150
		// field_3151
		// field_3152
		// field_3153
		// field_3154
		// field_3155
		// field_3156
		// field_3157
		// field_3158
		// field_3159
		// field_3160
		// field_3161
		// field_3162
		// field_3163
		// field_3164
		// field_3165
		// field_3166
		// field_3167
		// field_3168
		// field_3169
		// field_3170
		// field_3171
		// field_3172
		// field_3173
		// field_3173_si
		// field_3173_unit
		// field_3180
		// field_3180_en_us
		// field_3180_fr_fr
		// field_3181
		// field_3182
		// n_3189
		// n_3189_distance
		// n_3189_distance_by
		// field_3190
		// field_3192
		// field_3193
		// field_3195
		// field_3114_en_us
		// field_3114_fr_fr
		// n_3196
		// n_3196_distance
		// n_3196_distance_by
		// field_3197
		// field_3197_si
		// field_3197_unit

		if ($this->RowType == ROWTYPE_VIEW) { // View row

			// id
			$this->id->ViewValue = $this->id->CurrentValue;
			$this->id->ViewCustomAttributes = "";

			// kind
			$this->kind->ViewValue = $this->kind->CurrentValue;
			$this->kind->ViewValue = FormatNumber($this->kind->ViewValue, 0, -2, -2, -2);
			$this->kind->ViewCustomAttributes = "";

			// deleted
			if (ConvertToBool($this->deleted->CurrentValue)) {
				$this->deleted->ViewValue = $this->deleted->tagCaption(1) != "" ? $this->deleted->tagCaption(1) : "Yes";
			} else {
				$this->deleted->ViewValue = $this->deleted->tagCaption(2) != "" ? $this->deleted->tagCaption(2) : "No";
			}
			$this->deleted->ViewCustomAttributes = "";

			// mls_id
			$this->mls_id->ViewValue = $this->mls_id->CurrentValue;
			$this->mls_id->ViewCustomAttributes = "";

			// mls_id_num
			$this->mls_id_num->ViewValue = $this->mls_id_num->CurrentValue;
			$this->mls_id_num->ViewValue = FormatNumber($this->mls_id_num->ViewValue, 0, -2, -2, -2);
			$this->mls_id_num->ViewCustomAttributes = "";

			// parent
			$this->parent->ViewValue = $this->parent->CurrentValue;
			$this->parent->ViewValue = FormatNumber($this->parent->ViewValue, 0, -2, -2, -2);
			$this->parent->ViewCustomAttributes = "";

			// pic_numb
			$this->pic_numb->ViewValue = $this->pic_numb->CurrentValue;
			$this->pic_numb->ViewValue = FormatNumber($this->pic_numb->ViewValue, 0, -2, -2, -2);
			$this->pic_numb->ViewCustomAttributes = "";

			// user_id
			$this->user_id->ViewValue = $this->user_id->CurrentValue;
			$this->user_id->ViewValue = FormatNumber($this->user_id->ViewValue, 0, -2, -2, -2);
			$this->user_id->ViewCustomAttributes = "";

			// listing
			$this->listing->ViewValue = $this->listing->CurrentValue;
			$this->listing->ViewValue = FormatNumber($this->listing->ViewValue, 0, -2, -2, -2);
			$this->listing->ViewCustomAttributes = "";

			// property_type
			$this->property_type->ViewValue = $this->property_type->CurrentValue;
			$this->property_type->ViewValue = FormatNumber($this->property_type->ViewValue, 0, -2, -2, -2);
			$this->property_type->ViewCustomAttributes = "";

			// location1_id
			$this->location1_id->ViewValue = $this->location1_id->CurrentValue;
			$this->location1_id->ViewValue = FormatNumber($this->location1_id->ViewValue, 0, -2, -2, -2);
			$this->location1_id->ViewCustomAttributes = "";

			// location2_id
			$this->location2_id->ViewValue = $this->location2_id->CurrentValue;
			$this->location2_id->ViewValue = FormatNumber($this->location2_id->ViewValue, 0, -2, -2, -2);
			$this->location2_id->ViewCustomAttributes = "";

			// location3_id
			$this->location3_id->ViewValue = $this->location3_id->CurrentValue;
			$this->location3_id->ViewValue = FormatNumber($this->location3_id->ViewValue, 0, -2, -2, -2);
			$this->location3_id->ViewCustomAttributes = "";

			// location4_id
			$this->location4_id->ViewValue = $this->location4_id->CurrentValue;
			$this->location4_id->ViewValue = FormatNumber($this->location4_id->ViewValue, 0, -2, -2, -2);
			$this->location4_id->ViewCustomAttributes = "";

			// location5_id
			$this->location5_id->ViewValue = $this->location5_id->CurrentValue;
			$this->location5_id->ViewValue = FormatNumber($this->location5_id->ViewValue, 0, -2, -2, -2);
			$this->location5_id->ViewCustomAttributes = "";

			// location6_id
			$this->location6_id->ViewValue = $this->location6_id->CurrentValue;
			$this->location6_id->ViewValue = FormatNumber($this->location6_id->ViewValue, 0, -2, -2, -2);
			$this->location6_id->ViewCustomAttributes = "";

			// location7_id
			$this->location7_id->ViewValue = $this->location7_id->CurrentValue;
			$this->location7_id->ViewValue = FormatNumber($this->location7_id->ViewValue, 0, -2, -2, -2);
			$this->location7_id->ViewCustomAttributes = "";

			// location1_name
			$this->location1_name->ViewValue = $this->location1_name->CurrentValue;
			$this->location1_name->ViewCustomAttributes = "";

			// location2_name
			$this->location2_name->ViewValue = $this->location2_name->CurrentValue;
			$this->location2_name->ViewCustomAttributes = "";

			// location3_name
			$this->location3_name->ViewValue = $this->location3_name->CurrentValue;
			$this->location3_name->ViewCustomAttributes = "";

			// location4_name
			$this->location4_name->ViewValue = $this->location4_name->CurrentValue;
			$this->location4_name->ViewCustomAttributes = "";

			// location5_name
			$this->location5_name->ViewValue = $this->location5_name->CurrentValue;
			$this->location5_name->ViewCustomAttributes = "";

			// location6_name
			$this->location6_name->ViewValue = $this->location6_name->CurrentValue;
			$this->location6_name->ViewCustomAttributes = "";

			// location7_name
			$this->location7_name->ViewValue = $this->location7_name->CurrentValue;
			$this->location7_name->ViewCustomAttributes = "";

			// show_address
			$this->show_address->ViewValue = $this->show_address->CurrentValue;
			$this->show_address->ViewValue = FormatNumber($this->show_address->ViewValue, 0, -2, -2, -2);
			$this->show_address->ViewCustomAttributes = "";

			// show_marker
			$this->show_marker->ViewValue = $this->show_marker->CurrentValue;
			$this->show_marker->ViewValue = FormatNumber($this->show_marker->ViewValue, 0, -2, -2, -2);
			$this->show_marker->ViewCustomAttributes = "";

			// price
			$this->price->ViewValue = $this->price->CurrentValue;
			$this->price->ViewValue = FormatNumber($this->price->ViewValue, 2, -2, -2, -2);
			$this->price->ViewCustomAttributes = "";

			// price_unit
			$this->price_unit->ViewValue = $this->price_unit->CurrentValue;
			$this->price_unit->ViewValue = FormatNumber($this->price_unit->ViewValue, 0, -2, -2, -2);
			$this->price_unit->ViewCustomAttributes = "";

			// price_si
			$this->price_si->ViewValue = $this->price_si->CurrentValue;
			$this->price_si->ViewValue = FormatNumber($this->price_si->ViewValue, 2, -2, -2, -2);
			$this->price_si->ViewCustomAttributes = "";

			// price_period
			$this->price_period->ViewValue = $this->price_period->CurrentValue;
			$this->price_period->ViewValue = FormatNumber($this->price_period->ViewValue, 0, -2, -2, -2);
			$this->price_period->ViewCustomAttributes = "";

			// bedrooms
			$this->bedrooms->ViewValue = $this->bedrooms->CurrentValue;
			$this->bedrooms->ViewValue = FormatNumber($this->bedrooms->ViewValue, 2, -2, -2, -2);
			$this->bedrooms->ViewCustomAttributes = "";

			// rooms
			$this->rooms->ViewValue = $this->rooms->CurrentValue;
			$this->rooms->ViewValue = FormatNumber($this->rooms->ViewValue, 2, -2, -2, -2);
			$this->rooms->ViewCustomAttributes = "";

			// bathrooms
			$this->bathrooms->ViewValue = $this->bathrooms->CurrentValue;
			$this->bathrooms->ViewValue = FormatNumber($this->bathrooms->ViewValue, 2, -2, -2, -2);
			$this->bathrooms->ViewCustomAttributes = "";

			// living_area
			$this->living_area->ViewValue = $this->living_area->CurrentValue;
			$this->living_area->ViewValue = FormatNumber($this->living_area->ViewValue, 2, -2, -2, -2);
			$this->living_area->ViewCustomAttributes = "";

			// living_area_unit
			$this->living_area_unit->ViewValue = $this->living_area_unit->CurrentValue;
			$this->living_area_unit->ViewValue = FormatNumber($this->living_area_unit->ViewValue, 0, -2, -2, -2);
			$this->living_area_unit->ViewCustomAttributes = "";

			// living_area_si
			$this->living_area_si->ViewValue = $this->living_area_si->CurrentValue;
			$this->living_area_si->ViewValue = FormatNumber($this->living_area_si->ViewValue, 2, -2, -2, -2);
			$this->living_area_si->ViewCustomAttributes = "";

			// lot_area
			$this->lot_area->ViewValue = $this->lot_area->CurrentValue;
			$this->lot_area->ViewValue = FormatNumber($this->lot_area->ViewValue, 2, -2, -2, -2);
			$this->lot_area->ViewCustomAttributes = "";

			// lot_area_unit
			$this->lot_area_unit->ViewValue = $this->lot_area_unit->CurrentValue;
			$this->lot_area_unit->ViewValue = FormatNumber($this->lot_area_unit->ViewValue, 0, -2, -2, -2);
			$this->lot_area_unit->ViewCustomAttributes = "";

			// lot_area_si
			$this->lot_area_si->ViewValue = $this->lot_area_si->CurrentValue;
			$this->lot_area_si->ViewValue = FormatNumber($this->lot_area_si->ViewValue, 2, -2, -2, -2);
			$this->lot_area_si->ViewCustomAttributes = "";

			// googlemap_lt
			$this->googlemap_lt->ViewValue = $this->googlemap_lt->CurrentValue;
			$this->googlemap_lt->ViewValue = FormatNumber($this->googlemap_lt->ViewValue, 2, -2, -2, -2);
			$this->googlemap_lt->ViewCustomAttributes = "";

			// googlemap_ln
			$this->googlemap_ln->ViewValue = $this->googlemap_ln->CurrentValue;
			$this->googlemap_ln->ViewValue = FormatNumber($this->googlemap_ln->ViewValue, 2, -2, -2, -2);
			$this->googlemap_ln->ViewCustomAttributes = "";

			// finalized
			$this->finalized->ViewValue = $this->finalized->CurrentValue;
			$this->finalized->ViewValue = FormatNumber($this->finalized->ViewValue, 0, -2, -2, -2);
			$this->finalized->ViewCustomAttributes = "";

			// add_date
			$this->add_date->ViewValue = $this->add_date->CurrentValue;
			$this->add_date->ViewValue = FormatDateTime($this->add_date->ViewValue, 0);
			$this->add_date->ViewCustomAttributes = "";

			// last_finalize_date
			$this->last_finalize_date->ViewValue = $this->last_finalize_date->CurrentValue;
			$this->last_finalize_date->ViewValue = FormatDateTime($this->last_finalize_date->ViewValue, 0);
			$this->last_finalize_date->ViewCustomAttributes = "";

			// expire_days
			$this->expire_days->ViewValue = $this->expire_days->CurrentValue;
			$this->expire_days->ViewValue = FormatNumber($this->expire_days->ViewValue, 0, -2, -2, -2);
			$this->expire_days->ViewCustomAttributes = "";

			// confirmed
			$this->confirmed->ViewValue = $this->confirmed->CurrentValue;
			$this->confirmed->ViewValue = FormatNumber($this->confirmed->ViewValue, 0, -2, -2, -2);
			$this->confirmed->ViewCustomAttributes = "";

			// expired
			$this->expired->ViewValue = $this->expired->CurrentValue;
			$this->expired->ViewValue = FormatNumber($this->expired->ViewValue, 0, -2, -2, -2);
			$this->expired->ViewCustomAttributes = "";

			// build_year
			$this->build_year->ViewValue = $this->build_year->CurrentValue;
			$this->build_year->ViewValue = FormatNumber($this->build_year->ViewValue, 0, -2, -2, -2);
			$this->build_year->ViewCustomAttributes = "";

			// zip_id
			$this->zip_id->ViewValue = $this->zip_id->CurrentValue;
			$this->zip_id->ViewValue = FormatNumber($this->zip_id->ViewValue, 0, -2, -2, -2);
			$this->zip_id->ViewCustomAttributes = "";

			// zip_name
			$this->zip_name->ViewValue = $this->zip_name->CurrentValue;
			$this->zip_name->ViewCustomAttributes = "";

			// last_modified_time_stamp
			$this->last_modified_time_stamp->ViewValue = $this->last_modified_time_stamp->CurrentValue;
			$this->last_modified_time_stamp->ViewValue = FormatDateTime($this->last_modified_time_stamp->ViewValue, 0);
			$this->last_modified_time_stamp->ViewCustomAttributes = "";

			// post_code
			$this->post_code->ViewValue = $this->post_code->CurrentValue;
			$this->post_code->ViewCustomAttributes = "";

			// meta_description_manual
			$this->meta_description_manual->ViewValue = $this->meta_description_manual->CurrentValue;
			$this->meta_description_manual->ViewValue = FormatNumber($this->meta_description_manual->ViewValue, 0, -2, -2, -2);
			$this->meta_description_manual->ViewCustomAttributes = "";

			// meta_keywords_manual
			$this->meta_keywords_manual->ViewValue = $this->meta_keywords_manual->CurrentValue;
			$this->meta_keywords_manual->ViewValue = FormatNumber($this->meta_keywords_manual->ViewValue, 0, -2, -2, -2);
			$this->meta_keywords_manual->ViewCustomAttributes = "";

			// street_no
			$this->street_no->ViewValue = $this->street_no->CurrentValue;
			$this->street_no->ViewCustomAttributes = "";

			// sp_featured
			$this->sp_featured->ViewValue = $this->sp_featured->CurrentValue;
			$this->sp_featured->ViewValue = FormatNumber($this->sp_featured->ViewValue, 0, -2, -2, -2);
			$this->sp_featured->ViewCustomAttributes = "";

			// sp_hot
			$this->sp_hot->ViewValue = $this->sp_hot->CurrentValue;
			$this->sp_hot->ViewValue = FormatNumber($this->sp_hot->ViewValue, 0, -2, -2, -2);
			$this->sp_hot->ViewCustomAttributes = "";

			// sp_openhouse
			$this->sp_openhouse->ViewValue = $this->sp_openhouse->CurrentValue;
			$this->sp_openhouse->ViewValue = FormatNumber($this->sp_openhouse->ViewValue, 0, -2, -2, -2);
			$this->sp_openhouse->ViewCustomAttributes = "";

			// sp_forclosure
			$this->sp_forclosure->ViewValue = $this->sp_forclosure->CurrentValue;
			$this->sp_forclosure->ViewValue = FormatNumber($this->sp_forclosure->ViewValue, 0, -2, -2, -2);
			$this->sp_forclosure->ViewCustomAttributes = "";

			// location_text
			$this->location_text->ViewValue = $this->location_text->CurrentValue;
			$this->location_text->ViewCustomAttributes = "";

			// field_42
			$this->field_42->ViewValue = $this->field_42->CurrentValue;
			$this->field_42->ViewCustomAttributes = "";

			// field_312
			$this->field_312->ViewValue = $this->field_312->CurrentValue;
			$this->field_312->ViewCustomAttributes = "";

			// field_313
			$this->field_313->ViewValue = $this->field_313->CurrentValue;
			$this->field_313->ViewCustomAttributes = "";

			// field_7
			$this->field_7->ViewValue = $this->field_7->CurrentValue;
			$this->field_7->ViewValue = FormatNumber($this->field_7->ViewValue, 0, -2, -2, -2);
			$this->field_7->ViewCustomAttributes = "";

			// n_103
			$this->n_103->ViewValue = $this->n_103->CurrentValue;
			$this->n_103->ViewValue = FormatNumber($this->n_103->ViewValue, 0, -2, -2, -2);
			$this->n_103->ViewCustomAttributes = "";

			// n_103_distance
			$this->n_103_distance->ViewValue = $this->n_103_distance->CurrentValue;
			$this->n_103_distance->ViewValue = FormatNumber($this->n_103_distance->ViewValue, 0, -2, -2, -2);
			$this->n_103_distance->ViewCustomAttributes = "";

			// n_103_distance_by
			$this->n_103_distance_by->ViewValue = $this->n_103_distance_by->CurrentValue;
			$this->n_103_distance_by->ViewValue = FormatNumber($this->n_103_distance_by->ViewValue, 0, -2, -2, -2);
			$this->n_103_distance_by->ViewCustomAttributes = "";

			// n_105
			$this->n_105->ViewValue = $this->n_105->CurrentValue;
			$this->n_105->ViewValue = FormatNumber($this->n_105->ViewValue, 0, -2, -2, -2);
			$this->n_105->ViewCustomAttributes = "";

			// n_105_distance
			$this->n_105_distance->ViewValue = $this->n_105_distance->CurrentValue;
			$this->n_105_distance->ViewValue = FormatNumber($this->n_105_distance->ViewValue, 0, -2, -2, -2);
			$this->n_105_distance->ViewCustomAttributes = "";

			// n_105_distance_by
			$this->n_105_distance_by->ViewValue = $this->n_105_distance_by->CurrentValue;
			$this->n_105_distance_by->ViewValue = FormatNumber($this->n_105_distance_by->ViewValue, 0, -2, -2, -2);
			$this->n_105_distance_by->ViewCustomAttributes = "";

			// n_107
			$this->n_107->ViewValue = $this->n_107->CurrentValue;
			$this->n_107->ViewValue = FormatNumber($this->n_107->ViewValue, 0, -2, -2, -2);
			$this->n_107->ViewCustomAttributes = "";

			// n_107_distance
			$this->n_107_distance->ViewValue = $this->n_107_distance->CurrentValue;
			$this->n_107_distance->ViewValue = FormatNumber($this->n_107_distance->ViewValue, 0, -2, -2, -2);
			$this->n_107_distance->ViewCustomAttributes = "";

			// n_107_distance_by
			$this->n_107_distance_by->ViewValue = $this->n_107_distance_by->CurrentValue;
			$this->n_107_distance_by->ViewValue = FormatNumber($this->n_107_distance_by->ViewValue, 0, -2, -2, -2);
			$this->n_107_distance_by->ViewCustomAttributes = "";

			// n_108
			$this->n_108->ViewValue = $this->n_108->CurrentValue;
			$this->n_108->ViewValue = FormatNumber($this->n_108->ViewValue, 0, -2, -2, -2);
			$this->n_108->ViewCustomAttributes = "";

			// n_108_distance
			$this->n_108_distance->ViewValue = $this->n_108_distance->CurrentValue;
			$this->n_108_distance->ViewValue = FormatNumber($this->n_108_distance->ViewValue, 0, -2, -2, -2);
			$this->n_108_distance->ViewCustomAttributes = "";

			// n_108_distance_by
			$this->n_108_distance_by->ViewValue = $this->n_108_distance_by->CurrentValue;
			$this->n_108_distance_by->ViewValue = FormatNumber($this->n_108_distance_by->ViewValue, 0, -2, -2, -2);
			$this->n_108_distance_by->ViewCustomAttributes = "";

			// n_109
			$this->n_109->ViewValue = $this->n_109->CurrentValue;
			$this->n_109->ViewValue = FormatNumber($this->n_109->ViewValue, 0, -2, -2, -2);
			$this->n_109->ViewCustomAttributes = "";

			// n_109_distance
			$this->n_109_distance->ViewValue = $this->n_109_distance->CurrentValue;
			$this->n_109_distance->ViewValue = FormatNumber($this->n_109_distance->ViewValue, 0, -2, -2, -2);
			$this->n_109_distance->ViewCustomAttributes = "";

			// n_109_distance_by
			$this->n_109_distance_by->ViewValue = $this->n_109_distance_by->CurrentValue;
			$this->n_109_distance_by->ViewValue = FormatNumber($this->n_109_distance_by->ViewValue, 0, -2, -2, -2);
			$this->n_109_distance_by->ViewCustomAttributes = "";

			// f_131
			$this->f_131->ViewValue = $this->f_131->CurrentValue;
			$this->f_131->ViewValue = FormatNumber($this->f_131->ViewValue, 0, -2, -2, -2);
			$this->f_131->ViewCustomAttributes = "";

			// f_137
			$this->f_137->ViewValue = $this->f_137->CurrentValue;
			$this->f_137->ViewValue = FormatNumber($this->f_137->ViewValue, 0, -2, -2, -2);
			$this->f_137->ViewCustomAttributes = "";

			// f_139
			$this->f_139->ViewValue = $this->f_139->CurrentValue;
			$this->f_139->ViewValue = FormatNumber($this->f_139->ViewValue, 0, -2, -2, -2);
			$this->f_139->ViewCustomAttributes = "";

			// f_144
			$this->f_144->ViewValue = $this->f_144->CurrentValue;
			$this->f_144->ViewValue = FormatNumber($this->f_144->ViewValue, 0, -2, -2, -2);
			$this->f_144->ViewCustomAttributes = "";

			// f_146
			$this->f_146->ViewValue = $this->f_146->CurrentValue;
			$this->f_146->ViewValue = FormatNumber($this->f_146->ViewValue, 0, -2, -2, -2);
			$this->f_146->ViewCustomAttributes = "";

			// f_149
			$this->f_149->ViewValue = $this->f_149->CurrentValue;
			$this->f_149->ViewValue = FormatNumber($this->f_149->ViewValue, 0, -2, -2, -2);
			$this->f_149->ViewCustomAttributes = "";

			// f_150
			$this->f_150->ViewValue = $this->f_150->CurrentValue;
			$this->f_150->ViewValue = FormatNumber($this->f_150->ViewValue, 0, -2, -2, -2);
			$this->f_150->ViewCustomAttributes = "";

			// f_156
			$this->f_156->ViewValue = $this->f_156->CurrentValue;
			$this->f_156->ViewValue = FormatNumber($this->f_156->ViewValue, 0, -2, -2, -2);
			$this->f_156->ViewCustomAttributes = "";

			// f_157
			$this->f_157->ViewValue = $this->f_157->CurrentValue;
			$this->f_157->ViewValue = FormatNumber($this->f_157->ViewValue, 0, -2, -2, -2);
			$this->f_157->ViewCustomAttributes = "";

			// f_159
			$this->f_159->ViewValue = $this->f_159->CurrentValue;
			$this->f_159->ViewValue = FormatNumber($this->f_159->ViewValue, 0, -2, -2, -2);
			$this->f_159->ViewCustomAttributes = "";

			// f_161
			$this->f_161->ViewValue = $this->f_161->CurrentValue;
			$this->f_161->ViewValue = FormatNumber($this->f_161->ViewValue, 0, -2, -2, -2);
			$this->f_161->ViewCustomAttributes = "";

			// f_163
			$this->f_163->ViewValue = $this->f_163->CurrentValue;
			$this->f_163->ViewValue = FormatNumber($this->f_163->ViewValue, 0, -2, -2, -2);
			$this->f_163->ViewCustomAttributes = "";

			// f_165
			$this->f_165->ViewValue = $this->f_165->CurrentValue;
			$this->f_165->ViewValue = FormatNumber($this->f_165->ViewValue, 0, -2, -2, -2);
			$this->f_165->ViewCustomAttributes = "";

			// f_166
			$this->f_166->ViewValue = $this->f_166->CurrentValue;
			$this->f_166->ViewValue = FormatNumber($this->f_166->ViewValue, 0, -2, -2, -2);
			$this->f_166->ViewCustomAttributes = "";

			// ref_id
			$this->ref_id->ViewValue = $this->ref_id->CurrentValue;
			$this->ref_id->ViewCustomAttributes = "";

			// field_54
			$this->field_54->ViewValue = $this->field_54->CurrentValue;
			$this->field_54->ViewCustomAttributes = "";

			// half_bathrooms
			$this->half_bathrooms->ViewValue = $this->half_bathrooms->CurrentValue;
			$this->half_bathrooms->ViewValue = FormatNumber($this->half_bathrooms->ViewValue, 2, -2, -2, -2);
			$this->half_bathrooms->ViewCustomAttributes = "";

			// field_55
			$this->field_55->ViewValue = $this->field_55->CurrentValue;
			$this->field_55->ViewValue = FormatNumber($this->field_55->ViewValue, 2, -2, -2, -2);
			$this->field_55->ViewCustomAttributes = "";

			// source
			$this->source->ViewValue = $this->source->CurrentValue;
			$this->source->ViewCustomAttributes = "";

			// last_sync_date
			$this->last_sync_date->ViewValue = $this->last_sync_date->CurrentValue;
			$this->last_sync_date->ViewValue = FormatDateTime($this->last_sync_date->ViewValue, 0);
			$this->last_sync_date->ViewCustomAttributes = "";

			// street_suffix
			$this->street_suffix->ViewValue = $this->street_suffix->CurrentValue;
			$this->street_suffix->ViewCustomAttributes = "";

			// energy_tag
			$this->energy_tag->ViewValue = $this->energy_tag->CurrentValue;
			$this->energy_tag->ViewValue = FormatNumber($this->energy_tag->ViewValue, 0, -2, -2, -2);
			$this->energy_tag->ViewCustomAttributes = "";

			// field_3006
			$this->field_3006->ViewValue = $this->field_3006->CurrentValue;
			$this->field_3006->ViewCustomAttributes = "";

			// field_3007
			$this->field_3007->ViewValue = $this->field_3007->CurrentValue;
			$this->field_3007->ViewCustomAttributes = "";

			// field_3008
			$this->field_3008->ViewValue = $this->field_3008->CurrentValue;
			$this->field_3008->ViewCustomAttributes = "";

			// importer_structure_id
			$this->importer_structure_id->ViewValue = $this->importer_structure_id->CurrentValue;
			$this->importer_structure_id->ViewValue = FormatNumber($this->importer_structure_id->ViewValue, 0, -2, -2, -2);
			$this->importer_structure_id->ViewCustomAttributes = "";

			// field_3009
			$this->field_3009->ViewValue = $this->field_3009->CurrentValue;
			$this->field_3009->ViewCustomAttributes = "";

			// field_3010
			$this->field_3010->ViewValue = $this->field_3010->CurrentValue;
			$this->field_3010->ViewCustomAttributes = "";

			// field_3012
			$this->field_3012->ViewValue = $this->field_3012->CurrentValue;
			$this->field_3012->ViewValue = FormatNumber($this->field_3012->ViewValue, 0, -2, -2, -2);
			$this->field_3012->ViewCustomAttributes = "";

			// field_3013
			$this->field_3013->ViewValue = $this->field_3013->CurrentValue;
			$this->field_3013->ViewValue = FormatNumber($this->field_3013->ViewValue, 0, -2, -2, -2);
			$this->field_3013->ViewCustomAttributes = "";

			// field_3014
			$this->field_3014->ViewValue = $this->field_3014->CurrentValue;
			$this->field_3014->ViewValue = FormatNumber($this->field_3014->ViewValue, 0, -2, -2, -2);
			$this->field_3014->ViewCustomAttributes = "";

			// f_3014
			$this->f_3014->ViewValue = $this->f_3014->CurrentValue;
			$this->f_3014->ViewValue = FormatNumber($this->f_3014->ViewValue, 0, -2, -2, -2);
			$this->f_3014->ViewCustomAttributes = "";

			// field_3015
			$this->field_3015->ViewValue = $this->field_3015->CurrentValue;
			$this->field_3015->ViewCustomAttributes = "";

			// field_3016
			$this->field_3016->ViewValue = $this->field_3016->CurrentValue;
			$this->field_3016->ViewValue = FormatNumber($this->field_3016->ViewValue, 0, -2, -2, -2);
			$this->field_3016->ViewCustomAttributes = "";

			// f_3018
			$this->f_3018->ViewValue = $this->f_3018->CurrentValue;
			$this->f_3018->ViewValue = FormatNumber($this->f_3018->ViewValue, 0, -2, -2, -2);
			$this->f_3018->ViewCustomAttributes = "";

			// f_3019
			$this->f_3019->ViewValue = $this->f_3019->CurrentValue;
			$this->f_3019->ViewValue = FormatNumber($this->f_3019->ViewValue, 0, -2, -2, -2);
			$this->f_3019->ViewCustomAttributes = "";

			// f_3020
			$this->f_3020->ViewValue = $this->f_3020->CurrentValue;
			$this->f_3020->ViewValue = FormatNumber($this->f_3020->ViewValue, 0, -2, -2, -2);
			$this->f_3020->ViewCustomAttributes = "";

			// f_3021
			$this->f_3021->ViewValue = $this->f_3021->CurrentValue;
			$this->f_3021->ViewValue = FormatNumber($this->f_3021->ViewValue, 0, -2, -2, -2);
			$this->f_3021->ViewCustomAttributes = "";

			// f_3022
			$this->f_3022->ViewValue = $this->f_3022->CurrentValue;
			$this->f_3022->ViewValue = FormatNumber($this->f_3022->ViewValue, 0, -2, -2, -2);
			$this->f_3022->ViewCustomAttributes = "";

			// f_3023
			$this->f_3023->ViewValue = $this->f_3023->CurrentValue;
			$this->f_3023->ViewValue = FormatNumber($this->f_3023->ViewValue, 0, -2, -2, -2);
			$this->f_3023->ViewCustomAttributes = "";

			// f_3024
			$this->f_3024->ViewValue = $this->f_3024->CurrentValue;
			$this->f_3024->ViewValue = FormatNumber($this->f_3024->ViewValue, 0, -2, -2, -2);
			$this->f_3024->ViewCustomAttributes = "";

			// f_3025
			$this->f_3025->ViewValue = $this->f_3025->CurrentValue;
			$this->f_3025->ViewValue = FormatNumber($this->f_3025->ViewValue, 0, -2, -2, -2);
			$this->f_3025->ViewCustomAttributes = "";

			// f_3026
			$this->f_3026->ViewValue = $this->f_3026->CurrentValue;
			$this->f_3026->ViewValue = FormatNumber($this->f_3026->ViewValue, 0, -2, -2, -2);
			$this->f_3026->ViewCustomAttributes = "";

			// f_3027
			$this->f_3027->ViewValue = $this->f_3027->CurrentValue;
			$this->f_3027->ViewValue = FormatNumber($this->f_3027->ViewValue, 0, -2, -2, -2);
			$this->f_3027->ViewCustomAttributes = "";

			// f_3028
			$this->f_3028->ViewValue = $this->f_3028->CurrentValue;
			$this->f_3028->ViewValue = FormatNumber($this->f_3028->ViewValue, 0, -2, -2, -2);
			$this->f_3028->ViewCustomAttributes = "";

			// f_3029
			$this->f_3029->ViewValue = $this->f_3029->CurrentValue;
			$this->f_3029->ViewValue = FormatNumber($this->f_3029->ViewValue, 0, -2, -2, -2);
			$this->f_3029->ViewCustomAttributes = "";

			// f_3031
			$this->f_3031->ViewValue = $this->f_3031->CurrentValue;
			$this->f_3031->ViewValue = FormatNumber($this->f_3031->ViewValue, 0, -2, -2, -2);
			$this->f_3031->ViewCustomAttributes = "";

			// f_3032
			$this->f_3032->ViewValue = $this->f_3032->CurrentValue;
			$this->f_3032->ViewValue = FormatNumber($this->f_3032->ViewValue, 0, -2, -2, -2);
			$this->f_3032->ViewCustomAttributes = "";

			// f_3033
			$this->f_3033->ViewValue = $this->f_3033->CurrentValue;
			$this->f_3033->ViewValue = FormatNumber($this->f_3033->ViewValue, 0, -2, -2, -2);
			$this->f_3033->ViewCustomAttributes = "";

			// f_3034
			$this->f_3034->ViewValue = $this->f_3034->CurrentValue;
			$this->f_3034->ViewValue = FormatNumber($this->f_3034->ViewValue, 0, -2, -2, -2);
			$this->f_3034->ViewCustomAttributes = "";

			// f_3035
			$this->f_3035->ViewValue = $this->f_3035->CurrentValue;
			$this->f_3035->ViewValue = FormatNumber($this->f_3035->ViewValue, 0, -2, -2, -2);
			$this->f_3035->ViewCustomAttributes = "";

			// f_3036
			$this->f_3036->ViewValue = $this->f_3036->CurrentValue;
			$this->f_3036->ViewValue = FormatNumber($this->f_3036->ViewValue, 0, -2, -2, -2);
			$this->f_3036->ViewCustomAttributes = "";

			// f_3037
			$this->f_3037->ViewValue = $this->f_3037->CurrentValue;
			$this->f_3037->ViewValue = FormatNumber($this->f_3037->ViewValue, 0, -2, -2, -2);
			$this->f_3037->ViewCustomAttributes = "";

			// f_3038
			$this->f_3038->ViewValue = $this->f_3038->CurrentValue;
			$this->f_3038->ViewValue = FormatNumber($this->f_3038->ViewValue, 0, -2, -2, -2);
			$this->f_3038->ViewCustomAttributes = "";

			// f_3039
			$this->f_3039->ViewValue = $this->f_3039->CurrentValue;
			$this->f_3039->ViewValue = FormatNumber($this->f_3039->ViewValue, 0, -2, -2, -2);
			$this->f_3039->ViewCustomAttributes = "";

			// f_3040
			$this->f_3040->ViewValue = $this->f_3040->CurrentValue;
			$this->f_3040->ViewValue = FormatNumber($this->f_3040->ViewValue, 0, -2, -2, -2);
			$this->f_3040->ViewCustomAttributes = "";

			// f_3041
			$this->f_3041->ViewValue = $this->f_3041->CurrentValue;
			$this->f_3041->ViewValue = FormatNumber($this->f_3041->ViewValue, 0, -2, -2, -2);
			$this->f_3041->ViewCustomAttributes = "";

			// f_3042
			$this->f_3042->ViewValue = $this->f_3042->CurrentValue;
			$this->f_3042->ViewValue = FormatNumber($this->f_3042->ViewValue, 0, -2, -2, -2);
			$this->f_3042->ViewCustomAttributes = "";

			// f_3043
			$this->f_3043->ViewValue = $this->f_3043->CurrentValue;
			$this->f_3043->ViewValue = FormatNumber($this->f_3043->ViewValue, 0, -2, -2, -2);
			$this->f_3043->ViewCustomAttributes = "";

			// f_3044
			$this->f_3044->ViewValue = $this->f_3044->CurrentValue;
			$this->f_3044->ViewValue = FormatNumber($this->f_3044->ViewValue, 0, -2, -2, -2);
			$this->f_3044->ViewCustomAttributes = "";

			// n_3045
			$this->n_3045->ViewValue = $this->n_3045->CurrentValue;
			$this->n_3045->ViewValue = FormatNumber($this->n_3045->ViewValue, 0, -2, -2, -2);
			$this->n_3045->ViewCustomAttributes = "";

			// n_3045_distance
			$this->n_3045_distance->ViewValue = $this->n_3045_distance->CurrentValue;
			$this->n_3045_distance->ViewValue = FormatNumber($this->n_3045_distance->ViewValue, 0, -2, -2, -2);
			$this->n_3045_distance->ViewCustomAttributes = "";

			// n_3045_distance_by
			$this->n_3045_distance_by->ViewValue = $this->n_3045_distance_by->CurrentValue;
			$this->n_3045_distance_by->ViewValue = FormatNumber($this->n_3045_distance_by->ViewValue, 0, -2, -2, -2);
			$this->n_3045_distance_by->ViewCustomAttributes = "";

			// n_3046
			$this->n_3046->ViewValue = $this->n_3046->CurrentValue;
			$this->n_3046->ViewValue = FormatNumber($this->n_3046->ViewValue, 0, -2, -2, -2);
			$this->n_3046->ViewCustomAttributes = "";

			// n_3046_distance
			$this->n_3046_distance->ViewValue = $this->n_3046_distance->CurrentValue;
			$this->n_3046_distance->ViewValue = FormatNumber($this->n_3046_distance->ViewValue, 0, -2, -2, -2);
			$this->n_3046_distance->ViewCustomAttributes = "";

			// n_3046_distance_by
			$this->n_3046_distance_by->ViewValue = $this->n_3046_distance_by->CurrentValue;
			$this->n_3046_distance_by->ViewValue = FormatNumber($this->n_3046_distance_by->ViewValue, 0, -2, -2, -2);
			$this->n_3046_distance_by->ViewCustomAttributes = "";

			// n_3047
			$this->n_3047->ViewValue = $this->n_3047->CurrentValue;
			$this->n_3047->ViewValue = FormatNumber($this->n_3047->ViewValue, 0, -2, -2, -2);
			$this->n_3047->ViewCustomAttributes = "";

			// n_3047_distance
			$this->n_3047_distance->ViewValue = $this->n_3047_distance->CurrentValue;
			$this->n_3047_distance->ViewValue = FormatNumber($this->n_3047_distance->ViewValue, 0, -2, -2, -2);
			$this->n_3047_distance->ViewCustomAttributes = "";

			// n_3047_distance_by
			$this->n_3047_distance_by->ViewValue = $this->n_3047_distance_by->CurrentValue;
			$this->n_3047_distance_by->ViewValue = FormatNumber($this->n_3047_distance_by->ViewValue, 0, -2, -2, -2);
			$this->n_3047_distance_by->ViewCustomAttributes = "";

			// n_3048
			$this->n_3048->ViewValue = $this->n_3048->CurrentValue;
			$this->n_3048->ViewValue = FormatNumber($this->n_3048->ViewValue, 0, -2, -2, -2);
			$this->n_3048->ViewCustomAttributes = "";

			// n_3048_distance
			$this->n_3048_distance->ViewValue = $this->n_3048_distance->CurrentValue;
			$this->n_3048_distance->ViewValue = FormatNumber($this->n_3048_distance->ViewValue, 0, -2, -2, -2);
			$this->n_3048_distance->ViewCustomAttributes = "";

			// n_3048_distance_by
			$this->n_3048_distance_by->ViewValue = $this->n_3048_distance_by->CurrentValue;
			$this->n_3048_distance_by->ViewValue = FormatNumber($this->n_3048_distance_by->ViewValue, 0, -2, -2, -2);
			$this->n_3048_distance_by->ViewCustomAttributes = "";

			// n_3049
			$this->n_3049->ViewValue = $this->n_3049->CurrentValue;
			$this->n_3049->ViewValue = FormatNumber($this->n_3049->ViewValue, 0, -2, -2, -2);
			$this->n_3049->ViewCustomAttributes = "";

			// n_3049_distance
			$this->n_3049_distance->ViewValue = $this->n_3049_distance->CurrentValue;
			$this->n_3049_distance->ViewValue = FormatNumber($this->n_3049_distance->ViewValue, 0, -2, -2, -2);
			$this->n_3049_distance->ViewCustomAttributes = "";

			// n_3049_distance_by
			$this->n_3049_distance_by->ViewValue = $this->n_3049_distance_by->CurrentValue;
			$this->n_3049_distance_by->ViewValue = FormatNumber($this->n_3049_distance_by->ViewValue, 0, -2, -2, -2);
			$this->n_3049_distance_by->ViewCustomAttributes = "";

			// n_3050
			$this->n_3050->ViewValue = $this->n_3050->CurrentValue;
			$this->n_3050->ViewValue = FormatNumber($this->n_3050->ViewValue, 0, -2, -2, -2);
			$this->n_3050->ViewCustomAttributes = "";

			// n_3050_distance
			$this->n_3050_distance->ViewValue = $this->n_3050_distance->CurrentValue;
			$this->n_3050_distance->ViewValue = FormatNumber($this->n_3050_distance->ViewValue, 0, -2, -2, -2);
			$this->n_3050_distance->ViewCustomAttributes = "";

			// n_3050_distance_by
			$this->n_3050_distance_by->ViewValue = $this->n_3050_distance_by->CurrentValue;
			$this->n_3050_distance_by->ViewValue = FormatNumber($this->n_3050_distance_by->ViewValue, 0, -2, -2, -2);
			$this->n_3050_distance_by->ViewCustomAttributes = "";

			// n_3051
			$this->n_3051->ViewValue = $this->n_3051->CurrentValue;
			$this->n_3051->ViewValue = FormatNumber($this->n_3051->ViewValue, 0, -2, -2, -2);
			$this->n_3051->ViewCustomAttributes = "";

			// n_3051_distance
			$this->n_3051_distance->ViewValue = $this->n_3051_distance->CurrentValue;
			$this->n_3051_distance->ViewValue = FormatNumber($this->n_3051_distance->ViewValue, 0, -2, -2, -2);
			$this->n_3051_distance->ViewCustomAttributes = "";

			// n_3051_distance_by
			$this->n_3051_distance_by->ViewValue = $this->n_3051_distance_by->CurrentValue;
			$this->n_3051_distance_by->ViewValue = FormatNumber($this->n_3051_distance_by->ViewValue, 0, -2, -2, -2);
			$this->n_3051_distance_by->ViewCustomAttributes = "";

			// n_3052
			$this->n_3052->ViewValue = $this->n_3052->CurrentValue;
			$this->n_3052->ViewValue = FormatNumber($this->n_3052->ViewValue, 0, -2, -2, -2);
			$this->n_3052->ViewCustomAttributes = "";

			// n_3052_distance
			$this->n_3052_distance->ViewValue = $this->n_3052_distance->CurrentValue;
			$this->n_3052_distance->ViewValue = FormatNumber($this->n_3052_distance->ViewValue, 0, -2, -2, -2);
			$this->n_3052_distance->ViewCustomAttributes = "";

			// n_3052_distance_by
			$this->n_3052_distance_by->ViewValue = $this->n_3052_distance_by->CurrentValue;
			$this->n_3052_distance_by->ViewValue = FormatNumber($this->n_3052_distance_by->ViewValue, 0, -2, -2, -2);
			$this->n_3052_distance_by->ViewCustomAttributes = "";

			// n_3053
			$this->n_3053->ViewValue = $this->n_3053->CurrentValue;
			$this->n_3053->ViewValue = FormatNumber($this->n_3053->ViewValue, 0, -2, -2, -2);
			$this->n_3053->ViewCustomAttributes = "";

			// n_3053_distance
			$this->n_3053_distance->ViewValue = $this->n_3053_distance->CurrentValue;
			$this->n_3053_distance->ViewValue = FormatNumber($this->n_3053_distance->ViewValue, 0, -2, -2, -2);
			$this->n_3053_distance->ViewCustomAttributes = "";

			// n_3053_distance_by
			$this->n_3053_distance_by->ViewValue = $this->n_3053_distance_by->CurrentValue;
			$this->n_3053_distance_by->ViewValue = FormatNumber($this->n_3053_distance_by->ViewValue, 0, -2, -2, -2);
			$this->n_3053_distance_by->ViewCustomAttributes = "";

			// n_3054
			$this->n_3054->ViewValue = $this->n_3054->CurrentValue;
			$this->n_3054->ViewValue = FormatNumber($this->n_3054->ViewValue, 0, -2, -2, -2);
			$this->n_3054->ViewCustomAttributes = "";

			// n_3054_distance
			$this->n_3054_distance->ViewValue = $this->n_3054_distance->CurrentValue;
			$this->n_3054_distance->ViewValue = FormatNumber($this->n_3054_distance->ViewValue, 0, -2, -2, -2);
			$this->n_3054_distance->ViewCustomAttributes = "";

			// n_3054_distance_by
			$this->n_3054_distance_by->ViewValue = $this->n_3054_distance_by->CurrentValue;
			$this->n_3054_distance_by->ViewValue = FormatNumber($this->n_3054_distance_by->ViewValue, 0, -2, -2, -2);
			$this->n_3054_distance_by->ViewCustomAttributes = "";

			// n_3055
			$this->n_3055->ViewValue = $this->n_3055->CurrentValue;
			$this->n_3055->ViewValue = FormatNumber($this->n_3055->ViewValue, 0, -2, -2, -2);
			$this->n_3055->ViewCustomAttributes = "";

			// n_3055_distance
			$this->n_3055_distance->ViewValue = $this->n_3055_distance->CurrentValue;
			$this->n_3055_distance->ViewValue = FormatNumber($this->n_3055_distance->ViewValue, 0, -2, -2, -2);
			$this->n_3055_distance->ViewCustomAttributes = "";

			// n_3055_distance_by
			$this->n_3055_distance_by->ViewValue = $this->n_3055_distance_by->CurrentValue;
			$this->n_3055_distance_by->ViewValue = FormatNumber($this->n_3055_distance_by->ViewValue, 0, -2, -2, -2);
			$this->n_3055_distance_by->ViewCustomAttributes = "";

			// n_3056
			$this->n_3056->ViewValue = $this->n_3056->CurrentValue;
			$this->n_3056->ViewValue = FormatNumber($this->n_3056->ViewValue, 0, -2, -2, -2);
			$this->n_3056->ViewCustomAttributes = "";

			// n_3056_distance
			$this->n_3056_distance->ViewValue = $this->n_3056_distance->CurrentValue;
			$this->n_3056_distance->ViewValue = FormatNumber($this->n_3056_distance->ViewValue, 0, -2, -2, -2);
			$this->n_3056_distance->ViewCustomAttributes = "";

			// n_3056_distance_by
			$this->n_3056_distance_by->ViewValue = $this->n_3056_distance_by->CurrentValue;
			$this->n_3056_distance_by->ViewValue = FormatNumber($this->n_3056_distance_by->ViewValue, 0, -2, -2, -2);
			$this->n_3056_distance_by->ViewCustomAttributes = "";

			// n_3057
			$this->n_3057->ViewValue = $this->n_3057->CurrentValue;
			$this->n_3057->ViewValue = FormatNumber($this->n_3057->ViewValue, 0, -2, -2, -2);
			$this->n_3057->ViewCustomAttributes = "";

			// n_3057_distance
			$this->n_3057_distance->ViewValue = $this->n_3057_distance->CurrentValue;
			$this->n_3057_distance->ViewValue = FormatNumber($this->n_3057_distance->ViewValue, 0, -2, -2, -2);
			$this->n_3057_distance->ViewCustomAttributes = "";

			// n_3057_distance_by
			$this->n_3057_distance_by->ViewValue = $this->n_3057_distance_by->CurrentValue;
			$this->n_3057_distance_by->ViewValue = FormatNumber($this->n_3057_distance_by->ViewValue, 0, -2, -2, -2);
			$this->n_3057_distance_by->ViewCustomAttributes = "";

			// n_3058
			$this->n_3058->ViewValue = $this->n_3058->CurrentValue;
			$this->n_3058->ViewValue = FormatNumber($this->n_3058->ViewValue, 0, -2, -2, -2);
			$this->n_3058->ViewCustomAttributes = "";

			// n_3058_distance
			$this->n_3058_distance->ViewValue = $this->n_3058_distance->CurrentValue;
			$this->n_3058_distance->ViewValue = FormatNumber($this->n_3058_distance->ViewValue, 0, -2, -2, -2);
			$this->n_3058_distance->ViewCustomAttributes = "";

			// n_3058_distance_by
			$this->n_3058_distance_by->ViewValue = $this->n_3058_distance_by->CurrentValue;
			$this->n_3058_distance_by->ViewValue = FormatNumber($this->n_3058_distance_by->ViewValue, 0, -2, -2, -2);
			$this->n_3058_distance_by->ViewCustomAttributes = "";

			// n_3059
			$this->n_3059->ViewValue = $this->n_3059->CurrentValue;
			$this->n_3059->ViewValue = FormatNumber($this->n_3059->ViewValue, 0, -2, -2, -2);
			$this->n_3059->ViewCustomAttributes = "";

			// n_3059_distance
			$this->n_3059_distance->ViewValue = $this->n_3059_distance->CurrentValue;
			$this->n_3059_distance->ViewValue = FormatNumber($this->n_3059_distance->ViewValue, 0, -2, -2, -2);
			$this->n_3059_distance->ViewCustomAttributes = "";

			// n_3059_distance_by
			$this->n_3059_distance_by->ViewValue = $this->n_3059_distance_by->CurrentValue;
			$this->n_3059_distance_by->ViewValue = FormatNumber($this->n_3059_distance_by->ViewValue, 0, -2, -2, -2);
			$this->n_3059_distance_by->ViewCustomAttributes = "";

			// f_3060
			$this->f_3060->ViewValue = $this->f_3060->CurrentValue;
			$this->f_3060->ViewValue = FormatNumber($this->f_3060->ViewValue, 0, -2, -2, -2);
			$this->f_3060->ViewCustomAttributes = "";

			// f_3061
			$this->f_3061->ViewValue = $this->f_3061->CurrentValue;
			$this->f_3061->ViewValue = FormatNumber($this->f_3061->ViewValue, 0, -2, -2, -2);
			$this->f_3061->ViewCustomAttributes = "";

			// f_3062
			$this->f_3062->ViewValue = $this->f_3062->CurrentValue;
			$this->f_3062->ViewValue = FormatNumber($this->f_3062->ViewValue, 0, -2, -2, -2);
			$this->f_3062->ViewCustomAttributes = "";

			// field_3063
			$this->field_3063->ViewValue = $this->field_3063->CurrentValue;
			$this->field_3063->ViewCustomAttributes = "";

			// field_3064
			$this->field_3064->ViewValue = $this->field_3064->CurrentValue;
			$this->field_3064->ViewCustomAttributes = "";

			// field_3065
			$this->field_3065->ViewValue = $this->field_3065->CurrentValue;
			$this->field_3065->ViewValue = FormatNumber($this->field_3065->ViewValue, 0, -2, -2, -2);
			$this->field_3065->ViewCustomAttributes = "";

			// field_313_en_us
			$this->field_313_en_us->ViewValue = $this->field_313_en_us->CurrentValue;
			$this->field_313_en_us->ViewCustomAttributes = "";

			// field_313_fr_fr
			$this->field_313_fr_fr->ViewValue = $this->field_313_fr_fr->CurrentValue;
			$this->field_313_fr_fr->ViewCustomAttributes = "";

			// field_312_en_us
			$this->field_312_en_us->ViewValue = $this->field_312_en_us->CurrentValue;
			$this->field_312_en_us->ViewCustomAttributes = "";

			// field_312_fr_fr
			$this->field_312_fr_fr->ViewValue = $this->field_312_fr_fr->CurrentValue;
			$this->field_312_fr_fr->ViewCustomAttributes = "";

			// field_42_en_us
			$this->field_42_en_us->ViewValue = $this->field_42_en_us->CurrentValue;
			$this->field_42_en_us->ViewCustomAttributes = "";

			// field_42_fr_fr
			$this->field_42_fr_fr->ViewValue = $this->field_42_fr_fr->CurrentValue;
			$this->field_42_fr_fr->ViewCustomAttributes = "";

			// field_3067
			$this->field_3067->ViewValue = $this->field_3067->CurrentValue;
			$this->field_3067->ViewValue = FormatNumber($this->field_3067->ViewValue, 0, -2, -2, -2);
			$this->field_3067->ViewCustomAttributes = "";

			// field_3068
			$this->field_3068->ViewValue = $this->field_3068->CurrentValue;
			$this->field_3068->ViewValue = FormatNumber($this->field_3068->ViewValue, 0, -2, -2, -2);
			$this->field_3068->ViewCustomAttributes = "";

			// field_3069
			$this->field_3069->ViewValue = $this->field_3069->CurrentValue;
			$this->field_3069->ViewValue = FormatNumber($this->field_3069->ViewValue, 0, -2, -2, -2);
			$this->field_3069->ViewCustomAttributes = "";

			// field_3070
			$this->field_3070->ViewValue = $this->field_3070->CurrentValue;
			$this->field_3070->ViewValue = FormatNumber($this->field_3070->ViewValue, 0, -2, -2, -2);
			$this->field_3070->ViewCustomAttributes = "";

			// field_3071
			$this->field_3071->ViewValue = $this->field_3071->CurrentValue;
			$this->field_3071->ViewCustomAttributes = "";

			// field_3071_en_us
			$this->field_3071_en_us->ViewValue = $this->field_3071_en_us->CurrentValue;
			$this->field_3071_en_us->ViewCustomAttributes = "";

			// field_3071_fr_fr
			$this->field_3071_fr_fr->ViewValue = $this->field_3071_fr_fr->CurrentValue;
			$this->field_3071_fr_fr->ViewCustomAttributes = "";

			// field_3072
			$this->field_3072->ViewValue = $this->field_3072->CurrentValue;
			$this->field_3072->ViewValue = FormatNumber($this->field_3072->ViewValue, 0, -2, -2, -2);
			$this->field_3072->ViewCustomAttributes = "";

			// field_3073
			$this->field_3073->ViewValue = $this->field_3073->CurrentValue;
			$this->field_3073->ViewValue = FormatNumber($this->field_3073->ViewValue, 0, -2, -2, -2);
			$this->field_3073->ViewCustomAttributes = "";

			// field_3074
			$this->field_3074->ViewValue = $this->field_3074->CurrentValue;
			$this->field_3074->ViewCustomAttributes = "";

			// field_3074_en_us
			$this->field_3074_en_us->ViewValue = $this->field_3074_en_us->CurrentValue;
			$this->field_3074_en_us->ViewCustomAttributes = "";

			// field_3074_fr_fr
			$this->field_3074_fr_fr->ViewValue = $this->field_3074_fr_fr->CurrentValue;
			$this->field_3074_fr_fr->ViewCustomAttributes = "";

			// field_3075
			$this->field_3075->ViewValue = $this->field_3075->CurrentValue;
			$this->field_3075->ViewValue = FormatNumber($this->field_3075->ViewValue, 0, -2, -2, -2);
			$this->field_3075->ViewCustomAttributes = "";

			// field_3076
			$this->field_3076->ViewValue = $this->field_3076->CurrentValue;
			$this->field_3076->ViewCustomAttributes = "";

			// field_3077
			$this->field_3077->ViewValue = $this->field_3077->CurrentValue;
			$this->field_3077->ViewValue = FormatNumber($this->field_3077->ViewValue, 0, -2, -2, -2);
			$this->field_3077->ViewCustomAttributes = "";

			// field_3078
			$this->field_3078->ViewValue = $this->field_3078->CurrentValue;
			$this->field_3078->ViewValue = FormatNumber($this->field_3078->ViewValue, 0, -2, -2, -2);
			$this->field_3078->ViewCustomAttributes = "";

			// field_3079
			$this->field_3079->ViewValue = $this->field_3079->CurrentValue;
			$this->field_3079->ViewValue = FormatNumber($this->field_3079->ViewValue, 0, -2, -2, -2);
			$this->field_3079->ViewCustomAttributes = "";

			// field_3080
			$this->field_3080->ViewValue = $this->field_3080->CurrentValue;
			$this->field_3080->ViewCustomAttributes = "";

			// field_3076_en_us
			$this->field_3076_en_us->ViewValue = $this->field_3076_en_us->CurrentValue;
			$this->field_3076_en_us->ViewCustomAttributes = "";

			// field_3076_fr_fr
			$this->field_3076_fr_fr->ViewValue = $this->field_3076_fr_fr->CurrentValue;
			$this->field_3076_fr_fr->ViewCustomAttributes = "";

			// field_3080_en_us
			$this->field_3080_en_us->ViewValue = $this->field_3080_en_us->CurrentValue;
			$this->field_3080_en_us->ViewCustomAttributes = "";

			// field_3080_fr_fr
			$this->field_3080_fr_fr->ViewValue = $this->field_3080_fr_fr->CurrentValue;
			$this->field_3080_fr_fr->ViewCustomAttributes = "";

			// field_3081
			$this->field_3081->ViewValue = $this->field_3081->CurrentValue;
			$this->field_3081->ViewCustomAttributes = "";

			// field_3081_en_us
			$this->field_3081_en_us->ViewValue = $this->field_3081_en_us->CurrentValue;
			$this->field_3081_en_us->ViewCustomAttributes = "";

			// field_3081_fr_fr
			$this->field_3081_fr_fr->ViewValue = $this->field_3081_fr_fr->CurrentValue;
			$this->field_3081_fr_fr->ViewCustomAttributes = "";

			// field_3082
			$this->field_3082->ViewValue = $this->field_3082->CurrentValue;
			$this->field_3082->ViewCustomAttributes = "";

			// field_3082_en_us
			$this->field_3082_en_us->ViewValue = $this->field_3082_en_us->CurrentValue;
			$this->field_3082_en_us->ViewCustomAttributes = "";

			// field_3082_fr_fr
			$this->field_3082_fr_fr->ViewValue = $this->field_3082_fr_fr->CurrentValue;
			$this->field_3082_fr_fr->ViewCustomAttributes = "";

			// field_3084
			$this->field_3084->ViewValue = $this->field_3084->CurrentValue;
			$this->field_3084->ViewValue = FormatNumber($this->field_3084->ViewValue, 0, -2, -2, -2);
			$this->field_3084->ViewCustomAttributes = "";

			// field_3085
			$this->field_3085->ViewValue = $this->field_3085->CurrentValue;
			$this->field_3085->ViewValue = FormatNumber($this->field_3085->ViewValue, 0, -2, -2, -2);
			$this->field_3085->ViewCustomAttributes = "";

			// field_3086
			$this->field_3086->ViewValue = $this->field_3086->CurrentValue;
			$this->field_3086->ViewValue = FormatNumber($this->field_3086->ViewValue, 0, -2, -2, -2);
			$this->field_3086->ViewCustomAttributes = "";

			// field_3096
			$this->field_3096->ViewValue = $this->field_3096->CurrentValue;
			$this->field_3096->ViewValue = FormatNumber($this->field_3096->ViewValue, 2, -2, -2, -2);
			$this->field_3096->ViewCustomAttributes = "";

			// field_3097
			$this->field_3097->ViewValue = $this->field_3097->CurrentValue;
			$this->field_3097->ViewCustomAttributes = "";

			// field_3098
			$this->field_3098->ViewValue = $this->field_3098->CurrentValue;
			$this->field_3098->ViewValue = FormatNumber($this->field_3098->ViewValue, 2, -2, -2, -2);
			$this->field_3098->ViewCustomAttributes = "";

			// field_3099
			$this->field_3099->ViewValue = $this->field_3099->CurrentValue;
			$this->field_3099->ViewValue = FormatNumber($this->field_3099->ViewValue, 2, -2, -2, -2);
			$this->field_3099->ViewCustomAttributes = "";

			// field_3100
			$this->field_3100->ViewValue = $this->field_3100->CurrentValue;
			$this->field_3100->ViewValue = FormatNumber($this->field_3100->ViewValue, 2, -2, -2, -2);
			$this->field_3100->ViewCustomAttributes = "";

			// field_3101
			$this->field_3101->ViewValue = $this->field_3101->CurrentValue;
			$this->field_3101->ViewValue = FormatNumber($this->field_3101->ViewValue, 2, -2, -2, -2);
			$this->field_3101->ViewCustomAttributes = "";

			// field_3102
			$this->field_3102->ViewValue = $this->field_3102->CurrentValue;
			$this->field_3102->ViewValue = FormatNumber($this->field_3102->ViewValue, 2, -2, -2, -2);
			$this->field_3102->ViewCustomAttributes = "";

			// field_3103
			$this->field_3103->ViewValue = $this->field_3103->CurrentValue;
			$this->field_3103->ViewValue = FormatNumber($this->field_3103->ViewValue, 2, -2, -2, -2);
			$this->field_3103->ViewCustomAttributes = "";

			// field_3104
			$this->field_3104->ViewValue = $this->field_3104->CurrentValue;
			$this->field_3104->ViewValue = FormatNumber($this->field_3104->ViewValue, 2, -2, -2, -2);
			$this->field_3104->ViewCustomAttributes = "";

			// field_3105
			$this->field_3105->ViewValue = $this->field_3105->CurrentValue;
			$this->field_3105->ViewValue = FormatNumber($this->field_3105->ViewValue, 0, -2, -2, -2);
			$this->field_3105->ViewCustomAttributes = "";

			// field_3106
			$this->field_3106->ViewValue = $this->field_3106->CurrentValue;
			$this->field_3106->ViewValue = FormatNumber($this->field_3106->ViewValue, 0, -2, -2, -2);
			$this->field_3106->ViewCustomAttributes = "";

			// field_3107
			$this->field_3107->ViewValue = $this->field_3107->CurrentValue;
			$this->field_3107->ViewValue = FormatNumber($this->field_3107->ViewValue, 0, -2, -2, -2);
			$this->field_3107->ViewCustomAttributes = "";

			// field_3108
			$this->field_3108->ViewValue = $this->field_3108->CurrentValue;
			$this->field_3108->ViewValue = FormatNumber($this->field_3108->ViewValue, 0, -2, -2, -2);
			$this->field_3108->ViewCustomAttributes = "";

			// field_3109
			$this->field_3109->ViewValue = $this->field_3109->CurrentValue;
			$this->field_3109->ViewValue = FormatNumber($this->field_3109->ViewValue, 0, -2, -2, -2);
			$this->field_3109->ViewCustomAttributes = "";

			// field_3110
			$this->field_3110->ViewValue = $this->field_3110->CurrentValue;
			$this->field_3110->ViewValue = FormatNumber($this->field_3110->ViewValue, 0, -2, -2, -2);
			$this->field_3110->ViewCustomAttributes = "";

			// field_3111
			$this->field_3111->ViewValue = $this->field_3111->CurrentValue;
			$this->field_3111->ViewValue = FormatNumber($this->field_3111->ViewValue, 0, -2, -2, -2);
			$this->field_3111->ViewCustomAttributes = "";

			// field_3112
			$this->field_3112->ViewValue = $this->field_3112->CurrentValue;
			$this->field_3112->ViewValue = FormatNumber($this->field_3112->ViewValue, 0, -2, -2, -2);
			$this->field_3112->ViewCustomAttributes = "";

			// field_3113
			$this->field_3113->ViewValue = $this->field_3113->CurrentValue;
			$this->field_3113->ViewCustomAttributes = "";

			// field_3113_en_us
			$this->field_3113_en_us->ViewValue = $this->field_3113_en_us->CurrentValue;
			$this->field_3113_en_us->ViewCustomAttributes = "";

			// field_3113_fr_fr
			$this->field_3113_fr_fr->ViewValue = $this->field_3113_fr_fr->CurrentValue;
			$this->field_3113_fr_fr->ViewCustomAttributes = "";

			// field_3114
			$this->field_3114->ViewValue = $this->field_3114->CurrentValue;
			$this->field_3114->ViewCustomAttributes = "";

			// field_3115
			$this->field_3115->ViewValue = $this->field_3115->CurrentValue;
			$this->field_3115->ViewValue = FormatNumber($this->field_3115->ViewValue, 2, -2, -2, -2);
			$this->field_3115->ViewCustomAttributes = "";

			// field_3115_si
			$this->field_3115_si->ViewValue = $this->field_3115_si->CurrentValue;
			$this->field_3115_si->ViewValue = FormatNumber($this->field_3115_si->ViewValue, 2, -2, -2, -2);
			$this->field_3115_si->ViewCustomAttributes = "";

			// field_3115_unit
			$this->field_3115_unit->ViewValue = $this->field_3115_unit->CurrentValue;
			$this->field_3115_unit->ViewValue = FormatNumber($this->field_3115_unit->ViewValue, 0, -2, -2, -2);
			$this->field_3115_unit->ViewCustomAttributes = "";

			// field_3116
			$this->field_3116->ViewValue = $this->field_3116->CurrentValue;
			$this->field_3116->ViewValue = FormatDateTime($this->field_3116->ViewValue, 0);
			$this->field_3116->ViewCustomAttributes = "";

			// field_3117
			$this->field_3117->ViewValue = $this->field_3117->CurrentValue;
			$this->field_3117->ViewCustomAttributes = "";

			// field_3117_en_us
			$this->field_3117_en_us->ViewValue = $this->field_3117_en_us->CurrentValue;
			$this->field_3117_en_us->ViewCustomAttributes = "";

			// field_3117_fr_fr
			$this->field_3117_fr_fr->ViewValue = $this->field_3117_fr_fr->CurrentValue;
			$this->field_3117_fr_fr->ViewCustomAttributes = "";

			// field_3118
			$this->field_3118->ViewValue = $this->field_3118->CurrentValue;
			$this->field_3118->ViewCustomAttributes = "";

			// field_3118_en_us
			$this->field_3118_en_us->ViewValue = $this->field_3118_en_us->CurrentValue;
			$this->field_3118_en_us->ViewCustomAttributes = "";

			// field_3118_fr_fr
			$this->field_3118_fr_fr->ViewValue = $this->field_3118_fr_fr->CurrentValue;
			$this->field_3118_fr_fr->ViewCustomAttributes = "";

			// field_3119
			$this->field_3119->ViewValue = $this->field_3119->CurrentValue;
			$this->field_3119->ViewCustomAttributes = "";

			// field_3119_en_us
			$this->field_3119_en_us->ViewValue = $this->field_3119_en_us->CurrentValue;
			$this->field_3119_en_us->ViewCustomAttributes = "";

			// field_3119_fr_fr
			$this->field_3119_fr_fr->ViewValue = $this->field_3119_fr_fr->CurrentValue;
			$this->field_3119_fr_fr->ViewCustomAttributes = "";

			// field_3120
			$this->field_3120->ViewValue = $this->field_3120->CurrentValue;
			$this->field_3120->ViewCustomAttributes = "";

			// field_3120_en_us
			$this->field_3120_en_us->ViewValue = $this->field_3120_en_us->CurrentValue;
			$this->field_3120_en_us->ViewCustomAttributes = "";

			// field_3120_fr_fr
			$this->field_3120_fr_fr->ViewValue = $this->field_3120_fr_fr->CurrentValue;
			$this->field_3120_fr_fr->ViewCustomAttributes = "";

			// field_3121
			$this->field_3121->ViewValue = $this->field_3121->CurrentValue;
			$this->field_3121->ViewValue = FormatDateTime($this->field_3121->ViewValue, 0);
			$this->field_3121->ViewCustomAttributes = "";

			// field_3122
			$this->field_3122->ViewValue = $this->field_3122->CurrentValue;
			$this->field_3122->ViewValue = FormatNumber($this->field_3122->ViewValue, 2, -2, -2, -2);
			$this->field_3122->ViewCustomAttributes = "";

			// field_3122_si
			$this->field_3122_si->ViewValue = $this->field_3122_si->CurrentValue;
			$this->field_3122_si->ViewValue = FormatNumber($this->field_3122_si->ViewValue, 2, -2, -2, -2);
			$this->field_3122_si->ViewCustomAttributes = "";

			// field_3122_unit
			$this->field_3122_unit->ViewValue = $this->field_3122_unit->CurrentValue;
			$this->field_3122_unit->ViewValue = FormatNumber($this->field_3122_unit->ViewValue, 0, -2, -2, -2);
			$this->field_3122_unit->ViewCustomAttributes = "";

			// field_3123
			$this->field_3123->ViewValue = $this->field_3123->CurrentValue;
			$this->field_3123->ViewCustomAttributes = "";

			// field_3124
			$this->field_3124->ViewValue = $this->field_3124->CurrentValue;
			$this->field_3124->ViewCustomAttributes = "";

			// field_3125
			$this->field_3125->ViewValue = $this->field_3125->CurrentValue;
			$this->field_3125->ViewCustomAttributes = "";

			// field_3126
			$this->field_3126->ViewValue = $this->field_3126->CurrentValue;
			$this->field_3126->ViewValue = FormatNumber($this->field_3126->ViewValue, 0, -2, -2, -2);
			$this->field_3126->ViewCustomAttributes = "";

			// field_3127
			$this->field_3127->ViewValue = $this->field_3127->CurrentValue;
			$this->field_3127->ViewValue = FormatNumber($this->field_3127->ViewValue, 0, -2, -2, -2);
			$this->field_3127->ViewCustomAttributes = "";

			// field_3128
			$this->field_3128->ViewValue = $this->field_3128->CurrentValue;
			$this->field_3128->ViewValue = FormatNumber($this->field_3128->ViewValue, 0, -2, -2, -2);
			$this->field_3128->ViewCustomAttributes = "";

			// field_3129
			$this->field_3129->ViewValue = $this->field_3129->CurrentValue;
			$this->field_3129->ViewValue = FormatNumber($this->field_3129->ViewValue, 0, -2, -2, -2);
			$this->field_3129->ViewCustomAttributes = "";

			// field_3130
			$this->field_3130->ViewValue = $this->field_3130->CurrentValue;
			$this->field_3130->ViewValue = FormatNumber($this->field_3130->ViewValue, 0, -2, -2, -2);
			$this->field_3130->ViewCustomAttributes = "";

			// field_3131
			$this->field_3131->ViewValue = $this->field_3131->CurrentValue;
			$this->field_3131->ViewValue = FormatNumber($this->field_3131->ViewValue, 0, -2, -2, -2);
			$this->field_3131->ViewCustomAttributes = "";

			// field_3132
			$this->field_3132->ViewValue = $this->field_3132->CurrentValue;
			$this->field_3132->ViewValue = FormatNumber($this->field_3132->ViewValue, 0, -2, -2, -2);
			$this->field_3132->ViewCustomAttributes = "";

			// field_3133
			$this->field_3133->ViewValue = $this->field_3133->CurrentValue;
			$this->field_3133->ViewValue = FormatNumber($this->field_3133->ViewValue, 0, -2, -2, -2);
			$this->field_3133->ViewCustomAttributes = "";

			// field_3134
			$this->field_3134->ViewValue = $this->field_3134->CurrentValue;
			$this->field_3134->ViewValue = FormatNumber($this->field_3134->ViewValue, 0, -2, -2, -2);
			$this->field_3134->ViewCustomAttributes = "";

			// field_3135
			$this->field_3135->ViewValue = $this->field_3135->CurrentValue;
			$this->field_3135->ViewValue = FormatNumber($this->field_3135->ViewValue, 0, -2, -2, -2);
			$this->field_3135->ViewCustomAttributes = "";

			// field_3136
			$this->field_3136->ViewValue = $this->field_3136->CurrentValue;
			$this->field_3136->ViewValue = FormatNumber($this->field_3136->ViewValue, 0, -2, -2, -2);
			$this->field_3136->ViewCustomAttributes = "";

			// field_3137
			$this->field_3137->ViewValue = $this->field_3137->CurrentValue;
			$this->field_3137->ViewValue = FormatNumber($this->field_3137->ViewValue, 0, -2, -2, -2);
			$this->field_3137->ViewCustomAttributes = "";

			// field_3138
			$this->field_3138->ViewValue = $this->field_3138->CurrentValue;
			$this->field_3138->ViewValue = FormatNumber($this->field_3138->ViewValue, 0, -2, -2, -2);
			$this->field_3138->ViewCustomAttributes = "";

			// field_3139
			$this->field_3139->ViewValue = $this->field_3139->CurrentValue;
			$this->field_3139->ViewValue = FormatNumber($this->field_3139->ViewValue, 0, -2, -2, -2);
			$this->field_3139->ViewCustomAttributes = "";

			// field_3140
			$this->field_3140->ViewValue = $this->field_3140->CurrentValue;
			$this->field_3140->ViewValue = FormatNumber($this->field_3140->ViewValue, 0, -2, -2, -2);
			$this->field_3140->ViewCustomAttributes = "";

			// field_3141
			$this->field_3141->ViewValue = $this->field_3141->CurrentValue;
			$this->field_3141->ViewValue = FormatNumber($this->field_3141->ViewValue, 0, -2, -2, -2);
			$this->field_3141->ViewCustomAttributes = "";

			// field_3142
			$this->field_3142->ViewValue = $this->field_3142->CurrentValue;
			$this->field_3142->ViewValue = FormatNumber($this->field_3142->ViewValue, 0, -2, -2, -2);
			$this->field_3142->ViewCustomAttributes = "";

			// field_3143
			$this->field_3143->ViewValue = $this->field_3143->CurrentValue;
			$this->field_3143->ViewValue = FormatNumber($this->field_3143->ViewValue, 0, -2, -2, -2);
			$this->field_3143->ViewCustomAttributes = "";

			// field_3144
			$this->field_3144->ViewValue = $this->field_3144->CurrentValue;
			$this->field_3144->ViewValue = FormatNumber($this->field_3144->ViewValue, 0, -2, -2, -2);
			$this->field_3144->ViewCustomAttributes = "";

			// field_3145
			$this->field_3145->ViewValue = $this->field_3145->CurrentValue;
			$this->field_3145->ViewValue = FormatNumber($this->field_3145->ViewValue, 0, -2, -2, -2);
			$this->field_3145->ViewCustomAttributes = "";

			// field_3146
			$this->field_3146->ViewValue = $this->field_3146->CurrentValue;
			$this->field_3146->ViewValue = FormatNumber($this->field_3146->ViewValue, 0, -2, -2, -2);
			$this->field_3146->ViewCustomAttributes = "";

			// field_3147
			$this->field_3147->ViewValue = $this->field_3147->CurrentValue;
			$this->field_3147->ViewValue = FormatNumber($this->field_3147->ViewValue, 0, -2, -2, -2);
			$this->field_3147->ViewCustomAttributes = "";

			// field_3148
			$this->field_3148->ViewValue = $this->field_3148->CurrentValue;
			$this->field_3148->ViewValue = FormatNumber($this->field_3148->ViewValue, 0, -2, -2, -2);
			$this->field_3148->ViewCustomAttributes = "";

			// field_3149
			$this->field_3149->ViewValue = $this->field_3149->CurrentValue;
			$this->field_3149->ViewValue = FormatNumber($this->field_3149->ViewValue, 0, -2, -2, -2);
			$this->field_3149->ViewCustomAttributes = "";

			// field_3150
			$this->field_3150->ViewValue = $this->field_3150->CurrentValue;
			$this->field_3150->ViewValue = FormatNumber($this->field_3150->ViewValue, 0, -2, -2, -2);
			$this->field_3150->ViewCustomAttributes = "";

			// field_3151
			$this->field_3151->ViewValue = $this->field_3151->CurrentValue;
			$this->field_3151->ViewValue = FormatNumber($this->field_3151->ViewValue, 0, -2, -2, -2);
			$this->field_3151->ViewCustomAttributes = "";

			// field_3152
			$this->field_3152->ViewValue = $this->field_3152->CurrentValue;
			$this->field_3152->ViewValue = FormatNumber($this->field_3152->ViewValue, 0, -2, -2, -2);
			$this->field_3152->ViewCustomAttributes = "";

			// field_3153
			$this->field_3153->ViewValue = $this->field_3153->CurrentValue;
			$this->field_3153->ViewValue = FormatNumber($this->field_3153->ViewValue, 0, -2, -2, -2);
			$this->field_3153->ViewCustomAttributes = "";

			// field_3154
			$this->field_3154->ViewValue = $this->field_3154->CurrentValue;
			$this->field_3154->ViewValue = FormatNumber($this->field_3154->ViewValue, 0, -2, -2, -2);
			$this->field_3154->ViewCustomAttributes = "";

			// field_3155
			$this->field_3155->ViewValue = $this->field_3155->CurrentValue;
			$this->field_3155->ViewValue = FormatNumber($this->field_3155->ViewValue, 0, -2, -2, -2);
			$this->field_3155->ViewCustomAttributes = "";

			// field_3156
			$this->field_3156->ViewValue = $this->field_3156->CurrentValue;
			$this->field_3156->ViewValue = FormatNumber($this->field_3156->ViewValue, 0, -2, -2, -2);
			$this->field_3156->ViewCustomAttributes = "";

			// field_3157
			$this->field_3157->ViewValue = $this->field_3157->CurrentValue;
			$this->field_3157->ViewValue = FormatNumber($this->field_3157->ViewValue, 0, -2, -2, -2);
			$this->field_3157->ViewCustomAttributes = "";

			// field_3158
			$this->field_3158->ViewValue = $this->field_3158->CurrentValue;
			$this->field_3158->ViewValue = FormatNumber($this->field_3158->ViewValue, 0, -2, -2, -2);
			$this->field_3158->ViewCustomAttributes = "";

			// field_3159
			$this->field_3159->ViewValue = $this->field_3159->CurrentValue;
			$this->field_3159->ViewValue = FormatNumber($this->field_3159->ViewValue, 0, -2, -2, -2);
			$this->field_3159->ViewCustomAttributes = "";

			// field_3160
			$this->field_3160->ViewValue = $this->field_3160->CurrentValue;
			$this->field_3160->ViewValue = FormatNumber($this->field_3160->ViewValue, 0, -2, -2, -2);
			$this->field_3160->ViewCustomAttributes = "";

			// field_3161
			$this->field_3161->ViewValue = $this->field_3161->CurrentValue;
			$this->field_3161->ViewValue = FormatNumber($this->field_3161->ViewValue, 0, -2, -2, -2);
			$this->field_3161->ViewCustomAttributes = "";

			// field_3162
			$this->field_3162->ViewValue = $this->field_3162->CurrentValue;
			$this->field_3162->ViewValue = FormatNumber($this->field_3162->ViewValue, 0, -2, -2, -2);
			$this->field_3162->ViewCustomAttributes = "";

			// field_3163
			$this->field_3163->ViewValue = $this->field_3163->CurrentValue;
			$this->field_3163->ViewValue = FormatNumber($this->field_3163->ViewValue, 0, -2, -2, -2);
			$this->field_3163->ViewCustomAttributes = "";

			// field_3164
			$this->field_3164->ViewValue = $this->field_3164->CurrentValue;
			$this->field_3164->ViewValue = FormatNumber($this->field_3164->ViewValue, 0, -2, -2, -2);
			$this->field_3164->ViewCustomAttributes = "";

			// field_3165
			$this->field_3165->ViewValue = $this->field_3165->CurrentValue;
			$this->field_3165->ViewValue = FormatNumber($this->field_3165->ViewValue, 0, -2, -2, -2);
			$this->field_3165->ViewCustomAttributes = "";

			// field_3166
			$this->field_3166->ViewValue = $this->field_3166->CurrentValue;
			$this->field_3166->ViewValue = FormatNumber($this->field_3166->ViewValue, 0, -2, -2, -2);
			$this->field_3166->ViewCustomAttributes = "";

			// field_3167
			$this->field_3167->ViewValue = $this->field_3167->CurrentValue;
			$this->field_3167->ViewValue = FormatNumber($this->field_3167->ViewValue, 2, -2, -2, -2);
			$this->field_3167->ViewCustomAttributes = "";

			// field_3168
			$this->field_3168->ViewValue = $this->field_3168->CurrentValue;
			$this->field_3168->ViewValue = FormatNumber($this->field_3168->ViewValue, 2, -2, -2, -2);
			$this->field_3168->ViewCustomAttributes = "";

			// field_3169
			$this->field_3169->ViewValue = $this->field_3169->CurrentValue;
			$this->field_3169->ViewValue = FormatNumber($this->field_3169->ViewValue, 0, -2, -2, -2);
			$this->field_3169->ViewCustomAttributes = "";

			// field_3170
			$this->field_3170->ViewValue = $this->field_3170->CurrentValue;
			$this->field_3170->ViewValue = FormatNumber($this->field_3170->ViewValue, 0, -2, -2, -2);
			$this->field_3170->ViewCustomAttributes = "";

			// field_3171
			$this->field_3171->ViewValue = $this->field_3171->CurrentValue;
			$this->field_3171->ViewCustomAttributes = "";

			// field_3172
			$this->field_3172->ViewValue = $this->field_3172->CurrentValue;
			$this->field_3172->ViewCustomAttributes = "";

			// field_3173
			$this->field_3173->ViewValue = $this->field_3173->CurrentValue;
			$this->field_3173->ViewValue = FormatNumber($this->field_3173->ViewValue, 2, -2, -2, -2);
			$this->field_3173->ViewCustomAttributes = "";

			// field_3173_si
			$this->field_3173_si->ViewValue = $this->field_3173_si->CurrentValue;
			$this->field_3173_si->ViewValue = FormatNumber($this->field_3173_si->ViewValue, 2, -2, -2, -2);
			$this->field_3173_si->ViewCustomAttributes = "";

			// field_3173_unit
			$this->field_3173_unit->ViewValue = $this->field_3173_unit->CurrentValue;
			$this->field_3173_unit->ViewValue = FormatNumber($this->field_3173_unit->ViewValue, 0, -2, -2, -2);
			$this->field_3173_unit->ViewCustomAttributes = "";

			// field_3180
			$this->field_3180->ViewValue = $this->field_3180->CurrentValue;
			$this->field_3180->ViewCustomAttributes = "";

			// field_3180_en_us
			$this->field_3180_en_us->ViewValue = $this->field_3180_en_us->CurrentValue;
			$this->field_3180_en_us->ViewCustomAttributes = "";

			// field_3180_fr_fr
			$this->field_3180_fr_fr->ViewValue = $this->field_3180_fr_fr->CurrentValue;
			$this->field_3180_fr_fr->ViewCustomAttributes = "";

			// field_3181
			$this->field_3181->ViewValue = $this->field_3181->CurrentValue;
			$this->field_3181->ViewValue = FormatNumber($this->field_3181->ViewValue, 0, -2, -2, -2);
			$this->field_3181->ViewCustomAttributes = "";

			// field_3182
			$this->field_3182->ViewValue = $this->field_3182->CurrentValue;
			$this->field_3182->ViewValue = FormatNumber($this->field_3182->ViewValue, 0, -2, -2, -2);
			$this->field_3182->ViewCustomAttributes = "";

			// n_3189
			$this->n_3189->ViewValue = $this->n_3189->CurrentValue;
			$this->n_3189->ViewValue = FormatNumber($this->n_3189->ViewValue, 0, -2, -2, -2);
			$this->n_3189->ViewCustomAttributes = "";

			// n_3189_distance
			$this->n_3189_distance->ViewValue = $this->n_3189_distance->CurrentValue;
			$this->n_3189_distance->ViewValue = FormatNumber($this->n_3189_distance->ViewValue, 0, -2, -2, -2);
			$this->n_3189_distance->ViewCustomAttributes = "";

			// n_3189_distance_by
			$this->n_3189_distance_by->ViewValue = $this->n_3189_distance_by->CurrentValue;
			$this->n_3189_distance_by->ViewValue = FormatNumber($this->n_3189_distance_by->ViewValue, 0, -2, -2, -2);
			$this->n_3189_distance_by->ViewCustomAttributes = "";

			// field_3190
			$this->field_3190->ViewValue = $this->field_3190->CurrentValue;
			$this->field_3190->ViewValue = FormatDateTime($this->field_3190->ViewValue, 0);
			$this->field_3190->ViewCustomAttributes = "";

			// field_3192
			$this->field_3192->ViewValue = $this->field_3192->CurrentValue;
			$this->field_3192->ViewValue = FormatNumber($this->field_3192->ViewValue, 0, -2, -2, -2);
			$this->field_3192->ViewCustomAttributes = "";

			// field_3193
			$this->field_3193->ViewValue = $this->field_3193->CurrentValue;
			$this->field_3193->ViewCustomAttributes = "";

			// field_3195
			$this->field_3195->ViewValue = $this->field_3195->CurrentValue;
			$this->field_3195->ViewValue = FormatNumber($this->field_3195->ViewValue, 0, -2, -2, -2);
			$this->field_3195->ViewCustomAttributes = "";

			// field_3114_en_us
			$this->field_3114_en_us->ViewValue = $this->field_3114_en_us->CurrentValue;
			$this->field_3114_en_us->ViewCustomAttributes = "";

			// field_3114_fr_fr
			$this->field_3114_fr_fr->ViewValue = $this->field_3114_fr_fr->CurrentValue;
			$this->field_3114_fr_fr->ViewCustomAttributes = "";

			// n_3196
			$this->n_3196->ViewValue = $this->n_3196->CurrentValue;
			$this->n_3196->ViewValue = FormatNumber($this->n_3196->ViewValue, 0, -2, -2, -2);
			$this->n_3196->ViewCustomAttributes = "";

			// n_3196_distance
			$this->n_3196_distance->ViewValue = $this->n_3196_distance->CurrentValue;
			$this->n_3196_distance->ViewValue = FormatNumber($this->n_3196_distance->ViewValue, 0, -2, -2, -2);
			$this->n_3196_distance->ViewCustomAttributes = "";

			// n_3196_distance_by
			$this->n_3196_distance_by->ViewValue = $this->n_3196_distance_by->CurrentValue;
			$this->n_3196_distance_by->ViewValue = FormatNumber($this->n_3196_distance_by->ViewValue, 0, -2, -2, -2);
			$this->n_3196_distance_by->ViewCustomAttributes = "";

			// field_3197
			$this->field_3197->ViewValue = $this->field_3197->CurrentValue;
			$this->field_3197->ViewValue = FormatNumber($this->field_3197->ViewValue, 2, -2, -2, -2);
			$this->field_3197->ViewCustomAttributes = "";

			// field_3197_si
			$this->field_3197_si->ViewValue = $this->field_3197_si->CurrentValue;
			$this->field_3197_si->ViewValue = FormatNumber($this->field_3197_si->ViewValue, 2, -2, -2, -2);
			$this->field_3197_si->ViewCustomAttributes = "";

			// field_3197_unit
			$this->field_3197_unit->ViewValue = $this->field_3197_unit->CurrentValue;
			$this->field_3197_unit->ViewValue = FormatNumber($this->field_3197_unit->ViewValue, 0, -2, -2, -2);
			$this->field_3197_unit->ViewCustomAttributes = "";

			// id
			$this->id->LinkCustomAttributes = "";
			$this->id->HrefValue = "";
			$this->id->TooltipValue = "";
			if (!$this->isExport())
				$this->id->ViewValue = $this->highlightValue($this->id);

			// field_3119
			$this->field_3119->LinkCustomAttributes = "";
			$this->field_3119->HrefValue = "";
			$this->field_3119->TooltipValue = "";

			// field_3119_en_us
			$this->field_3119_en_us->LinkCustomAttributes = "";
			$this->field_3119_en_us->HrefValue = "";
			$this->field_3119_en_us->TooltipValue = "";

			// field_3119_fr_fr
			$this->field_3119_fr_fr->LinkCustomAttributes = "";
			$this->field_3119_fr_fr->HrefValue = "";
			$this->field_3119_fr_fr->TooltipValue = "";

			// field_3120
			$this->field_3120->LinkCustomAttributes = "";
			$this->field_3120->HrefValue = "";
			$this->field_3120->TooltipValue = "";

			// field_3120_en_us
			$this->field_3120_en_us->LinkCustomAttributes = "";
			$this->field_3120_en_us->HrefValue = "";
			$this->field_3120_en_us->TooltipValue = "";

			// field_3120_fr_fr
			$this->field_3120_fr_fr->LinkCustomAttributes = "";
			$this->field_3120_fr_fr->HrefValue = "";
			$this->field_3120_fr_fr->TooltipValue = "";

			// field_3190
			$this->field_3190->LinkCustomAttributes = "";
			$this->field_3190->HrefValue = "";
			$this->field_3190->TooltipValue = "";

			// field_3192
			$this->field_3192->LinkCustomAttributes = "";
			$this->field_3192->HrefValue = "";
			$this->field_3192->TooltipValue = "";

			// field_3193
			$this->field_3193->LinkCustomAttributes = "";
			$this->field_3193->HrefValue = "";
			$this->field_3193->TooltipValue = "";

			// field_3195
			$this->field_3195->LinkCustomAttributes = "";
			$this->field_3195->HrefValue = "";
			$this->field_3195->TooltipValue = "";

			// field_3114_en_us
			$this->field_3114_en_us->LinkCustomAttributes = "";
			$this->field_3114_en_us->HrefValue = "";
			$this->field_3114_en_us->TooltipValue = "";

			// field_3114_fr_fr
			$this->field_3114_fr_fr->LinkCustomAttributes = "";
			$this->field_3114_fr_fr->HrefValue = "";
			$this->field_3114_fr_fr->TooltipValue = "";

			// n_3196
			$this->n_3196->LinkCustomAttributes = "";
			$this->n_3196->HrefValue = "";
			$this->n_3196->TooltipValue = "";

			// n_3196_distance
			$this->n_3196_distance->LinkCustomAttributes = "";
			$this->n_3196_distance->HrefValue = "";
			$this->n_3196_distance->TooltipValue = "";

			// n_3196_distance_by
			$this->n_3196_distance_by->LinkCustomAttributes = "";
			$this->n_3196_distance_by->HrefValue = "";
			$this->n_3196_distance_by->TooltipValue = "";

			// field_3197
			$this->field_3197->LinkCustomAttributes = "";
			$this->field_3197->HrefValue = "";
			$this->field_3197->TooltipValue = "";

			// field_3197_si
			$this->field_3197_si->LinkCustomAttributes = "";
			$this->field_3197_si->HrefValue = "";
			$this->field_3197_si->TooltipValue = "";

			// field_3197_unit
			$this->field_3197_unit->LinkCustomAttributes = "";
			$this->field_3197_unit->HrefValue = "";
			$this->field_3197_unit->TooltipValue = "";
		} elseif ($this->RowType == ROWTYPE_SEARCH) { // Search row

			// id
			$this->id->EditAttrs["class"] = "form-control";
			$this->id->EditCustomAttributes = "";
			$this->id->EditValue = HtmlEncode($this->id->AdvancedSearch->SearchValue);
			$this->id->PlaceHolder = RemoveHtml($this->id->caption());

			// field_3119
			$this->field_3119->EditAttrs["class"] = "form-control";
			$this->field_3119->EditCustomAttributes = "";
			if (!$this->field_3119->Raw)
				$this->field_3119->AdvancedSearch->SearchValue = HtmlDecode($this->field_3119->AdvancedSearch->SearchValue);
			$this->field_3119->EditValue = HtmlEncode($this->field_3119->AdvancedSearch->SearchValue);
			$this->field_3119->PlaceHolder = RemoveHtml($this->field_3119->caption());

			// field_3119_en_us
			$this->field_3119_en_us->EditAttrs["class"] = "form-control";
			$this->field_3119_en_us->EditCustomAttributes = "";
			if (!$this->field_3119_en_us->Raw)
				$this->field_3119_en_us->AdvancedSearch->SearchValue = HtmlDecode($this->field_3119_en_us->AdvancedSearch->SearchValue);
			$this->field_3119_en_us->EditValue = HtmlEncode($this->field_3119_en_us->AdvancedSearch->SearchValue);
			$this->field_3119_en_us->PlaceHolder = RemoveHtml($this->field_3119_en_us->caption());

			// field_3119_fr_fr
			$this->field_3119_fr_fr->EditAttrs["class"] = "form-control";
			$this->field_3119_fr_fr->EditCustomAttributes = "";
			if (!$this->field_3119_fr_fr->Raw)
				$this->field_3119_fr_fr->AdvancedSearch->SearchValue = HtmlDecode($this->field_3119_fr_fr->AdvancedSearch->SearchValue);
			$this->field_3119_fr_fr->EditValue = HtmlEncode($this->field_3119_fr_fr->AdvancedSearch->SearchValue);
			$this->field_3119_fr_fr->PlaceHolder = RemoveHtml($this->field_3119_fr_fr->caption());

			// field_3120
			$this->field_3120->EditAttrs["class"] = "form-control";
			$this->field_3120->EditCustomAttributes = "";
			if (!$this->field_3120->Raw)
				$this->field_3120->AdvancedSearch->SearchValue = HtmlDecode($this->field_3120->AdvancedSearch->SearchValue);
			$this->field_3120->EditValue = HtmlEncode($this->field_3120->AdvancedSearch->SearchValue);
			$this->field_3120->PlaceHolder = RemoveHtml($this->field_3120->caption());

			// field_3120_en_us
			$this->field_3120_en_us->EditAttrs["class"] = "form-control";
			$this->field_3120_en_us->EditCustomAttributes = "";
			if (!$this->field_3120_en_us->Raw)
				$this->field_3120_en_us->AdvancedSearch->SearchValue = HtmlDecode($this->field_3120_en_us->AdvancedSearch->SearchValue);
			$this->field_3120_en_us->EditValue = HtmlEncode($this->field_3120_en_us->AdvancedSearch->SearchValue);
			$this->field_3120_en_us->PlaceHolder = RemoveHtml($this->field_3120_en_us->caption());

			// field_3120_fr_fr
			$this->field_3120_fr_fr->EditAttrs["class"] = "form-control";
			$this->field_3120_fr_fr->EditCustomAttributes = "";
			if (!$this->field_3120_fr_fr->Raw)
				$this->field_3120_fr_fr->AdvancedSearch->SearchValue = HtmlDecode($this->field_3120_fr_fr->AdvancedSearch->SearchValue);
			$this->field_3120_fr_fr->EditValue = HtmlEncode($this->field_3120_fr_fr->AdvancedSearch->SearchValue);
			$this->field_3120_fr_fr->PlaceHolder = RemoveHtml($this->field_3120_fr_fr->caption());

			// field_3190
			$this->field_3190->EditAttrs["class"] = "form-control";
			$this->field_3190->EditCustomAttributes = "";
			$this->field_3190->EditValue = HtmlEncode(FormatDateTime(UnFormatDateTime($this->field_3190->AdvancedSearch->SearchValue, 0), 8));
			$this->field_3190->PlaceHolder = RemoveHtml($this->field_3190->caption());

			// field_3192
			$this->field_3192->EditAttrs["class"] = "form-control";
			$this->field_3192->EditCustomAttributes = "";
			$this->field_3192->EditValue = HtmlEncode($this->field_3192->AdvancedSearch->SearchValue);
			$this->field_3192->PlaceHolder = RemoveHtml($this->field_3192->caption());

			// field_3193
			$this->field_3193->EditAttrs["class"] = "form-control";
			$this->field_3193->EditCustomAttributes = "";
			if (!$this->field_3193->Raw)
				$this->field_3193->AdvancedSearch->SearchValue = HtmlDecode($this->field_3193->AdvancedSearch->SearchValue);
			$this->field_3193->EditValue = HtmlEncode($this->field_3193->AdvancedSearch->SearchValue);
			$this->field_3193->PlaceHolder = RemoveHtml($this->field_3193->caption());

			// field_3195
			$this->field_3195->EditAttrs["class"] = "form-control";
			$this->field_3195->EditCustomAttributes = "";
			$this->field_3195->EditValue = HtmlEncode($this->field_3195->AdvancedSearch->SearchValue);
			$this->field_3195->PlaceHolder = RemoveHtml($this->field_3195->caption());

			// field_3114_en_us
			$this->field_3114_en_us->EditAttrs["class"] = "form-control";
			$this->field_3114_en_us->EditCustomAttributes = "";
			if (!$this->field_3114_en_us->Raw)
				$this->field_3114_en_us->AdvancedSearch->SearchValue = HtmlDecode($this->field_3114_en_us->AdvancedSearch->SearchValue);
			$this->field_3114_en_us->EditValue = HtmlEncode($this->field_3114_en_us->AdvancedSearch->SearchValue);
			$this->field_3114_en_us->PlaceHolder = RemoveHtml($this->field_3114_en_us->caption());

			// field_3114_fr_fr
			$this->field_3114_fr_fr->EditAttrs["class"] = "form-control";
			$this->field_3114_fr_fr->EditCustomAttributes = "";
			if (!$this->field_3114_fr_fr->Raw)
				$this->field_3114_fr_fr->AdvancedSearch->SearchValue = HtmlDecode($this->field_3114_fr_fr->AdvancedSearch->SearchValue);
			$this->field_3114_fr_fr->EditValue = HtmlEncode($this->field_3114_fr_fr->AdvancedSearch->SearchValue);
			$this->field_3114_fr_fr->PlaceHolder = RemoveHtml($this->field_3114_fr_fr->caption());

			// n_3196
			$this->n_3196->EditAttrs["class"] = "form-control";
			$this->n_3196->EditCustomAttributes = "";
			$this->n_3196->EditValue = HtmlEncode($this->n_3196->AdvancedSearch->SearchValue);
			$this->n_3196->PlaceHolder = RemoveHtml($this->n_3196->caption());

			// n_3196_distance
			$this->n_3196_distance->EditAttrs["class"] = "form-control";
			$this->n_3196_distance->EditCustomAttributes = "";
			$this->n_3196_distance->EditValue = HtmlEncode($this->n_3196_distance->AdvancedSearch->SearchValue);
			$this->n_3196_distance->PlaceHolder = RemoveHtml($this->n_3196_distance->caption());

			// n_3196_distance_by
			$this->n_3196_distance_by->EditAttrs["class"] = "form-control";
			$this->n_3196_distance_by->EditCustomAttributes = "";
			$this->n_3196_distance_by->EditValue = HtmlEncode($this->n_3196_distance_by->AdvancedSearch->SearchValue);
			$this->n_3196_distance_by->PlaceHolder = RemoveHtml($this->n_3196_distance_by->caption());

			// field_3197
			$this->field_3197->EditAttrs["class"] = "form-control";
			$this->field_3197->EditCustomAttributes = "";
			$this->field_3197->EditValue = HtmlEncode($this->field_3197->AdvancedSearch->SearchValue);
			$this->field_3197->PlaceHolder = RemoveHtml($this->field_3197->caption());

			// field_3197_si
			$this->field_3197_si->EditAttrs["class"] = "form-control";
			$this->field_3197_si->EditCustomAttributes = "";
			$this->field_3197_si->EditValue = HtmlEncode($this->field_3197_si->AdvancedSearch->SearchValue);
			$this->field_3197_si->PlaceHolder = RemoveHtml($this->field_3197_si->caption());

			// field_3197_unit
			$this->field_3197_unit->EditAttrs["class"] = "form-control";
			$this->field_3197_unit->EditCustomAttributes = "";
			$this->field_3197_unit->EditValue = HtmlEncode($this->field_3197_unit->AdvancedSearch->SearchValue);
			$this->field_3197_unit->PlaceHolder = RemoveHtml($this->field_3197_unit->caption());
		}
		if ($this->RowType == ROWTYPE_ADD || $this->RowType == ROWTYPE_EDIT || $this->RowType == ROWTYPE_SEARCH) // Add/Edit/Search row
			$this->setupFieldTitles();

		// Call Row Rendered event
		if ($this->RowType != ROWTYPE_AGGREGATEINIT)
			$this->Row_Rendered();
	}

	// Validate search
	protected function validateSearch()
	{
		global $SearchError;

		// Initialize
		$SearchError = "";

		// Check if validation required
		if (!Config("SERVER_VALIDATE"))
			return TRUE;
		if (!CheckInteger($this->id->AdvancedSearch->SearchValue)) {
			AddMessage($SearchError, $this->id->errorMessage());
		}

		// Return validate result
		$validateSearch = ($SearchError == "");

		// Call Form_CustomValidate event
		$formCustomError = "";
		$validateSearch = $validateSearch && $this->Form_CustomValidate($formCustomError);
		if ($formCustomError != "") {
			AddMessage($SearchError, $formCustomError);
		}
		return $validateSearch;
	}

	// Load advanced search
	public function loadAdvancedSearch()
	{
		$this->id->AdvancedSearch->load();
		$this->kind->AdvancedSearch->load();
		$this->deleted->AdvancedSearch->load();
		$this->mls_id->AdvancedSearch->load();
		$this->mls_id_num->AdvancedSearch->load();
		$this->parent->AdvancedSearch->load();
		$this->pic_numb->AdvancedSearch->load();
		$this->user_id->AdvancedSearch->load();
		$this->listing->AdvancedSearch->load();
		$this->property_type->AdvancedSearch->load();
		$this->location1_id->AdvancedSearch->load();
		$this->location2_id->AdvancedSearch->load();
		$this->location3_id->AdvancedSearch->load();
		$this->location4_id->AdvancedSearch->load();
		$this->location5_id->AdvancedSearch->load();
		$this->location6_id->AdvancedSearch->load();
		$this->location7_id->AdvancedSearch->load();
		$this->location1_name->AdvancedSearch->load();
		$this->location2_name->AdvancedSearch->load();
		$this->location3_name->AdvancedSearch->load();
		$this->location4_name->AdvancedSearch->load();
		$this->location5_name->AdvancedSearch->load();
		$this->location6_name->AdvancedSearch->load();
		$this->location7_name->AdvancedSearch->load();
		$this->show_address->AdvancedSearch->load();
		$this->show_marker->AdvancedSearch->load();
		$this->price->AdvancedSearch->load();
		$this->price_unit->AdvancedSearch->load();
		$this->price_si->AdvancedSearch->load();
		$this->price_period->AdvancedSearch->load();
		$this->bedrooms->AdvancedSearch->load();
		$this->rooms->AdvancedSearch->load();
		$this->bathrooms->AdvancedSearch->load();
		$this->living_area->AdvancedSearch->load();
		$this->living_area_unit->AdvancedSearch->load();
		$this->living_area_si->AdvancedSearch->load();
		$this->lot_area->AdvancedSearch->load();
		$this->lot_area_unit->AdvancedSearch->load();
		$this->lot_area_si->AdvancedSearch->load();
		$this->googlemap_lt->AdvancedSearch->load();
		$this->googlemap_ln->AdvancedSearch->load();
		$this->finalized->AdvancedSearch->load();
		$this->add_date->AdvancedSearch->load();
		$this->last_finalize_date->AdvancedSearch->load();
		$this->expire_days->AdvancedSearch->load();
		$this->confirmed->AdvancedSearch->load();
		$this->expired->AdvancedSearch->load();
		$this->build_year->AdvancedSearch->load();
		$this->zip_id->AdvancedSearch->load();
		$this->zip_name->AdvancedSearch->load();
		$this->last_modified_time_stamp->AdvancedSearch->load();
		$this->post_code->AdvancedSearch->load();
		$this->meta_description->AdvancedSearch->load();
		$this->meta_description_manual->AdvancedSearch->load();
		$this->meta_keywords->AdvancedSearch->load();
		$this->meta_keywords_manual->AdvancedSearch->load();
		$this->street_no->AdvancedSearch->load();
		$this->sp_featured->AdvancedSearch->load();
		$this->sp_hot->AdvancedSearch->load();
		$this->sp_openhouse->AdvancedSearch->load();
		$this->sp_forclosure->AdvancedSearch->load();
		$this->textsearch->AdvancedSearch->load();
		$this->location_text->AdvancedSearch->load();
		$this->field_42->AdvancedSearch->load();
		$this->field_312->AdvancedSearch->load();
		$this->field_313->AdvancedSearch->load();
		$this->field_7->AdvancedSearch->load();
		$this->n_103->AdvancedSearch->load();
		$this->n_103_distance->AdvancedSearch->load();
		$this->n_103_distance_by->AdvancedSearch->load();
		$this->n_105->AdvancedSearch->load();
		$this->n_105_distance->AdvancedSearch->load();
		$this->n_105_distance_by->AdvancedSearch->load();
		$this->n_107->AdvancedSearch->load();
		$this->n_107_distance->AdvancedSearch->load();
		$this->n_107_distance_by->AdvancedSearch->load();
		$this->n_108->AdvancedSearch->load();
		$this->n_108_distance->AdvancedSearch->load();
		$this->n_108_distance_by->AdvancedSearch->load();
		$this->n_109->AdvancedSearch->load();
		$this->n_109_distance->AdvancedSearch->load();
		$this->n_109_distance_by->AdvancedSearch->load();
		$this->f_131_options->AdvancedSearch->load();
		$this->f_131->AdvancedSearch->load();
		$this->f_137_options->AdvancedSearch->load();
		$this->f_137->AdvancedSearch->load();
		$this->f_139_options->AdvancedSearch->load();
		$this->f_139->AdvancedSearch->load();
		$this->f_144_options->AdvancedSearch->load();
		$this->f_144->AdvancedSearch->load();
		$this->f_146_options->AdvancedSearch->load();
		$this->f_146->AdvancedSearch->load();
		$this->f_149_options->AdvancedSearch->load();
		$this->f_149->AdvancedSearch->load();
		$this->f_150_options->AdvancedSearch->load();
		$this->f_150->AdvancedSearch->load();
		$this->f_156_options->AdvancedSearch->load();
		$this->f_156->AdvancedSearch->load();
		$this->f_157_options->AdvancedSearch->load();
		$this->f_157->AdvancedSearch->load();
		$this->f_159_options->AdvancedSearch->load();
		$this->f_159->AdvancedSearch->load();
		$this->f_161_options->AdvancedSearch->load();
		$this->f_161->AdvancedSearch->load();
		$this->f_163_options->AdvancedSearch->load();
		$this->f_163->AdvancedSearch->load();
		$this->f_165_options->AdvancedSearch->load();
		$this->f_165->AdvancedSearch->load();
		$this->f_166_options->AdvancedSearch->load();
		$this->f_166->AdvancedSearch->load();
		$this->ref_id->AdvancedSearch->load();
		$this->field_54->AdvancedSearch->load();
		$this->half_bathrooms->AdvancedSearch->load();
		$this->field_55->AdvancedSearch->load();
		$this->rendered->AdvancedSearch->load();
		$this->alias->AdvancedSearch->load();
		$this->source->AdvancedSearch->load();
		$this->last_sync_date->AdvancedSearch->load();
		$this->street_suffix->AdvancedSearch->load();
		$this->energy_tag->AdvancedSearch->load();
		$this->field_3006->AdvancedSearch->load();
		$this->field_3007->AdvancedSearch->load();
		$this->field_3008->AdvancedSearch->load();
		$this->importer_structure_id->AdvancedSearch->load();
		$this->importer_params->AdvancedSearch->load();
		$this->field_3009->AdvancedSearch->load();
		$this->field_3010->AdvancedSearch->load();
		$this->field_3012->AdvancedSearch->load();
		$this->rendered_en_us->AdvancedSearch->load();
		$this->textsearch_en_us->AdvancedSearch->load();
		$this->rendered_fr_fr->AdvancedSearch->load();
		$this->textsearch_fr_fr->AdvancedSearch->load();
		$this->field_3013->AdvancedSearch->load();
		$this->field_3014->AdvancedSearch->load();
		$this->f_3014_options->AdvancedSearch->load();
		$this->f_3014->AdvancedSearch->load();
		$this->field_3015->AdvancedSearch->load();
		$this->field_3016->AdvancedSearch->load();
		$this->field_3017->AdvancedSearch->load();
		$this->f_3018_options->AdvancedSearch->load();
		$this->f_3018->AdvancedSearch->load();
		$this->f_3019_options->AdvancedSearch->load();
		$this->f_3019->AdvancedSearch->load();
		$this->f_3020_options->AdvancedSearch->load();
		$this->f_3020->AdvancedSearch->load();
		$this->f_3021_options->AdvancedSearch->load();
		$this->f_3021->AdvancedSearch->load();
		$this->f_3022_options->AdvancedSearch->load();
		$this->f_3022->AdvancedSearch->load();
		$this->f_3023_options->AdvancedSearch->load();
		$this->f_3023->AdvancedSearch->load();
		$this->f_3024_options->AdvancedSearch->load();
		$this->f_3024->AdvancedSearch->load();
		$this->f_3025_options->AdvancedSearch->load();
		$this->f_3025->AdvancedSearch->load();
		$this->f_3026_options->AdvancedSearch->load();
		$this->f_3026->AdvancedSearch->load();
		$this->f_3027_options->AdvancedSearch->load();
		$this->f_3027->AdvancedSearch->load();
		$this->f_3028_options->AdvancedSearch->load();
		$this->f_3028->AdvancedSearch->load();
		$this->f_3029_options->AdvancedSearch->load();
		$this->f_3029->AdvancedSearch->load();
		$this->f_3031_options->AdvancedSearch->load();
		$this->f_3031->AdvancedSearch->load();
		$this->f_3032_options->AdvancedSearch->load();
		$this->f_3032->AdvancedSearch->load();
		$this->f_3033_options->AdvancedSearch->load();
		$this->f_3033->AdvancedSearch->load();
		$this->f_3034_options->AdvancedSearch->load();
		$this->f_3034->AdvancedSearch->load();
		$this->f_3035_options->AdvancedSearch->load();
		$this->f_3035->AdvancedSearch->load();
		$this->f_3036_options->AdvancedSearch->load();
		$this->f_3036->AdvancedSearch->load();
		$this->f_3037_options->AdvancedSearch->load();
		$this->f_3037->AdvancedSearch->load();
		$this->f_3038_options->AdvancedSearch->load();
		$this->f_3038->AdvancedSearch->load();
		$this->f_3039_options->AdvancedSearch->load();
		$this->f_3039->AdvancedSearch->load();
		$this->f_3040_options->AdvancedSearch->load();
		$this->f_3040->AdvancedSearch->load();
		$this->f_3041_options->AdvancedSearch->load();
		$this->f_3041->AdvancedSearch->load();
		$this->f_3042_options->AdvancedSearch->load();
		$this->f_3042->AdvancedSearch->load();
		$this->f_3043_options->AdvancedSearch->load();
		$this->f_3043->AdvancedSearch->load();
		$this->f_3044_options->AdvancedSearch->load();
		$this->f_3044->AdvancedSearch->load();
		$this->n_3045->AdvancedSearch->load();
		$this->n_3045_distance->AdvancedSearch->load();
		$this->n_3045_distance_by->AdvancedSearch->load();
		$this->n_3046->AdvancedSearch->load();
		$this->n_3046_distance->AdvancedSearch->load();
		$this->n_3046_distance_by->AdvancedSearch->load();
		$this->n_3047->AdvancedSearch->load();
		$this->n_3047_distance->AdvancedSearch->load();
		$this->n_3047_distance_by->AdvancedSearch->load();
		$this->n_3048->AdvancedSearch->load();
		$this->n_3048_distance->AdvancedSearch->load();
		$this->n_3048_distance_by->AdvancedSearch->load();
		$this->n_3049->AdvancedSearch->load();
		$this->n_3049_distance->AdvancedSearch->load();
		$this->n_3049_distance_by->AdvancedSearch->load();
		$this->n_3050->AdvancedSearch->load();
		$this->n_3050_distance->AdvancedSearch->load();
		$this->n_3050_distance_by->AdvancedSearch->load();
		$this->n_3051->AdvancedSearch->load();
		$this->n_3051_distance->AdvancedSearch->load();
		$this->n_3051_distance_by->AdvancedSearch->load();
		$this->n_3052->AdvancedSearch->load();
		$this->n_3052_distance->AdvancedSearch->load();
		$this->n_3052_distance_by->AdvancedSearch->load();
		$this->n_3053->AdvancedSearch->load();
		$this->n_3053_distance->AdvancedSearch->load();
		$this->n_3053_distance_by->AdvancedSearch->load();
		$this->n_3054->AdvancedSearch->load();
		$this->n_3054_distance->AdvancedSearch->load();
		$this->n_3054_distance_by->AdvancedSearch->load();
		$this->n_3055->AdvancedSearch->load();
		$this->n_3055_distance->AdvancedSearch->load();
		$this->n_3055_distance_by->AdvancedSearch->load();
		$this->n_3056->AdvancedSearch->load();
		$this->n_3056_distance->AdvancedSearch->load();
		$this->n_3056_distance_by->AdvancedSearch->load();
		$this->n_3057->AdvancedSearch->load();
		$this->n_3057_distance->AdvancedSearch->load();
		$this->n_3057_distance_by->AdvancedSearch->load();
		$this->n_3058->AdvancedSearch->load();
		$this->n_3058_distance->AdvancedSearch->load();
		$this->n_3058_distance_by->AdvancedSearch->load();
		$this->n_3059->AdvancedSearch->load();
		$this->n_3059_distance->AdvancedSearch->load();
		$this->n_3059_distance_by->AdvancedSearch->load();
		$this->f_3060_options->AdvancedSearch->load();
		$this->f_3060->AdvancedSearch->load();
		$this->f_3061_options->AdvancedSearch->load();
		$this->f_3061->AdvancedSearch->load();
		$this->f_3062_options->AdvancedSearch->load();
		$this->f_3062->AdvancedSearch->load();
		$this->field_3063->AdvancedSearch->load();
		$this->field_3064->AdvancedSearch->load();
		$this->field_3065->AdvancedSearch->load();
		$this->field_308->AdvancedSearch->load();
		$this->field_308_en_us->AdvancedSearch->load();
		$this->field_308_fr_fr->AdvancedSearch->load();
		$this->field_313_en_us->AdvancedSearch->load();
		$this->field_313_fr_fr->AdvancedSearch->load();
		$this->field_312_en_us->AdvancedSearch->load();
		$this->field_312_fr_fr->AdvancedSearch->load();
		$this->field_3017_en_us->AdvancedSearch->load();
		$this->field_3017_fr_fr->AdvancedSearch->load();
		$this->field_42_en_us->AdvancedSearch->load();
		$this->field_42_fr_fr->AdvancedSearch->load();
		$this->field_3067->AdvancedSearch->load();
		$this->field_3068->AdvancedSearch->load();
		$this->field_3069->AdvancedSearch->load();
		$this->field_3070->AdvancedSearch->load();
		$this->field_3071->AdvancedSearch->load();
		$this->field_3071_en_us->AdvancedSearch->load();
		$this->field_3071_fr_fr->AdvancedSearch->load();
		$this->field_3072->AdvancedSearch->load();
		$this->field_3073->AdvancedSearch->load();
		$this->field_3074->AdvancedSearch->load();
		$this->field_3074_en_us->AdvancedSearch->load();
		$this->field_3074_fr_fr->AdvancedSearch->load();
		$this->field_3075->AdvancedSearch->load();
		$this->field_3076->AdvancedSearch->load();
		$this->field_3077->AdvancedSearch->load();
		$this->field_3078->AdvancedSearch->load();
		$this->field_3079->AdvancedSearch->load();
		$this->field_3080->AdvancedSearch->load();
		$this->field_3076_en_us->AdvancedSearch->load();
		$this->field_3076_fr_fr->AdvancedSearch->load();
		$this->field_3080_en_us->AdvancedSearch->load();
		$this->field_3080_fr_fr->AdvancedSearch->load();
		$this->field_3081->AdvancedSearch->load();
		$this->field_3081_en_us->AdvancedSearch->load();
		$this->field_3081_fr_fr->AdvancedSearch->load();
		$this->field_3082->AdvancedSearch->load();
		$this->field_3082_en_us->AdvancedSearch->load();
		$this->field_3082_fr_fr->AdvancedSearch->load();
		$this->field_3084->AdvancedSearch->load();
		$this->field_3085->AdvancedSearch->load();
		$this->field_3086->AdvancedSearch->load();
		$this->field_3096->AdvancedSearch->load();
		$this->field_3097->AdvancedSearch->load();
		$this->field_3098->AdvancedSearch->load();
		$this->field_3099->AdvancedSearch->load();
		$this->field_3100->AdvancedSearch->load();
		$this->field_3101->AdvancedSearch->load();
		$this->field_3102->AdvancedSearch->load();
		$this->field_3103->AdvancedSearch->load();
		$this->field_3104->AdvancedSearch->load();
		$this->field_3105->AdvancedSearch->load();
		$this->field_3106->AdvancedSearch->load();
		$this->field_3107->AdvancedSearch->load();
		$this->field_3108->AdvancedSearch->load();
		$this->field_3109->AdvancedSearch->load();
		$this->field_3110->AdvancedSearch->load();
		$this->field_3111->AdvancedSearch->load();
		$this->field_3112->AdvancedSearch->load();
		$this->field_3113->AdvancedSearch->load();
		$this->field_3113_en_us->AdvancedSearch->load();
		$this->field_3113_fr_fr->AdvancedSearch->load();
		$this->field_3114->AdvancedSearch->load();
		$this->field_3115->AdvancedSearch->load();
		$this->field_3115_si->AdvancedSearch->load();
		$this->field_3115_unit->AdvancedSearch->load();
		$this->field_3116->AdvancedSearch->load();
		$this->field_3117->AdvancedSearch->load();
		$this->field_3117_en_us->AdvancedSearch->load();
		$this->field_3117_fr_fr->AdvancedSearch->load();
		$this->field_3118->AdvancedSearch->load();
		$this->field_3118_en_us->AdvancedSearch->load();
		$this->field_3118_fr_fr->AdvancedSearch->load();
		$this->field_3119->AdvancedSearch->load();
		$this->field_3119_en_us->AdvancedSearch->load();
		$this->field_3119_fr_fr->AdvancedSearch->load();
		$this->field_3120->AdvancedSearch->load();
		$this->field_3120_en_us->AdvancedSearch->load();
		$this->field_3120_fr_fr->AdvancedSearch->load();
		$this->field_3121->AdvancedSearch->load();
		$this->field_3122->AdvancedSearch->load();
		$this->field_3122_si->AdvancedSearch->load();
		$this->field_3122_unit->AdvancedSearch->load();
		$this->field_3123->AdvancedSearch->load();
		$this->field_3124->AdvancedSearch->load();
		$this->field_3125->AdvancedSearch->load();
		$this->field_3126->AdvancedSearch->load();
		$this->field_3127->AdvancedSearch->load();
		$this->field_3128->AdvancedSearch->load();
		$this->field_3129->AdvancedSearch->load();
		$this->field_3130->AdvancedSearch->load();
		$this->field_3131->AdvancedSearch->load();
		$this->field_3132->AdvancedSearch->load();
		$this->field_3133->AdvancedSearch->load();
		$this->field_3134->AdvancedSearch->load();
		$this->field_3135->AdvancedSearch->load();
		$this->field_3136->AdvancedSearch->load();
		$this->field_3137->AdvancedSearch->load();
		$this->field_3138->AdvancedSearch->load();
		$this->field_3139->AdvancedSearch->load();
		$this->field_3140->AdvancedSearch->load();
		$this->field_3141->AdvancedSearch->load();
		$this->field_3142->AdvancedSearch->load();
		$this->field_3143->AdvancedSearch->load();
		$this->field_3144->AdvancedSearch->load();
		$this->field_3145->AdvancedSearch->load();
		$this->field_3146->AdvancedSearch->load();
		$this->field_3147->AdvancedSearch->load();
		$this->field_3148->AdvancedSearch->load();
		$this->field_3149->AdvancedSearch->load();
		$this->field_3150->AdvancedSearch->load();
		$this->field_3151->AdvancedSearch->load();
		$this->field_3152->AdvancedSearch->load();
		$this->field_3153->AdvancedSearch->load();
		$this->field_3154->AdvancedSearch->load();
		$this->field_3155->AdvancedSearch->load();
		$this->field_3156->AdvancedSearch->load();
		$this->field_3157->AdvancedSearch->load();
		$this->field_3158->AdvancedSearch->load();
		$this->field_3159->AdvancedSearch->load();
		$this->field_3160->AdvancedSearch->load();
		$this->field_3161->AdvancedSearch->load();
		$this->field_3162->AdvancedSearch->load();
		$this->field_3163->AdvancedSearch->load();
		$this->field_3164->AdvancedSearch->load();
		$this->field_3165->AdvancedSearch->load();
		$this->field_3166->AdvancedSearch->load();
		$this->field_3167->AdvancedSearch->load();
		$this->field_3168->AdvancedSearch->load();
		$this->field_3169->AdvancedSearch->load();
		$this->field_3170->AdvancedSearch->load();
		$this->field_3171->AdvancedSearch->load();
		$this->field_3172->AdvancedSearch->load();
		$this->field_3173->AdvancedSearch->load();
		$this->field_3173_si->AdvancedSearch->load();
		$this->field_3173_unit->AdvancedSearch->load();
		$this->field_3180->AdvancedSearch->load();
		$this->field_3180_en_us->AdvancedSearch->load();
		$this->field_3180_fr_fr->AdvancedSearch->load();
		$this->field_3181->AdvancedSearch->load();
		$this->field_3182->AdvancedSearch->load();
		$this->n_3189->AdvancedSearch->load();
		$this->n_3189_distance->AdvancedSearch->load();
		$this->n_3189_distance_by->AdvancedSearch->load();
		$this->field_3190->AdvancedSearch->load();
		$this->field_3192->AdvancedSearch->load();
		$this->field_3193->AdvancedSearch->load();
		$this->field_3195->AdvancedSearch->load();
		$this->field_3114_en_us->AdvancedSearch->load();
		$this->field_3114_fr_fr->AdvancedSearch->load();
		$this->n_3196->AdvancedSearch->load();
		$this->n_3196_distance->AdvancedSearch->load();
		$this->n_3196_distance_by->AdvancedSearch->load();
		$this->field_3197->AdvancedSearch->load();
		$this->field_3197_si->AdvancedSearch->load();
		$this->field_3197_unit->AdvancedSearch->load();
	}

	// Get export HTML tag
	protected function getExportTag($type, $custom = FALSE)
	{
		global $Language;
		if (SameText($type, "excel")) {
			if ($custom)
				return "<a href=\"#\" class=\"ew-export-link ew-excel\" title=\"" . HtmlEncode($Language->phrase("ExportToExcelText")) . "\" data-caption=\"" . HtmlEncode($Language->phrase("ExportToExcelText")) . "\" onclick=\"return ew.export(document.fwp_wpl_propertieslist, '" . $this->ExportExcelUrl . "', 'excel', true);\">" . $Language->phrase("ExportToExcel") . "</a>";
			else
				return "<a href=\"" . $this->ExportExcelUrl . "\" class=\"ew-export-link ew-excel\" title=\"" . HtmlEncode($Language->phrase("ExportToExcelText")) . "\" data-caption=\"" . HtmlEncode($Language->phrase("ExportToExcelText")) . "\">" . $Language->phrase("ExportToExcel") . "</a>";
		} elseif (SameText($type, "word")) {
			if ($custom)
				return "<a href=\"#\" class=\"ew-export-link ew-word\" title=\"" . HtmlEncode($Language->phrase("ExportToWordText")) . "\" data-caption=\"" . HtmlEncode($Language->phrase("ExportToWordText")) . "\" onclick=\"return ew.export(document.fwp_wpl_propertieslist, '" . $this->ExportWordUrl . "', 'word', true);\">" . $Language->phrase("ExportToWord") . "</a>";
			else
				return "<a href=\"" . $this->ExportWordUrl . "\" class=\"ew-export-link ew-word\" title=\"" . HtmlEncode($Language->phrase("ExportToWordText")) . "\" data-caption=\"" . HtmlEncode($Language->phrase("ExportToWordText")) . "\">" . $Language->phrase("ExportToWord") . "</a>";
		} elseif (SameText($type, "pdf")) {
			if ($custom)
				return "<a href=\"#\" class=\"ew-export-link ew-pdf\" title=\"" . HtmlEncode($Language->phrase("ExportToPDFText")) . "\" data-caption=\"" . HtmlEncode($Language->phrase("ExportToPDFText")) . "\" onclick=\"return ew.export(document.fwp_wpl_propertieslist, '" . $this->ExportPdfUrl . "', 'pdf', true);\">" . $Language->phrase("ExportToPDF") . "</a>";
			else
				return "<a href=\"" . $this->ExportPdfUrl . "\" class=\"ew-export-link ew-pdf\" title=\"" . HtmlEncode($Language->phrase("ExportToPDFText")) . "\" data-caption=\"" . HtmlEncode($Language->phrase("ExportToPDFText")) . "\">" . $Language->phrase("ExportToPDF") . "</a>";
		} elseif (SameText($type, "html")) {
			return "<a href=\"" . $this->ExportHtmlUrl . "\" class=\"ew-export-link ew-html\" title=\"" . HtmlEncode($Language->phrase("ExportToHtmlText")) . "\" data-caption=\"" . HtmlEncode($Language->phrase("ExportToHtmlText")) . "\">" . $Language->phrase("ExportToHtml") . "</a>";
		} elseif (SameText($type, "xml")) {
			return "<a href=\"" . $this->ExportXmlUrl . "\" class=\"ew-export-link ew-xml\" title=\"" . HtmlEncode($Language->phrase("ExportToXmlText")) . "\" data-caption=\"" . HtmlEncode($Language->phrase("ExportToXmlText")) . "\">" . $Language->phrase("ExportToXml") . "</a>";
		} elseif (SameText($type, "csv")) {
			return "<a href=\"" . $this->ExportCsvUrl . "\" class=\"ew-export-link ew-csv\" title=\"" . HtmlEncode($Language->phrase("ExportToCsvText")) . "\" data-caption=\"" . HtmlEncode($Language->phrase("ExportToCsvText")) . "\">" . $Language->phrase("ExportToCsv") . "</a>";
		} elseif (SameText($type, "email")) {
			$url = $custom ? ",url:'" . $this->pageUrl() . "export=email&amp;custom=1'" : "";
			return '<button id="emf_wp_wpl_properties" class="ew-export-link ew-email" title="' . $Language->phrase("ExportToEmailText") . '" data-caption="' . $Language->phrase("ExportToEmailText") . '" onclick="ew.emailDialogShow({lnk:\'emf_wp_wpl_properties\', hdr:ew.language.phrase(\'ExportToEmailText\'), f:document.fwp_wpl_propertieslist, sel:false' . $url . '});">' . $Language->phrase("ExportToEmail") . '</button>';
		} elseif (SameText($type, "print")) {
			return "<a href=\"" . $this->ExportPrintUrl . "\" class=\"ew-export-link ew-print\" title=\"" . HtmlEncode($Language->phrase("PrinterFriendlyText")) . "\" data-caption=\"" . HtmlEncode($Language->phrase("PrinterFriendlyText")) . "\">" . $Language->phrase("PrinterFriendly") . "</a>";
		}
	}

	// Set up export options
	protected function setupExportOptions()
	{
		global $Language;

		// Printer friendly
		$item = &$this->ExportOptions->add("print");
		$item->Body = $this->getExportTag("print");
		$item->Visible = TRUE;

		// Export to Excel
		$item = &$this->ExportOptions->add("excel");
		$item->Body = $this->getExportTag("excel");
		$item->Visible = TRUE;

		// Export to Word
		$item = &$this->ExportOptions->add("word");
		$item->Body = $this->getExportTag("word");
		$item->Visible = FALSE;

		// Export to Html
		$item = &$this->ExportOptions->add("html");
		$item->Body = $this->getExportTag("html");
		$item->Visible = FALSE;

		// Export to Xml
		$item = &$this->ExportOptions->add("xml");
		$item->Body = $this->getExportTag("xml");
		$item->Visible = FALSE;

		// Export to Csv
		$item = &$this->ExportOptions->add("csv");
		$item->Body = $this->getExportTag("csv");
		$item->Visible = FALSE;

		// Export to Pdf
		$item = &$this->ExportOptions->add("pdf");
		$item->Body = $this->getExportTag("pdf");
		$item->Visible = FALSE;

		// Export to Email
		$item = &$this->ExportOptions->add("email");
		$item->Body = $this->getExportTag("email");
		$item->Visible = FALSE;

		// Drop down button for export
		$this->ExportOptions->UseButtonGroup = TRUE;
		$this->ExportOptions->UseDropDownButton = TRUE;
		if ($this->ExportOptions->UseButtonGroup && IsMobile())
			$this->ExportOptions->UseDropDownButton = TRUE;
		$this->ExportOptions->DropDownButtonPhrase = $Language->phrase("ButtonExport");

		// Add group option item
		$item = &$this->ExportOptions->add($this->ExportOptions->GroupOptionName);
		$item->Body = "";
		$item->Visible = FALSE;
	}

	// Set up search options
	protected function setupSearchOptions()
	{
		global $Language;
		$this->SearchOptions = new ListOptions("div");
		$this->SearchOptions->TagClassName = "ew-search-option";

		// Search button
		$item = &$this->SearchOptions->add("searchtoggle");
		$searchToggleClass = ($this->SearchWhere != "") ? " active" : " active";
		$item->Body = "<a class=\"btn btn-default ew-search-toggle" . $searchToggleClass . "\" href=\"#\" role=\"button\" title=\"" . $Language->phrase("SearchPanel") . "\" data-caption=\"" . $Language->phrase("SearchPanel") . "\" data-toggle=\"button\" data-form=\"fwp_wpl_propertieslistsrch\" aria-pressed=\"" . ($searchToggleClass == " active" ? "true" : "false") . "\">" . $Language->phrase("SearchLink") . "</a>";
		$item->Visible = TRUE;

		// Show all button
		$item = &$this->SearchOptions->add("showall");
		$item->Body = "<a class=\"btn btn-default ew-show-all\" title=\"" . $Language->phrase("ShowAll") . "\" data-caption=\"" . $Language->phrase("ShowAll") . "\" href=\"" . $this->pageUrl() . "cmd=reset\">" . $Language->phrase("ShowAllBtn") . "</a>";
		$item->Visible = ($this->SearchWhere != $this->DefaultSearchWhere && $this->SearchWhere != "0=101");

		// Search highlight button
		$item = &$this->SearchOptions->add("searchhighlight");
		$item->Body = "<a class=\"btn btn-default ew-highlight active\" href=\"#\" role=\"button\" title=\"" . $Language->phrase("Highlight") . "\" data-caption=\"" . $Language->phrase("Highlight") . "\" data-toggle=\"button\" data-form=\"fwp_wpl_propertieslistsrch\" data-name=\"" . $this->highlightName() . "\">" . $Language->phrase("HighlightBtn") . "</a>";
		$item->Visible = ($this->SearchWhere != "" && $this->TotalRecords > 0);

		// Button group for search
		$this->SearchOptions->UseDropDownButton = FALSE;
		$this->SearchOptions->UseButtonGroup = TRUE;
		$this->SearchOptions->DropDownButtonPhrase = $Language->phrase("ButtonSearch");

		// Add group option item
		$item = &$this->SearchOptions->add($this->SearchOptions->GroupOptionName);
		$item->Body = "";
		$item->Visible = FALSE;

		// Hide search options
		if ($this->isExport() || $this->CurrentAction)
			$this->SearchOptions->hideAllOptions();
	}

	/**
	 * Export data in HTML/CSV/Word/Excel/XML/Email/PDF format
	 *
	 * @param boolean $return Return the data rather than output it
	 * @return mixed
	 */
	public function exportData($return = FALSE)
	{
		global $Language;
		$utf8 = SameText(Config("PROJECT_CHARSET"), "utf-8");
		$selectLimit = $this->UseSelectLimit;

		// Load recordset
		if ($selectLimit) {
			$this->TotalRecords = $this->listRecordCount();
		} else {
			if (!$this->Recordset)
				$this->Recordset = $this->loadRecordset();
			$rs = &$this->Recordset;
			if ($rs)
				$this->TotalRecords = $rs->RecordCount();
		}
		$this->StartRecord = 1;

		// Export all
		if ($this->ExportAll) {
			set_time_limit(Config("EXPORT_ALL_TIME_LIMIT"));
			$this->DisplayRecords = $this->TotalRecords;
			$this->StopRecord = $this->TotalRecords;
		} else { // Export one page only
			$this->setupStartRecord(); // Set up start record position

			// Set the last record to display
			if ($this->DisplayRecords <= 0) {
				$this->StopRecord = $this->TotalRecords;
			} else {
				$this->StopRecord = $this->StartRecord + $this->DisplayRecords - 1;
			}
		}
		if ($selectLimit)
			$rs = $this->loadRecordset($this->StartRecord - 1, $this->DisplayRecords <= 0 ? $this->TotalRecords : $this->DisplayRecords);
		$this->ExportDoc = GetExportDocument($this, "h");
		$doc = &$this->ExportDoc;
		if (!$doc)
			$this->setFailureMessage($Language->phrase("ExportClassNotFound")); // Export class not found
		if (!$rs || !$doc) {
			RemoveHeader("Content-Type"); // Remove header
			RemoveHeader("Content-Disposition");
			$this->showMessage();
			return;
		}
		if ($selectLimit) {
			$this->StartRecord = 1;
			$this->StopRecord = $this->DisplayRecords <= 0 ? $this->TotalRecords : $this->DisplayRecords;
		}

		// Call Page Exporting server event
		$this->ExportDoc->ExportCustom = !$this->Page_Exporting();
		$header = $this->PageHeader;
		$this->Page_DataRendering($header);
		$doc->Text .= $header;
		$this->exportDocument($doc, $rs, $this->StartRecord, $this->StopRecord, "");
		$footer = $this->PageFooter;
		$this->Page_DataRendered($footer);
		$doc->Text .= $footer;

		// Close recordset
		$rs->close();

		// Call Page Exported server event
		$this->Page_Exported();

		// Export header and footer
		$doc->exportHeaderAndFooter();

		// Clean output buffer (without destroying output buffer)
		$buffer = ob_get_contents(); // Save the output buffer
		if (!Config("DEBUG") && $buffer)
			ob_clean();

		// Write debug message if enabled
		if (Config("DEBUG") && !$this->isExport("pdf"))
			echo GetDebugMessage();

		// Output data
		if ($this->isExport("email")) {

			// Export-to-email disabled
		} else {
			$doc->export();
			if ($return) {
				RemoveHeader("Content-Type"); // Remove header
				RemoveHeader("Content-Disposition");
				$content = ob_get_contents();
				if ($content)
					ob_clean();
				if ($buffer)
					echo $buffer; // Resume the output buffer
				return $content;
			}
		}
	}

	// Set up Breadcrumb
	protected function setupBreadcrumb()
	{
		global $Breadcrumb, $Language;
		$Breadcrumb = new Breadcrumb();
		$url = substr(CurrentUrl(), strrpos(CurrentUrl(), "/")+1);
		$url = preg_replace('/\?cmd=reset(all){0,1}$/i', '', $url); // Remove cmd=reset / cmd=resetall
		$Breadcrumb->add("list", $this->TableVar, $url, "", $this->TableVar, TRUE);
	}

	// Setup lookup options
	public function setupLookupOptions($fld)
	{
		if ($fld->Lookup !== NULL && $fld->Lookup->Options === NULL) {

			// Get default connection and filter
			$conn = $this->getConnection();
			$lookupFilter = "";

			// No need to check any more
			$fld->Lookup->Options = [];

			// Set up lookup SQL and connection
			switch ($fld->FieldVar) {
				case "x_deleted":
					break;
				default:
					$lookupFilter = "";
					break;
			}

			// Always call to Lookup->getSql so that user can setup Lookup->Options in Lookup_Selecting server event
			$sql = $fld->Lookup->getSql(FALSE, "", $lookupFilter, $this);

			// Set up lookup cache
			if ($fld->UseLookupCache && $sql != "" && count($fld->Lookup->Options) == 0) {
				$totalCnt = $this->getRecordCount($sql, $conn);
				if ($totalCnt > $fld->LookupCacheCount) // Total count > cache count, do not cache
					return;
				$rs = $conn->execute($sql);
				$ar = [];
				while ($rs && !$rs->EOF) {
					$row = &$rs->fields;

					// Format the field values
					switch ($fld->FieldVar) {
					}
					$ar[strval($row[0])] = $row;
					$rs->moveNext();
				}
				if ($rs)
					$rs->close();
				$fld->Lookup->Options = $ar;
			}
		}
	}

	// Set up starting record parameters
	public function setupStartRecord()
	{
		if ($this->DisplayRecords == 0)
			return;
		if ($this->isPageRequest()) { // Validate request
			$startRec = Get(Config("TABLE_START_REC"));
			$pageNo = Get(Config("TABLE_PAGE_NO"));
			if ($pageNo !== NULL) { // Check for "pageno" parameter first
				if (is_numeric($pageNo)) {
					$this->StartRecord = ($pageNo - 1) * $this->DisplayRecords + 1;
					if ($this->StartRecord <= 0) {
						$this->StartRecord = 1;
					} elseif ($this->StartRecord >= (int)(($this->TotalRecords - 1)/$this->DisplayRecords) * $this->DisplayRecords + 1) {
						$this->StartRecord = (int)(($this->TotalRecords - 1)/$this->DisplayRecords) * $this->DisplayRecords + 1;
					}
					$this->setStartRecordNumber($this->StartRecord);
				}
			} elseif ($startRec !== NULL) { // Check for "start" parameter
				$this->StartRecord = $startRec;
				$this->setStartRecordNumber($this->StartRecord);
			}
		}
		$this->StartRecord = $this->getStartRecordNumber();

		// Check if correct start record counter
		if (!is_numeric($this->StartRecord) || $this->StartRecord == "") { // Avoid invalid start record counter
			$this->StartRecord = 1; // Reset start record counter
			$this->setStartRecordNumber($this->StartRecord);
		} elseif ($this->StartRecord > $this->TotalRecords) { // Avoid starting record > total records
			$this->StartRecord = (int)(($this->TotalRecords - 1)/$this->DisplayRecords) * $this->DisplayRecords + 1; // Point to last page first record
			$this->setStartRecordNumber($this->StartRecord);
		} elseif (($this->StartRecord - 1) % $this->DisplayRecords != 0) {
			$this->StartRecord = (int)(($this->StartRecord - 1)/$this->DisplayRecords) * $this->DisplayRecords + 1; // Point to page boundary
			$this->setStartRecordNumber($this->StartRecord);
		}
	}

	// Page Load event
	function Page_Load() {

		//echo "Page Load";
	}

	// Page Unload event
	function Page_Unload() {

		//echo "Page Unload";
	}

	// Page Redirecting event
	function Page_Redirecting(&$url) {

		// Example:
		//$url = "your URL";

	}

	// Message Showing event
	// $type = ''|'success'|'failure'|'warning'
	function Message_Showing(&$msg, $type) {
		if ($type == 'success') {

			//$msg = "your success message";
		} elseif ($type == 'failure') {

			//$msg = "your failure message";
		} elseif ($type == 'warning') {

			//$msg = "your warning message";
		} else {

			//$msg = "your message";
		}
	}

	// Page Render event
	function Page_Render() {

		//echo "Page Render";
	}

	// Page Data Rendering event
	function Page_DataRendering(&$header) {

		// Example:
		//$header = "your header";

	}

	// Page Data Rendered event
	function Page_DataRendered(&$footer) {

		// Example:
		//$footer = "your footer";

	}

	// Form Custom Validate event
	function Form_CustomValidate(&$customError) {

		// Return error message in CustomError
		return TRUE;
	}

	// ListOptions Load event
	function ListOptions_Load() {

		// Example:
		//$opt = &$this->ListOptions->Add("new");
		//$opt->Header = "xxx";
		//$opt->OnLeft = TRUE; // Link on left
		//$opt->MoveTo(0); // Move to first column

	}

	// ListOptions Rendering event
	function ListOptions_Rendering() {

		//$GLOBALS["xxx_grid"]->DetailAdd = (...condition...); // Set to TRUE or FALSE conditionally
		//$GLOBALS["xxx_grid"]->DetailEdit = (...condition...); // Set to TRUE or FALSE conditionally
		//$GLOBALS["xxx_grid"]->DetailView = (...condition...); // Set to TRUE or FALSE conditionally

	}

	// ListOptions Rendered event
	function ListOptions_Rendered() {

		// Example:
		//$this->ListOptions["new"]->Body = "xxx";

	}

	// Row Custom Action event
	function Row_CustomAction($action, $row) {

		// Return FALSE to abort
		return TRUE;
	}

	// Page Exporting event
	// $this->ExportDoc = export document object
	function Page_Exporting() {

		//$this->ExportDoc->Text = "my header"; // Export header
		//return FALSE; // Return FALSE to skip default export and use Row_Export event

		return TRUE; // Return TRUE to use default export and skip Row_Export event
	}

	// Row Export event
	// $this->ExportDoc = export document object
	function Row_Export($rs) {

		//$this->ExportDoc->Text .= "my content"; // Build HTML with field value: $rs["MyField"] or $this->MyField->ViewValue
	}

	// Page Exported event
	// $this->ExportDoc = export document object
	function Page_Exported() {

		//$this->ExportDoc->Text .= "my footer"; // Export footer
		//echo $this->ExportDoc->Text;

	}

	// Page Importing event
	function Page_Importing($reader, &$options) {

		//var_dump($reader); // Import data reader
		//var_dump($options); // Show all options for importing
		//return FALSE; // Return FALSE to skip import

		return TRUE;
	}

	// Row Import event
	function Row_Import(&$row, $cnt) {

		//echo $cnt; // Import record count
		//var_dump($row); // Import row
		//return FALSE; // Return FALSE to skip import

		return TRUE;
	}

	// Page Imported event
	function Page_Imported($reader, $results) {

		//var_dump($reader); // Import data reader
		//var_dump($results); // Import results

	}
} // End class
?>

Hry