<BODY onload="initStyleElements();" bgcolor="#CCCCCC">
<script language=JavaScript>
<!--
var i=0;
var ie=(document.all)?1:0;
var ns=(document.layers)?1:0;
function initStyleElements()
{
var c = document.pad;
if (ie)
{
c.compileIt.style.backgroundColor="#C0C0A8";
c.compileIt.style.cursor="hand";
c.select.style.backgroundColor="#C0C0A8";
c.select.style.cursor="hand";
c.view.style.backgroundColor="#C0C0A8";
c.view.style.cursor="hand";
c.retur.style.backgroundColor="#C0C0A8";
c.retur.style.cursor="hand";
c.clear.style.backgroundColor="#C0C0A8";
c.clear.style.cursor="hand";
}
else return;
}
function LightOn(what)
{
if (ie) what.style.backgroundColor = '#E0E0D0';
else return;
}
function FocusOn(what)
{
if (ie) what.style.backgroundColor = '#EBEBEB';
else return;
}
function LightOut(what)
{
if (ie) what.style.backgroundColor = '#C0C0A8';
else return;
}
function FocusOff(what)
{
if (ie) what.style.backgroundColor = '#DDDDDD';
else return;
}
function generate()
{
code = document.pad.text.value;
if (code)
{
document.pad.text.value='ÄÄÆÄÀÏ ÁßÀÔ´Ï´Ù...±â´Ù·Á ÁÖ¼¼¿ä!';
setTimeout("compile()",1000);
}
else alert('ÄÄÆÄÀÏÇÒ ³»¿ëÀ» ³Ö¾îÁÖ¼¼¿ä')
}
function compile()
{
document.pad.text.value='';
compilation=escape(code);
document.pad.text.value="<script>\n<!--\ndocument.write(unescape(\""+compilation+"\"));\n//-->\n<\/script>";
i++;
if (i=1) alert("1ȸ ÄÄÆÄÀÏ µÇ¾ú½À´Ï´Ù");
else alert("ÆäÀÌÁö°¡ "+i+" ȸ ÄÄÆÄÀÏ µÇ¾ú½À´Ï´Ù");
}
function selectCode()
{
if(document.pad.text.value.length>0)
{
document.pad.text.focus();
document.pad.text.select();
}
else alert('¼±ÅÃÇØ ÁÖ¼¼¿ä')
}
function preview()
{
if(document.pad.text.value.length>0)
{
pr=window.open("","¹Ì¸®º¸±â","scrollbars=1,menubar=1,status=1,width=700,height=320,left=50,top=110");
pr.document.write(document.pad.text.value);
}
else alert('¹Ì¸®º¸±â ¼Ò½º°¡ ¾ø½À´Ï´Ù.!!')
}
function uncompile()
{
if (document.pad.text.value.length>0)
{
source=unescape(document.pad.text.value);
document.pad.text.value=""+source+"";
}
else alert('ÄÄÆÄÀÏµÈ Äڵ尡 ÇÊ¿ä ÇÕ´Ï´Ù')
}