
dira=function(x){var a=[];for(i in x){a.push(i)};return a}
dirs=function(x){return dira(x).sort().join(', ')}
clear=function(){var id=arguments[0]||'output',i,n
var p=document.getElementById(id)
if(!p){return}
n=p.childNodes.length
for(i=0;n>i;++i){p.removeChild(p.lastChild)}}
function rep()
{var _rep_e
document.getElementById('i').select()
try{var _rep_t=document.getElementById('i').value
_rep_e=eval(_rep_t)}catch(thing){_rep_e='Exception: '+thing}
op(_rep_t+' \u21d2 '+_rep_e)}
function op(o)
{var p=document.getElementById('output')
var np=document.createElement('p')
np.appendChild(document.createTextNode(o))
p.appendChild(np)}

