  function loadXMLDoc(location)
	{
	if (window.XMLHttpRequest)
		{// code for IE7+, Firefox, Chrome, Opera, Safari
			xmlhttp=new XMLHttpRequest();
		}
	else
		{// code for IE6, IE5
			xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
		}
	
	xmlhttp.open("GET",location,true);
	xmlhttp.send();
	}
	function toggleUpvote(pairID) {
		if (document.getElementById("upButton").src=="http://coincidenceithinknot.com/static/images/upvote.png") {
			document.getElementById("upButton").src="http://coincidenceithinknot.com/static/images/upvote_sel.png";
		} else {
			document.getElementById("upButton").src="http://coincidenceithinknot.com/static/images/upvote.png";
		}
		document.getElementById("downButton").src="http://coincidenceithinknot.com/static/images/downvote_v2.png";
		//////////////////
		
		var brokenPair = pairID.split("-");
		var urlol = "/upvote.php?a="+brokenPair[0]+"&b="+brokenPair[2];
		//alert(urlol);
		loadXMLDoc(urlol);

	}
	function toggleDownvote(pairID) {
		if (document.getElementById("downButton").src=="http://coincidenceithinknot.com/static/images/downvote_v2.png") {
			document.getElementById("downButton").src="http://coincidenceithinknot.com/static/images/downvote_sel.png";
		} else {
			document.getElementById("downButton").src="http://coincidenceithinknot.com/static/images/downvote_v2.png";
		}
		document.getElementById("upButton").src="http://coincidenceithinknot.com/static/images/upvote.png";

		//////////////////
		
		var brokenPair = pairID.split("-");
		var urlol = "/downvote.php?a="+brokenPair[0]+"&b="+brokenPair[2];
		//alert(urlol);
		loadXMLDoc(urlol);
	
	}
