function confirmLogout() {
  if (confirm("Are you sure you want to sign out?")) {
    document.location = '/logout/';
  }
}

function confirmClassifiedDelete($id) {
  if (confirm("Are you sure you want to delete this classified advert?")) {
    document.location = '/classifieds/post/?delete=' + $id;
  }
}

function confirmReport($urlId) {
  if (confirm("Are you sure you want to report this email?")) {
    document.location = $urlId;
  }
}

var newwindow;
function open121(username) {
	newwindow=window.open('/121_chat/' + username + '/','Chat121With' + username,'width=500, height=480, scrollbars=yes');
	if (window.focus) {newwindow.focus()}
}