// #テスト// #// #// #// ########## Delete Error Messagewindow.onerror = null;// ########## OS,Browser Infovar ie  = (navigator.appName.indexOf('Micr') != -1);var mac = (navigator.userAgent.indexOf('Mac') != -1 || navigator.userAgent.indexOf('mac') != -1);var win = (navigator.userAgent.indexOf('Win') != -1 || navigator.userAgent.indexOf('win') != -1);// ########## StyleSheet振り分けif (win) {	document.write('<link rel="stylesheet" href="/css/win.css" type="text/css">');}else{	if (mac) {		document.write('<link rel="stylesheet" href="/css/mac.css" type="text/css">');	}else{		document.write('<link rel="stylesheet" href="/css/etc.css" type="text/css">');	}}/*// ########## ネスケ4.x用function NS4_Resize(init) {	if (init==true) with (navigator) {		if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {			document.PageW=innerWidth;			document.PageH=innerHeight;			onresize=NS4_Resize;		}	}else if (innerWidth!=document.PageW || innerHeight!=document.PageH) location.reload();}NS4_Resize(true);*/// ########## IMG先読みfunction preimg(){var cnt = preimg.arguments.length;var ImgList = new Array();for (i =0;i<cnt+1;i++) {	ImgList[i] = new Image();	ImgList[i].src = preimg.arguments[i];	}}// ########## IMG切り替えfunction chgimg(imgName,img){	document.images[imgName].src = img;	}// ########## Object検索・取得function GetObj(n, d) {	var p,i,x;	if(!d) d = document;	if((p=n.indexOf("?"))>0&&parent.frames.length) {		d = parent.frames[n.substring(p+1)].document;		n = n.substring(0,p);	}	if(!(x=d[n])&&d.all) x = d.all[n];	for(i=0; !x&&i<d.forms.length; i++) x = d.forms[i][n];	for(i=0; !x&&d.layers&&i<d.layers.length; i++) x = GetObj(n,d.layers[i].document);	if(!x && document.getElementById) x = document.getElementById(n);	return x;}// ########## PullDown Menu Linkfunction JumpMenu(targ,selObj,restore){	if(selObj != "-"){		eval(targ + ".location='" + selObj.options[selObj.selectedIndex].value + "'");	}	if (restore) selObj.selectedIndex = 0;}// ########## Sub Window Open (Win,Mac-IE4不具合回避済み)//## WindowのFocus()処理はサブウィンドウ側にonLoadイベントで仕込む事var newwin = "";var winie4 = ( navigator.userAgent.indexOf('MSIE 4')!=-1 && win );function WinOpen(URL,WN,F) {	if( sbwin_closed(newwin) ){		newwin = window.open(URL,WN,F);	}else{		newwin.location.href = URL;	}}//## Win IE4／Mac IE4でclosed判定バグ回避function sbwin_closed(winVar) {	if( !winVar ) {		if( winie4 ) return winVar.closed;		else return typeof winVar.document != 'object';	}else{		return true;	}}// ########## StatusBar Messagefunction StatusMsg(MS) {	status = MS;	document.FLAG = true;}// E N D