document.writeln("<script language=\"JavaScript\" type=\"text\/javascript\">");
document.writeln("<!--");
document.writeln("var i=0;");
document.writeln("var ie=(document.all)?1:0;");
document.writeln("var ns=(document.layers)?1:0;");
document.writeln("");
document.writeln("function initStyleElements() \/* Styles for Buttons Init *\/");
document.writeln("	{");
document.writeln("		var c = document.pad;");
document.writeln("		if (ie)");
document.writeln("			{");
document.writeln("				\/\/c.text.style.backgroundColor=\"#DDDDDD\";");
document.writeln("				c.compileIt.style.backgroundColor=\"#C0C0A8\";");
document.writeln("				c.compileIt.style.cursor=\"hand\";");
document.writeln("				c.select.style.backgroundColor=\"#C0C0A8\";");
document.writeln("				c.select.style.cursor=\"hand\";");
document.writeln("				c.view.style.backgroundColor=\"#C0C0A8\";");
document.writeln("				c.view.style.cursor=\"hand\";");
document.writeln("				c.retur.style.backgroundColor=\"#C0C0A8\";");
document.writeln("				c.retur.style.cursor=\"hand\";");
document.writeln("				c.clear.style.backgroundColor=\"#C0C0A8\";");
document.writeln("				c.clear.style.cursor=\"hand\";");
document.writeln("			}");
document.writeln("		else return;");
document.writeln("	}");
document.writeln("");
document.writeln("\/* Buttons Enlightment of \"Compilation\" panel *\/");
document.writeln("function LightOn(what)");
document.writeln("	{");
document.writeln("		if (ie) what.style.backgroundColor = \'#E0E0D0\';");
document.writeln("		else return;");
document.writeln("	}");
document.writeln("function FocusOn(what)");
document.writeln("	{");
document.writeln("		if (ie) what.style.backgroundColor = \'#EBEBEB\';");
document.writeln("		else return;");
document.writeln("	}");
document.writeln("function LightOut(what)");
document.writeln("	{");
document.writeln("		if (ie) what.style.backgroundColor = \'#C0C0A8\';");
document.writeln("		else return;");
document.writeln("	}");
document.writeln("function FocusOff(what)");
document.writeln("	{");
document.writeln("		if (ie) what.style.backgroundColor = \'#DDDDDD\';");
document.writeln("		else return;");
document.writeln("	}");
document.writeln("\/* Buttons Enlightment of \"Compilation\" panel *\/");
document.writeln("");
document.writeln("function generate() \/* Generation of \"Compilation\" *\/");
document.writeln("	{");
document.writeln("		code = document.pad.text.value;");
document.writeln("		if (code)");
document.writeln("			{");
document.writeln("				document.pad.text.value=\'正在生成加密代码，请稍后!\';");
document.writeln("				setTimeout(\"compile()\",1000);");
document.writeln("			}");
document.writeln("		else alert(\'请输入源文件代码\')");
document.writeln("	}");
document.writeln("function compile() \/* The \"Compilation\" *\/");
document.writeln("	{");
document.writeln("		document.pad.text.value=\'\';");
document.writeln("		compilation=escape(code);");
document.writeln("		document.pad.text.value=\"<script>\\n<!--\\ndocument.write(unescape(\\\"\"+compilation+\"\\\"));\\n\/\/-->\\n<\\\/script>\";");
document.writeln("		i++;");
document.writeln("		alert(\"页面被加密了 \"+i+\" 次!\");");
document.writeln("	}");
document.writeln("function selectCode() \/* Selecting \"Compilation\" for Copying *\/");
document.writeln("	{");
document.writeln("		if(document.pad.text.value.length>0)");
document.writeln("			{");
document.writeln("				document.pad.text.focus();");
document.writeln("				document.pad.text.select();");
document.writeln("			}");
document.writeln("		else alert(\'没有可以选择的文本内容!\')");
document.writeln("	}");
document.writeln("function preview() \/* Preview for the \"Compilation\" *\/");
document.writeln("	{");
document.writeln("		if(document.pad.text.value.length>0)");
document.writeln("			{");
document.writeln("				pr=window.open(\"\",\"Preview\",\"scrollbars=1,menubar=1,status=1,width=700,height=320,left=50,top=110\");");
document.writeln("				pr.document.write(document.pad.text.value);");
document.writeln("			}");
document.writeln("		else alert(\'没有可以预浏览的文本内容!\')");
document.writeln("	}");
document.writeln("function uncompile() \/* Decompiling a \"Compilation\" *\/");
document.writeln("	{");
document.writeln("		if (document.pad.text.value.length>0)");
document.writeln("			{");
document.writeln("				source=unescape(document.pad.text.value);");
document.writeln("				document.pad.text.value=\"\"+source+\"\";");
document.writeln("			}");
document.writeln("		else alert(\'你需要生成被加密的代码后才能取回源代码!\')");
document.writeln("	}");
document.writeln("\/\/ -->");
document.writeln("                  <\/script>")