Try:
framework_load_plugin_url('plugins/plugins/openclosed.php',document.getElementById('openclose'),'openclosed-modal-plugin','',intervals);
The on_success_start has to be a literal function, not the name of the function as a string. You can't pass arguments, so you'll have to set those outside of the onchange event.