function go(strip) {
    top.location.href = "/index.php" + "?comic=" + strip;
}

function charStrips(character) {
	if (character != "") {
		day = new Date();
		id = day.getTime();
		eval("page" + id + " = window.open('characters.php?id=" + character + "', '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=1,menubar=0,resizable=1,width=400,height=300');");
	}
}

function showComment() {
	$('comment_box').toggle();
}

function show(element) {
	var e = $(element);

	if (e.style.display == 'none')
		e.style.display = 'block';
	else
		e.style.display = 'none';
}

function refreshParent() {
	// window.opener.location.href = window.opener.location.href;
	window.opener.location.reload()
	
	if (window.opener.progressWindow) {
	window.opener.progressWindow.close()
	}
	window.close();
}

function toggleMail(who) {
	$('email_box').toggle();
	$('email_name').focus();
	if (who)
		$('email_who').selectedIndex = who - 1;
}

function sendMail() {
	$('email_form').request({
		onLoading: function() {
			$('email_close').hide();
			$('email_progress').show();
		},
		onComplete: function(transport) { 
			$('email_progress').hide();
			$('email_close').show();
			$('email_status').show();
			$('email_status').innerHTML = transport.responseText;
			// $('email_form').reset();
		}
	});
}
