function showAlert(message, type, appendto, closeDelay) {
var alert = "";
var $cont = $("#" + appendto);
//if ($cont.length == 0) {
// // alerts-container does not exist, create it
// $cont = $('
')
// .appendTo($("#divMsg"));
//}
// default to alert-info; other options include success, warning, danger
type = type || "info";
switch (type) {
case "success":
alert = $('