<div id="codediv">
function function1() {function2()}
function function2() {}
</div>
<a href="javascript:toggleoutputdiv()">toggle output div</a>
<div id="outputdiv"></div>
<textarea id="inputtool"></textarea>
<script>
function addafunction() {}
function findfunction(name) {
var functions = document.getElementByClassName("functions")
for (var i = 0;i<functions.length;i = i + 1) {
if (functions[i].class === name) {return "exists"}}}
function findfunctioncalls() {}
function linkthefunctioncalls() {}
function addafunctioncall(functionname,parameterlist)
</script>