<!--

// ---------------------------------------------------------------------------------------- 
// ロールオーバー関数
// ---------------------------------------------------------------------------------------- 
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  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=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
// ---------------------------------------------------------------------------------------- 

// ---------------------------------------------------------------------------------------- 
// 印刷窓
// ---------------------------------------------------------------------------------------- 
function print_open( URL ) {
  win=window.open( URL, "print", "scrollbars=yes,alwaysRaised=yes,dependent=yes,resizable=yes,width=700");
}
// ---------------------------------------------------------------------------------------- 

// ---------------------------------------------------------------------------------------- 
// 最終更新日取得＆表示関数
// ---------------------------------------------------------------------------------------- 
function LastUD(){
  Win = false;
  app = navigator.appName.charAt(0);
  ver = navigator.appVersion.charAt(0);
  if ( navigator.appVersion.indexOf('Windows',0) != 0 ){
    Win = true;
  }

  if( app == 'M' && Win == true ){
    if ( ver < 4 ){
      year = document.lastModified.indexOf(' ',8);
      year = document.lastModified.substring(year+1,year+5);
      month = document.lastModified.indexOf(' ',0);
      month = document.lastModified.substring(month+1,month+3);
      date = document.lastModified.indexOf(' ',2);
      date = document.lastModified.substring(date+1,date+3);
    }
    else{
      update = new Date(document.lastModified);
      miss1 = update.getTime();
      if( navigator.appVersion.indexOf("MSIE 5") == 0 ){
        if(update.getTime() < 0){
          miss1 = miss1 + 3155792400000;
        }
        else{
          miss1 += 32400000
        }
      }
      miss2 = new Date(miss1);
      year = miss2.getYear();
      month = miss2.getMonth() + 1;
      date = miss2.getDate();
    }
    if(year < 1000){
      year += 1900;
    }
    document.write('Last Update：');
    document.write(year,'.');
    document.write(month,'.');
    document.write(date,'');
  }
  else{
    if( app == 'M' || app == 'N'){
      update = new Date(document.lastModified);
      if(update.getTime() < 0){
        if(update.getTimezoneOffset() == 900){
          miss1 = update.getTime() + 2212036096000 + 86400000;
          miss2 = new Date(miss1);
        }
        else{
          miss1 = update.getTime() + 3155792400000 - 32400000;
          miss2 = new Date(miss1);
        }
        year = miss2.getYear();
        month = miss2.getMonth() + 1;
        date = miss2.getDate();
      }
      else{
        year = update.getYear();    
        month = update.getMonth() + 1;
        date = update.getDate();
      }
      if(year < 1000){
        year += 1900;
      }
      document.write('Last Update：');
      document.write(year,'.');
      document.write(month,'.');
      document.write(date,'');
    }
    else{
      document.write('Last Update：',document.lastModified);
    }
  }
}
// ---------------------------------------------------------------------------------------- 

// ---------------------------------------------------------------------------------------- 
// 経験年数を算出する関数
// ---------------------------------------------------------------------------------------- 
function getexp(){

    var ef = 0;
    var born_y = 1997;
    var born_m = 10;
    var born_d = 1;

    var acDate = new Date();
    //var now_y = acDate.getYear();
    var now_y = acDate.getFullYear();
    var now_mold = acDate.getMonth();
    var now_m = now_mold + 1
    var now_d = acDate.getDate();

    if ( now_y >= born_y ){

        toshi = now_y - born_y;

        if ( now_m <= born_m ){
            if ( now_m == born_m ){
                if ( now_d < born_d ){

                    toshi = toshi - 1;

                    // 今年の開始日まだ来てない
                    if ( now_y == born_y ){
                        ef = 1;
                    }
                }
            }
            else{

                toshi = toshi - 1;

                // 今年の開始月まだ来てない
                if (now_y == born_y){
                    ef = 1;
                }
            }
        }
      
        if ( ef != 1 ){
            document.write( toshi );
        }
        else{
            document.write( "" );
        }
    }
}
// ---------------------------------------------------------------------------------------- 

//-->

