function confirmAction() {};
function cancelAction() {};

// Displays a Message with OK button
function displayMessage(string, width, height) {
  $("#divMessageString").html(string);
  $.blockUI({
    message: $("#divMessageForm"),
    css: {
      border: "0px",
      top: ($(window).height() - height) / 2 + "px",
      left: ($(window).width() - width) / 2 + "px",
      width: width+"px"
    }
  });
}

// Cancel/Confirm Message
function displayConfirm(string) {
  $("#divConfirmString").html(string);
  $.blockUI({
    message: $("#divConfirmForm"),
    css: {
      border: "0px",
      width: "275px"
    }
  });
}

// Error Message
function displayError(string) {
  $("#divErrorString").html(string);
  $.blockUI({
    message: $("#divErrorForm"),
    css: {
      border: "0px",
      width: "275px"
    }
  });
}

// Generic Floater
function displayFloater(content, width, height) {
  $.blockUI({
    message: $(content),
    css: {
      border: "0px",
      top: ($(window).height() - height) / 2 + "px",
      left: ($(window).width() - width) / 2 + "px",
      width: width+"px",
      height: height+"px"
    }
  });
}

// Floater with size based on content
function displaySizedFloater(content) {
  var c = $(content);
  displayFloater(c, c.width(), c.height());
}

// IE makes the height and width to 0, because it sees divMemberForm as full width, but IE gets the
// parts right if the numbers are fixed

// Hardcode the sizes instead

// Member registration form
function displayMemberForm() {
  $.blockUI({
    message: $("#divMemberForm"),
    css: {
      border: "0px",
      top:    "10px",
      left:   ($(window).width() - 500) / 2 + "px",
      width:  "0px"
    }
  });
}

// Archive search form
function displayArchiveForm() {
  $.blockUI({
    message: $("#divArchiveForm"),
    css: {
      border: "0px",
      top:    "10px",
      left:   ($(window).width() - 500) / 2 + "px",
      width:  "0px"
    }
  });
}
