Скачиваний:
70
Добавлен:
09.05.2014
Размер:
12.22 Кб
Скачать

package org.apache.jsp; import javax.servlet.*; import javax.servlet.http.*; import javax.servlet.jsp.*; public final class index_jsp extends org.apache.jasper.runtime.HttpJspBase implements org.apache.jasper.runtime.JspSourceDependent { private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory(); private static java.util.Vector _jspx_dependants; private org.apache.jasper.runtime.ResourceInjector _jspx_resourceInjector; public Object getDependants() { return _jspx_dependants; } public void _jspService(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException { PageContext pageContext = null; HttpSession session = null; ServletContext application = null; ServletConfig config = null; JspWriter out = null; Object page = this; JspWriter _jspx_out = null; PageContext _jspx_page_context = null; try { response.setContentType("text/html;charset=UTF-8"); pageContext = _jspxFactory.getPageContext(this, request, response, null, true, 8192, true); _jspx_page_context = pageContext; application = pageContext.getServletContext(); config = pageContext.getServletConfig(); session = pageContext.getSession(); out = pageContext.getOut(); _jspx_out = out; _jspx_resourceInjector = (org.apache.jasper.runtime.ResourceInjector) application.getAttribute("com.sun.appserv.jsp.resource.injector"); out.write("\n"); out.write("\n"); out.write("\n"); out.write("\n"); out.write(" \n"); out.write(" \n"); out.write(" \n"); out.write(" Group 4103 Variant №304\n"); out.write("\n"); out.write("\n"); out.write("var flpoint=false;\n"); out.write("var flmin=false;\n"); out.write("var r=1;\n"); out.write("\n"); out.write("function SetPos(Obj){\n"); out.write("Obj.setSelectionRange(Obj.value.length,Obj.value.length);\n"); out.write("}\n"); out.write("\n"); out.write("function validate(Obj) {\n"); out.write("len=Obj.value.length;\n"); out.write("if (len==16) {event.returnValue=false; return 0;}\n"); out.write("if ((event.keyCode==45) && (len==0)){\n"); out.write(" flmin=true;\n"); out.write(" return 0;\n"); out.write("}\n"); out.write("if ((event.keyCode==46)&&(!flpoint)&&(len>0)&&!(flmin&&len==1)){\n"); out.write(" flpoint=true;\n"); out.write(" return 0;\n"); out.write("}\n"); out.write("str=Obj.value.toString();\n"); out.write("var st=String.fromCharCode(event.keyCode);\n"); out.write("if (event.keyCode==8) {\n"); out.write(" if (str[len-1]=='.') {flpoint=false;}\n"); out.write(" if (len==1) flmin=false;\n"); out.write(" return 0;\n"); out.write("}\n"); out.write("if ((event.keyCode57)){event.returnValue=false;}\n"); out.write("else {\n"); out.write(" str=str+st;\n"); out.write(" i=parseFloat(str);\n"); out.write(" if ((i=3)) event.returnValue=false;\n"); out.write("}\n"); out.write("}\n"); out.write("\n"); out.write("function ChangeR(Value){\n"); out.write(" r=Value;\n"); out.write(" alert(r);\n"); out.write("}\n"); out.write("function MagicTransport(trans_val){\n"); out.write(" document.getElementById(\"param1\").value = trans_val;\n"); out.write("}\n"); out.write("\n"); out.write("function mousePageXY(e){\n"); out.write("\n"); out.write("var x = 0, y = 0;\n"); out.write(" if (!e) e = window.event;\n"); out.write(" if (e.pageX || e.pageY){\n"); out.write(" x = e.pageX;\n"); out.write(" y = e.pageY;\n"); out.write(" }\n"); out.write(" else if (e.clientX || e.clientY){ \n"); out.write(" x = e.clientX + (document.documentElement.scrollLeft ||\n"); out.write(" document.body.scrollLeft) - document.documentElement.clientLeft;\n"); out.write(" y = e.clientY + (document.documentElement.scrollTop ||\n"); out.write(" document.body.scrollTop) - document.documentElement.clientTop;\n"); out.write(" }\n"); out.write(" for (var i = 0; i

Соседние файлы в папке jsp