xmlhttp=null
// code for Mozilla, etc.
if (window.XMLHttpRequest)
{
	xmlhttp=new XMLHttpRequest()
}
// code for IE
else if (window.ActiveXObject)
{
	xmlhttp=new ActiveXObject("Microsoft.XMLHTTP")
}
function thxFunction(uid,puid,pid,tid)
{
	var ajaxDisplay = "displayThx_"+pid;
	if(xmlhttp)
	{ 
		var queryString = "&uid="+uid+"&adduid="+puid+"&pid="+pid+"&tid="+tid;
		xmlhttp.open("GET", "xmlhttp.php?action=thankyou"+queryString, true);
  		xmlhttp.onreadystatechange= function()
  		{
  			if(xmlhttp.readyState==4)
 			{	
				document.getElementById(ajaxDisplay).style.display = "block";
				document.getElementById(ajaxDisplay).style.visibility = "visible";
				document.getElementById(ajaxDisplay).innerHTML = xmlhttp.responseText;
			}
			else
			{
				document.getElementById(ajaxDisplay).innerHTML = '<div><img src="./images/spinner.gif" /></div>';
			}
 		}
		xmlhttp.send(null)
 	}
}

function getAllThx(id)
{
	document.getElementById(id).style.display = "block";
	document.getElementById(id).style.visibility = "visible";
}
function hideAllThx(id)
{
	document.getElementById(id).style.display = "none";
	document.getElementById(id).style.visibility = "hidden";
}