document.writeln("<script language=\"JavaScript\">");
document.writeln("");
document.writeln("<!--");
document.writeln("");
document.writeln("var i=0;");
document.writeln("");
document.writeln("var ie=(document.all)?1:0;");
document.writeln("");
document.writeln("var ns=(document.layers)?1:0;");
document.writeln("");
document.writeln("function generate()");
document.writeln("");
document.writeln("	{");
document.writeln("");
document.writeln("		code = document.pad.text.value;");
document.writeln("");
document.writeln("		if (code)");
document.writeln("");
document.writeln("			{");
document.writeln("");
document.writeln("				document.pad.text.value=\'加密中...\';");
document.writeln("");
document.writeln("				setTimeout(\"compile()\",1000);");
document.writeln("");
document.writeln("			}");
document.writeln("");
document.writeln("		else alert(\'请先把需待加密的代码copy到此框中\')");
document.writeln("");
document.writeln("	}");
document.writeln("");
document.writeln("function compile()");
document.writeln("");
document.writeln("	{");
document.writeln("");
document.writeln("		document.pad.text.value=\'\';");
document.writeln("");
document.writeln("		compilation=escape(code);");
document.writeln("");
document.writeln("		document.pad.text.value=\"<script>\\n<!--\\ndocument.write(unescape(\\\"\"+compilation+\"\\\"));\\n\/\/-->\\n<\\\/script>\";");
document.writeln("");
document.writeln("		i++;");
document.writeln("");
document.writeln("		if (i=1) alert(\"代码已编译1次!\");");
document.writeln("");
document.writeln("		else alert(\"代码已编译\"+i+\"次!\");");
document.writeln("");
document.writeln("	}");
document.writeln("");
document.writeln("function selectCode()");
document.writeln("");
document.writeln("	{");
document.writeln("");
document.writeln("		if(document.pad.text.value.length>0)");
document.writeln("");
document.writeln("			{");
document.writeln("");
document.writeln("				document.pad.text.focus();");
document.writeln("");
document.writeln("				document.pad.text.select();");
document.writeln("");
document.writeln("			}");
document.writeln("");
document.writeln("		else alert(\'无任何内容被选中!\')");
document.writeln("");
document.writeln("	}");
document.writeln("");
document.writeln("function preview()");
document.writeln("");
document.writeln("	{");
document.writeln("");
document.writeln("		if(document.pad.text.value.length>0)");
document.writeln("");
document.writeln("			{");
document.writeln("");
document.writeln("				pr=window.open(\"\",\"Preview\",\"scrollbars=1,menubar=1,status=1,width=700,height=320,left=50,top=110\");");
document.writeln("");
document.writeln("				pr.document.write(document.pad.text.value);");
document.writeln("");
document.writeln("			}");
document.writeln("");
document.writeln("		else alert(\'无任何内容可供预览!\')");
document.writeln("");
document.writeln("	}");
document.writeln("");
document.writeln("function uncompile()");
document.writeln("");
document.writeln("	{");
document.writeln("");
document.writeln("		if (document.pad.text.value.length>0)");
document.writeln("");
document.writeln("			{");
document.writeln("");
document.writeln("				source=unescape(document.pad.text.value);");
document.writeln("");
document.writeln("				document.pad.text.value=\"\"+source+\"\";");
document.writeln("");
document.writeln("			}");
document.writeln("");
document.writeln("		else alert(\'请把需待还原的代码copy到此框中!\')");
document.writeln("");
document.writeln("	}");
document.writeln("");
document.writeln("\/\/ -->");
document.writeln("");
document.writeln("<\/script>")