[/code]function deletePost(pid) {
confirmReturn = confirm("Are you sure you want to delete this post?");
if(confirmReturn == true) {
window.location = "editpost.php?action=quickdelete&pid="+pid;
}
}[/code]
taken from
http://shoutbox.menthix.net/general.js