function ajaxThis(processorURL, parameters, destObject)
{
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;
		document.getElementById(destObject).style.display="block";
		document.getElementById('ajaxscreenmask').style.display="block";
    	}
  	}

 var paramList="";
 if(parameters!="")
 	{
	var i;
	 //disabled 2010-03-02, causing crash:for(i in parameters)
	for(i=0; i<parameters.length; i++)	
		{
		var parName=parameters[i];
		var parValue = document.getElementById(parameters[i]).value;
		paramList+=parName+'='+parValue+'&';
		}
	}
 //alert(paramList);
  xmlHttp.open("POST",processorURL,true);
  xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
  xmlHttp.send(paramList);
}

//2010-03-02: switched from for...in to standard for loop on line 47.
//2010-03-01: worked on it more; specified var i in line 45.
// 2010-01-27: allowed for a null parameters argument;
//Version 2009-01-12
//Version 2009-03-23: added the paramlist and for loop @ end to allow for multiple form controls to be passed as parameters ( in array format: ["controlOne","controlTwo"] ), then the function gets their value and passes it to the ajax.
//Initial version: 2008-05-02;

