function myRequest(myUrl, search_param) {
	
	
	var myText = "frame_search=1&mode=search&posted_data[category_main]=1&posted_data[category_extra]=1&"+search_param;
	//alert(search_param);
	//var myText = "mode=search&"+search_param;
	//var myText = "";
	Field = document.getElementById("maincontent");
	
	if(window.XMLHttpRequest) {
		xmlhttp = new XMLHttpRequest();
	} else if(window.ActiveXObject) {
		xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
	} else {
		alert('Please upgrade your current browser.');
		return;		
		return false;
	}//endif

	xmlhttp.open("POST", myUrl, true);
	xmlhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded"); // sending it as encoded formdata
	xmlhttp.setRequestHeader("Content-length",myText.length); // we need to specify the length of the contents
	xmlhttp.setRequestHeader("Connection","close"); // Connection is to be closed after transfer
	xmlhttp.onreadystatechange=function() {
		if (xmlhttp.readyState == 4) { // Wait until everything is fetched!
			//alert(xmlhttp.getAllResponseHeaders());
			
			Field.innerHTML = xmlhttp.responseText;
		}
	}
	
	xmlhttp.send(myText); // This time, we need to send the text.
}//end function


