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 = { '':'Alles', '1': 'Eengezinswoning', '2': 'Herenhuis/rijtjeshuis', '3': 'Appartement/Co-Op/Condo', '4': 'Gefabriceerd/mobiel', '7': 'Meergezins', '5': 'Boerderijen & veehouderijen', '6': 'Woonkavels & Land', '10': 'Kantoor', '11': 'Winkelcentrum', '12': 'Detailhandel', '13': 'Industrieel', '15': 'Gastvrijheid', '16': 'Bestaande onderneming', '17': 'Speciale doelgroep', '18': 'Commercieel land', '19': 'Meergezins', '30': 'Residentieel', '31': 'Commercieel', '32': 'Boerderijen & veehouderijen', '33': 'Paardensport' }; //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 = { '':'Alles', '1': 'Koopwoning', '2': 'Huurwoning', '4': 'Commercieel koopobject', '5': 'Commercieel huurobject', '6': 'Land' };