/*
<script type="text/javascript" src="/js/comScript.js"></script>

<img src="./img/rollover01a.gif" width="147" height="60" alt="" border="0"
  onmouseover="RollOver(this, './img/rollover01b.gif');"
  onmouseout="RollOver(this, './img/rollover01a.gif');">
*/  


// image RollOver
function RollOver(imgNm,imgPath) {
  imgNm.src = imgPath;
}

// show subWindow
function showSubW(url,ww,hh){
	window.open(url, "window_name", "width=" + ww + ",height=" + hh + ",scrollbars=yes,resizable=yes");
}

// PopBoxのグローバル変数の設定
function initPopBox(){
  popBoxWaitImage.src = "image/PopBox/spinner40.gif";
  popBoxRevertImage = "image/PopBox/magminus.gif";
  popBoxPopImage = "image/PopBox/magplus.gif";
}


// header write Jpn
function headerTagWriteJpn(jpnUrl,engUrl,imgPath,SouPath) {
  // header section write
  document.open();
  document.write("<TABLE class='pgTbl'>");
  document.write("  <TBODY>");
  document.write("    <TR>");
  document.write("      <TD class='headlogo' rowspan='2'>");
//  document.write("        <P class='HeadCatch'>アナログ測定のパイオニア</P>");
  document.write("      	<A class='headlogo' href='index.html'><IMG class='headlogo' src='" + imgPath + "image/cal.gif'></A>");
  document.write("      </TD>");
  document.write("      <!-- Googleサイト内検索 start -->");
  document.write("      <TD class='ggbar'>");
//  document.write("      <FORM action='http://www.google.com/cse' id='cse-search-box'>");
//  document.write("        <DIV class='ggbarPos'>");
//  document.write("            <input type='hidden' name='cx' value='002601417593890718162:n9uuhjnxkis' />");
//  document.write("            <input type='hidden' name='ie' value='Shift_JIS' />");
//  document.write("            <input type='text' name='q' size='31' />");
//  document.write("            <input type='submit' name='sa' value='検索' />");
//  document.write("        </DIV>");
//  document.write("        </FORM>");
//  document.write("      <SCRIPT type='text/javascript' src='http://www.google.com/coop/cse/brand?form=cse-search-box&lang=ja'></SCRIPT>");
  document.write("      <br><br>");
  document.write("      </TD>");
  document.write("      <!-- Googleサイト内検索 end -->");
  document.write("    </TR>");
//  document.write("    <TR>");
//  document.write("      <TD>");
//  document.write("      <ul id='navLng'>");
//  document.write("        <li><A href='" + engUrl + "'>English</A> ｜ </li>");
//  document.write("        <li><A href='" + jpnUrl + "'>日本語</A></li>");
//  document.write("      </ul>");
//  document.write("      </TD>");
//  document.write("    </TR>");
  document.write("  </TBODY>");
  document.write("</TABLE>");
  // menu section write
  document.write("<table class='navTop'>");
  document.write("  <tbody>");
  document.write("    <tr>");
//  document.write("      <td class='navTopSide'><img src='image/btn/menubarSide.png' width='20' height='30'></td>");
  document.write("      <td class='navTopSide'></td>");
  document.write("      <td class='navTop'><a class='navTop' href='" + SouPath + "about/index.html'>会社情報</a></td>");
  document.write("      <td class='navTop'><a class='navTop' href='" + SouPath + "project/index.html'>事業内容</a></td>");
  document.write("      <td class='navTop'><a class='navTop' href='" + SouPath + "product/index.html'>製品情報</a></td>");
  document.write("      <td class='navTop'><a class='navTop' href='" + SouPath + "recruit/index.html'>求人情報</a></td>");
  document.write("      <td class='navTop'><a class='navTop' href='" + SouPath + "inquiry/index.html'>お問い合わせ</a></td>");
  document.write("      <td class='navTopSide'></td>");
  document.write("    </tr>");
  document.write("  </tbody>");
  document.write("</table>");
  document.close();
}

