//　スタイルシート振り分け（os別）
function getOSType()
{
    var uAgent  = navigator.userAgent.toUpperCase();
    if (uAgent.indexOf("MAC") >= 0) return "MacOS";
    if (uAgent.indexOf("WIN") >= 0) return "Windows";
    return "";
}

//　ロールオーバー
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_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_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 tcheck() {
  if (document.myform.namae.value == "") {
    alert("お名前を入力してください！");
    document.myform.namae.focus();
    return(false);
  }
  if (document.myform.email.value == "") {
    alert("メールアドレスを入力してください！");
    document.myform.email.focus();
    return(false);
  }
  if (document.myform.tel.value == "") {
    alert("電話番号を入力してください！");
    document.myform.tel.focus();
    return(false);
  }
    if (document.myform.honbun.value == "") {
    alert("本文を入力してください！");
    document.myform.honbun.focus();
    return(false);
  }
  return(true);
}

//OB会入会フォーム　入力チェック
function tcheck_obj() {
  if (document.myform.namae.value == "") {
    alert("お名前を入力してください！");
    document.myform.namae.focus();
    return(false);
  }
  if (document.myform.email.value == "") {
    alert("住所を入力してください！");
    document.myform.jusyo.focus();
    return(false);
  }
  if (document.myform.tel.value == "") {
    alert("電話番号を入力してください！");
    document.myform.tel.focus();
    return(false);
  }
    if (document.myform.email.value == "") {
    alert("メールアドレスを入力してください！");
    document.myform.email.focus();
    return(false);
  }
  if (document.myform.syokugyo.value == "") {
    alert("職業を入力してください！");
    document.myform.syokugyo.focus();
    return(false);
  }
  if (document.myform.syokugyo.value == "") {
    alert("卒業年度を入力してください！");
    document.myform.nendo.focus();
    return(false);
  }
return(true);
}

//連絡先変更フォーム　入力チェック
function tcheck_obc() {
  if (document.myform.namae.value == "") {
    alert("お名前を入力してください！");
    document.myform.namae.focus();
    return(false);
  }
  if (document.myform.email.value == "") {
    alert("住所を入力してください！");
    document.myform.jusyo.focus();
    return(false);
  }
  if (document.myform.tel.value == "") {
    alert("電話番号を入力してください！");
    document.myform.tel.focus();
    return(false);
  }
    if (document.myform.email.value == "") {
    alert("メールアドレスを入力してください！");
    document.myform.email.focus();
    return(false);
  }
return(true);
}

//OB会メールフォーム　入力チェック
function tcheck_obc() {
  if (document.myform.namae.value == "") {
    alert("お名前（氏名）を入力してください！");
    document.myform.namae.focus();
    return(false);
  }
  if (document.myform.email.value == "") {
    alert("メールアドレスを入力してください！");
    document.myform.email.focus();
    return(false);
  }
  if (document.myform.tel.value == "") {
    alert("電話番号を入力してください！");
    document.myform.tel.focus();
    return(false);
  }
    if (document.myform.honbun.value == "") {
    alert("本文を入力してください！");
    document.myform.honbun.focus();
    return(false);
  }
  return(true);
}


//新規ウィンドウ
  function wopen2003_01(){ window.open("sub/rensyu2003_01.html","WindowOpen3","toolbar=no,scrollbars=no,width=495,height=320")}
  function wopen2003_02(){ window.open("sub/rensyu2003_02.html","WindowOpen1","toolbar=no,scrollbars=no,width=230,height=310")}
  function wopen2003_03(){ window.open("sub/rensyu2003_03.html","WindowOpen4","toolbar=no,scrollbars=no,width=545,height=250")}
  function wopen2003_04(){ window.open("sub/rensyu2003_04.html","WindowOpen3","toolbar=no,scrollbars=no,width=495,height=320")}
  function wopen2003_05(){ window.open("sub/rensyu2003_05.html","WindowOpen3","toolbar=no,scrollbars=no,width=230,height=310")}
  function wopen2003_06(){ window.open("sub/rensyu2003_06.html","WindowOpen3","toolbar=no,scrollbars=no,width=230,height=310")}
  function wopen2003_07(){ window.open("sub/rensyu2003_07.html","WindowOpen3","toolbar=no,scrollbars=no,width=495,height=320")}

  function wopen2003_z01(){ window.open("sub/zenkoku2003_01.html","WindowOpen2","toolbar=no,scrollbars=no,width=345,height=310")}
  function wopen2003_z02(){ window.open("sub/zenkoku2003_02.html","WindowOpen2","toolbar=no,scrollbars=no,width=345,height=310")}
  function wopen2003_z03(){ window.open("sub/zenkoku2003_03.html","WindowOpen2","toolbar=no,scrollbars=no,width=345,height=310")}
  function wopen2003_z04(){ window.open("sub/zenkoku2003_04.html","WindowOpen2","toolbar=no,scrollbars=no,width=345,height=310")}
  function wopen2003_z05(){ window.open("sub/zenkoku2003_05.html","WindowOpen4","toolbar=no,scrollbars=no,width=545,height=260")}
  function wopen2003_z06(){ window.open("sub/zenkoku2003_06.html","WindowOpen2","toolbar=no,scrollbars=no,width=345,height=310")}
  function wopen2003_z07(){ window.open("sub/zenkoku2003_07.html","WindowOpen2","toolbar=no,scrollbars=no,width=345,height=310")} 
  function wopen2003_z08(){ window.open("sub/zenkoku2003_08.html","WindowOpen4","toolbar=no,scrollbars=no,width=545,height=260")}
  function wopen2003_z09(){ window.open("sub/zenkoku2003_09.html","WindowOpen4","toolbar=no,scrollbars=no,width=545,height=260")}
  function wopen2003_z10(){ window.open("sub/zenkoku2003_10.html","WindowOpen2","toolbar=no,scrollbars=no,width=345,height=310")}
  function wopen2003_z11(){ window.open("sub/zenkoku2003_11.html","WindowOpen2","toolbar=no,scrollbars=no,width=345,height=310")}
  function wopen2003_z12(){ window.open("sub/zenkoku2003_12.html","WindowOpen4","toolbar=no,scrollbars=no,width=545,height=260")}
  
  function wopen2006_o01(){ window.open("sub/omoide2006_01.html","WindowOpen5","toolbar=no,scrollbars=no,width=545,height=444")}
  