function alertObject(obj,comment) {
  var str = (comment)? comment+"\n":'{';
  for(var el in obj) {
    var value = obj[el];
    if ( typeof value == "function" ) {
      value = "[<FUNCTION>]";
    }
    str += el + " : "+ value +" , ";
  }
  str +=" }"
  alert(str);
}

function confirmDelete(message, event) {	
  return confirm(message);
}