// header write Jpn
function headerTagWriteEng(jpnUrl,engUrl) {
  // header section write
  document.open();
  document.write("<TABLE class='pgTbl'>");
  document.write("  <TBODY>");
  document.write("    <TR>");
  document.write("      <TD class='headlogo' rowspan='2'>");
//  document.write("        <P class='HeadCatch'>Pioneer of Analog Measurement</P>");
  document.write("      	<A class='headlogo' href='/indexEng.html'><IMG class='headlogo' src='/image/logo.gif'></A>");
  document.write("      </TD>");
  document.write("      <!-- Googleサイト内検索 start -->");
  document.write("      <TD class='ggbar'>");
//  document.write("      <FORM action='http://www.google.com/cse' id='cse-search-box'>");
//  document.write("        <DIV class='ggbarPos'>");
//  document.write("            <input type='hidden' name='cx' value='002601417593890718162:n9uuhjnxkis' />");
//  document.write("            <input type='hidden' name='ie' value='Shift_JIS' />");
//  document.write("            <input type='text' name='q' size='31' />");
//  document.write("            <input type='submit' name='sa' value='Search' />");
//  document.write("        </DIV>");
//  document.write("        </FORM>");
//  document.write("      <SCRIPT type='text/javascript' src='http://www.google.com/coop/cse/brand?form=cse-search-box&lang=ja'></SCRIPT>");
  document.write("      <br><br>");
  document.write("      </TD>");
  document.write("      <!-- Googleサイト内検索 end -->");
  document.write("    </TR>");
//  document.write("    <TR>");
//  document.write("      <TD>");
//  document.write("      <ul id='navLng'>");
//  document.write("        <li><A href='" + engUrl + "'>English</A> ｜ </li>");
//  document.write("        <li><A href='" + jpnUrl + "'>Japanese</A></li>");
//  document.write("      </ul>");
//  document.write("      </TD>");
//  document.write("    </TR>");
  document.write("  </TBODY>");
  document.write("</TABLE>");
  // menu section write
  document.write("<table class='navTop'>");
  document.write("  <tbody>");
  document.write("    <tr>");
  document.write("      <td class='navTopSide'><img src='image/btn/menubarSide.png' width='20' height='30'></td>");
  document.write("      <td class='navTop'><a class='navTop' href='eng/about/index.html'>About Us</a></td>");
  document.write("      <td class='navTop'><a class='navTop' href='eng/product/index.html'>Products</a></td>");
  document.write("      <td class='navTop'><a class='navTop' href='eng/recruit/index.html'>Employment</a></td>");
  document.write("      <td class='navTop'><a class='navTop' href='eng/news/index.html'>News</a></td>");
  document.write("      <td class='navTop'><a class='navTop' href='etc/indexEng.html'>Contact Us</a></td>");
  document.write("      <td class='navTopSide'><img src='image/btn/menubarSide.png' width='20' height='30'></td>");
  document.write("    </tr>");
  document.write("  </tbody>");
  document.write("</table>");
  document.close();
}

function newsTagWrite(lngType) {
  document.open();
  document.write("<div class='newTopLCont'>");
  document.write("  <div class='newNav'>");

  if (lngType == "jpn") {
    document.write("  <h2>年 度</h2>");
    document.write("  <ul class='newNl'>");
    document.write("    <li><A href='/jpn/news/index.html'>2010年</A></li>");
    document.write("  </ul>");
  }
  else {
    document.write("  <h2>Fiscal year</h2>");
    document.write("  <ul class='newNl'>");
    document.write("    <li><A href='/eng/news/index.html'>2010</A></li>");
    document.write("  </ul>");
  }

  document.write("  <BR><BR><BR><BR>");
  document.write("  </div>");
  document.write("</div>");

  document.close();
}

