 //<![CDATA[
function refreshsearch(start, category, stype, url)
{
	var xmlhttp = false;
	var htmlmain = document.getElementById('bodymain');
	htmlmain.innerHTML="";
	var img = new Image( 32, 32 );
	img.src = "/img/ajax-loading.gif";
        htmlmain.innerHTML ='<center><div class="loadingmsg">Loading...</div></center>';
 	document.getElementById("bodymain").appendChild(img);
	try {
		xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
	} catch (e) {
		try {
		xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		} catch (E) {
		xmlhttp = false;
		}
	}
	if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
		xmlhttp = new XMLHttpRequest();
	}
	var serverPage='/inc/functions/rsearch.php';
	if(xmlhttp)
	{
		xmlhttp.open("POST", serverPage, true);
		xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8");
		xmlhttp.onreadystatechange = function()
		{
			if (xmlhttp.readyState == 4 && xmlhttp.status == 200)
			{
				htmlmain.innerHTML = xmlhttp.responseText;
				 initLightbox()
			}
			
		}
		xmlhttp.send('start='+ start + '&category=' + category+ '&type=' + stype + '&ref=' + url);

	}
}
//]]>