Trying to get these two bits of code working, and so far all suggestions of commenting lines out aren't working... (trying to integrate another php based application into silverstripe in a simple fashion.

I'm not sure if its tinymce or what that is causing onmouseover and onclick actions still to be stripped from my html code.

I have made all the suggested changes the banal put in

eg:

Oh yeah, a small addition to my previous post and something that will help both Daniel and Thomas:
The culprit here is the jsparty/tiny_mce_improvements.js file. There you'll find the sapphiremce_cleanup function that seems to clean up content in addition to the cleaning performed by tinymce. So.. in addition to allow certain elements (using valid_elements) or setting verify_html to false, you must change the tiny_mce_improvements.js file:

To enable onclick on links, you should remove (comment out) this line:

value = value.replace(/([ \f\r\t\n\'\"])on[a-z]+=[^ >]+/ig, "$1");

To allow blocks of JavaScript, you have to allow comments by removing the following line: