package org.apache.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;
import java.util.*;
import java.sql.*;
import org.apache.log4j.Category;
import jp.co.sint.database.*;
import jp.co.sint.basic.*;
import jp.co.sint.tools.*;
import jp.co.sint.config.*;
import jp.co.sint.beans.front.*;
import jp.co.sint.beans.mallmgr.*;

public class addr_edit_jsp extends HttpJspBase {


  private static java.util.Vector _jspx_includes;

  static {
    _jspx_includes = new java.util.Vector(1);
    _jspx_includes.add("/customer/../include/chk_userinfo_inc.jsp");
  }

  private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_response_sendRedirect;
  private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_response_encodeRedirectUrl;
  private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_webshop_actionErrors;
  private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_datetime_format_pattern;
  private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_datetime_currentTime_nobody;
  private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_webshop_isFalse_value;
  private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_webshop_siselect_name_defaultAlways_default_collection_nobody;

  public addr_edit_jsp() {
    _jspx_tagPool_response_sendRedirect = new org.apache.jasper.runtime.TagHandlerPool();
    _jspx_tagPool_response_encodeRedirectUrl = new org.apache.jasper.runtime.TagHandlerPool();
    _jspx_tagPool_webshop_actionErrors = new org.apache.jasper.runtime.TagHandlerPool();
    _jspx_tagPool_datetime_format_pattern = new org.apache.jasper.runtime.TagHandlerPool();
    _jspx_tagPool_datetime_currentTime_nobody = new org.apache.jasper.runtime.TagHandlerPool();
    _jspx_tagPool_webshop_isFalse_value = new org.apache.jasper.runtime.TagHandlerPool();
    _jspx_tagPool_webshop_siselect_name_defaultAlways_default_collection_nobody = new org.apache.jasper.runtime.TagHandlerPool();
  }

  public java.util.List getIncludes() {
    return _jspx_includes;
  }

  public void _jspDestroy() {
    _jspx_tagPool_response_sendRedirect.release();
    _jspx_tagPool_response_encodeRedirectUrl.release();
    _jspx_tagPool_webshop_actionErrors.release();
    _jspx_tagPool_datetime_format_pattern.release();
    _jspx_tagPool_datetime_currentTime_nobody.release();
    _jspx_tagPool_webshop_isFalse_value.release();
    _jspx_tagPool_webshop_siselect_name_defaultAlways_default_collection_nobody.release();
  }

