function showDiv(divName, plusid, faqid) {
	
	if (document.getElementById(divName).style.visibility == 'hidden') {
		
		document.getElementById(divName).style.visibility = 'visible';
		document.getElementById(divName).style.position = 'relative';
		document.getElementById(plusid).src = 'img/minus.gif';		
		
		saveClick(faqid);	
	}
	
	else {
		
		document.getElementById(divName).style.visibility = 'hidden';
		document.getElementById(divName).style.position = 'absolute';
		document.getElementById(plusid).src = 'img/plus.gif';				
	
	}
	
}

//	AJAX
function GetXmlHttpObject() {
	var xmlHttp=null;
	try {
		// Firefox, Opera 8.0+, Safari
		xmlHttp = new XMLHttpRequest();
	}
	catch (e) {
		// Internet Explorer
		try {
			xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch (e) {
			xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
		}
	}
	return xmlHttp;
}	
		
//	AJAX KONTOR	
function saveClick(faqid) {

	xmlHttp = GetXmlHttpObject();
			
	if (xmlHttp == null) {
		alert ("Your browser does not support AJAX!");
		return;
	} 
		
	var url = "faq_onclick.asp?faqid=" + faqid;
	xmlHttp.open("GET", url, true);
	xmlHttp.send(null);
} 

//	S…KMOTORV€NLIGT POPUPKOD
function ShowPopup(page, name, options) {
	Window = window.open(page, name, options);
}
