function initXmlHttp()
{
	var xmlHttp=null;
	try
	{ xmlHttp=new XMLHttpRequest(); }
	catch (e)
	{
		try
		{ xmlHttp=new ActiveXObject("Msxml2.XMLHTTP"); }
		catch (e)
		{ xmlHttp=new ActiveXObject("Microsoft.XMLHTTP"); }
	}
	return xmlHttp;
}
function sfp_loadData($query, $target)
{
	var xmlHttp = initXmlHttp();
	xmlHttp.open('POST', '/modules/sfp_val_search/sfp_val_search.php', true);
	xmlHttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
	xmlHttp.send($query);
	xmlHttp.onreadystatechange = function()
	{
		if(xmlHttp.readyState == 4)
		{
			if($target == 'return')
			{
				return xmlHttp.responseText;
			}
			else
			{
				window.document.getElementById($target).innerHTML = xmlHttp.responseText;
			}
		}
	}
}
