var msg, msg_title, msg_all
msg_title = "以下の項目が入力されていません。\n";
msg = "";
function check() {
  if (document.inquiry.name.value == "") {
    msg += '　- 氏名（漢字）\n'; }
  if (document.inquiry.name_kana.value == "") {
    msg += '　- 氏名（ふりがな）\n'; }
  if (document.inquiry.company_name.value == "") {
    msg += '　- 会社名\n'; }
  if (document.inquiry.position.value == "") {
    msg += '　- 部署／役職\n'; }
  if (document.inquiry.tel.value == "") {
    msg += '　- 電話番号\n'; }
  if (document.inquiry.mail.value == "") {
    msg += '　- Ｅメール\n'; }
  if (msg != "") {
    msg_all = msg_title + msg;
    alert(msg_all);
    msg_all = "";
    msg = "";
    return false; }
  else { 
    if ( confirm ("ご記入の内容に間違いがないようでしたら送信します。\nよろしいですか？\n\n　※送信後は”閉じる”ボタンでウィンドウを閉じてください。\n　※メール送信が正しく行われたかを確認するには、\n　　ご利用のメールソフトの送信履歴をご確認ください。") ) { return true }
    return false; }
  return true;
}

function check_recruit() {
  if (document.recruit.name.value == "") {
    msg += '　- お名前（漢字）\n'; }
  if (document.recruit.name_kana.value == "") {
    msg += '　- お名前（ふりがな）\n'; }
  if (document.recruit.birthday.value == "") {
    msg += '　- 生年月日\n'; }
  if (document.recruit.old.value == "") {
    msg += '　- 年齢\n'; }
  if (document.recruit.zip.value == "") {
    msg += '　- 郵便番号\n'; }
  if (document.recruit.address.value == "") {
    msg += '　- ご住所\n'; }
  if (document.recruit.tel.value == "") {
    msg += '　- 電話番号\n'; }
  if (document.recruit.mail.value == "") {
    msg += '　- メールアドレス\n'; }
  if (document.recruit.school.value == "") {
    msg += '　- 学校名・学部・学科\n'; }
  if (document.recruit.contents.value == "") {
    msg += '　- お問い合わせ又はご請求内容\n'; }
  if (msg != "") {
    msg_all = msg_title + msg;
    alert(msg_all);
    msg_all = "";
    msg = "";
    return false; }
  else { 
    if ( confirm ("ご記入の内容に間違いがないようでしたら送信します。\nよろしいですか？\n\n　※送信後は”閉じる”ボタンでウィンドウを閉じてください。\n　※メール送信が正しく行われたかを確認するには、\n　　ご利用のメールソフトの送信履歴をご確認ください。") ) { return true }
    return false; }
  return true;
}

function enterprise_graph() {
  window.open('enterprise_graph1.html','_graph','width=600,height=650,menubar=no,toolbar=no,status=no,location=no,scrollbars=yes,resizable=yes');
}

function recruit() {
  window.open('recruit_form.html','_recruit','width=570,height=700,menubar=no,toolbar=no,status=no,location=no,scrollbars=yes,resizable=yes');
}
function recruit_2() {
  window.open('../recruit_form.html','_recruit','width=570,height=700,menubar=no,toolbar=no,status=no,location=no,scrollbars=yes,resizable=yes');
}

function inquiry() {
  window.open('inquiry.html','_inquiry','width=570,height=700,menubar=no,toolbar=no,status=no,location=no,scrollbars=yes,resizable=yes');
}

function inquiry_2() {
  window.open('../inquiry.html','_inquiry','width=570,height=700,menubar=no,toolbar=no,status=no,location=no,scrollbars=yes,resizable=yes');
}
function engineering() {
  window.open('inquiry.html','_inquiry','width=550,height=700,menubar=no,toolbar=no,status=no,location=no,scrollbars=yes,resizable=yes');
}

function product() {
  window.open('inquiry.html','_inquiry','width=550,height=700,menubar=no,toolbar=no,status=no,location=no,scrollbars=yes,resizable=yes');
}

function map1() {
  window.open('map1.html','_map','width=360,height=500,menubar=no,toolbar=no,status=no,location=no,scrollbars=yes,resizable=yes');
}

function map2() {
  window.open('map2.html','_map','width=360,height=650,menubar=no,toolbar=no,status=no,location=no,scrollbars=yes,resizable=yes');
}

function map3() {
  window.open('map3.html','_map','width=360,height=330,menubar=no,toolbar=no,status=no,location=no,scrollbars=yes,resizable=yes');
}

function fig1() {
  window.open('transister.html','_fig','width=220,height=220,menubar=no,toolbar=no,status=no,location=no,scrollbars=no,resizable=yes,alwaysRaised=yes');
}
function fig2() {
  window.open('bases.html','_fig','width=220,height=220,menubar=no,toolbar=no,status=no,location=no,scrollbars=no,resizable=yes,alwaysRaised=yes');
}
function fig3() {
  window.open('sab.html','_fig','width=600,height=849,menubar=no,toolbar=no,status=no,location=no,scrollbars=no,resizable=yes,alwaysRaised=yes');
  
}
function fig4() {
  window.open('diode.html','_fig','width=220,height=220,menubar=no,toolbar=no,status=no,location=no,scrollbars=no,resizable=yes,alwaysRaised=yes');
}
function fig5() {
  window.open('leadframe.html','_fig','width=220,height=220,menubar=no,toolbar=no,status=no,location=no,scrollbars=no,resizable=yes,alwaysRaised=yes');
}