
  var captionTITLE    = "";
  var captionCOMENT1  = "";
  var captionCOMENT2  = "";
  var captionSHIMEI   = "";
  var captionFURIGANA = "";
  var captionSYAMEI   = "";
  var captionSEIBETSU = "";
  var captionSEIBETSU0= "";
  var captionSEIBETSU1= "";
  var captionSEIBETSU2= "";
  var captionNENREI   = "";
  var captionMAILADD  = "";
  var captionMAILADD1 = "";
  var captionTEL      = "";
  var captionFAX      = "";
  var captionKENMEI   = "";
  var captionNAIYOU   = "";
  var captionSOUSHIN  = "";
  var captionRESET    = "";
  var captionBACK     = "";
  var captionCLOSE    = "";
  var captionTHANKS   = "";
  var paramLangMODE   = "";

//引数指定がないときは日本語モード
if (trim(location.search) == "") 
{
  captionTITLE    = "お問い合わせ";

  captionCOMENT1  = "  <table border=\'0\' cellspacing=\'5\' style=\'border-collapse: collapse\' bordercolor=\'#808080\' width=\'520\' id=\'AutoNumber1\' bgcolor=\'#C0C0C0\' cellpadding=\'10\' height=\'131\' background=\'menu/m_back.gif\'>";
  captionCOMENT1  = captionCOMENT1 + "    <tr>";
  captionCOMENT1  = captionCOMENT1 + "      <td width=\'25\' height=\'1\' align=\'right\' valign=\'top\'>";
  captionCOMENT1  = captionCOMENT1 + "      <font color=\'#FFFFFF\'>*</font></td>";
  captionCOMENT1  = captionCOMENT1 + "      <td width=\'475\' height=\'1\'><b><font color=\'#ffffff\'>";
  captionCOMENT1  = captionCOMENT1 + "      各イベントへの詳細やお問い合せについては、各主催者又は各事務局までおたずね下さい。<br>";
  captionCOMENT1  = captionCOMENT1 + "&nbsp;&nbsp;&nbsp;&nbsp; (当ホームページ上「イベントカレンダー」をご覧下さい）</font></b></td>";
  captionCOMENT1  = captionCOMENT1 + "    </tr>";
  captionCOMENT1  = captionCOMENT1 + "    <tr>";
  captionCOMENT1  = captionCOMENT1 + "      <td width=\'25\' height=\'1\' align=\'right\' valign=\'top\'>";
  captionCOMENT1  = captionCOMENT1 + "      <font color=\'#FFFFFF\'>*</font></td>";
  captionCOMENT1  = captionCOMENT1 + "      <td width=\'475\' height=\'1\'><b><font color=\'#ffffff\'>";
  captionCOMENT1  = captionCOMENT1 + "      ご来場に関するお問い合せは、当ホームページ上「アクセス」をご覧下さい。</font></b></td>";
  captionCOMENT1  = captionCOMENT1 + "    </tr>";
  captionCOMENT1  = captionCOMENT1 + "    <tr>";
  captionCOMENT1  = captionCOMENT1 + "      <td width=\'25\' height=\'1\' align=\'right\' valign=\'top\'>";
  captionCOMENT1  = captionCOMENT1 + "      <font color=\'#FFFFFF\'>*</font></td>";
  captionCOMENT1  = captionCOMENT1 + "      <td width=\'475\' height=\'1\'><b><font color=\'#ffffff\'>";
  captionCOMENT1  = captionCOMENT1 + "      施設の利用・サービスに関するお問い合わせは、当ホームページ上「ご利用案内」をご覧下さい。</font></b></td>";
  captionCOMENT1  = captionCOMENT1 + "    </tr>";
  captionCOMENT1  = captionCOMENT1 + "    <tr>";
  captionCOMENT1  = captionCOMENT1 + "      <td width=\'25\' height=\'1\' align=\'right\' valign=\'top\'>";
  captionCOMENT1  = captionCOMENT1 + "      <font color=\'#FFFFFF\'>*</font></td>";
  captionCOMENT1  = captionCOMENT1 + "      <td width=\'475\' height=\'1\'><b><font color=\'#ffffff\'>";
  captionCOMENT1  = captionCOMENT1 + "      施設の利用・サービスに関するお問い合わせは、当ホームページ上「ご利用案内」をご覧下さい。</font></b></td>";
  captionCOMENT1  = captionCOMENT1 + "    </tr>";
  captionCOMENT1  = captionCOMENT1 + "    <tr>";
  captionCOMENT1  = captionCOMENT1 + "      <td width=\'25\' height=\'1\' align=\'right\' valign=\'top\'>";
  captionCOMENT1  = captionCOMENT1 + "      <font color=\'#FFFFFF\'>*</font></td>";
  captionCOMENT1  = captionCOMENT1 + "      <td width=\'475\' height=\'1\'><b><font color=\'#ffffff\'>";
  captionCOMENT1  = captionCOMENT1 + "      施設の空き状況・利用サービスに関して　　(株)幕張メッセ　営業開発課<br>";
  captionCOMENT1  = captionCOMENT1 + "&nbsp;&nbsp;&nbsp;&nbsp; 〒261-0023　千葉市美浜区中瀬2−１国際会議場１階<br>";
  captionCOMENT1  = captionCOMENT1 + "&nbsp;&nbsp;&nbsp;&nbsp; Tel: 043-296-0515 Fax: 043-296-0529</font></b></td>";
  captionCOMENT1  = captionCOMENT1 + "    </tr>";
  captionCOMENT1  = captionCOMENT1 + "    <tr>";
  captionCOMENT1  = captionCOMENT1 + "      <td width=\'25\' height=\'1\' align=\'right\' valign=\'top\'>";
  captionCOMENT1  = captionCOMENT1 + "      <font color=\'#FFFFFF\'>*</font></td>";
  captionCOMENT1  = captionCOMENT1 + "      <td width=\'475\' height=\'1\'><b><font color=\'#ffffff\'>";
  captionCOMENT1  = captionCOMENT1 + "      遺失物に関するお問い合せは043-296-0531（幕張メッセ総合管理センター警備）まで宜しくお願いします。</font></b></td>";
  captionCOMENT1  = captionCOMENT1 + "    </tr>";
  captionCOMENT1  = captionCOMENT1 + "    <tr>";
  captionCOMENT1  = captionCOMENT1 + "      <td width=\'25\' height=\'1\' align=\'right\' valign=\'top\'>";
  captionCOMENT1  = captionCOMENT1 + "      <font color=\'#FFFFFF\'>*</font></td>";
  captionCOMENT1  = captionCOMENT1 + "      <td width=\'475\' height=\'1\'><b><font color=\'#ffffff\'>";
  captionCOMENT1  = captionCOMENT1 + "      ご返信に時間がかかる場合がございますのでご了承下さい。<br>";
  captionCOMENT1  = captionCOMENT1 + "&nbsp;&nbsp;&nbsp;&nbsp; お急ぎの方は043-296-0001<br>";
  captionCOMENT1  = captionCOMENT1 + "&nbsp;&nbsp;&nbsp;&nbsp; （代表 / 受付時間 9：00-17：30）までご連絡下さい。</font></b></td>";
  captionCOMENT1  = captionCOMENT1 + "    </tr>";
  captionCOMENT1  = captionCOMENT1 + "    </table>";

  captionCOMENT2  = "*は必須項目です。";
  captionSHIMEI   = "お名前";
  captionFURIGANA = "お名前（フリガナ）";
  captionSYAMEI   = "貴社名／部署名";
  captionSEIBETSU = "性別";
  captionSEIBETSU0= "無回答";
  captionSEIBETSU1= "男";
  captionSEIBETSU2= "女";
  captionNENREI   = "年齢";
  captionMAILADD  = "メールアドレス";
  captionMAILADD1 = "メールアドレス(確認用)";
  captionTEL      = "電話番号";
  captionFAX      = "FAX番号";
  captionKENMEI   = "件名";
  captionNAIYOU   = "お問い合せ内容";
  captionSOUSHIN  = "送信";
  captionRESET    = "クリア";
  captionBACK     = "戻る";
  captionCLOSE    = "閉じる";
  captionTHANKS   = "ありがとうございました";
  paramLangMODE   = "JP";
}
else
{
  captionTITLE    = "Contact Us";

  captionCOMENT1  = "  <table border=\'0\' cellspacing=\'5\' style=\'border-collapse: collapse\' bordercolor=\'#808080\' width=\'520\' id=\'AutoNumber1\' bgcolor=\'#C0C0C0\' cellpadding=\'10\' height=\'131\' background=\'menu/m_back.gif\'>";
  captionCOMENT1  = captionCOMENT1 + "    <tr>";
  captionCOMENT1  = captionCOMENT1 + "      <td width=\'25\' height=\'1\' align=\'right\' valign=\'top\'>";
  captionCOMENT1  = captionCOMENT1 + "      <font color=\'#FFFFFF\'>*</font></td>";
  captionCOMENT1  = captionCOMENT1 + "      <td width=\'475\' height=\'1\'><b><font color=\'#ffffff\'>";
  captionCOMENT1  = captionCOMENT1 + "      Please fill in the form below and click the “submit” button.";
  captionCOMENT1  = captionCOMENT1 + "      </td>";
  captionCOMENT1  = captionCOMENT1 + "    </tr>";
  captionCOMENT1  = captionCOMENT1 + "    <tr>";
  captionCOMENT1  = captionCOMENT1 + "      <td width=\'25\' height=\'1\' align=\'right\' valign=\'top\'>";
  captionCOMENT1  = captionCOMENT1 + "      <font color=\'#FFFFFF\'>*</font></td>";
  captionCOMENT1  = captionCOMENT1 + "      <td width=\'475\' height=\'1\'><b><font color=\'#ffffff\'>";
  captionCOMENT1  = captionCOMENT1 + "      Please contact the event secretariat directly for the details of specific event.</font></b></td>";
  captionCOMENT1  = captionCOMENT1 + "    </tr>";
  captionCOMENT1  = captionCOMENT1 + "    <tr>";
  captionCOMENT1  = captionCOMENT1 + "      <td width=\'25\' height=\'1\' align=\'right\' valign=\'top\'>";
  captionCOMENT1  = captionCOMENT1 + "      <font color=\'#FFFFFF\'>*</font></td>";
  captionCOMENT1  = captionCOMENT1 + "      <td width=\'475\' height=\'1\'><b><font color=\'#ffffff\'>";
  captionCOMENT1  = captionCOMENT1 + "      For inquiries received on weekend, or company holidays, we will reply on the earliest working day.</font></b></td>";
  captionCOMENT1  = captionCOMENT1 + "    </tr>";
  captionCOMENT1  = captionCOMENT1 + "    </table>";

  captionCOMENT2  = " *　is necessary";
  captionSHIMEI   = "Name";
  captionFURIGANA = "Country";
  captionSYAMEI   = "Company Name";
  captionSEIBETSU = "Gender";
  captionSEIBETSU0= "-";
  captionSEIBETSU1= "Mr.";
  captionSEIBETSU2= "Ms.";
  captionNENREI   = "Age";
  captionMAILADD  = "Email";
  captionMAILADD1 = "Email (for a check)";
  captionTEL      = "Tel";
  captionFAX      = "Fax";
  captionKENMEI   = "Title";
  captionNAIYOU   = "Question / Comment";
  captionSOUSHIN  = "Submit";
  captionRESET    = "Reset";
  captionBACK     = "Back";
  captionCLOSE    = "Close";
  captionTHANKS   = "Thank you";
  paramLangMODE   = "EN";
}

