<!--Version 2009-01-12-->

<!--PHP/HTML file usage example: <span style="cursor:pointer;" onclick=ajaxThis("ajaxtarget.php","X=1&y=2&z=3","ajaxdump")>test ajax</span><br /> -->

function ajaxThis(processorURL, parameters, destObject)
	{
	//Initial version: 2008-05-02;
	var xmlHttp;
	//alert("ajaxThis function started");
	try
		{
		// Initiate XMLHTTP in Firefox, Opera 8.0+, Safari
		xmlHttp=new XMLHttpRequest();
		}
	catch (e)
		{
		// above will trigger error in Internet Explorer; build IE solution:
		try
			{
			xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
			}
		catch (e)
			{
			try
				{
				xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
				}
			catch (e)
				{
				alert("Your browser does not support AJAX!");
				return false;
				}
			}
		}
	  
	  xmlHttp.onreadystatechange=function()
		{
		if(xmlHttp.readyState==4)
			{
			document.getElementById(destObject).innerHTML=xmlHttp.responseText;
			}
		}
	  xmlHttp.open("POST",processorURL,true);
	  xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
	  xmlHttp.send(parameters);
	}

function testScript()
	{
		alert("testScript alert fired");
	}

