<!-- 
// -------------------------- Version Select ----------------------------
var  bName = navigator.appName;
var  bVer = parseInt(navigator.appVersion);
var  isMinIE4 = (bName == "Microsoft Internet Explorer" && bVer >= 4) ? true : false;
var  isMinIE5 = (isMinIE4 && navigator.appVersion.indexOf("5.") >= 0) ? true : false;
var  isMinNS3 = (bName == "Netscape" && bVer >= 3) ? true : false;
var  isMinNS4 = (bName == "Netscape" && bVer >= 4 && bVer < 5) ? true : false;
var  isMinNS5 = (bName == "Netscape" && bVer >= 5) ? true : false;

// ロールオーバー画像
function swapImg1(imgName) {
	if (document.images != null) {
		if (isMinNS3 || isMinIE4){
			imgOn = eval(imgName + "on.src");
			document [imgName].src = imgOn;
		}
	}
}
function swapImg2(imgName) {
	if (document.images != null) {
		if (isMinNS3 || isMinIE4){
			imgOn = eval(imgName + "off.src");
			document [imgName].src = imgOn;
		}
	}
}
// プルダウンメニュー
function showBlock(item) {
	if (isMinIE4) lyr = eval("document.all." + item);
	if (isMinNS5) lyr = eval("document.getElementById('" + item + "')");
	if (isMinIE4 || isMinNS5) lyr.style.visibility = "visible";
}
function hideBlock(item) {
	if (isMinIE4) lyr = eval("document.all." + item);
	if (isMinNS5) lyr = eval("document.getElementById('" + item + "')");
	if (isMinIE4 || isMinNS5) lyr.style.visibility = "hidden";
}
// オブジェクトの透明度変更（this指定）
function transpObj(obj,value) {
	obj.filters["alpha"].opacity = value;
}
function transpObjId(id,value) {
	if (isMinIE4) obj = eval("document.all." + id);
	if (isMinNS5) obj = eval("document.getElementById('" + id + "')");
	if (isMinIE4 || isMinNS5){
		obj.filters["alpha"].opacity = value;
	}
}
// セルの背景色（this指定）
function cellColor1(cell,bgcolor,fgcolor) {
	cell.style.backgroundColor = bgcolor;
	cell.style.color = fgcolor;
}
function cellColor0(cell) {
	cell.style.backgroundColor = "";
	cell.style.color = "";
}
// セルの背景色（ID指定）
function cellColorNm1(id,bgcolor,fgcolor) {
	if (isMinIE4) cell = eval("document.all." + id);
	if (isMinNS5) cell = eval("document.getElementById('" + id + "')");
	if (isMinIE4 || isMinNS5){
		cell.style.backgroundColor = bgcolor;
		cell.style.color = fgcolor;
	}
}
function cellColorNm0(id) {
	if (isMinIE4) cell = eval("document.all." + id);
	if (isMinNS5) cell = eval("document.getElementById('" + id + "')");
	if (isMinIE4 || isMinNS5){
		cell.style.backgroundColor = "";
		cell.style.color = "";
	}
}
// 一行選択（選択解除部分要修正）
function selectTR(cell) {
	for (i=1 ; i<=4 ; i++) {
		c = eval("document.all." + "doc" + i);
		c.style.backgroundColor = "";
		c.style.color = "";
	}
	cell.style.backgroundColor = "#003399";
	cell.style.color = "white";
}
// タブ切換え（解除部分要修正）
function changeDpTab(boxId){
	for (i=1 ; i<=3 ; i++) {
		b = eval("document.all." + "prop" + i);
		b.style.display = "none";
	}
	box = eval("document.all." + boxId);
	box.style.display = "block";
}
// 新規ウィンドウオープン
function openWin(theURL,winName,features) {
  window.open(theURL,winName,features);
}

function miniWin(e,url,targetName,offsetx,offsety,width,height,scroll){
  //マウスの現在位置
  var mouseXonScreen = null;
  var mouseYonScreen = null;
  //マウスの現在位置取得
  if(document.all){
     //e4,e5,e6
     mouseXonScreen = window.event.screenX;
     mouseYonScreen = window.event.screenY;
  } else if(document.layers || document.getElementById ){
     //n4,n6,n7,m1,o6
     mouseXonScreen = e.screenX;
     mouseYonScreen = e.screenY;
  }
  //マウスの現在位置から何ピクセル離すかをセット
  var setx = mouseXonScreen + offsetx;
  var sety = mouseYonScreen + offsety;
  //サブウインドウを開く
  //(引数以外のパラメータも下記でセットできます)
  var para =""
           +" left="        +setx
           +",screenX="     +setx
           +",top="         +sety
           +",screenY="     +sety
           +",toolbar="     +0
           +",location="    +0
           +",directories=" +0
           +",status="      +0
           +",menubar="     +0
           +",scrollbars="  +scroll
           +",resizable="   +1
           +",innerWidth="  +width
           +",innerHeight=" +height
           +",width="       +width
           +",height="      +height
    miniwin=window.open(url,targetName,para);
    miniwin.focus();
}

