function thumbsupAction(pluginURL, action, type, id)
{
	action = action.toLowerCase();
	var xmlHttp;
	try {
		// Firefox, Opera 8.0+, Safari
		xmlHttp=new XMLHttpRequest();
	}
	catch (e)
	{
		// Internet Explorer
		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) {
			if(action == 'thumbsup') {
				var responseStr = xmlHttp.responseText;
				if(xmlHttp.responseText.indexOf('Error') == -1) {
					responseArr = responseStr.split('::');
					if(responseArr.length == 2) {
						responseCount = responseArr[0];
						responseMsg = responseArr[1];
						document.getElementById('thumbsup-span-thumbs-'+id).innerHTML = responseCount;
					}
					else if(responseArr.length == 1) {
						responseMsg = responseArr[0];
					}
					else {
						alert("Sorry, we are currently experiencing a minor server issue.\n\nPlease try again shortly.");
						return false;
					}
					alert(responseMsg);
					document.getElementById('thumbsup-span-voted-'+id).style.display = '';
					document.getElementById('thumbsup-span-thumbsup-'+id).style.display = 'none';
				}
				else {
					alert("Sorry, we are currently experiencing a minor server issue.\n\nPlease try again shortly.");
				}
			}
			else {
				alert("Sorry, we are currently experiencing a minor server issue.\n\nPlease try again shortly.");
			}
		}
	}
	xmlHttp.open("GET", pluginURL + "/convertium/thumbsup/action.php?action=" + action + "&type=" + type + "&id=" + id, true);
	xmlHttp.send(null);
}