function getCategoryTypes(domain, categoryId, categoryType1Id, categoryType2Id, categoryType3Id, categoryType4Id, type, element) { if (!element)element = 'categoryTypes'; if (!categoryType1Id)categoryType1Id = -1; if (!categoryType2Id)categoryType2Id = -1; if (!categoryType3Id)categoryType3Id = -1; if (!categoryType4Id)categoryType4Id = -1; if (categoryId > 0) { $('#categoryTypes').html('Načítám kategorie ...'); $('#categoryTypes').load('http://' + domain + '?controller=Ad&action=categorytype&categoryId=' + categoryId + '&categoryType1Id=' + categoryType1Id + '&categoryType2Id=' + categoryType2Id + '&categoryType3Id=' + categoryType3Id + '&categoryType4Id=' + categoryType4Id + '&type=' + type); } else { $('#categoryTypes').html(''); } }