
function submitForm(pageurl, param, callbackFunction)
{
	var obj=null;
	
	if (window.XMLHttpRequest) 
	{ // Mozilla, Safari,...
		obj = new XMLHttpRequest();
		if (obj.overrideMimeType)
			{
			obj.overrideMimeType('text/xml');
			}
	} 
	else if (window.ActiveXObject) 
	{ // IE
	try {
		obj = new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch (e) 
		{
		try {
			obj = new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch (e) {}
		}
	}	
	if (!obj)
	{
		alert('Giving up :( Cannot create an XMLHTTP instance');
		return null;
	}
	if(obj!=null)
	{
		obj.open("GET", pageurl, true);
		obj.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
		
		obj.onreadystatechange = function()
		{
			if (obj.readyState == 4)
			{
				if (obj.responseText)
				{
					callbackFunction(obj.responseText);
				}
			}
		};
		obj.send(param);
	}
}