Thanks Ray!
Your quick response and problem solving skills have saved the day!
So others would know what the solution was -->
Ray had figured that my function was to run on_success_end, rather than on_success_start.
He quickly made diagnosis that I was passing <?php> arguments in the function name, he separated them to be variables, as the Load To Div Plugin can't accept arguments,
and finally changed my onClick event:
"framework_load_plugin_url('plugins/plugins/openclosed.php',document.getElementById('openclose'),'openclosedmodal-plugin','',intervals);return document.MM_returnValue"
to:
"framework_load_plugin_url('plugins/plugins/openclosed.php',document.getElementById('openclose'),'openclosedmodal-plugin','',false,intervals);return document.MM_returnValue"
enabling the on_success_end to work.
Works like a Charm!
Tony