function reportdead(linkid) {
	if (linkid > 0) {
		var agree = confirm("Are you sure you wish to mark this link as dead?\n(Please note, you can only mark this link once per day.)");
		if (agree) {
			$.ajax({
              			url: "/deadlink/" + linkid,
              			cache: false,
              			success: function(html){
                	 		$("#outputdiv").html(html);
              			}
      			});
		}
	}
}

function goodlink(linkid) {
        if (linkid > 0) {
		var agree = confirm("Wonderful, we're glad you liked this link, thanks for adding your voice.\nClick ok to show your support for the link. \n(Please note, you can only vote for this link once per day.)");
                if (agree) {
                	$.ajax({
                	        url: "/goodlink/" + linkid,
                	        cache: false,
                	        success: function(html){
                	                $("#outputdiv").html(html);
                	        }
                	});
		}
        }
}

function badlink(linkid) {
        if (linkid > 0) {
		var agree = confirm("We're sorry you did not enjoy this link, click ok to mark it as unfavorable.\n(Please note, you can only vote for this link once per day.)");
                if (agree) {
                	$.ajax({
                	        url: "/badlink/" + linkid,
                	        cache: false,
                	        success: function(html){
                	                $("#outputdiv").html(html);
                	        }
                	});
		}
        }
}

