<%@ page contentType="text/html; charset=shift_jis" language="java" import="java.sql.*" errorPage="" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=shift_jis">
<style type="text/css">
<!--
.style1 {
font-size: 24px;
color: #000000;
}
.STYLE2 { font-size: 17px;
font-family: "MS ゴシック", PLAIN;
}
.style4 {font-size: 14px; font-family: "MS ゴシック", PLAIN; }
.style5 {font-size: 14px}
.style6 {color: #00AAFF}
.style7 {
color: #000000;
font-size: 14px;
}
.mescolor{color: #FFFFFF;}
-->
</style>
<script type="text/javascript" src="/SitenManager/MA01004.js" >
</script>
<script type="text/javascript" >
var xmlhttp = null;
function createXMLHttp() {
try {
return new ActiveXObject ("Microsoft.XMLHTTP");
}catch(e){
try {
return new XMLHttpRequest();
}catch(e) {
return null;
}
}
return null;
}
function getmessage(pageURL, param) {
xmlhttp = createXMLHttp();
if(xmlhttp){
var url = pageURL + "&userid=" + document.getElementById("userid").value;
url = url + "&pwd=" + document.getElementById("pwd").value;
url = url + "¶m=" + param;
xmlhttp.onreadystatechange = setPageData;
xmlhttp.open('GET', url, false);
xmlhttp.send(null);
}else{
alert("サーバーとの通信に失敗しました。");
}
}
</script>
</head>
<body onload = "getTime();setFocus(1);setDisabled();" >
<form name="form" method="post" action="">
<div align="center"></div>
<div align="center">
<table width="800" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="800" height="60" valign="top" bgcolor="#00AAFF"><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#7dbeff">
<!--DWLayoutTable-->
<tr>
<td width="150" height="25" valign="top" class="style6"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="150" height="25" bgcolor="#7dbeff"><div align="left"><span class="style7">XXXXXX</span></div></td>
</tr>
</table></td>
<td width="72" class="style6"></td>
<td width="356" rowspan="2" valign="top" class="style6"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="356" height="35" bgcolor="#0000FF"><div align="center" class="style1">配送コースマスタメンテナンス</div></td>
</tr>
</table></td>
<td width="74" bgcolor="#7dbeff" class="style6"> </td>
<td colspan="2" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td id = time_div width="148" height="25" bgcolor="#7dbeff"><div align="center"><span class="style5">XXXX/XX/XX</span></div></td>
</tr>
</table></td>
</tr>
<tr>
<td height="10"></td>
<td></td>
<td bgcolor="#7dbeff"></td>
<td width="60" rowspan="2" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="60" height="25" bgcolor="#7dbeff"><div align="right"><span class="style5">Ver - </span></div></td>
</tr>
</table></td>
<td width="88" rowspan="2" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="88" height="25" bgcolor="#7dbeff"><div align="left"><span class="style5">X.XX</span></div></td>
</tr>
</table></td>
</tr>
<tr bgcolor="#00AAFF">
<td height="15" bgcolor="#7dbeff"></td>
<td bgcolor="#7dbeff"></td>
<td bgcolor="#7dbeff"></td>
<td bgcolor="#7dbeff"></td>
</tr>
<tr>
<td height="10"></td>
<td></td>
<td></td>
<td bgcolor="#7dbeff"></td>
<td></td>
<td></td>
</tr>
</table></td>
</tr>
<tr>
<td height="36" bgcolor="#7dbeff"> </td>
</tr>
<tr>
<td height="320" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="45" height="320" bgcolor="#7dbeff"> </td>
<td width="120" valign="top"><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="120" height="320"><table width="120" height="320" border="0" cellpadding="0" cellspacing="0" bgcolor="#00AAFF">
<tr>
<td height="40" bgcolor="#7dbeff"><div align="left"><span class="style4"> 処 理</span></div></td>
</tr>
<tr>
<td height="40" bgcolor="#7dbeff"><div align="left"><span class="style5">配送コースコード</span></div></td>
</tr>
<tr>
<td height="40" bgcolor="#7dbeff"><div align="left"><span class="style5">配送コース名</span></div></td>
</tr>
<tr>
<td height="40" bgcolor="#7dbeff"><div align="left"><span class="style5">休日区分</span></div></td>
</tr>
<tr>
<td height="40" bgcolor="#7dbeff"><div align="left"><span class="style5">倉庫コード</span></div></td>
</tr>
<tr>
<td height="40" bgcolor="#7dbeff"><div align="left"><span class="style5">便コード</span></div></td>
</tr>
<tr>
<td height="40" bgcolor="#7dbeff"><div align="left"><span class="style5">出荷倉庫指定区分</span></div></td>
</tr>
<tr>
<td height="40" bgcolor="#7dbeff"><div align="left"><span class="style5">プリンタID</span></div></td>
</tr>
</table></td>
</tr>
</table></td>
<td width="635"><table width="635" height="320" border="0" cellpadding="0" cellspacing="0" bgcolor="#7dbeff">
<tr>
<td height="40" bgcolor="#7dbeff"><p align="left">
<input name="text1" type="text" class="STYLE2" οnkeydοwn="text1onkeydown();" onfocus = "setMessage('処理を入力して下さい', 'Esc:メニュー F9:取消');" onclick = "onclickcheck(1);" value="0" size="1" maxlength="1">
</p> </td>
<td height="40" bgcolor="#7dbeff"> <div align="left"><span class="style5">(0: 照会 1: 登 録 2:</span><span class="style5"> 修 正 3: 削 除)</span></div></td>
</tr>
<tr>
<td height="40" colspan="2" bgcolor="#7dbeff"><div align="left">
<input name="text2" type="text" class="STYLE2" οnkeydοwn="text2onkeydown();" onfocus = "setMessage('配送コースコードを入力して下さい', 'Esc:メニュー F9:取消 F12:戻る' );" onclick = "onclickcheck(2);" size="5" maxlength="5">
</div></td>
</tr>
<tr>
<td height="40" colspan="2" bgcolor="#7dbeff"><div align="left">
<input name="text3" type="text" class="STYLE2" οnkeydοwn="text3onkeydown();" onfocus = "setMessage('配送コース名を入力して下さい', 'Esc:メニュー F9:取消 F12:戻るEnd:確認');" onclick = "onclickcheck(3);" size="16" maxlength="8">
</div></td>
</tr>
<tr>
<td height="40" bgcolor="#7dbeff"><div align="left">
<input name="text4" type="text" class="STYLE2" οnkeydοwn="text4onkeydown();" onfocus = "setMessage('休日区分を入力してください', 'Esc:メニュー F9:取消 F12:戻るEnd:確認' );" onclick = "onclickcheck(4);" size="1" maxlength="1">
</div></td>
<td height="40" bgcolor="#7dbeff"><div align="left"><span class="style5">(0: 平 日 1: 休 日)</span></div></td>
</tr>
<tr>
<td width="80" height="40" bgcolor="#7dbeff"><div align="left">
<input name="text5" type="text" class="STYLE2" οnkeydοwn="text5onkeydown();" onfocus = "setMessage('倉庫コードを入力して下さい', 'Esc:メニュー F9:取消 F12:戻るEnd:確認' );" onclick = "onclickcheck(5);" size="6" maxlength="5">
</div></td>
<td width="555" bgcolor="#7dbeff"><div align="left"><span class="style5"> </span></div></td>
</tr>
<tr bgcolor="#00AAFF">
<td height="40" bgcolor="#7dbeff"><div align="left">
<input name="text6" type="text" class="STYLE2" οnkeydοwn="text6onkeydown();" onfocus = "setMessage('便コードを入力して下さい', 'Esc:メニュー F9:取消 F12:戻るEnd:確認' );" onclick = "onclickcheck(6);" size="1" maxlength="1">
</div></td>
<td height="40" bgcolor="#7dbeff"><div align="left"><span class="style5"></span></div></td>
</tr>
<tr>
<td height="40"><div align="left">
<input name="text7" type="text" class="STYLE2" οnkeydοwn="text7onkeydown();" onfocus = "setMessage('出荷倉庫指定区分を入力して下さい', 'Esc:メニュー F9:取消 F12:戻るEnd:確認' );" onclick = "onclickcheck(7);" size="1" maxlength="1">
</div></td>
<td height="40" bgcolor="#7dbeff"><div align="left"><span class="style5"> (0:無 効 1: 有 効 )</span> </div></td>
</tr>
<tr>
<td height="40"><div align="left">
<input name="text8" type="text" class="STYLE2" οnkeydοwn="text8onkeydown();" onfocus = "setMessage('プリンタコードを入力して下さい', 'Esc:メニュー F9:取消 F12:戻るEnd:確認' );" onclick = "onclickcheck(8);" size="9" maxlength="8">
</div></td>
<td height="40" bgcolor="#7dbeff"><div align="left"><span class="style5"></span></div></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td height="64" bgcolor="#7dbeff"> </td>
</tr>
<tr>
<td height="50" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr bgcolor="#00AAFF">
<td width="27" height="25" bgcolor="#7dbeff"> </td>
<td width="715" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td id = "mes" width="715" height="25" bgcolor="#0000FF" align = "left" class="mescolor"> </td>
</tr>
</table></td>
<td width="15" bgcolor="#7dbeff"> </td>
<td width="19" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="19" height="25" bgcolor="#7dbeff"><input name="text9" type="text" class="STYLE2" οnkeydοwn="text9onkeydown();" onclick = "onclickcheck(9);" onfocus = "setMessage('確認を入力して下さい', 'Esc:メニュー F9:取消 F12:戻る' );" value=" " size="1" maxlength="1"></td>
</tr>
</table></td>
<td width="24" bgcolor="#7dbeff"> </td>
</tr>
<tr bgcolor="#00AAFF">
<td height="25" bgcolor="#7dbeff"> </td>
<td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td id = "mes2" width="715" height="25" bgcolor="#FFFFFF" align = "left"> </td>
</tr>
</table></td>
<td bgcolor="#7dbeff"> </td>
<td bgcolor="#7dbeff"> </td>
<td bgcolor="#7dbeff"> </td>
</tr>
</table></td>
</tr>
<tr>
<td height="70" bgcolor="#7dbeff"> </td>
</tr>
</table>
</div>
</form>
</body>
</html>
这上面的时JSP网页的代码 !里面调用了很多 JAVASCRIPT !下面就时函数的源码
// JavaScript Document
var flg = "0";
var focusflg = 1;
function clearmes(mes){
if(mes.hasChildNodes()) {
mes.removeChild(mes.childNodes[0]);
}
}
function checkNumber(check){
flag = true;
number = "0123456789";
for(j =0;j<check.length;j++){
if(number.indexOf(check.charAt(j),0) == -1){
document.activeElement.select();
return false;
}
}
return flag;
}
function checkexits(check){
flag = true;
if (check == ""){
return false;
}
return flag;
}
function checktext1(){
var data = document.getElementById("text1").value;
var text = document.createTextNode("Wrong message~!");
var emptytext = document.createTextNode("ス靉、ャフ、ニホマ、ヌ、ケ");
var next = document.createTextNode("Input Haiso course code");
var mestext = document.createTextNode("Esc:exit F9:clear");
// var message = ResourceManager.getValue("MSG109167");
// clearmes(mes2);
// mes2.appendChild(mestext);
flg = 0;
setDisabled();
if (!checkexits(data)){
clearmes(mes);
mes.bgColor = "#FF0000";
mes.appendChild(emptytext);
flg = "1";
setFocus(1);
return;
}
if( !checkNumber(data) || data > 3){
flg = "1";
clearmes(mes);
mes.bgColor = "#FF0000";
mes.appendChild(text);
setFocus(1);
return;
}
/* clearmes(mes);
mes.bgColor = "#0000FF";
mes.appendChild(next);
clearmes(mes2);
mes2.appendChild(mestext);*/
if (flg == 0){
setFocus(2);
}
}
function checktext2(){
var data = document.getElementById("text2").value;
var text = document.createTextNode(data + " is not be inserted");
var emptytext = document.createTextNode("text2 is empty~!");
var wrongtext = document.createTextNode(data + " is not number");
flg = 0;
if (!checkexits(data)){
clearmes(mes);
mes.bgColor = "#FF0000";
mes.appendChild(emptytext);
flg = "1";
setFocus(2);
return;
}
// alert(data+" dddddd");
if (!checkNumber(data)){
// alert();
clearmes(mes);
mes.bgColor = "#FF0000";
mes.appendChild(wrongtext);
flg ="1";
setFocus(2);
return;
}
data = padZero(data ,5);
document.getElementById("text2").value = data;
if (flg == 0){
if (document.getElementById("text1").value==1 || document.getElementById("text1").value==2){
setFocus(3);
}else if (document.getElementById("text1").value==0){
setFocus(1);
}else if (document.getElementById("text1").value==3){
setFocus(9);
}
}
}
function checktext3(){
var data = document.getElementById("text3").value;
var emptytext = document.createTextNode("text3 is empty~!");
flg = 0;
if (!checkexits(data)){
clearmes(mes);
mes.bgColor = "#FF0000";
mes.appendChild(emptytext);
flg = "1";
setFocus(3);
return;
}
// clearmes(mes);
// mes.bgColor = "#0000FF";
if (flg == 0){
setFocus(4);
}
}
function checktext4(){
var data = document.getElementById("text4").value;
var emptytext = document.createTextNode("text4 is empty~!");
flg = 0;
if (!checkexits(data)){
clearmes(mes);
mes.bgColor = "#FF0000";
mes.appendChild(emptytext);
flg = "1";
setFocus(4);
return;
}
// clearmes(mes);
// mes.bgColor = "#0000FF";
if (flg == 0){
setFocus(5);
}
}
function checktext5(){
var data = document.getElementById("text5").value;
var emptytext = document.createTextNode("text5 is empty~!");
flg = 0;
if (!checkexits(data)){
clearmes(mes);
mes.bgColor = "#FF0000";
mes.appendChild(emptytext);
flg = "1";
setFocus(5);
return;
}
data = padZero(data ,5);
document.getElementById("text5").value = data;
// clearmes(mes);
// mes.bgColor = "#0000FF";
if (flg == 0){
setFocus(6);
}
}
function checktext6(){
var data = document.getElementById("text6").value;
var emptytext = document.createTextNode("text6 is empty~!");
flg = 0;
if (!checkexits(data)){
clearmes(mes);
mes.bgColor = "#FF0000";
mes.appendChild(emptytext);
flg = "1";
setFocus(6);
return;
}
// clearmes(mes);
// mes.bgColor = "#0000FF";
if (flg == 0){
setFocus(7);
}
}
function checktext7(){
var data = document.getElementById("text7").value;
var emptytext = document.createTextNode("text7 is empty~!");
flg = 0;
if (!checkexits(data)){
clearmes(mes);
mes.bgColor = "#FF0000";
mes.appendChild(emptytext);
flg = "1";
setFocus(7);
return;
}
// clearmes(mes);
// mes.bgColor = "#0000FF";
if (flg == 0){
setFocus(8);
}
}
function checktext8(){
var data = document.getElementById("text8").value;
var emptytext = document.createTextNode("text8 is empty~!");
flg = 0;
if (!checkexits(data)){
clearmes(mes);
mes.bgColor = "#FF0000";
mes.appendChild(emptytext);
flg = "1";
setFocus(8);
return;
}
// clearmes(mes);
// mes.bgColor = "#0000FF";
if (flg == 0){
setFocus(9);
}
}
function checktext9(){
var data = document.getElementById("text9").value;
var data1 = document.getElementById("text1").value;
var wrongtext = document.createTextNode(" wrong message ");
var emptytext = document.createTextNode("text9 is empty~!");
flg = 0;
if (data == " "){
setFocus(9);
return;
}
if (!checkexits(data)){
clearmes(mes);
mes.bgColor = "#FF0000";
mes.appendChild(emptytext);
flg = 1;
return;
}
if (data == 1){
if (data1 !=3){
if (flg == 0){checktext1();}
if (flg == 0){checktext2();}
if (flg == 0){checktext3();}
if (flg == 0){checktext4();}
if (flg == 0){checktext5();}
if (flg == 0){checktext6();}
if (flg == 0){checktext7();}
if (flg == 0){checktext8();}
}else{
}
}else if(data == 9){
if (data1 == 3){
setFocus(2);
}else{
setFocus(8);
}
}else{
clearmes(mes);
mes.bgColor = "#FF0000";
mes.appendChild(wrongtext);
flg = 1;
}
if (flg == 0){
setFocus(1);
}
}
function getTime(){
var systemDate = "";
var theDate = new Date();
systemDate += theDate.getYear() + "/";
systemDate += (theDate.getMonth() + 1) + "/";
systemDate += theDate.getDate();
var newtime=document.createTextNode(systemDate);
var time_div = document.getElementById("time_div");
if(time_div.hasChildNodes()) {
time_div.removeChild(time_div.childNodes[0]);
}
time_div.appendChild(newtime);
}
function setFocus(th){
focusflg = th;
if(th == 1){
document.form.text1.focus();
}
if(th == 2){
document.form.text2.focus();
}
if(th == 3){
document.form.text3.focus();
}
if(th == 4){
document.form.text4.focus();
}
if(th == 5){
document.form.text5.focus();
}
if(th == 6){
document.form.text6.focus();
}
if(th == 7){
document.form.text7.focus();
}
if(th == 8){
document.form.text8.focus();
}
if(th == 9){
document.form.text9.focus();
}
}
function setMessage(message1,message2){
var mes = document.getElementById("mes");
var mes2 = document.getElementById("mes2");
var mestext = document.createTextNode(message1);
var mes2text = document.createTextNode(message2);
if(flg == 1){
if(mes2.hasChildNodes()){
// flg = 0;
mes2.removeChild(mes2.childNodes[0]);
}
mes2.appendChild(mes2text);
}else{
if(mes.hasChildNodes()){
mes.removeChild(mes.childNodes[0]);
}
if(mes2.hasChildNodes()){
mes2.removeChild(mes2.childNodes[0]);
}
mes.appendChild(mestext);
mes2.appendChild(mes2text);
mes.bgColor = "#0000FF";
}
}
function setDisabled_0(){
document.getElementById("text3").disabled = true;
document.getElementById("text4").disabled = true;
document.getElementById("text5").disabled = true;
document.getElementById("text6").disabled = true;
document.getElementById("text7").disabled = true;
document.getElementById("text8").disabled = true;
document.getElementById("text9").disabled = true;
}
function setDisabled_1(){
document.getElementById("text3").disabled = false;
document.getElementById("text4").disabled = false;
document.getElementById("text5").disabled = false;
document.getElementById("text6").disabled = false;
document.getElementById("text7").disabled = false;
document.getElementById("text8").disabled = false;
document.getElementById("text9").disabled = false;
}
function setDisabled_2(){
document.getElementById("text3").disabled = false;
document.getElementById("text4").disabled = false;
document.getElementById("text5").disabled = false;
document.getElementById("text6").disabled = false;
document.getElementById("text7").disabled = false;
document.getElementById("text8").disabled = false;
document.getElementById("text9").disabled = false;
}
function setDisabled_3(){
document.getElementById("text3").disabled = true;
document.getElementById("text4").disabled = true;
document.getElementById("text5").disabled = true;
document.getElementById("text6").disabled = true;
document.getElementById("text7").disabled = true;
document.getElementById("text8").disabled = true;
document.getElementById("text9").disabled = false;
}
function setDisabled(){
var data = document.getElementById("text1").value;
/* switch(data){
case 0: setDisabled_0();break;
case 1: setDisabled_1();break;
case 2: setDisabled_2();break;
case 3: setDisabled_3();break;
}*/
if (data == 0)setDisabled_0();
if (data == 1)setDisabled_1();
if (data == 2)setDisabled_2();
if (data == 3)setDisabled_3();
}
function padZero(str,digit){
if(str == null){
return str;
}
var counter = digit - str.length;
for(i=0 ; i<counter ; i++){
str = "0" + str;
}
return str;
}
function checkNumberAndString(check){
flag = true;
number = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
for(j =0;j<check.length;j++){
if(number.indexOf(check.charAt(j),0) == -1){
document.activeElement.select();
return false;
}
}
return flag;
}
function text1onkeydown(){
if(event.keyCode==13 || event.keyCode==9) {
checktext1();
}else if(event.keyCode==120){
clearall();
setFocus(1);
document.getElementById("text1").value = 0;
setDisabled();
}
}
function text2onkeydown(){
if(event.keyCode==13 || event.keyCode==9) {
checktext2();
}else if(event.keyCode==123){
flg = 0;
setFocus(1);
}else if(event.keyCode==120){
clearall();
setFocus(1);
document.getElementById("text1").value = 0;
setDisabled();
}
}
function text3onkeydown(){
if(event.keyCode==13 || event.keyCode==9) {
checktext3();
}else if(event.keyCode==123){
flg = 0;
setFocus(2);
}else if(event.keyCode==120){
clearall();
setFocus(1);
document.getElementById("text1").value = 0;
setDisabled();
}else if(event.keyCode==35){
checktext3();
if (flg == 0){
setFocus(9);
}
}
}
function text4onkeydown(){
if(event.keyCode==13 || event.keyCode==9) {
checktext4();
}else if(event.keyCode==123){
flg = 0;
setFocus(3);
}else if(event.keyCode==120){
clearall();
setFocus(1);
document.getElementById("text1").value = 0;
setDisabled();
}else if(event.keyCode==35){
checktext4();
if (flg == 0){
setFocus(9);
}
}
}
function text5onkeydown(){
if(event.keyCode==13 || event.keyCode==9) {
checktext5();
}else if(event.keyCode==123){
flg = 0;
setFocus(4);
}else if(event.keyCode==120){
clearall();
setFocus(1);
document.getElementById("text1").value = 0;
setDisabled();
}else if(event.keyCode==35){
checktext5();
if (flg == 0){
setFocus(9);
}
}
}
function text6onkeydown(){
if(event.keyCode==13 || event.keyCode==9) {
checktext6();
}else if(event.keyCode==123){
flg = 0;
setFocus(5);
}else if(event.keyCode==120){
clearall();
setFocus(1);
document.getElementById("text1").value = 0;
setDisabled();
}else if(event.keyCode==35){
checktext6();
if (flg == 0){
setFocus(9);
}
}
}
function text7onkeydown(){
if(event.keyCode==13 || event.keyCode==9) {
checktext7();
}else if(event.keyCode==123){
flg = 0;
setFocus(6);
}else if(event.keyCode==120){
clearall();
setFocus(1);
document.getElementById("text1").value = 0;
setDisabled();
}else if(event.keyCode==35){
checktext7();
if (flg == 0){
setFocus(9);
}
}
}
function text8onkeydown(){
if(event.keyCode==13 || event.keyCode==9 || event.keyCode==35 ) {
checktext8();
}else if(event.keyCode==123){
flg = 0;
setFocus(7);
}else if(event.keyCode==120){
clearall();
setFocus(1);
document.getElementById("text1").value = 0;
setDisabled();
}
}
function text9onkeydown(){
if(event.keyCode==13 || event.keyCode==9) {
checktext9();
}else if(event.keyCode==123){
flg = 0;
if (document.getElementById("text1").value==3){
setFocus(2);
}else{
setFocus(8);
}
}else if(event.keyCode==120){
clearall();
setFocus(1);
document.getElementById("text1").value = 0;
setDisabled();
}
}
function onclickcheck(focus_flg){
if(focusflg == 1){
checktext1();
if (flg == 0){
setFocus(focus_flg);
}
return;
}
if(focusflg == 2){checktext2();
if (flg == 0){setFocus(focus_flg);}
return;}
if(focusflg == 3){checktext3();
if (flg == 0){setFocus(focus_flg);}
return;}
if(focusflg == 4){checktext4();
if (flg == 0){setFocus(focus_flg);}
return;}
if(focusflg == 5){checktext5();
if (flg == 0){setFocus(focus_flg);}
return;}
if(focusflg == 6){checktext6();
if (flg == 0){setFocus(focus_flg);}
return;}
if(focusflg == 7){checktext7();
if (flg == 0){setFocus(focus_flg);}
return;}
if(focusflg == 8){checktext8();
if (flg == 0){setFocus(focus_flg);}
return;}
}
function clearall(){
document.getElementById("text1").value = "";
document.getElementById("text2").value = "";
document.getElementById("text3").value = "";
document.getElementById("text4").value = "";
document.getElementById("text5").value = "";
document.getElementById("text6").value = "";
document.getElementById("text7").value = "";
document.getElementById("text8").value = "";
document.getElementById("text9").value = "";
}