//useful function that we'll be using throughout function confirmClick(msg) { var okay=confirm(msg); if(okay) return true; else return false; } function el(str,domain,name) { document.write('' + name + ''); } function em(str,domain) { document.write('' + str + '@' + domain + ''); } var anyFieldHasBeenChanged=false; function fieldChanged() { anyFieldHasBeenChanged=true; } function confirmChanges() { if(anyFieldHasBeenChanged) { var okay=confirm('=i18n("You have unsaved changes. Click \"Cancel\" to return so you can save your changes, or press \"OK\" to discard your changes and continue")?>'); if(okay) return true; else return false; } else return true; } var _notice_id = 0; function notice_delete(id) { $("#notice_"+id).slideUp('slow', function() { $("#notice_"+id).remove(); }); } function notice_create(type,str,timeout) { if(timeout == -1) timeout = 5000; _notice_id++; $("#notice_area").append("