function sendRequestOnSell()
 {
     $formData = $_POST['form'];
     //		$cultureCode = JRequest::getVar('cultureCode');
     $customerData = FormHelper::getCustomerData($formData);
     //		$customerData['Culture'] = $cultureCode;
     //		$customerData['UserCulture'] = $cultureCode;
     $searchData = 'MasterUnitCategoryId:' . JRequest::getInt('MasterUnitCategoryId') . '|' . 'UnitCategoryId:' . JRequest::getInt('unitCategoryId') . '|' . 'Points:' . JRequest::getVar('Points') . '|' . 'ContractType:' . JRequest::getInt('contractTypeId') . '|' . 'MinPrice:' . JRequest::getInt('pricemin') . '|' . 'MaxPrice:' . JRequest::getInt('pricemax') . '|' . 'LocationID:' . JRequest::getInt('zoneId') . '|' . 'MinArea:' . JRequest::getInt('areamin') . '|' . 'MaxArea:' . JRequest::getInt('areamax') . '|' . 'MinPaxes:' . JRequest::getInt('MinPaxes') . '|' . 'MaxPaxes:' . JRequest::getInt('MaxPaxes') . '|' . 'MinBaths:' . JRequest::getInt('bathsmin') . '|' . 'MaxBaths:' . JRequest::getInt('bathsmax') . '|' . 'MinRooms:' . JRequest::getInt('roomsmin') . '|' . 'MaxRooms:' . JRequest::getInt('roomsmax') . '|' . 'MinBedRooms:' . JRequest::getInt('bedroomsmin') . '|' . 'MaxBedRooms:' . JRequest::getInt('bedroomsmax') . '|' . 'maxReplies:' . JRequest::getInt('maxReplies') . '|' . 'note:' . str_replace("|", " ", str_replace(":", " ", JRequest::getVar('notes')));
     $merchantId = JRequest::getVar('merchantId');
     $orderType = $formData['orderType'];
     $label = JRequest::getVar('label');
     $processRequest = JRequest::getVar('processRequest');
     if ($orderType == 'i') {
         $searchData = 'MasterUnitCategoryId:' . JRequest::getInt('MasterUnitCategoryId') . '|' . 'UnitCategoryId:' . JRequest::getInt('unitCategoryId') . '|' . 'Points:' . JRequest::getVar('Points') . '|' . 'ContractType:' . JRequest::getInt('contractTypeId') . '|' . 'MinPrice:' . JRequest::getInt('pricemin') . '|' . 'MaxPrice:' . JRequest::getInt('pricemin') . '|' . 'LocationID:' . JRequest::getInt('zoneId') . '|' . 'MinArea:' . JRequest::getInt('areamin') . '|' . 'MaxArea:' . JRequest::getInt('areamin') . '|' . 'MinPaxes:' . JRequest::getInt('MinPaxes') . '|' . 'MaxPaxes:' . JRequest::getInt('MinPaxes') . '|' . 'MinBaths:' . JRequest::getInt('bathsmin') . '|' . 'MaxBaths:' . JRequest::getInt('bathsmax') . '|' . 'MinRooms:' . JRequest::getInt('roomsmin') . '|' . 'MaxRooms:' . JRequest::getInt('roomsmin') . '|' . 'MinBedRooms:' . JRequest::getInt('bedroomsmin') . '|' . 'MaxBedRooms:' . JRequest::getInt('bedroomsmax') . '|' . 'maxReplies:' . JRequest::getInt('maxReplies') . '|' . 'note:' . str_replace("|", " ", str_replace(":", " ", JRequest::getVar('notes')));
     }
     $return = BFCHelper::sendRequestOnSell($customerData, $searchData, $merchantId, $orderType, $label, $cultureCode, $processRequest);
     if (empty($return)) {
         $return = "";
     }
     $app = JFactory::getApplication();
     if (empty($redirect)) {
         echo json_encode($return);
     } else {
         $app->redirect($redirect, false);
     }
     $app->close();
 }