function mustLoginToModerate() {
		alert("You must be logged in to moderate!")
}

function mustLoginToBookmark() {
		alert("You must be logged in to bookmark a game!")
}

function fbs_click() {
	u=location.href;
	t=document.title;
	window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');
	return false;
}

function byby() {
	document.getElementById("hidethis").style.display = 'none';
}

function SwapImage(sub_id) {
	var imgpath = "http://ispy.s3.amazonaws.com/submission/large/"+sub_id+".jpg";
	eval("document.images['sub"+sub_id+"'].src=imgpath");
}

function deleteGame() {
	var answer = confirm("This can not be undone.  Are you sure you want to delete this game?")
	if (answer){
		document.deletegame.submit();
	}
}

function flagGame() {
	var answer = confirm("Thank you for helping us moderate iSpy.  If you believe this game violates our community guidelines please click OK:")
	if (answer){
		document.flagGame.submit();
	}
}

function flagPlay() {
	var answer = confirm("Thank you for helping us moderate iSpy.  If you believe this solution violates our community guidelines please click OK:")
	if (answer){
		document.flagPlay.submit();
	}
}