function reloadPage() {
	var available = "A";
	var type = "";
	var category = document.faqCategory.category.options[document.faqCategory.category.selectedIndex].value;
	var orderby = document.faqCategory.faqOrderBy.options[document.faqCategory.faqOrderBy.selectedIndex].value;
	var fulltext = document.faqCategory.faqFulltextQuery.value;

	if(document.faqCategory.faqDealerType && document.faqCategory.faqDealerType.checked)
		type  = "&faqType=" + "2";
	else
		type  = "&faqType=" + "%";
	if(document.faqCategory.faqType)
		type = "&faqType=" + document.faqCategory.faqType.options[document.faqCategory.faqType.selectedIndex].value;
	if(document.faqCategory.available)
		available = document.faqCategory.available.options[document.faqCategory.available.selectedIndex].value;
	location="faq.php?category=" + category + "&faqOrderBy=" + orderby +"&faqFulltextQuery=" + fulltext + "&available=" + available + type;
}
function faq_detail(kod) {
	 var tab=document.getElementById('faq_detail_'+kod);
	 var img = document.getElementById('img_'+kod);
	 if ( tab.style.display=='none' || tab.style.display=='' ) 
	 {
		 img.title = 'Hide FAQ';
		 tab.style.display='block';
		 img.src = 'images/shared/minus.gif';
		 ajaxHttpRequest('script/setVisibleFaq.php?faq=' + kod + '&display=block');
	 }
	 else
	 {
	    tab.style.display='none';
	    img.src = 'images/shared/plus.gif';
	    img.title = 'Expand FAQ';
	    ajaxHttpRequest('script/setVisibleFaq.php?faq=' + kod + '&display=none');
	 }
}
function faq_display(kod) {
	 ajaxHttpRequest('script/setVisibleFaq.php?display='+kod);
	 window.location.reload(true);
}
