<!--

//
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_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_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_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 MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

// カレンダーで指定された月のページにジャンプ(受験生用)
function jumpMonth_juken(){

    window.location.replace("j_calendar.htm");

//  mySysDate=new Date();
//  myMonth=mySysDate.getMonth();
//  if(myMonth+1==1){
//    window.location.replace("j_calendar1.htm");
//  }else if(myMonth+1==2){
//    window.location.replace("j_calendar2.htm");
//  }else if(myMonth+1==3){
//    window.location.replace("j_calendar3.htm");
//  }else if(myMonth+1==4){
//    window.location.replace("j_calendar4.htm");
//  }else if(myMonth+1==5){
//    window.location.replace("j_calendar5.htm");
//  }else if(myMonth+1==6){
//    window.location.replace("j_calendar6.htm");
//  }else if(myMonth+1==7){
//    window.location.replace("j_calendar7.htm");
//  }else if(myMonth+1==8){
//    window.location.replace("j_calendar8.htm");
//  }else if(myMonth+1==9){
//    window.location.replace("j_calendar9.htm");
//  }else if(myMonth+1==10){
//    window.location.replace("j_calendar10.htm");
//  }else if(myMonth+1==11){
//    window.location.replace("j_calendar11.htm");
//  }else if(myMonth+1==12){
//    window.location.replace("j_calendar12.htm");
//  }
}

// カレンダーで指定された月のページにジャンプ(在学生用)
// 20100414日付ジャンプをやめ、特定のファイルが開くようにする
function jumpMonth_zaigaku(){

    window.location.replace("z_calendar.htm");

//  mySysDate=new Date();
//   myMonth=mySysDate.getMonth();
//  if(myMonth+1==1){
//    window.location.replace("z_calendar1.htm");
//  }else if(myMonth+1==2){
//    window.location.replace("z_calendar2.htm");
//  }else if(myMonth+1==3){
//    window.location.replace("z_calendar3.htm");
//  }else if(myMonth+1==4){
//    window.location.replace("z_calendar4.htm");
//  }else if(myMonth+1==5){
//    window.location.replace("z_calendar5.htm");
//  }else if(myMonth+1==6){
//    window.location.replace("z_calendar6.htm");
//  }else if(myMonth+1==7){
//    window.location.replace("z_calendar7.htm");
//  }else if(myMonth+1==8){
//    window.location.replace("z_calendar8.htm");
//  }else if(myMonth+1==9){
//    window.location.replace("z_calendar9.htm");
//  }else if(myMonth+1==10){
//    window.location.replace("z_calendar10.htm");
//  }else if(myMonth+1==11){
//    window.location.replace("z_calendar11.htm");
//  }else if(myMonth+1==12){
//    window.location.replace("z_calendar12.htm");
//  }
}

//
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

// javascriptのコードそのものを引数にとり実行するためらwrapper関数
function MM_callJS(jsStr) { //v2.0
  return eval(jsStr)
}

/*
 * クロールされないようにメールアドレスを出力
 */
// 入試課
function mailto_nyuusi() {
  mail="&#x6E;&#121;&#117;&#x75;&#x73;&#105;&#x40;&#x68;&#x69;&#45;&#116;&#x65;&#99;&#x68;&#x2e;&#97;&#99;&#x2e;&#106;&#x70;";
  document.write(mail.link("mailto:" + mail));
}

// 教務課
function mailto_kyoumu() {
  mail="&#x6B;&#x79;&#x6F;&#117;&#x6d;&#117;&#x40;&#104;&#x69;&#x2D;&#x74;&#101;&#99;&#104;&#x2e;&#x61;&#x63;&#x2e;&#106;&#x70;";
  document.write(mail.link("mailto:" + mail));
}

// 学生課
function mailto_gakusei() {
  mail="&#x67;&#97;&#x6B;&#x75;&#x73;&#x65;&#x69;&#64;&#104;&#105;&#x2d;&#x74;&#x65;&#x63;&#x68;&#x2E;&#x61;&#99;&#x2e;&#106;&#x70;";
  document.write(mail.link("mailto:" + mail));
}

// 就職課
function mailto_job() {
  mail="&#x6a;&#x6F;&#x62;&#x40;&#x68;&#x69;&#45;&#x74;&#x65;&#99;&#104;&#x2E;&#x61;&#x63;&#x2e;&#x6A;&#x70;";
  document.write(mail.link("mailto:" + mail));
}

// 図書館
function mailto_tosyo() {
  mail="&#x74;&#x6f;&#115;&#121;&#111;&#x40;&#x68;&#x69;&#45;&#x74;&#x65;&#x63;&#x68;&#46;&#x61;&#x63;&#46;&#106;&#x70;";
  document.write(mail.link("mailto:" + mail));
}

// 庶務課
function mailto_shomu() {
  mail="&#x73;&#x68;&#x6f;&#x6d;&#x75;&#x40;&#x68;&#x69;&#45;&#x74;&#x65;&#x63;&#x68;&#46;&#x61;&#x63;&#46;&#106;&#x70;";
  document.write(mail.link("mailto:" + mail));
}

// 改革室
function mailto_kaikaku() {
  mail="&#x6b;&#x61;&#x69;&#x6b;&#x61;&#x6b;&#x75;&#x40;&#x68;&#x69;&#45;&#x74;&#x65;&#x63;&#x68;&#46;&#x61;&#x63;&#46;&#106;&#x70;";
  document.write(mail.link("mailto:" + mail));
}

// www-admin
function mailto_wwwadmin() {
  mail="&#119;&#x77;&#x77;&#x2d;&#97;&#100;&#x6d;&#x69;&#110;&#x40;&#104;&#x69;&#x2D;&#x74;&#101;&#x63;&#x68;&#46;&#97;&#x63;&#x2e;&#x6a;&#x70;";
  document.write(mail.link("mailto:" + mail));
}

// デジタルパンフレット(株式会社 フロムページ)用コード
// 2008-07-30 add by yatsu
function OpenWin( sTRURL ){
    var screen_width = screen.availWidth - 10;
    var screen_height = screen.availHeight - 30;
    sTRFeatures = "screenX=0,screenY=0,width=" + screen_width + ",height=" + screen_height +",";
    sTRFeatures += "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes";

    windowname=window.open( sTRURL, "", sTRFeatures );
    windowname.focus();
}

/*
 * ブロック単位で記事を折りたたむ
 * http://weboook.blog22.fc2.com/blog-entry-11.html
 */
function showPlagin(idno){
	pc = ('PlagClose' + (idno));
	//po = ('PlagOpen' + (idno));
	if( document.getElementById(pc).style.display == "none" ) {
		document.getElementById(pc).style.display = "block";
		//document.getElementById(po).style.display = "none";
	} else {
		document.getElementById(pc).style.display = "none";
		//document.getElementById(po).style.display = "block";
	}
}
// -->
