var stypeAvail = {}; stypeAvail.local = {'1': ['','1','2','3','4','5','6'],'4': [],'6': [],'2': ['','1','2','3','4','5','6'],'5': []}; stypeAvail.glex = {'1': ['','1','2','3','4','5','6'],'4': [],'6': [],'2': ['','1','2','3','4','5','6'],'5': []}; /*Immo.strings.*/ var propertySubtypes = { '':'Tất cả', '1': 'Nơi ở một gia đình', '2': 'Dãy nhà', '3': 'Căn hộ', '4': 'Di động/Nhà lắp ghép', '7': 'Nhiều gia đình', '5': 'Nông trại', '6': 'Lô đất ở & Đất', '10': 'Văn phòng', '11': 'Trung tâm mua bán', '12': 'bán lẻ', '13': 'Công nghiệp', '15': 'Dịch vụ lưu trú', '16': 'Kinh doanh', '17': 'Special Purpose', '18': 'Đất sử dụng cho mục đích thương mại', '19': 'Nhiều gia đình', '30': 'Cư gia', '31': 'Thương nghiệp', '32': 'Nông trại', '33': 'Cưỡi ngựa' }; //TODO: polaczyc z tabela stypeAvail? function hideStypeSelect(searchType, type){ var propValue = { local: '', glex: '' }; if(propValue[searchType] == '' ){ return !(type == '1' || type == '2'); } var a = propValue[searchType]; return (propValue[searchType].indexOf(type) == -1); } var itypeOptions = {}; itypeOptions.local = {}; var itypeAvail = {}; itypeAvail.local = new Array(); itypeAvail.local[itypeAvail.local.length] = '1'; itypeAvail.local[itypeAvail.local.length] = '2'; itypeAvail.local[itypeAvail.local.length] = '4'; itypeAvail.local[itypeAvail.local.length] = '5'; itypeAvail.local[itypeAvail.local.length] = '6'; itypeAvail.glex = new Array(); itypeOptions['glex'] = new Object(); itypeAvail.glex[itypeAvail.glex.length] = '1'; itypeAvail.glex[itypeAvail.glex.length] = '2'; itypeAvail.glex[itypeAvail.glex.length] = '4'; itypeAvail.glex[itypeAvail.glex.length] = '5'; itypeAvail.glex[itypeAvail.glex.length] = '6'; var propertyTypes = { '':'Tất cả', '1': 'Cư gia', '2': 'Cho thuê gia cư ', '4': 'Buôn bán thương nghiệp', '5': 'Thương nghiệp cho thuê ', '6': 'Đất' };