<!DOCTYPE html>
<title>Moose Code University</title>
<link rel="SHORTCUT ICON" href="http://mooseloose.com/mooseforum/mooseanswer.ico">
<script type="text/javascript">
var editboxHTML =
'<html class="expand close">' +
'<head>' +
'<style type="text/css">' +
'.expand { width: 100%; height: 100%; }' +
'.close { border: none; margin: 0px; padding: 0px; }' +
'html,body { overflow: hidden; }' +
'.bord {border:thin solid red }' +
'<\/style>' +
'<\/head>' +
'<body class="expand close" onload="document.f.ta.focus(); document.f.ta.select();">' +
'<form class="expand close" name="f">' +
'<textarea class="expand close" style="background: #eee;background-image:url(http://www.mooseloose.com/images/moosebg.png);padding:20px" name="ta" wrap="hard" spellcheck="false">' +
'<\/textarea>' +
'<\/form>' +
'<\/body>' +
'<\/html>';
var defaultStuff = '' +
'';
var extraStuff = '<div style="position:absolute; margin:.3em; bottom:0em; right:0em;">><\/div>';
var old = '';
function init()
{
 window.editbox.document.write(editboxHTML);
 window.editbox.document.close();
 window.editbox.document.f.ta.value = defaultStuff + '';
 update();
}
function update()
{
 var textarea = window.editbox.document.f.ta;
 var d = dynamicframe.document;

 if (old != textarea.value) {
   old = textarea.value;
   d.open();
   d.write(old);
   if (old.replace(/[\r\n]/g,'') == defaultStuff.replace(/[\r\n]/g,''))
     d.write(extraStuff);
   d.close();
 }

 window.setTimeout(update, 150);
}
</script>
</head>
<frameset class="bord" ="33%,* "onload="init();">
<frame class="bord" name="editbox" src="javascript:'';">
 <frame name="dynamicframe" src="javascript:'';">
</frameset>
</html>