For the following script, how can I write a function that returns all of the script\'s functions as an array? I\'d like to return an array of the functions defined in the sc
function foo(){/*SAMPLE*/}
function bar(){/*SAMPLE*/}
function www_WHAK_com(){/*SAMPLE*/}
for(var i in this) {
if((typeof this[i]).toString()=="function"&&this[i].toString().indexOf("native")==-1){
document.write('