//trim関数[JavaScriptには trim がない]
function trim(argValue){
  return String(argValue).replace(/^[ 　]*/gim, "").replace(/[ 　]*$/gim,"");
}

function Form_Validator(theForm)
{

//SHIMEIフィールドの検査
  theForm.shimei.value = trim(theForm.shimei.value);
  if (theForm.shimei.value == "")
  {
    alert("Please enter a value for the \"" + captionSHIMEI + "\" field.");
    theForm.shimei.focus();
    return (false);
  }

  if (theForm.shimei.value.length < 1)
  {
    alert("Please enter at least 1 characters in the \"" + captionSHIMEI + "\" field.");
    theForm.shimei.focus();
    return (false);
  }

  if (theForm.shimei.value.length > 50)
  {
    alert("Please enter at most 50 characters in the \"" + captionSHIMEI + "\" field.");
    theForm.shimei.focus();
    return (false);
  }

//ふりがなフィールドの確認
  theForm.furigana.value = trim(theForm.furigana.value);
  if (theForm.furigana.value == "")
  {
    alert("Please enter a value for the \"" + captionFURIGANA + "\" field.");
    theForm.furigana.focus();
    return (false);
  }

  if (theForm.furigana.value.length < 1)
  {
    alert("Please enter at least 1 characters in the \"" + captionFURIGANA + "\" field.");
    theForm.furigana.focus();
    return (false);
  }

  if (theForm.furigana.value.length > 50)
  {
    alert("Please enter at most 50 characters in the \"" + captionFURIGANA + "\" field.");
    theForm.furigana.focus();
    return (false);
  }

//年齢フィールドの確認
  var checkOK = "0123456789-";
  var checkStr = theForm.nenrei.value;
  var allValid = true;
  var validGroups = true;
  var decPoints = 0;
  var allNum = "";
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
    allNum += ch;
  }
  if (!allValid)
  {
    alert("Please enter only digit characters in the \"" + captionNENREI + "\" field.");
    theForm.nenrei.focus();
    return (false);
  }

  var chkVal = allNum;
  var prsVal = parseInt(allNum);
  if (chkVal != "" && !(prsVal >= "0" && prsVal <= "150"))
  {
    alert("Please enter a value greater than or equal to \"0\" and less than or equal to \"150\" in the \"" + captionNENREI + "\" field.");
    theForm.nenrei.focus();
    return (false);
  }