// ツールチップ
function showTip(item) {
	if (isMinIE4) lyr = eval("document.all." + item);
	if (isMinNS5) lyr = eval("document.getElementById('" + item + "')");
	if (isMinIE4 || isMinNS5){
		lyr.style.left = event.x;
		lyr.style.top = event.y+10;
		lyr.style.visibility = "visible";
	}
}
function hideTip(item) {
	if (isMinIE4) lyr = eval("document.all." + item);
	if (isMinNS5) lyr = eval("document.getElementById('" + item + "')");
	if (isMinIE4 || isMinNS5) lyr.style.visibility = "hidden";
}

// 日付表示
function accessDate()
{
 dt = new Date();
 mon = dt.getMonth();
 switch(mon+1)
 {
  case  1: monstr = "GENNAIO"; break;
  case  2: monstr = "FEBBRAIO"; break;
  case  3: monstr = "MARZO"; break;
  case  4: monstr = "APRILE"; break;
  case  5: monstr = "MAGGIO"; break;
  case  6: monstr = "GIUGNO"; break;
  case  7: monstr = "LUGLIO"; break;
  case  8: monstr = "AGOSTO"; break;
  case  9: monstr = "SETTEMBRE"; break;
  case 10: monstr = "OTTOBRE"; break;
  case 11: monstr = "NOVEMBRE"; break;
  case 12: monstr = "DICEMBRE"; break;
 }
 day = dt.getDay();
 switch(day)
 {
  case 0: itastr = "<font color=#cc0000>DOMENICA</font>"; break;
  case 1: itastr = "LUNEDI"; break;
  case 2: itastr = "MARTEDI"; break;
  case 3: itastr = "MERCOLEDI"; break;
  case 4: itastr = "GIOVEDI"; break;
  case 5: itastr = "VENERDI"; break;
  case 6: itastr = "<font color=#0000cc>SABATO</font>"; break;
 }
 switch(day)
 {
  case 0: daystr = " <font color=#cc0000>- SUN -</font>, "; break;
  case 1: daystr = " - MON -, "; break;
  case 2: daystr = " - TUE -, "; break;
  case 3: daystr = " - WED -, "; break;
  case 4: daystr = " - THU -, "; break;
  case 5: daystr = " - FRI -, "; break;
  case 6: daystr = " <font color=#0000cc>- SAT -</font>, "; break;
 }
 document.write(itastr, ", ", dt.getDate(), " ", monstr, " ", dt.getYear());
}

// カラーコーディネィト
function setCookie(theName,theValue)
{
 if((theName != null) && (theValue != null))
 {
  expDay = "wed,01-Jan-2020 18:56:35 GMT";
  document.cookie = theName + "=" + escape(theValue) + ";expires=" + expDay;
  return true;
 }
 return false;
}

function deleteCookie(theName)
{
 document.cookie = theName + "=;expires=Thu,01-Jan-70 00:00:01 GMT";
 return true;
}

function writeCookie(obj)
{
 team = obj.value;
 if(team)
 {
  if(team == "def") deleteCookie("wc2002cc");
  else setCookie("wc2002cc",team);
  top.location.reload();
  return true;
 }
 return false;
}

function getCookie(theName)
{
 theName += "=";
 theCookie = document.cookie + ";";
 start = theCookie.indexOf(theName);
 if(start != -1)
 {
  end = theCookie.indexOf(";",start);
  return unescape(theCookie.substring(start+theName.length,end));
 }
 return false;
}

function setColorScheme(type,level)
{
 alert(tyle + level);
 color = getCookie("wc2002cc");
 switch(level)
 {
  case 1:  parent = "../"; break;
  case 2:  parent = "../../"; break;
  case 3:  parent = "../../../"; break;
  case 4:  parent = "../../../../"; break;
  default: parent = ""; break;
 }
 switch(color)
 {
  case "laz": path = parent + type + "_laz.css"; break;
  case "juv": path = parent + type + "_juv.css"; break;
  case "mil": path = parent + type + "_mil.css"; break;
  case "int": path = parent + type + "_int.css"; break;
  case "par": path = parent + type + "_par.css"; break;
  case "rom": path = parent + type + "_rom.css"; break;
  case "fio": path = parent + type + "_fio.css"; break;
  default:    path = parent + type + "_def.css"; break;
 }
 document.write('<link rel="stylesheet" type="text/css" href=' + path + '>');
 alert(path);
}

function changeCharset(init){
 if (init==true) with (navigator){
  if ((appName=="Netscape")&&(parseInt(appVersion)==4)){
   document.write('<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">');}
  else{
   document.write('<meta http-equiv="content-type" content="text/html; charset=Shift_JIS">');}
 }
}
function changeFontSize(init){
 if (init==true) with (navigator){
  if ((appName=="Netscape")&&(parseInt(appVersion)==4)){
   document.write('<style type="text/css">td{font-size:10px;font-family:verdana}</style>');}
  else{
   document.write('<style type="text/css">td{font-size:9px}</style>');}
 }
}
//-->