debug = false; function debug_alert(msg) { if (debug) { alert(msg); } }