//メールアドレスフィールドの確認
  theForm.mailadd.value = trim(theForm.mailadd.value);

  if (theForm.mailadd.value == "")
  {
    alert("Please enter a value for the \"" + captionMAILADD + "\" field.");
    theForm.mailadd.focus();
    return (false);
  }

  if (theForm.mailadd.value.length < 5)
  {
    alert("Please enter at least 5 characters in the \"" + captionMAILADD + "\" field.");
    theForm.mailadd.focus();
    return (false);
  }

  if (theForm.mailadd.value.length > 100)
  {
    alert("Please enter at most 100 characters in the \"" + captionMAILADD + "\" field.");
    theForm.mailadd.focus();
    return (false);
  }

  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-@.-_~";
  var checkStr = theForm.mailadd.value;
  var allValid = true;
  var validGroups = true;
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
  }
  if (!allValid)
  {
    alert("Please enter only letter, digit and \"@.-_~\" characters in the \"" + captionMAILADD + "\" field.");
    theForm.mailadd.focus();
    return (false);
  }

//メールアドレス(確認用)フィールドの確認
    if (theForm.mailadd1.value == "")
  {
    alert("Please enter a value for the \"" + captionMAILADD1 + "\" field.");
    theForm.mailadd.focus();
    return (false);
  }

