function sure(id) {
	if (confirm("Are you sure you want to delete this?"))
		location.href = "deleIt.php?id="+id;
}

function sureThing(page,id) {
	if (confirm("Are you sure you want to delete this?"))
		location.href = "deleThingIt.php?page="+page+"&id="+id;
}

function sign() {
	if (document.signup.email.value != "") {
		em = document.signup.email.value;
		if (em.indexOf("@") == -1 || em.indexOf("@") > em.lastIndexOf(".")) {
			alert ("Please enter a valid email address");
			return false;
		} else {
			return true;
		}
	} else {
		alert ("Please enter an email address");
		return false;
	}
}

function swap(which) {
	ct = document.bything.thing.value;
	if (ct != "") {
		location.href = which+"?sc="+ct;
	} else {
		location.href = which;
	}
}

function galOpen(which) {
	window.open('gallery'+which+'.html', 'gallery'+which, 'menubar=no,scrollbars=no,toolbar=no,status=yes,resizable=yes,width=695,height=420');
}