
$(document).ready(function() {
	$(".relatedquestions > h3").hide();
	$(".relatedquestions > div a").hide();
});

function findTag(e) {
	$(".relatedquestions > div a").hide();
	$(".relatedquestions > h3").show();

	var a = $(".relatedquestions > h3").text().split(':')[0];
	$(".relatedquestions > h3").text(a + ': ' + e);

	$(".relatedquestions > div a").each(function(index) {
		var value = $(this).attr("title");

		if (value.indexOf(e) != -1) {
			$(this).show();
		}
	});
}

