function addFavs(){

	var ajaxRequestFav; // The variable that makes Ajax possible!

	try{
		// Opera 8.0+, Firefox, Safari
		ajaxRequestFav = new XMLHttpRequest();
	} catch (e){
		// Internet Explorer Browsers
		try{
			ajaxRequestFav = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
			try{
				ajaxRequestFav = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (e){
				// Something went wrong
				alert("Your browser broke!");
				return false;
			}
		}
	}

	var content_id = document.getElementById('contentid').value;
	var queryString = "?contentid=" + content_id;
	ajaxRequestFav.open("GET", "tmpDo-addfave.php" + queryString, true);
	ajaxRequestFav.send(null); 
	//alert(queryString);

	document.forms['addToFavs'].elements['fav'].style.visibility = 'hidden';
	//document.forms['addToFavs'].elements['added'].style.display = 'inline';
	alert("This has now been added to your favourites!");
}