if (theForm.mailadd.value != theForm.mailadd1.value)
  {
    alert("\"" + captionMAILADD + "\" field and \"" + captionMAILADD1 + "\" field need to be the same.");
    theForm.mailadd1.focus();
    return (false);
  }


//電話番号フィールドの確認
  if (theForm.tel.value.length > 20)
  {
    alert("Please enter at most 20 characters in the \"" + captionTEL + "\" field.");
    theForm.tel.focus();
    return (false);
  }

  var checkOK = "0123456789-";
  var checkStr = theForm.tel.value;
  var allValid = true;
  var validGroups = true;
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
  }
  if (!allValid)
  {
    alert("Please enter only digit and \"-\" characters in the \"" + captionTEL + "\" field.");
    theForm.tel.focus();
    return (false);
  }

//FAX番号フィールドの確認
  if (theForm.fax.value.length > 20)
  {
    alert("Please enter at most 20 characters in the \"" + captionFAX + "\" field.");
    theForm.fax.focus();
    return (false);
  }

  var checkOK = "0123456789--";
  var checkStr = theForm.fax.value;
  var allValid = true;
  var validGroups = true;
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
  }
  if (!allValid)
  {
    alert("Please enter only digit and \"-\" characters in the \"" + captionFAX + "\" field.");
    theForm.fax.focus();
    return (false);
  }

//件名フィールドの確認
  theForm.kenmei.value = trim(theForm.kenmei.value);
  if (theForm.kenmei.value == "")
  {
    alert("Please enter a value for the \"" + captionKENMEI + "\" field.");
    theForm.kenmei.focus();
    return (false);
  }

  if (theForm.kenmei.value.length < 1)
  {
    alert("Please enter at least 1 characters in the \"" + captionKENMEI + "\" field.");
    theForm.kenmei.focus();
    return (false);
  }

  if (theForm.kenmei.value.length > 100)
  {
    alert("Please enter at most 100 characters in the \"" + captionKENMEI + "\" field.");
    theForm.kenmei.focus();
    return (false);
  }

//内容フィールドの確認
  theForm.naiyou.value = trim(theForm.naiyou.value);
  if (theForm.naiyou.value == "")
  {
    alert("Please enter a value for the \"" + captionNAIYOU + "\" field.");
    theForm.naiyou.focus();
    return (false);
  }

  if (theForm.naiyou.value.length < 1)
  {
    alert("Please enter at least 1 characters in the \"" + captionNAIYOU + "\" field.");
    theForm.naiyou.focus();
    return (false);
  }

  if (theForm.naiyou.value.length > 5000)
  {
    alert("Please enter at most 5000 characters in the \"" + captionNAIYOU + "\" field.");
    theForm.naiyou.focus();
    return (false);
  }
  return (true);
}