function submit_frm(cmd,id) { if (cmd=='del') { if (! confirm('Wirklich löschen?')) return; }; document.frm.cmd.value=cmd; document.frm.id.value=id; document.frm.submit(); };