  public void _jspService(HttpServletRequest request, HttpServletResponse response)
        throws java.io.IOException, ServletException {

    JspFactory _jspxFactory = null;
    javax.servlet.jsp.PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;


    try {
      _jspxFactory = JspFactory.getDefaultFactory();
      response.setContentType("text/html;charset=MS932");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      			"../util/error.jsp", true, 8192, true);
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      session = pageContext.getSession();
      out = pageContext.getOut();
      _jspx_out = out;

      out.write("\r\n");

/**
 * Copyright (c) 2003-2009 System Integrator Corporation. & Beautygarage Inc.
 *                 All Rights Reserved.
 * @version $Id : customer/addr_edit.jsp,v 2.0 2009/04/28 Exp $
 * @author      : Naotaka Ohsugi
 * @Description : アドレス帳編集
 * @History
 * Author        Date        Reason
 * ============  ==========  ===========================
 * Naotaka       2009/04/28  Original
 */

      out.write("\r\n");
/**タグのセクション*/
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
/**エラー遷移先の定義のセクション*/
      out.write("\r\n");
      out.write("\r\n");
/**クラスのインポートのセクション*/
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");

/**
 * Copyright (c) 2003-2004 System Integrator Corporation.
 *                 All Rights Reserved.
 * @version $Id : include/chk_userinfo_inc.jsp,v 1.0 2003/10/07 Exp $
 * @author      : Jinwang Chen
 * @Description : フロント側に、ユーザーがログイン情報を確認します。
 * @History
 * Author         Date        Reason
 * ============   ==========  ===========================
 * J.W.Chen       2003/07/28  Original
 */

      out.write("\r\n");
      out.write("\r\n\r\n");
SIUserInfo lUserInfo=SIHTMLUtil.getUserInfo(request);
      out.write("\r\n");
if (lUserInfo.isNotLogin(request) && !SIConfig.SIWEBSHOP_DEVELOPING){
      out.write("\r\n  ");
      /* ----  response:sendRedirect ---- */
      org.apache.taglibs.response.SendRedirectTag _jspx_th_response_sendRedirect_0 = (org.apache.taglibs.response.SendRedirectTag) _jspx_tagPool_response_sendRedirect.get(org.apache.taglibs.response.SendRedirectTag.class);
      _jspx_th_response_sendRedirect_0.setPageContext(pageContext);
      _jspx_th_response_sendRedirect_0.setParent(null);
      int _jspx_eval_response_sendRedirect_0 = _jspx_th_response_sendRedirect_0.doStartTag();
      if (_jspx_eval_response_sendRedirect_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
        if (_jspx_eval_response_sendRedirect_0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
          javax.servlet.jsp.tagext.BodyContent _bc = pageContext.pushBody();
          out = _bc;
          _jspx_th_response_sendRedirect_0.setBodyContent(_bc);
          _jspx_th_response_sendRedirect_0.doInitBody();
        }
        do {
          out.write("\r\n    ");
          /* ----  response:encodeRedirectUrl ---- */
          org.apache.taglibs.response.EncodeRedirectURLTag _jspx_th_response_encodeRedirectUrl_0 = (org.apache.taglibs.response.EncodeRedirectURLTag) _jspx_tagPool_response_encodeRedirectUrl.get(org.apache.taglibs.response.EncodeRedirectURLTag.class);
          _jspx_th_response_encodeRedirectUrl_0.setPageContext(pageContext);
          _jspx_th_response_encodeRedirectUrl_0.setParent(_jspx_th_response_sendRedirect_0);
          int _jspx_eval_response_encodeRedirectUrl_0 = _jspx_th_response_encodeRedirectUrl_0.doStartTag();
          if (_jspx_eval_response_encodeRedirectUrl_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
            if (_jspx_eval_response_encodeRedirectUrl_0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
              javax.servlet.jsp.tagext.BodyContent _bc = pageContext.pushBody();
              out = _bc;
              _jspx_th_response_encodeRedirectUrl_0.setBodyContent(_bc);
              _jspx_th_response_encodeRedirectUrl_0.doInitBody();
            }
            do {
              out.print(SIURLMap.getUrl(request,"webshop.jsp.front.user.login"));
              int evalDoAfterBody = _jspx_th_response_encodeRedirectUrl_0.doAfterBody();
              if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                break;
            } while (true);
            if (_jspx_eval_response_encodeRedirectUrl_0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE)
              out = pageContext.popBody();
          }
          if (_jspx_th_response_encodeRedirectUrl_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
            return;
          _jspx_tagPool_response_encodeRedirectUrl.reuse(_jspx_th_response_encodeRedirectUrl_0);
          out.write("\r\n  ");
          int evalDoAfterBody = _jspx_th_response_sendRedirect_0.doAfterBody();
          if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
            break;
        } while (true);
        if (_jspx_eval_response_sendRedirect_0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE)
          out = pageContext.popBody();
      }
      if (_jspx_th_response_sendRedirect_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
        return;
      _jspx_tagPool_response_sendRedirect.reuse(_jspx_th_response_sendRedirect_0);
      out.write("\r\n");
}
      out.write("\r\n");
      out.write("\r\n");

//ログ用のインスタンスの生成(common)
Category log=Category.getInstance(SIConfig.SILOG4J_WEBSHOP_CATEGORY_NAME);
//本画面に関わるbeansのデータ
UICustAddress custAddrEditID=(UICustAddress)session.getAttribute(SIConfig.SISESSION_ADDR_EDIT_NAME);
if (custAddrEditID==null)custAddrEditID=new UICustAddress();

//データベースへのコネンクション(common)
SIDatabaseConnection databaseConnection=new SIDatabaseConnection();try{
Connection connection=databaseConnection.getConnection();
//都道府県
Collection prefectureColl=SIPrefecture.getNameCollection(connection);
//各サイトの設定(common)
String webshopSite=SIHTMLUtil.getRootPath(request);
String addrSrvSite=SIURLMap.getHttpsUrl(request,"webshop.servlet.front.address");

String title = "新規配送先登録";
if (custAddrEditID.getEditModeTxt().equals(SIConfig.SIEDIT_MODE_UPDATE)) title="配送先編集";


      out.write("\r\n");
      out.write("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\r\n");
      out.write("<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"ja\" lang=\"ja\">\r\n");
      out.write("<head>\r\n");
      out.write("<meta http-equiv=\"content-type\" content=\"text/html; charset=Shift_JIS\" />\r\n");
      out.write("<title>");
      out.print(title);
      out.write(" | 理美容器具・エステ機器・美容用品の卸販売 BEAUTY GARAGE");
      out.write("</title>\r\n");
      out.write("<meta http-equiv=\"Content-Style-Type\" content=\"text/css\" />\r\n");
      out.write("<meta http-equiv=\"Content-Script-Type\" content=\"text/javascript\" />\r\n");
      out.write("<link rel=\"stylesheet\" type=\"text/css\" href=\"");
      out.print(webshopSite);
      out.write("/css/pop.css\" media=\"screen,print\" />\r\n");
      out.write("<script src=\"");
      out.print(webshopSite);
      out.write("/script/common.js\" type=\"text/javascript\">");
      out.write("</script>\r\n");
      out.write("</head>\r\n");
      out.write("<body id=\"mypage\">\r\n");
      out.write("<a name=\"top\" id=\"top\">");
      out.write("</a>\r\n");
      out.write("<div id=\"wrapper\">\r\n\r\n");
      out.write("<!-- headerArea -->\r\n");
      out.write("<div id=\"headerArea\" class=\"clearFix\">\r\n");
      out.write("<img src=\"");
      out.print(webshopSite);
      out.write("/img/logo_pop.gif\" alt=\"BEAUTY GARAGE\" width=\"133\" height=\"23\" class=\"bglogo\" />\r\n");
      out.write("<p class=\"close\">");
      out.write("<a href=\"javascript:close();\" title=\"ウィンドウを閉じる\">");
      out.write("<img src=\"");
      out.print(webshopSite);
      out.write("/img/btn_close.gif\" alt=\"ウィンドウを閉じる\" width=\"99\" height=\"23\" />");
      out.write("</a>");
      out.write("</p>\r\n");
      out.write("</div>\r\n");
      out.write("<!-- /headerArea -->\r\n\r\n");
      out.write("<form name=\"addressForm\" action=\"");
      out.print(addrSrvSite);
      out.write("\" method=\"post\">\r\n");
      out.write("<script language=\"javascript1.2\" type=\"text/javascript\">\r\n");
      out.write("<!--\r\nfunction zipdic(){\r\n  with(document.addressForm){\r\n    actionNameTxt.value='");
      out.print(SIConfig.SIACTION_ZIPDIC);
      out.write("';\r\n    submit();\r\n  }\r\n}\r\nfunction confirm(){\r\n  with(document.addressForm){\r\n    actionNameTxt.value='");
      out.print(SIConfig.SIACTION_CONFIRM);
      out.write("';\r\n    submit();\r\n  }\r\n}\r\n\r\n// 半角カナチェック\r\nfunction hankakuKanaCheck(val) {\r\n  var regFlg = true;\r\n  var regMatch = null;\r\n  \r\n  // 空文字の場合チェックしない（正常で返す）\r\n  if (val == \"\") {\r\n    return regFlg;\r\n  }\r\n  \r\n  // 半角カナを含むかチェックする\r\n  regMatch = val.match(/[ｧ-ﾝﾞﾟ]/);\r\n  \r\n  // 結果がｎｕｌｌでない=半角カナありのため、false（エラー）を返す\r\n  if (regMatch != null) {\r\n    regFlg = false;\r\n  }\r\n  \r\n  return regFlg;\r\n}\r\n\r\n// 半角数字チェック\r\n// 引数が半角数字のみかチェックする\r\nfunction hankakuSujiCheck(val) {\r\n  var regFlg = true;\r\n  var regMatch = null;\r\n  \r\n  // 空文字の場合チェックしない（正常で返す）\r\n  if (val == \"\") {\r\n    return regFlg;\r\n  }\r\n  \r\n  // 半角数字のみであるかチェックする\r\n  regMatch = val.match(/^[0-9]*$/);\r\n  \r\n  // 結果がｎｕｌｌ=半角数字なしのため、false（エラー）を返す\r\n  if (regMatch == null) {\r\n    regFlg = false;\r\n  }\r\n  \r\n  return regFlg;\r\n}\r\n\r\n// バイト数チェック\r\n// 引数の文字列が、指定したバイト数以内かチェックする\r\nfunction byteLengthCheck(val, size) {\r\n  \r\n  var valByteSize = 0;\r\n  \r\n  for (var i = 0; i ");
      out.write("< val.length; i++) {\r\n    var c = val.charCodeAt(i);\r\n    \r\n    // 半角文字が含まれる場合、+1、それ以外（全角）は+２する。\r\n    if ( (c >= 0x0 && c ");
      out.write("< 0x81) || (c == 0xf8f0) || (c >= 0xff61 && c ");
      out.write("< 0xffa0) || (c >= 0xf8f1 && c ");
      out.write("< 0xf8f4)) {\r\n      valByteSize += 1;\r\n    } else {\r\n      valByteSize += 2;\r\n    }\r\n  }\r\n  \r\n  // 指定されたサイズより大きい場合、falseを返す\r\n  if (valByteSize > size) {\r\n    return false;\r\n  }\r\n  \r\n  return true;\r\n}\r\n\r\n");
      out.write("<!-- 以下、項目ごとの入力チェック -->\r\n\r\n// 配送先名称のチェック\r\nfunction chkDeliveryName(val) {\r\n  \r\n  // エラー情報のクリア\r\n  document.getElementById(\"deliveryNameErr\").innerHTML = \"\";\r\n  \r\n  // 必須チェック\r\n  if (val == \"\") {\r\n    document.getElementById(\"deliveryNameErr\").innerHTML += \"");
      out.write("<br>「配送先名称」は、必須入力項目です。\";\r\n  }\r\n\r\n  // 半角カナチェック\r\n  if (hankakuKanaCheck(val) == false) {\r\n    document.getElementById(\"deliveryNameErr\").innerHTML += \"");
      out.write("<br>「配送先名称」は、半角カナを含まないよう入力してください。\";\r\n  }\r\n    \r\n  // 入力文字数が40バイトを超えていないか\r\n  if (byteLengthCheck(val, 40) == false) {\r\n    document.getElementById(\"deliveryNameErr\").innerHTML += \"");
      out.write("<br>「配送先名称」は、全角40文字(半角)以内で入力してください。\";\r\n  }\r\n}\r\n\r\n// お名前のチェック\r\nfunction chkDeliveryAddressee(val) {\r\n  \r\n  // エラー情報のクリア\r\n  document.getElementById(\"deliveryAddresseeErr\").innerHTML = \"\";\r\n  \r\n  // 必須チェック\r\n  if (val == \"\") {\r\n    document.getElementById(\"deliveryAddresseeErr\").innerHTML += \"");
      out.write("<br>「宛名」は、必須入力項目です。\";\r\n  }\r\n  \r\n  // 半角カナチェック\r\n  if (hankakuKanaCheck(val) == false) {\r\n    document.getElementById(\"deliveryAddresseeErr\").innerHTML += \"");
      out.write("<br>「宛名」は、半角カナを含まないよう入力してください。\";\r\n  }\r\n  \r\n  // 入力文字数が50バイトを超えていないか\r\n  if (byteLengthCheck(val, 50) == false) {\r\n    document.getElementById(\"deliveryAddresseeErr\").innerHTML += \"");
      out.write("<br>「宛名」は、全角50文字(半角)以内で入力してください。\";\r\n  }\r\n}\r\n\r\n// チェック結果フラグ（郵便番号(上3桁)）\r\nvar chkPostCode1Flg;\r\n\r\n// チェック結果フラグ（郵便番号(下4桁)用）\r\nvar chkPostCode2Flg;\r\n\r\n// 郵便番号(上3桁)のチェック\r\nfunction chkPostCode1(val) {\r\n\r\n  chkPostCode1Flg = true;\r\n\r\n  // エラー情報のクリア\r\n  document.getElementById(\"postCode1Err\").innerHTML = \"\";\r\n  document.getElementById(\"postCodeFormatErr\").innerHTML = \"\";\r\n\r\n  // 必須チェック\r\n  if (val == \"\") {\r\n    document.getElementById(\"postCode1Err\").innerHTML += \"");
      out.write("<br>「郵便番号(上3桁)」は、必須入力項目です。\";\r\n    chkPostCode1Flg = false;\r\n  }\r\n  \r\n  // 半角数字チェック\r\n  if (hankakuSujiCheck(val) == false) {\r\n    document.getElementById(\"postCode1Err\").innerHTML += \"");
      out.write("<br>「郵便番号(上3桁)」は、半角数字を入力してください。\";\r\n    chkPostCode1Flg = false;\r\n  }\r\n  \r\n  var postCode1 = document.getElementsByName(\"postCode1\")[0].value\r\n  var postCode2 = document.getElementsByName(\"postCode2\")[0].value\r\n  \r\n  // 郵便番号のフォーマットチェック（入力されている内容が正しい場合に行う）\r\n  if ((chkPostCode1Flg == true && chkPostCode2Flg == true) && (postCode1.length != 3 || postCode2.length != 4)) {\r\n    document.getElementById(\"postCodeFormatErr\").innerHTML += \"");
      out.write("<br>郵便番号は「3桁の数値-(ハイフン)4桁の数値」となります。例) 999-9999\";\r\n  }\r\n}\r\n\r\n// 郵便番号(下4桁)のチェック\r\nfunction chkPostCode2(val) {\r\n\r\n  chkPostCode2Flg = true;\r\n\r\n  // エラー情報のクリア\r\n  document.getElementById(\"postCode2Err\").innerHTML = \"\";\r\n  document.getElementById(\"postCodeFormatErr\").innerHTML = \"\";\r\n\r\n  // 必須チェック\r\n  if (val == \"\") {\r\n    document.getElementById(\"postCode2Err\").innerHTML += \"");
      out.write("<br>「郵便番号(下4桁)」は、必須入力項目です。\";\r\n    chkPostCode2Flg = false;\r\n  }\r\n  \r\n  // 半角数字チェック\r\n  if (hankakuSujiCheck(val) == false) {\r\n    document.getElementById(\"postCode2Err\").innerHTML += \"");
      out.write("<br>「郵便番号(下4桁)」は、半角数字を入力してください。\";\r\n    chkPostCode2Flg = false;\r\n  }\r\n  var postCode1 = document.getElementsByName(\"postCode1\")[0].value\r\n  var postCode2 = document.getElementsByName(\"postCode2\")[0].value\r\n  \r\n  // 郵便番号のフォーマットチェック（入力されている内容が正しい場合に行う）\r\n  if ((chkPostCode1Flg == true && chkPostCode2Flg == true) && (postCode1.length != 3 || postCode2.length != 4)) {\r\n    document.getElementById(\"postCodeFormatErr\").innerHTML += \"");
      out.write("<br>郵便番号は「3桁の数値-(ハイフン)4桁の数値」となります。例) 999-9999\";\r\n  }\r\n}\r\n\r\n// ご住所（市区町村・番地）のチェック\r\nfunction chkAddress2(val) {\r\n\r\n  // エラー情報のクリア\r\n  document.getElementById(\"address2Err\").innerHTML = \"\";\r\n  \r\n  // 必須チェック\r\n  if (val == \"\") {\r\n    document.getElementById(\"address2Err\").innerHTML += \"");
      out.write("<br>「ご住所（市区町村・番地）」は、必須入力項目です。\";\r\n  }\r\n  \r\n  // 半角カナチェック\r\n  if (hankakuKanaCheck(val) == false) {\r\n    document.getElementById(\"address2Err\").innerHTML += \"");
      out.write("<br>「ご住所（市区町村・番地）」は、半角カナを含まないよう入力してください。\";\r\n  }\r\n  \r\n  // 入力文字数が100バイトを超えていないか\r\n  if (byteLengthCheck(val, 100) == false) {\r\n    document.getElementById(\"address2Err\").innerHTML += \"");
      out.write("<br>「ご住所（市区町村・番地）」は、100文字(半角)以内で入力してください。\";\r\n  }\r\n}\r\n\r\n// ご住所（マンション名等）のチェック\r\nfunction chkAddress3(val) {\r\n\r\n  // エラー情報のクリア\r\n  document.getElementById(\"address3Err\").innerHTML = \"\";\r\n  \r\n  // 半角カナチェック\r\n  if (hankakuKanaCheck(val) == false) {\r\n    document.getElementById(\"address3Err\").innerHTML += \"");
      out.write("<br>「ご住所（ビル名等）」は、半角カナを含まないよう入力してください。\";\r\n  }\r\n  \r\n  // 入力文字数が100バイトを超えていないか\r\n  if (byteLengthCheck(val, 100) == false) {\r\n    document.getElementById(\"address3Err\").innerHTML += \"");
      out.write("<br>「ご住所（ビル名等）」は、100文字(半角)以内で入力してください。\";\r\n  }\r\n}\r\n\r\n// サロン名のチェック\r\nfunction chkCompanyName(val){\r\n\r\n  // エラー情報のクリア\r\n  document.getElementById(\"companyNameErr\").innerHTML = \"\";\r\n  \r\n  // 半角カナチェック\r\n  if (hankakuKanaCheck(val) == false) {\r\n    document.getElementById(\"companyNameErr\").innerHTML += \"");
      out.write("<br>「配送先サロン名・店舗名」は、半角カナを含まないよう入力してください。\";\r\n  }\r\n  \r\n  // 入力文字数が100バイトを超えていないか\r\n  if (byteLengthCheck(val, 100) == false) {\r\n    document.getElementById(\"companyNameErr\").innerHTML += \"");
      out.write("<br>「配送先サロン名・店舗名」は、100文字(半角)以内で入力してください。\";\r\n  }\r\n}\r\n\r\n// 連絡先電話番号のチェック\r\nfunction chkTel(val) {\r\n\r\n  // エラー情報のクリア\r\n  document.getElementById(\"telErr\").innerHTML = \"\";\r\n  \r\n  // 必須チェック\r\n  if (val == \"\") {\r\n    document.getElementById(\"telErr\").innerHTML += \"");
      out.write("<br>「連絡先電話番号」は、必須入力項目です。\";\r\n  }\r\n  \r\n  // 半角数字チェック\r\n  if (hankakuSujiCheck(val) == false) {\r\n    document.getElementById(\"telErr\").innerHTML += \"");
      out.write("<br>「連絡先電話番号」は、半角数字をハイフンなしで入力してください。\";\r\n\r\n  // 半角数字のみの場合、桁数チェックを行う  \r\n  } else if (val != \"\" && (val.length ");
      out.write("< 9 || val.length > 16)) {\r\n    document.getElementById(\"telErr\").innerHTML += \"");
      out.write("<br>「連絡先電話番号」は、9桁から16桁までの半角数字で入力してください。\";\r\n  }\r\n}\r\n//-->\r\n");
      out.write("</script>\r\n");
      out.write("<!-- contentsArea -->\r\n");
      out.write("<div id=\"contentsArea\" class=\"adr_add\">\r\n");
      out.write("<div class=\"wrap\">\r\n");
      out.write("<ol class=\"error\">\r\n");
      if (_jspx_meth_webshop_actionErrors_0(pageContext))
        return;
      out.write("\r\n");
SICustomErrors pageError = (SICustomErrors)request.getAttribute(SIConfig.SIERROR_ATTRIBUTE_MESSAGE_KEY);
if (pageError==null) pageError = new SICustomErrors();
      out.write("\r\n");
      /* ----  webshop:isFalse ---- */
      jp.co.sint.taglib.SIIsFalseTag _jspx_th_webshop_isFalse_0 = (jp.co.sint.taglib.SIIsFalseTag) _jspx_tagPool_webshop_isFalse_value.get(jp.co.sint.taglib.SIIsFalseTag.class);
      _jspx_th_webshop_isFalse_0.setPageContext(pageContext);
      _jspx_th_webshop_isFalse_0.setParent(null);
      _jspx_th_webshop_isFalse_0.setValue(pageError.isEmpty());
      int _jspx_eval_webshop_isFalse_0 = _jspx_th_webshop_isFalse_0.doStartTag();
      if (_jspx_eval_webshop_isFalse_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
        do {
          out.write("<li class=\"footer\">");
          out.write("</li>");
          int evalDoAfterBody = _jspx_th_webshop_isFalse_0.doAfterBody();
          if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
            break;
        } while (true);
      }
      if (_jspx_th_webshop_isFalse_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
        return;
      _jspx_tagPool_webshop_isFalse_value.reuse(_jspx_th_webshop_isFalse_0);
      out.write("\r\n");
      out.write("</ol>\r\n");
      out.write("<h1>");
      out.print(title);
      out.write("</h1>\r\n");
      out.write("<table>\r\n");
      out.write("<tr>\r\n");
      out.write("<th width=\"160\">配送先名称");
      out.write("<span>※");
      out.write("</span>");
      out.write("</th>\r\n");
      out.write("<td width=\"60\" class=\"form\"> ");
      out.write("</td>\r\n");
      out.write("<td class=\"input\">");
      out.write("<input name=\"deliveryName\" type=\"text\" class=\"txt\" value=\"");
      out.print(SIHTMLUtil.HTMLEncode(custAddrEditID.getDeliveryName()));
      out.write("\" size=\"35\" maxlength=\"100\" onblur=\"chkDeliveryName(this.value);\"/>※本項目は配送伝票には使用しません\r\n");
      out.write("<span id=\"deliveryNameErr\" style=\"color:red;\">");
      out.write("</span>\r\n");
      out.write("</td>\r\n");
      out.write("</tr>\r\n");
      out.write("<tr>\r\n");
      out.write("<th>宛名");
      out.write("<span>※");
      out.write("</span>");
      out.write("</th>\r\n");
      out.write("<td class=\"form\"> ");
      out.write("</td>\r\n");
      out.write("<td class=\"input\">");
      out.write("<input name=\"deliveryAddressee\" type=\"text\" class=\"txt\" value=\"");
      out.print(SIHTMLUtil.HTMLEncode(custAddrEditID.getDeliveryAddressee()));
      out.write("\" size=\"35\" maxlength=\"100\" onblur=\"chkDeliveryAddressee(this.value);\"/>※配送伝票の宛名になります\r\n");
      out.write("<span id=\"deliveryAddresseeErr\" style=\"color:red;\">");
      out.write("</span>\r\n");
      out.write("</td>\r\n");
      out.write("</tr>\r\n");
      out.write("<tr>\r\n");
      out.write("<th>郵便番号");
      out.write("<span>※");
      out.write("</span>");
      out.write("</th>\r\n");
      out.write("<td class=\"form\">半角数字");
      out.write("</td>\r\n");
      out.write("<td class=\"input\">\r\n");
      out.write("<input name=\"postCode1\" type=\"text\" class=\"post1\" value=\"");
      out.print(SIHTMLUtil.HTMLEncode(custAddrEditID.getPostCode1()));
      out.write("\" size=\"4\" maxlength=\"3\" onblur=\"chkPostCode1(this.value);\"/>-");
      out.write("<input name=\"postCode2\" type=\"text\" class=\"post2\" value=\"");
      out.print(SIHTMLUtil.HTMLEncode(custAddrEditID.getPostCode2()));
      out.write("\" size=\"8\" maxlength=\"4\" onblur=\"chkPostCode2(this.value);\"/>\r\n");
      out.write("<a href=\"javascript:zipdic()\">");
      out.write("<img src=\"");
      out.print(webshopSite);
      out.write("/img/member/btn_adrinput.gif\" width=\"95\" height=\"19\" border=\"0\" style=\"vertical-align:bottom;\"/>");
      out.write("</a>\r\n");
      out.write("<a href=\"http://search.post.japanpost.jp/zipcode/index.html\" target=\"_blank\" style=\"color:red\">郵便番号がわからない方はこちら");
      out.write("</a>\r\n");
      out.write("<span id=\"postCode1Err\" style=\"color:red;\">");
      out.write("</span>\r\n");
      out.write("<span id=\"postCode2Err\" style=\"color:red;\">");
      out.write("</span>\r\n");
      out.write("<span id=\"postCodeFormatErr\" style=\"color:red;\">");
      out.write("</span>\r\n");
      out.write("</td>\r\n");
      out.write("</tr>\r\n");
      out.write("<tr>\r\n");
      out.write("<th>都道府県");
      out.write("<span>※");
      out.write("</span>");
      out.write("</th>\r\n");
      out.write("<td class=\"form\">&nbsp;");
      out.write("</td>\r\n");
      out.write("<td class=\"input\">");
      /* ----  webshop:siselect ---- */
      jp.co.sint.taglib.SISelect _jspx_th_webshop_siselect_0 = (jp.co.sint.taglib.SISelect) _jspx_tagPool_webshop_siselect_name_defaultAlways_default_collection_nobody.get(jp.co.sint.taglib.SISelect.class);
      _jspx_th_webshop_siselect_0.setPageContext(pageContext);
      _jspx_th_webshop_siselect_0.setParent(null);
      _jspx_th_webshop_siselect_0.setDefaultAlways("true");
      _jspx_th_webshop_siselect_0.setName("address1");
      _jspx_th_webshop_siselect_0.setDefault(custAddrEditID.getAddress1());
      _jspx_th_webshop_siselect_0.setCollection(prefectureColl);
      int _jspx_eval_webshop_siselect_0 = _jspx_th_webshop_siselect_0.doStartTag();
      if (_jspx_th_webshop_siselect_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
        return;
      _jspx_tagPool_webshop_siselect_name_defaultAlways_default_collection_nobody.reuse(_jspx_th_webshop_siselect_0);
      out.write("</td>\r\n");
      out.write("</tr>\r\n");
      out.write("<tr>\r\n");
      out.write("<th>ご住所（市区町村・番地）");
      out.write("<span>※");
      out.write("</span>");
      out.write("</th>\r\n");
      out.write("<td class=\"form\"> ");
      out.write("</td>\r\n");
      out.write("<td class=\"input\">");
      out.write("<input name=\"address2\" type=\"text\" class=\"txt\" value=\"");
      out.print(SIHTMLUtil.HTMLEncode(custAddrEditID.getAddress2()));
      out.write("\" size=\"55\" maxlength=\"100\" onblur=\"chkAddress2(this.value);\"/>\r\n");
      out.write("<span id=\"address2Err\" style=\"color:red;\">");
      out.write("</span>\r\n");
      out.write("</td>\r\n");
      out.write("</tr>\r\n");
      out.write("<tr>\r\n");
      out.write("<th>ご住所（ビル名等）");
      out.write("</th>\r\n");
      out.write("<td class=\"form\"> ");
      out.write("</td>\r\n");
      out.write("<td class=\"input\">");
      out.write("<input name=\"address3\" type=\"text\" class=\"txt\" value=\"");
      out.print(SIHTMLUtil.HTMLEncode(custAddrEditID.getAddress3()));
      out.write("\" size=\"55\" maxlength=\"100\" onblur=\"chkAddress3(this.value);\"/>\r\n");
      out.write("<span id=\"address3Err\" style=\"color:red;\">");
      out.write("</span>\r\n");
      out.write("</td>\r\n");
      out.write("</tr>\r\n");
      out.write("<tr>\r\n");
      out.write("<th>配送先サロン名・店舗名");
      out.write("</th>\r\n");
      out.write("<td class=\"form\"> ");
      out.write("</td>\r\n");
      out.write("<td class=\"input\">");
      out.write("<input name=\"companyName\" type=\"text\" class=\"txt\" value=\"");
      out.print(SIHTMLUtil.HTMLEncode(custAddrEditID.getCompanyName()));
      out.write("\" size=\"55\" maxlength=\"100\" onblur=\"chkCompanyName(this.value);\"/>※個人宅でない場合はご記入下さい\r\n");
      out.write("<span id=\"companyNameErr\" style=\"color:red;\">");
      out.write("</span>\r\n");
      out.write("</td>\r\n");
      out.write("</tr>\r\n");
      out.write("<input name=\"corporationName\" type=\"hidden\" value=\"");
      out.print(SIHTMLUtil.HTMLEncode(custAddrEditID.getCorporationName()));
      out.write("\"/>\r\n");
      out.write("<tr>\r\n");
      out.write("<th>連絡先電話番号");
      out.write("<span>※");
      out.write("</span>");
      out.write("</th>\r\n");
      out.write("<td class=\"form\">半角数字");
      out.write("</td>\r\n");
      out.write("<td class=\"input\">");
      out.write("<input name=\"tel\" type=\"text\" class=\"txt\" value=\"");
      out.print(SIHTMLUtil.HTMLEncode(custAddrEditID.getTel()));
      out.write("\" size=\"20\" maxlength=\"16\" onblur=\"chkTel(this.value);\"/>※ハイフンなしで入力して下さい\r\n");
      out.write("<span id=\"telErr\" style=\"color:red;\">");
      out.write("</span>\r\n");
      out.write("</td>\r\n");
      out.write("</tr>\r\n");
      out.write("</table>\r\n");
      out.write("<p class=\"btn\">");
      out.write("<a href=\"javascript:confirm()\">");
      out.write("<img src=\"");
      out.print(webshopSite);
      out.write("/img/mypage/btn_confirm.gif\" alt=\"確認画面へ\" width=\"172\" height=\"22\" />");
      out.write("</a>");
      out.write("</p>\r\n");
      out.write("</div>\r\n");
      out.write("</div>\r\n");
      out.write("<!-- /contentsArea -->\r\n");
      out.write("<input type=\"hidden\" name=\"shc\" value=\"");
      out.print(SIHTMLUtil.HTMLEncode(custAddrEditID.getShopCode()));
      out.write("\"/>\r\n");
      out.write("<input type=\"hidden\" name=\"cmc\" value=\"");
      out.print(SIHTMLUtil.HTMLEncode(custAddrEditID.getCmdtyCode()));
      out.write("\"/>\r\n");
      out.write("<input type=\"hidden\" name=\"snc1\" value=\"");
      out.print(SIHTMLUtil.HTMLEncode(custAddrEditID.getStndrdCode1()));
      out.write("\"/>\r\n");
      out.write("<input type=\"hidden\" name=\"ec1\" value=\"");
      out.print(SIHTMLUtil.HTMLEncode(custAddrEditID.getElementCode1()));
      out.write("\"/>\r\n");
      out.write("<input type=\"hidden\" name=\"snc2\" value=\"");
      out.print(SIHTMLUtil.HTMLEncode(custAddrEditID.getStndrdCode2()));
      out.write("\"/>\r\n");
      out.write("<input type=\"hidden\" name=\"ec2\" value=\"");
      out.print(SIHTMLUtil.HTMLEncode(custAddrEditID.getElementCode2()));
      out.write("\"/>\r\n");
      out.write("<input type=\"hidden\" name=\"ac\" value=\"");
      out.print(SIHTMLUtil.HTMLEncode(custAddrEditID.getAddressCode()));
      out.write("\"/>\r\n");
      out.write("<input type=\"hidden\" name=\"callflag\" value=\"");
      out.print(SIHTMLUtil.HTMLEncode(custAddrEditID.getCallFlag()));
      out.write("\"/>\r\n");
      out.write("<input type=\"hidden\" name=\"actionNameTxt\" value=\"");
      out.print(custAddrEditID.getActionNameTxt());
      out.write("\"/>\r\n");
      out.write("<input type=\"hidden\" name=\"editModeTxt\" value=\"");
      out.print(custAddrEditID.getEditModeTxt());
      out.write("\"/>\r\n");
      out.write("</form>\r\n\r\n");
      out.write("<!-- footerArea -->\r\n");
      out.write("<div id=\"footerArea\">\r\n");
      out.write("<p id=\"copyright\">Copyright by BEAUTY GARAGE INC. All rights reserved.");
      out.write("</p>\r\n");
      out.write("</div>\r\n");
      out.write("<!-- /footerArea -->\r\n\r\n");
      out.write("</div>\r\n");
      out.write("</body>\r\n");
      out.write("</html>\r\n");

}catch(Exception e){
  e.printStackTrace();
  throw new ServletException();
}finally{
  databaseConnection.close();
}

    } catch (Throwable t) {
      out = _jspx_out;
      if (out != null && out.getBufferSize() != 0)
        out.clearBuffer();
      if (pageContext != null) pageContext.handlePageException(t);
    } finally {
      if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext);
    }
  }

  private boolean _jspx_meth_webshop_actionErrors_0(javax.servlet.jsp.PageContext pageContext)
          throws Throwable {
    JspWriter out = pageContext.getOut();
    /* ----  webshop:actionErrors ---- */
    jp.co.sint.taglib.SIActionErrorsTag _jspx_th_webshop_actionErrors_0 = (jp.co.sint.taglib.SIActionErrorsTag) _jspx_tagPool_webshop_actionErrors.get(jp.co.sint.taglib.SIActionErrorsTag.class);
    _jspx_th_webshop_actionErrors_0.setPageContext(pageContext);
    _jspx_th_webshop_actionErrors_0.setParent(null);
    int _jspx_eval_webshop_actionErrors_0 = _jspx_th_webshop_actionErrors_0.doStartTag();
    if (_jspx_eval_webshop_actionErrors_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
      if (_jspx_eval_webshop_actionErrors_0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
        javax.servlet.jsp.tagext.BodyContent _bc = pageContext.pushBody();
        out = _bc;
        _jspx_th_webshop_actionErrors_0.setBodyContent(_bc);
        _jspx_th_webshop_actionErrors_0.doInitBody();
      }
      do {
        out.write("\r\n");
        out.write("<li>下記のメッセージの発生日時は、");
        if (_jspx_meth_datetime_format_0(_jspx_th_webshop_actionErrors_0, pageContext))
          return true;
        out.write("です。");
        out.write("</li>\r\n");
        int evalDoAfterBody = _jspx_th_webshop_actionErrors_0.doAfterBody();
        if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
          break;
      } while (true);
      if (_jspx_eval_webshop_actionErrors_0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE)
        out = pageContext.popBody();
    }
    if (_jspx_th_webshop_actionErrors_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
      return true;
    _jspx_tagPool_webshop_actionErrors.reuse(_jspx_th_webshop_actionErrors_0);
    return false;
  }

  private boolean _jspx_meth_datetime_format_0(javax.servlet.jsp.tagext.Tag _jspx_th_webshop_actionErrors_0, javax.servlet.jsp.PageContext pageContext)
          throws Throwable {
    JspWriter out = pageContext.getOut();
    /* ----  datetime:format ---- */
    org.apache.taglibs.datetime.FormatTag _jspx_th_datetime_format_0 = (org.apache.taglibs.datetime.FormatTag) _jspx_tagPool_datetime_format_pattern.get(org.apache.taglibs.datetime.FormatTag.class);
    _jspx_th_datetime_format_0.setPageContext(pageContext);
    _jspx_th_datetime_format_0.setParent(_jspx_th_webshop_actionErrors_0);
    _jspx_th_datetime_format_0.setPattern("yyyy/MM/dd HH:mm:ss");
    int _jspx_eval_datetime_format_0 = _jspx_th_datetime_format_0.doStartTag();
    if (_jspx_eval_datetime_format_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
      if (_jspx_eval_datetime_format_0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
        javax.servlet.jsp.tagext.BodyContent _bc = pageContext.pushBody();
        out = _bc;
        _jspx_th_datetime_format_0.setBodyContent(_bc);
        _jspx_th_datetime_format_0.doInitBody();
      }
      do {
        if (_jspx_meth_datetime_currentTime_0(_jspx_th_datetime_format_0, pageContext))
          return true;
        int evalDoAfterBody = _jspx_th_datetime_format_0.doAfterBody();
        if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
          break;
      } while (true);
      if (_jspx_eval_datetime_format_0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE)
        out = pageContext.popBody();
    }
    if (_jspx_th_datetime_format_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
      return true;
    _jspx_tagPool_datetime_format_pattern.reuse(_jspx_th_datetime_format_0);
    return false;
  }

  private boolean _jspx_meth_datetime_currentTime_0(javax.servlet.jsp.tagext.Tag _jspx_th_datetime_format_0, javax.servlet.jsp.PageContext pageContext)
          throws Throwable {
    JspWriter out = pageContext.getOut();
    /* ----  datetime:currentTime ---- */
    org.apache.taglibs.datetime.CurrentTimeTag _jspx_th_datetime_currentTime_0 = (org.apache.taglibs.datetime.CurrentTimeTag) _jspx_tagPool_datetime_currentTime_nobody.get(org.apache.taglibs.datetime.CurrentTimeTag.class);
    _jspx_th_datetime_currentTime_0.setPageContext(pageContext);
    _jspx_th_datetime_currentTime_0.setParent(_jspx_th_datetime_format_0);
    int _jspx_eval_datetime_currentTime_0 = _jspx_th_datetime_currentTime_0.doStartTag();
    if (_jspx_th_datetime_currentTime_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
      return true;
    _jspx_tagPool_datetime_currentTime_nobody.reuse(_jspx_th_datetime_currentTime_0);
    return false;
  }
}
