header.inc
10.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; cahrset=EUC-JP">
<META http-equiv="Content-Style-Type" content="text/css">
<META name="Robots" content="noindex, nofollow">
<META http-equiv="X-UA-Compatible" content="IE=10, chrome=1">
<link rel="stylesheet" type="text/css" href="basefont.css">
<link rel="stylesheet" type="text/css" href="./css/global.css">
<link rel="stylesheet" type="text/css" href="./css/header_menu.css">
<script type="text/javascript" src="./lib/jkl-calendar.js" charset="Shift_JIS"></script>
<script type="text/javascript" src="./lib/jslb_ajax.js"></script>
<script type="text/javascript" src="xmlhttp.js"></script>
<script type="text/javascript">
var menu_flg = 0;
function MovePage(URL) {
location.href = URL;
}
function on_movepage(oj) {
var res = oj.responseText;
document.getElementById("main").innerHTML=res;
}
function on_loaded1(oj) {
var res = oj.responseText;
if(res!="IDERR" && res!="NotID"){
document.getElementById("login").innerHTML=res;
document.getElementById("err").innerHTML="";
MovePage("TOP000.php");
}else{
if(res!="IDERR"){
document.getElementById("err").innerHTML="ユーザーまたはパスワードを入力してください";
}else{
document.getElementById("err").innerHTML="ユーザーまたはパスワードが違います";
}
}
}
function loadHTMLFile_Login(fName){
httpObj = createXMLHttpRequest(displayData_Login);
if (httpObj){
httpObj.open(Get_BName(),fName,true);
httpObj.send(null);
}else{
}
}
function onChangeBumon(GroupID,GroupPW){
loadHTMLFile_Login('login_input.php?LoginID='+GroupID+'&Passwd='+GroupPW+'&group_bumon='+document.top.group_bumon.value);
}
function displayData_Login(){
if ((httpObj.readyState == 4) && (httpObj.status == 200)){
if(httpObj.responseText=="GrpErr"){
$("err").innerHTML= "グループIDまたはパスワードが違います。";
$("syain_login").innerHTML = "";
document.onkeypress = key_Press;
}else{
$("syain_login").innerHTML = httpObj.responseText;
document.onkeypress = key_Press2;
$("login").innerHTML = "";
$("err").innerHTML= "";
}
}else{
// $("syain_login").innerHTML = "<b>Loading...</b>";
$("err").innerHTML= "<b>Loading...</b>";
}
}
function openMainPage(pageURL){
xmlhttp = createXMLHttp();
if (xmlhttp){
xmlhttp.onreadystatechange = setPageData();
xmlhttp.open('GET', pageURL);
xmlhttp.send(null);
}else{
alert("XMLHttpRequest失敗");
}
}
function setPageData(){
if (xmlhttp.readyState == 4 && xmlhttp.status == 200){
document.getElementById("main").innerHTML = xmlhttp.responseText;
}else{
document.getElementById("main").innerHTML = "読み込み中です.....";
}
}
// XMLHttpsオブジェクト作成
function createXMLHttp(){
try {
return new ActiveXObject ("Microsoft.XMLHTTP");
}catch(e){
try {
return new XMLHttpRequest();
}catch(e) {
return null;
}
}
return null;
}
var gX;
var gY;
function mousecursor(evt){ //関数の定義
if(document.all){ //ここからIE用
gX = event.x;
gY = event.y;
}else{ //ここからNN用
gX = evt.pageX;
gY = evt.pageY
}
}
if(document.all) document.onmousemove = mousecursor; //IE用
else if(document.layers){ //NN4.7用
window.onmousemove = mousecursor;
window.captureEvents(Event.MOUSEMOVE);}
else window.document.onmousemove = mousecursor; //NN6用
var mousemovetimer = -1;
var timer_stop;
function on_loaded2(oj,margin){
if(menu_flg==0){
Select_visibility(0);
//レスポンスを取得
if (document.top.sub_name.length){
var res = document.top.sub_name[oj].value
}else{
var res = document.top.sub_name.value
}
//不透明度を0.7に設定
setOpacity("sub_menu",1.0)
//レスポンスされた文字列をDIVへ出力
document.getElementById("sub_menu").innerHTML=res;
}
}
//送信用関数
function loadMenu(num,margin){
menu_flg=0;
var elm = document.getElementById("pd_menu_" + num);
var header_table = document.getElementById("header_table");
var offsetLeft = elm.offsetLeft;
var offsetTop = header_table.offsetHeight;
margin = elm.offsetLeft;
if(margin==-1000 || menu_flg !=0){
document.getElementById("sub_menu").style.display=none;
document.getElementById("sub_menu").innerHTML="";
Select_visibility(1);
}else{
document.getElementById("sub_menu").style.display="block";
clearTimeout(mousemovetimer);
timer_stop=setTimeout("on_loaded2("+num+","+margin+")",100);
var browser = Get_BName();
/*
if( browser == "POST"){
gX = event.clientX;
gY = event.clientY;
}
if(menu_flg==0){
marginx = gX;
sa = margin - marginx
if(sa> 10){
marginx= marginx
}else{
marginx= margin * 2
}
marginy = gY;
if(marginy>100){
marginy = marginy
}else{
marginy = 100
}
//メニュー位置を移動
document.getElementById("sub_menu").style.top=marginy
document.getElementById("sub_menu").style.left=marginx
}
*/
document.getElementById("sub_menu").style.left = offsetLeft + "px";
document.getElementById("sub_menu").style.top = offsetTop + "px";
document.getElementById("sub_menu").style.height = "auto";
}
}
document.onclick=function(){
// if(document.top.sub_name[0].value!=""){
Select_visibility(1);
document.getElementById("sub_menu").style.display="none";
document.getElementById("sub_menu").innerHTML="";
// document.getElementById("sub_menu").style.top="100px"
// document.getElementById("sub_menu").style.left=-1000
// }
if(document.getElementById("calid") != null){
document.getElementById("calid").style.display="none";
document.getElementById("calid").innerHTML="";
}
if(document.getElementById("calid2") != null){
document.getElementById("calid2").style.display="none";
document.getElementById("calid2").innerHTML="";
}
if(document.getElementById("calid3") != null){
document.getElementById("calid3").style.display="none";
document.getElementById("calid3").innerHTML="";
}
if(document.getElementById("calid4") != null){
document.getElementById("calid4").style.display="none";
document.getElementById("calid4").innerHTML="";
}
if(document.getElementById("calid5") != null){
document.getElementById("calid5").style.display="none";
document.getElementById("calid5").innerHTML="";
}
}
function sub_menu_disp(flg) {
if(flg==0){
Select_visibility(1);
document.getElementById("sub_menu").style.display="none";
document.getElementById("sub_menu").innerHTML="";
}else{
}
window.status=document.getElementById("sub_menu").innerHTML;
}
//クロスブラウザ不透明度設定関数 //2006.3 Opera9bpr2対応
function setOpacity(layName,arg) {
var ua = navigator.userAgent
var oj = document.getElementById(layName)
if(window.opera){//o9bpr2+
if((typeof oj.style.opacity)=='string') oj.style.opacity = arg
else return
} else if(ua.indexOf('layName') !=-1 || ua.indexOf('layName') !=-1 ||
(typeof oj.style.opacity)=='string') { //s,k,new m
oj.style.opacity = arg
} else if(document.all) { //win-e4,win-e5,win-e6
document.all(layName).style.filter="alpha(opacity=0)"
document.all(layName).filters.alpha.Opacity = (arg * 100)
} else if(ua.indexOf('Gecko')!=-1){ //n6,n7,m1
oj.style.MozOpacity = arg
} else return
}
//クロスブラウザフェイド関数
function fadeOpacity(layName,swt,stopOpacity){
if(!window.fadeOpacity[layName]) //カウンター初期化
fadeOpacity[layName] =0
//フェイドスイッチ引数省略時初期値(不透明から透明へ)
if(!arguments[1]) swt = -1
//引数swtが -1 なら不透明から透明へ
// 1 なら透明から不透明へフェイドする
if(swt==-1) var f = "9876543210"
else if(swt==1) var f = "0123456789"
else var f = "9876543210"
//停止不透明度引数省略時初期値
if(!arguments[2] && swt==-1) stopOpacity = 0
else if(!arguments[2] && swt==1) stopOpacity = 10
//フェイド処理
if( fadeOpacity[layName] < f.length-1 ){
//カウンター番目の文字列を取り出す
var opa = f.charAt(fadeOpacity[layName])/10
//終了時不透明度なら終了
if( opa == stopOpacity ){
setOpacity(layName,stopOpacity) //終了
fadeOpacity[layName] = 0 //リセット
return
}
// 不透明度変更を実行する
setOpacity(layName,opa)
// カウンターを加算
fadeOpacity[layName]++
//--50/1000秒後にfadeOpacityを再実行
setTimeout('fadeOpacity("'+layName+'","'+swt+'","'+stopOpacity+'")',50)
} else {
//終了
setOpacity(layName,stopOpacity)
//--リセット
fadeOpacity[layName] = 0
}
}
//文字置換
function subRepURI(str){
if(str.length > 0){
subRephan = "—ソЫ噂浬欺圭構蚕十申曾箪貼能表暴予禄兔喀媾彌拿杤歃濬畚秉綵臀藹觸軆鐔饅鷭";
//subRephan = "1234567890";
subRepstrTemp = "";
for (subRepi=0; subRepi<str.length; subRepi++)
{
subRepc = str.charAt(subRepi);
subRepn = subRephan.indexOf(subRepc,0);
//if (subRepn >= 0) subRepc = "<"+subRephan.charAt(subRepn)+">";
if (subRepn >= 0) subRepc = "<KJ"+subRepn+">";
subRepstrTemp += subRepc;
}
str = subRepstrTemp;
}
//alert(str);
while(str.match(/\+/) != null){
str = str.replace(/\+/,"<+>");
}
while(str.match(/\&/) != null){
str = str.replace(/\&/,"<&>");
}
while(str.match(/\r\n/) != null){
str = str.replace(/\r\n/,"<BR>");
}
while(str.match(/\r/) != null){
str = str.replace(/\r/,"<BR>");
}
while(str.match(/\n/) != null){
str = str.replace(/\n/,"<BR>");
}
var tmp = navigator.userAgent;
if (navigator.appName == "Netscape" && tmp.match(/Firefox/i) == null){
return escape(str);
}else{
return str;
}
}
function Select_visibility(flg){
var MaxCount = document.e_gru.getElementsByTagName("select").length;
for(i=0;i<MaxCount;i++){
// if(document.e_gru.getElementsByTagName("select")[i].style.visibility != "hidden"){
if(flg==0){
document.e_gru.getElementsByTagName("select")[i].style.visibility = "hidden";
}else{
document.e_gru.getElementsByTagName("select")[i].style.visibility = "";
}
}
}
function Disp_Help(strFileNm){
window.open("./help/"+strFileNm,"omi","width=600,height=400,left=100,top=100,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,favorites=no,resizable=yes");
}
function Disp_Help2(strFileNm){
window.open("./help/"+strFileNm,"omi","width=800,height=400,left=100,top=100,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,favorites=no,resizable=yes");
}
//ブラウザ判定
function Get_BName(){
if (navigator.appName == "Microsoft Internet Explorer"){
return "POST";
}else if (navigator.appName == "Netscape"){
return "GET";
}else{
return "GET";
}
}
function loadMenuStop(){
// alert(timer_stop);
menu_flg=1;
clearTimeout(timer_stop);
// on_loaded1(0,-1000);
}
</script>