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 ordercounter_jsp extends HttpJspBase {


  private static java.util.Vector _jspx_includes;

  static {
    _jspx_includes = new java.util.Vector(5);
    _jspx_includes.add("/include/chk_userinfo_inc.jsp");
    _jspx_includes.add("/include/chk_casher_empty_inc.jsp");
    _jspx_includes.add("/include/deliveryDate_inc.jsp");
    _jspx_includes.add("/include/header_nosearch_inc.jsp");
    _jspx_includes.add("/include/footer_nosearch_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_siselect_name_defaultAlways_default_collection_nobody;
  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_isTrue_value;
  private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_webshop_siiterator_type_id_collection;
  private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_webshop_siselect_space_name_default_collection_nobody;

  public ordercounter_jsp() {
    _jspx_tagPool_response_sendRedirect = new org.apache.jasper.runtime.TagHandlerPool();
    _jspx_tagPool_response_encodeRedirectUrl = new org.apache.jasper.runtime.TagHandlerPool();
    _jspx_tagPool_webshop_siselect_name_defaultAlways_default_collection_nobody = 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_isTrue_value = new org.apache.jasper.runtime.TagHandlerPool();
    _jspx_tagPool_webshop_siiterator_type_id_collection = new org.apache.jasper.runtime.TagHandlerPool();
    _jspx_tagPool_webshop_siselect_space_name_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_siselect_name_defaultAlways_default_collection_nobody.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_isTrue_value.release();
    _jspx_tagPool_webshop_siiterator_type_id_collection.release();
    _jspx_tagPool_webshop_siselect_space_name_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;

    jp.co.sint.basic.SIOrderDetail _jspx_orderDetailID_1 = 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 : ordercounter.jsp,v 2.0 2009/04/23 Exp $
 * @author      : Naotaka Ohsugi
 * @Description : レジ（配送先設定）
 * @History
 * Author         Date        Reason
 * ============   ==========  ===========================
 * Naotaka        2009/04/23  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");
/**ユーザーログイン情報のチェックのセクション*/
      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");
      out.write("\r\n");
if (session.getAttribute(SIConfig.SISESSION_CART_DETAIL_NAME)==null){
      out.write("\r\n");
      /* ----  response:sendRedirect ---- */
      org.apache.taglibs.response.SendRedirectTag _jspx_th_response_sendRedirect_1 = (org.apache.taglibs.response.SendRedirectTag) _jspx_tagPool_response_sendRedirect.get(org.apache.taglibs.response.SendRedirectTag.class);
      _jspx_th_response_sendRedirect_1.setPageContext(pageContext);
      _jspx_th_response_sendRedirect_1.setParent(null);
      int _jspx_eval_response_sendRedirect_1 = _jspx_th_response_sendRedirect_1.doStartTag();
      if (_jspx_eval_response_sendRedirect_1 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
        if (_jspx_eval_response_sendRedirect_1 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
          javax.servlet.jsp.tagext.BodyContent _bc = pageContext.pushBody();
          out = _bc;
          _jspx_th_response_sendRedirect_1.setBodyContent(_bc);
          _jspx_th_response_sendRedirect_1.doInitBody();
        }
        do {
          out.print(SIURLMap.getUrl(request,"webshop.servlet.front.main"));
          int evalDoAfterBody = _jspx_th_response_sendRedirect_1.doAfterBody();
          if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
            break;
        } while (true);
        if (_jspx_eval_response_sendRedirect_1 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE)
          out = pageContext.popBody();
      }
      if (_jspx_th_response_sendRedirect_1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
        return;
      _jspx_tagPool_response_sendRedirect.reuse(_jspx_th_response_sendRedirect_1);
      out.write("\r\n");
}
      out.write("\r\n");
      out.write("\r\n");

//ログ用のインスタンスの生成(common)
Category log=Category.getInstance(SIConfig.SILOG4J_WEBSHOP_CATEGORY_NAME);
//本画面に関わるbeansのデータ
SICartManager cartMan=(SICartManager)session.getAttribute(SIConfig.SISESSION_CART_INFO_NAME);
if (cartMan==null)cartMan=new SICartManager();
UIOrderCounter orderCounterID=(UIOrderCounter)session.getAttribute(SIConfig.SISESSION_ORDER_COUNTER_NAME);
if (orderCounterID==null)orderCounterID=new UIOrderCounter();
//受注配送先レコード
LinkedHashMap deliveryMap=(LinkedHashMap)session.getAttribute(SIConfig.SISESSION_CART_DELIVERY_NAME);
String currCtgryCode="";

UINewOrderDeli newOrderDeliID = (UINewOrderDeli)session.getAttribute(SIConfig.SISESSION_ORDER_DELI);
if(newOrderDeliID == null){
  newOrderDeliID = new UINewOrderDeli();
}

SIUserInfo uid = (SIUserInfo)session.getAttribute(SIConfig.SISESSION_USERINFO_NAME);
if (uid == null) uid = new SIUserInfo();

boolean isSpcDelivery = false;//特別配送先

//データベースへのコネンクション(common)
SIDatabaseConnection databaseConnection=new SIDatabaseConnection();try{
Connection connection=databaseConnection.getConnection();
SIURLParameter urlParam = new SIURLParameter(request);

orderCounterID.calcSum(request,connection,urlParam);

//カート情報リスト
Collection cartColl=new ArrayList();
//受注明細データリスト
Collection orderDetailColl=new ArrayList();
//各サイトの設定(common)
String webshopSite=SIHTMLUtil.getRootPath(request);
String mainSrvSite=SIURLMap.getUrl(request,"webshop.servlet.front.main");
String cartSrvSite=SIURLMap.getUrl(request,"webshop.servlet.front.cart")+"?ctc="+currCtgryCode;
String counterSrvSite=SIURLMap.getHttpsUrl(request,"webshop.servlet.front.counter");
String casherSrvSite=SIURLMap.getHttpsUrl(request,"webshop.servlet.front.casher");
String custDeliSrvSite=SIURLMap.getHttpsUrl(request,"webshop.servlet.front.customer.delivery");
String popupURL=custDeliSrvSite+"?a="+SIConfig.SIACTION_DELIVERY +"&shc=0";
if (SIUtil.isNotNull(orderCounterID.getShopCode())){
  casherSrvSite=casherSrvSite+"?shc="+orderCounterID.getShopCode();
}

int spaceNum=18;
if (SICartDetail.isEmpty(request,orderCounterID.getShopCode())){
      out.write("\r\n");
      /* ----  response:sendRedirect ---- */
      org.apache.taglibs.response.SendRedirectTag _jspx_th_response_sendRedirect_2 = (org.apache.taglibs.response.SendRedirectTag) _jspx_tagPool_response_sendRedirect.get(org.apache.taglibs.response.SendRedirectTag.class);
      _jspx_th_response_sendRedirect_2.setPageContext(pageContext);
      _jspx_th_response_sendRedirect_2.setParent(null);
      int _jspx_eval_response_sendRedirect_2 = _jspx_th_response_sendRedirect_2.doStartTag();
      if (_jspx_eval_response_sendRedirect_2 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
        if (_jspx_eval_response_sendRedirect_2 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
          javax.servlet.jsp.tagext.BodyContent _bc = pageContext.pushBody();
          out = _bc;
          _jspx_th_response_sendRedirect_2.setBodyContent(_bc);
          _jspx_th_response_sendRedirect_2.doInitBody();
        }
        do {
          out.print(SIURLMap.getUrl(request,"webshop.servlet.front.main"));
          int evalDoAfterBody = _jspx_th_response_sendRedirect_2.doAfterBody();
          if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
            break;
        } while (true);
        if (_jspx_eval_response_sendRedirect_2 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE)
          out = pageContext.popBody();
      }
      if (_jspx_th_response_sendRedirect_2.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
        return;
      _jspx_tagPool_response_sendRedirect.reuse(_jspx_th_response_sendRedirect_2);
}
Collection deliveryTimeColl = SIFlagUtil.getFlagColl(SIFlagConf.SIFLAG_DELIVERYTIME_FLG_INX);
boolean isHead = true;


boolean hasIndividual = cartMan.hasDeliveryType(request,"0");
boolean hasNormal = cartMan.hasDeliveryType(request,"1");


      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>レジ（配送先設定） | 理美容器具・エステ機器・美容用品の卸販売 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/import.css\" media=\"screen,print\" />\r\n");
      out.write("<link rel=\"stylesheet\" type=\"text/css\" href=\"");
      out.print(webshopSite);
      out.write("/css/print.css\" media=\"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");

Collection deliveryDateCollNomal = null;//通常・小物・物流センター
Collection deliveryDateCollIndividual = null;//個別・大型商品・東配
String dateTimeStr = new SIDateTime().getFullDateTime();
if (dateTimeStr.compareTo("2015/09/19 12:00:00")>0 && dateTimeStr.compareTo("2015/09/23 00:00:00")<0) {
  deliveryDateCollNomal = SIBGUtil.deliveryDate(connection,3,30);
  deliveryDateCollIndividual = SIBGUtil.deliveryDate(connection,3,30,"2015-09-22,2015-09-23,2015-09-24,2015-09-25");
}else{
  deliveryDateCollNomal = SIBGUtil.deliveryDate(connection,3,30);
  deliveryDateCollIndividual = SIBGUtil.deliveryDate(connection,3,30);
}
deliveryDateCollNomal=SIUtil.insertColl(deliveryDateCollNomal,new SINameValue("最短到着日","2000-01-01"));
deliveryDateCollIndividual=SIUtil.insertColl(deliveryDateCollIndividual,new SINameValue("最短到着日","2000-01-01"));
deliveryDateCollNomal=SIUtil.insertColl(deliveryDateCollNomal,new SINameValue("指定なし",""));
deliveryDateCollIndividual=SIUtil.insertColl(deliveryDateCollIndividual,new SINameValue("指定なし",""));

      out.write("\r\n");
      out.write("<body id=\"cart\" class=\"style1\">\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");

/**
 * Copyright (c) 2003-2009 System Integrator Corporation. & Beautygarage Inc.
 *                 All Rights Reserved.
 * @version $Id : include/header_nosearch_inc.jsp,v 1.0 2009/04/20 Naotaka Ohsugi Exp $
 * @author      : Naotaka Ohsugi
 * @Description : 共通ヘッダー（検索バーなし）
 * @History
 * Author         Date        Reason
 * ============   ==========  ===========================
 * Naotaka        2009/04/20  Original
 */

      out.write("\r\n");
 //▼アプリでは非表示：ここから▼
 if (request.getHeader("user-agent").indexOf("bg-webview-")==-1) { 
      out.write("\r\n\r\n");
      out.write("\r\n");

String xForwardedFor = ((HttpServletRequest) request).getHeader("X-Forwarded-For");
if (xForwardedFor!=null && xForwardedFor.length()>=13) xForwardedFor = xForwardedFor.substring(0,13);
else xForwardedFor = "";
//xForwardedForが社内IPに一致しない場合のみ、Optimizelyのタグを配信
if ( ("219.120.56.98".equals(xForwardedFor)) || ("153.142.2.209".equals(xForwardedFor)) ) {} else { 
      out.write("\r\n");
      out.write("<script src=\"//cdn.optimizely.com/js/2916990817.js\">");
      out.write("</script>\r\n");
 } 
      out.write("\r\n");
      out.write("\r\n\r\n");
      out.write("<div id=\"headerArea\" class=\"noSearch\">\r\n");
      JspRuntimeLibrary.include(request, response, "/include/header_navigation_inc.jsp", out, true);
      out.write("\r\n");
      out.write("</div>\r\n");
} //▲アプリでは非表示：ここまで▲ 
      out.write("\r\n");
      out.write("<script type=\"text/javascript\">\r\n\r\n  var _gaq = _gaq || [];\r\n  var pluginUrl = \r\n  '//www.google-analytics.com/plugins/ga/inpage_linkid.js';\r\n  _gaq.push(['_require', 'inpage_linkid', pluginUrl]);\r\n  _gaq.push(['_setAccount', 'UA-1040584-1']);\r\n  ");
 if(SIHTMLUtil.getUserInfo(request).isLogin(request)){
      out.write("\r\n  _gaq.push(['_setCustomVar', 1, 'registered', 'true', 1]);\r\n  _gaq.push(['_setCustomVar', 2, 'sessionlogin', 'true', 2]);\r\n  _gaq.push(['_setCustomVar', 3, 'islogin', 'true', 3]);\r\n  ");
} else {
      out.write("\r\n  _gaq.push(['_setCustomVar', 3, 'islogin', 'false', 3]);\r\n  ");
}
      out.write("\r\n  _gaq.push(['_setCustomVar', 4, 'viewmode', 'PC', 3]);\r\n  _gaq.push(['_setVar',navigator.userAgent]);\r\n  _gaq.push(['_trackPageview']);\r\n  (function() {\r\n    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;\r\n    //ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';\r\n\tga.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'stats.g.doubleclick.net/dc.js';\r\n    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);\r\n  })();\r\n\r\n\t//for Google Tag Manager\r\n\tdataLayer= [{\r\n\t\t'site_type':'d',\r\n\t\t//'customer_id':'【顧客コード】'\r\n\t}];\r\n");
      out.write("</script>\r\n");
      out.write("<!-- Google Tag Manager -->\r\n");
      out.write("<noscript>");
      out.write("<iframe src=\"//www.googletagmanager.com/ns.html?id=GTM-K5Q24Q\"\r\nheight=\"0\" width=\"0\" style=\"display:none;visibility:hidden\">");
      out.write("</iframe>");
      out.write("</noscript>\r\n");
      out.write("<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\r\nnew Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\r\nj=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\r\n'//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);\r\n})(window,document,'script','dataLayer','GTM-K5Q24Q');");
      out.write("</script>\r\n");
      out.write("<!-- End Google Tag Manager -->\r\n");
      out.write("\r\n");
      out.write("<!-- /headerArea -->\r\n\r\n");
      out.write("<!-- contentsArea -->\r\n");
      out.write("<div id=\"contentsArea\">\r\n\r\n");
      out.write("<!-- root -->\r\n");
      out.write("<div id=\"root\" xmlns:v=\"http://rdf.data-vocabulary.org/#\">\r\n");
      out.write("<span typeof=\"v:Breadcrumb\">");
      out.write("<a href=\"");
      out.print(mainSrvSite);
      out.write("\" rel=\"v:url\" property=\"v:title\">美容器具の卸通販TOP");
      out.write("</a>");
      out.write("</span> &gt;\r\n");
      out.write("<span typeof=\"v:Breadcrumb\">");
      out.write("<a property=\"v:title\">レジ（配送先）");
      out.write("</a>");
      out.write("</span>\r\n");
      out.write("</div>\r\n");
      out.write("<!-- /root -->\r\n\r\n");
      out.write("<!-- contents -->\r\n");
      out.write("<div id=\"contents\">\r\n\r\n");
      out.write("<div id=\"delivery\" class=\"section\">\r\n");
      out.write("<h1>");
      out.write("<img src=\"");
      out.print(webshopSite);
      out.write("/img/cart/title_register1.gif\" alt=\"レジ 配送先設定\" width=\"950\" height=\"40\" />");
      out.write("</h1>\r\n");
      out.write("<div class=\"wrap\">\r\n");
      out.write("<h2>");
      out.write("<img src=\"");
      out.print(webshopSite);
      out.write("/img/cart/h_register1.gif\" alt=\"配送先の設定\" width=\"824\" height=\"40\" />");
      out.write("</h2>\r\n");
      out.write("<form name=\"orderCounterForm\" action=\"");
      out.print(counterSrvSite);
      out.write("\" method=\"post\" onSubmit=\"return false\">\r\n");
      out.write("<script language=\"javascript1.2\" type=\"text/javascript\" >\r\n");
      out.write("<!--\r\nfunction deleteCart(delRow){\r\n  with(document.orderCounterForm){\r\n    actionNameTxt.value='");
      out.print(SIConfig.SIACTION_MODIFY);
      out.write("';\r\n    delRowTxt.value=delRow;\r\n    submit();\r\n  }\r\n}\r\nfunction changeAmount(){\r\n  with(document.orderCounterForm){\r\n    actionNameTxt.value='");
      out.print(SIConfig.SIACTION_MODIFY);
      out.write("';\r\n    submit();\r\n  }\r\n}\r\nfunction gotoNext(){\r\n  with(document.orderCounterForm){\r\n    actionNameTxt.value='");
      out.print(SIConfig.SIACTION_MODIFY);
      out.write("';\r\n    action=\"");
      out.print(SIURLMap.getHttpsUrl(request,"webshop.servlet.front.casher"));
      out.write("\";\r\n    submit();\r\n  }\r\n}\r\nfunction goPopup(url){\r\n  var win = window.open('','cust_addr','scrollbars=yes,status=yes,width=950,height=400,resizable=yes');\r\n  win.focus();\r\n  win.location.href=url;\r\n}\r\n//-->\r\n");
      out.write("</script>\r\n");
      out.write("<div class=\"box_add\">\r\n");
      out.write("<h3>配送先設定\r\n");
      out.write("<span>\r\n");
      /* ----  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("address");
      _jspx_th_webshop_siselect_0.setDefault(newOrderDeliID.getAddress());
      _jspx_th_webshop_siselect_0.setCollection(SIDeliveryName.getNameCollection(connection,uid.getCustCode()));
      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("\r\n");
      out.write("<input name=\"changeAddress\" type=\"image\" src=\"");
      out.print(webshopSite);
      out.write("/img/cart/btn_change.gif\" alt=\"変更\" onClick=\"changeAmount()\" />\r\n");
      out.write("<span style=\"font-weight:normal; color:#F00; width:auto; position:static;\">←配送先の変更を行う場合はこちらからお選びください");
      out.write("</span>\r\n");
      out.write("</span>");
      out.write("</h3>\r\n");
      out.write("<table>\r\n");
      out.write("<tr>\r\n");
      out.write("<th>配送先");
      out.write("</th>\r\n");
      out.write("<td>");
      out.print(SIHTMLUtil.HTMLEncode(newOrderDeliID.getAddressTxt(connection,uid.getCustCode())));
      out.write("</td>\r\n");
      out.write("</tr>\r\n");
      out.write("</table>\r\n");
      out.write("<div class=\"wrapper\">\r\n");
      out.write("<p class=\"txt\" style=\"font-size:100%; float:left; width:600px; font-weight:normal;\">配送先は上に表示されている住所で宜しいですか。");
      out.write("<br />\r\n新しい住所を設定したい場合は「配送先追加」ボタン、住所の訂正等がある場合は「配送先編集」ボタンをクリックして追加または訂正を行って下さい。");
      out.write("</p>\r\n");
      out.write("<p class=\"btn3\" style=\"float:right;\">");
      out.write("<a href=\"javascript:goPopup('");
      out.print(popupURL);
      out.write("')\">");
      out.write("<img src=\"");
      out.print(webshopSite);
      out.write("/img/cart/btn_delivery_add.gif\" alt=\"配送先追加\" width=\"172\" height=\"22\" />");
      out.write("</a>");
      out.write("<br />");
      out.write("<a href=\"javascript:goPopup('");
      out.print(popupURL);
      out.write("')\">");
      out.write("<img src=\"");
      out.print(webshopSite);
      out.write("/img/cart/btn_delivery_edit.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("</webshop:session>\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\r\n");
      /* ----  webshop:isTrue ---- */
      jp.co.sint.taglib.SIIsTrueTag _jspx_th_webshop_isTrue_0 = (jp.co.sint.taglib.SIIsTrueTag) _jspx_tagPool_webshop_isTrue_value.get(jp.co.sint.taglib.SIIsTrueTag.class);
      _jspx_th_webshop_isTrue_0.setPageContext(pageContext);
      _jspx_th_webshop_isTrue_0.setParent(null);
      _jspx_th_webshop_isTrue_0.setValue(hasNormal);
      int _jspx_eval_webshop_isTrue_0 = _jspx_th_webshop_isTrue_0.doStartTag();
      if (_jspx_eval_webshop_isTrue_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
        do {
          out.write("\r\n");
          out.write("<div class=\"box_carriage\">\r\n");
          out.write("<h3 style=\"float:left;\">「通常送料」対象商品");
          out.write("</h3>\r\n");
          out.write("<ul class=\"attention\" style=\"float:right; font-size:80%; padding-bottom:5px;\">\r\n");
          out.write("<li>※まとめて配送する通常商品です。配達時間帯の指定が可能です。");
          out.write("</li>\r\n");
          out.write("<li>※時間帯については、配送の都合上ご希望に添えない場合がございます。");
          out.write("</li>\r\n");
          out.write("</ul>\r\n");
          out.write("<div class=\"clearfix\">");
          out.write("</div>\r\n");
          out.write("<table>\r\n");
          out.write("<tr>\r\n");
          out.write("<th class=\"cartItem\">商品画像");
          out.write("</th>\r\n");
          out.write("<th class=\"cartItem\">商品コード");
          out.write("</th>\r\n");
          out.write("<th class=\"cartItem\">商品名");
          out.write("</th>\r\n");
          out.write("<th class=\"cartItem\">数量");
          out.write("</th>\r\n");
          out.write("<th class=\"cartItem\">単価");
          out.write("</th>\r\n");
          out.write("<th class=\"cartItem\">商品合計");
          out.write("</th>\r\n");
          out.write("<th class=\"cartItem\">配達希望日時");
          out.write("</th>\r\n");
          out.write("<th class=\"cartItem\">送料");
          out.write("</th>\r\n");
          out.write("<th class=\"cartItem\">合計金額");
          out.write("</th>\r\n");
          out.write("\r\n");
          out.write("\r\n");
          out.write("\r\n");
          out.write("</tr>\r\n");
          out.write("\r\n");
SIOrderDetailPK lPk2=new SIOrderDetailPK();
          out.write("\r\n");
cartColl=cartMan.getCartCollection("0");
Iterator cIte = cartColl.iterator();
String komonoCount = "0";
while (cIte.hasNext()){
  SICart ct = (SICart) cIte.next();
  if (ct!=null) {
    Collection coll =SICartDetail.getDetailCollection(request,ct.getCartCmdty());
    Iterator ite2 = coll.iterator();
    while (ite2.hasNext()) {
      SIOrderDetail detail = (SIOrderDetail)ite2.next();
      komonoCount = SIUtil.add(komonoCount,detail.getDeliveryTypeCode());
    }
  }
}

          out.write("\r\n");
          out.write("\r\n");
          /* ----  webshop:siiterator ---- */
          jp.co.sint.taglib.SIIteratorTag _jspx_th_webshop_siiterator_0 = (jp.co.sint.taglib.SIIteratorTag) _jspx_tagPool_webshop_siiterator_type_id_collection.get(jp.co.sint.taglib.SIIteratorTag.class);
          _jspx_th_webshop_siiterator_0.setPageContext(pageContext);
          _jspx_th_webshop_siiterator_0.setParent(_jspx_th_webshop_isTrue_0);
          _jspx_th_webshop_siiterator_0.setId("cartID");
          _jspx_th_webshop_siiterator_0.setType("jp.co.sint.basic.SICart");
          _jspx_th_webshop_siiterator_0.setCollection(cartColl);
          int _jspx_eval_webshop_siiterator_0 = _jspx_th_webshop_siiterator_0.doStartTag();
          if (_jspx_eval_webshop_siiterator_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
            jp.co.sint.basic.SICart cartID = null;
            cartID = (jp.co.sint.basic.SICart) pageContext.findAttribute("cartID");
            do {
              out.write("\r\n");
orderDetailColl=SICartDetail.getDetailCollection(request,cartID.getCartCmdty());
              out.write("\r\n");
              /* ----  webshop:siiterator ---- */
              jp.co.sint.taglib.SIIteratorTag _jspx_th_webshop_siiterator_1 = (jp.co.sint.taglib.SIIteratorTag) _jspx_tagPool_webshop_siiterator_type_id_collection.get(jp.co.sint.taglib.SIIteratorTag.class);
              _jspx_th_webshop_siiterator_1.setPageContext(pageContext);
              _jspx_th_webshop_siiterator_1.setParent(_jspx_th_webshop_siiterator_0);
              _jspx_th_webshop_siiterator_1.setId("orderDetailID");
              _jspx_th_webshop_siiterator_1.setType("jp.co.sint.basic.SIOrderDetail");
              _jspx_th_webshop_siiterator_1.setCollection(orderDetailColl);
              int _jspx_eval_webshop_siiterator_1 = _jspx_th_webshop_siiterator_1.doStartTag();
              if (_jspx_eval_webshop_siiterator_1 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
                jp.co.sint.basic.SIOrderDetail orderDetailID = null;
                orderDetailID = (jp.co.sint.basic.SIOrderDetail) pageContext.findAttribute("orderDetailID");
                do {
                  out.write("\r\n");
lPk2.setOrderDetailCode(orderDetailID.getDetailCode());
                  out.write("\r\n");
if(orderDetailID.getDeliveryTypeCode().equals("1")){
                  out.write("\r\n");
                  out.write("<tr>\r\n");
 if (SIUtil.isNotNull(orderDetailID.getSetIndividualCode())) { 
                  out.write("\r\n");
                  out.write("<td class=\"cartItem\">");
                  out.write("<img src=\"");
                  out.print(webshopSite);
                  out.write("/image/cmdty/");
                  out.print(orderDetailID.getSetCmdtyCode());
                  out.write("/");
                  out.print(orderDetailID.getSetCmdtyCode());
                  out.write("_");
                  out.print(orderDetailID.getSetIndividualCode());
                  out.write("_t.jpg\" alt=\"\" width=\"56\" height=\"42\" />");
                  out.write("</td>\r\n");
}else{
                  out.write("\r\n");
                  out.write("<td class=\"cartItem\">");
                  out.write("<img src=\"");
                  out.print(webshopSite);
                  out.write("/image/cmdty/");
                  out.print(orderDetailID.getCmdtyCode());
                  out.write("/");
                  out.print(orderDetailID.getCmdtyCode());
                  out.write("_");
                  out.print(orderDetailID.getIndividualCode());
                  out.write("_t.jpg\" alt=\"\" width=\"56\" height=\"42\" />");
                  out.write("</td>\r\n");
}
                  out.write("\r\n");
                  out.write("\r\n");
 if (SIUtil.isNotNull(orderDetailID.getSetIndividualCode())) { 
                  out.write("\r\n");
                  out.write("<td class=\"cartItem\">");
                  out.print( orderDetailID.getSetIndividualCode());
                  out.write("（");
                  out.print(orderDetailID.getIndividualCode());
                  out.write("）");
                  out.write("</td>\r\n");
 } else { 
                  out.write("\r\n");
                  out.write("<td class=\"cartItem\">");
                  out.print(orderDetailID.getIndividualCode());
                  out.write("</td>\r\n");
 } 
                  out.write("\r\n");
                  out.write("\r\n");
                  out.write("<td class=\"cartItem\">");
                  out.print(SIHTMLUtil.HTMLEncode(orderDetailID.getCartCmdtyName()));
                  out.write("</td>\r\n");
                  out.write("\r\n");
                  out.write("\r\n");
                  out.write("<td class=\"txt-right cartItem\">");
                  out.print(SIUtil.NumberFormat(orderDetailID.getAmount()));
                  out.write("<input name=\"");
                  out.print(lPk2.getAmountNameTxt());
                  out.write("\" type=\"hidden\" value=\"");
                  out.print(orderDetailID.getAmount());
                  out.write("\"/>");
                  out.write("</td>\r\n");
                  out.write("\r\n");
                  out.write("<td class=\"txt-right nowrap cartItem\">&yen;");
                  out.print(SIUtil.NumberFormat(orderDetailID.getPriceIncTax()));
                  out.write("（");
                  out.print(SIHTMLUtil.HTMLEncode(orderDetailID.getCmdtyTaxName()));
                  out.write("）");
                  out.write("</td>\r\n");
                  out.write("<td class=\"txt-right nowrap cartItem\">&yen;");
                  out.print(SIUtil.NumberFormat(orderDetailID.getPriceIncGift()));
                  out.write("</td>\r\n");
String deliName2="deliveryDate_KomomoAll\" id=\"select3";
                  out.write("\r\n");
String deliName3="deliveryTime_KomomoAll\" id=\"select3";
                  out.write("\r\n");
if (isHead){
                  out.write("\r\n");
if ("0".equals(komonoCount)){
                  out.write("\r\n");
                  out.write("<td class=\"txt-left cartItem\" >\r\n");
}else{
                  out.write("\r\n");
                  out.write("<td class=\"txt-left cartItem\" rowspan=\"");
                  out.print(komonoCount);
                  out.write("\">\r\n");
}
                  out.write("\r\n配達希望日");
                  out.write("<br>\r\n");
                  /* ----  webshop:siselect ---- */
                  jp.co.sint.taglib.SISelect _jspx_th_webshop_siselect_1 = (jp.co.sint.taglib.SISelect) _jspx_tagPool_webshop_siselect_space_name_default_collection_nobody.get(jp.co.sint.taglib.SISelect.class);
                  _jspx_th_webshop_siselect_1.setPageContext(pageContext);
                  _jspx_th_webshop_siselect_1.setParent(_jspx_th_webshop_siiterator_1);
                  _jspx_th_webshop_siselect_1.setDefault(orderDetailID.getDeliveryDate());
                  _jspx_th_webshop_siselect_1.setName(deliName2);
                  _jspx_th_webshop_siselect_1.setCollection(deliveryDateCollNomal);
                  _jspx_th_webshop_siselect_1.setSpace(spaceNum);
                  int _jspx_eval_webshop_siselect_1 = _jspx_th_webshop_siselect_1.doStartTag();
                  if (_jspx_th_webshop_siselect_1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
                    return;
                  _jspx_tagPool_webshop_siselect_space_name_default_collection_nobody.reuse(_jspx_th_webshop_siselect_1);
                  out.write("<br>\r\n");
                  out.write("<br>希望時間帯");
                  out.write("<br>\r\n");
                  /* ----  webshop:siselect ---- */
                  jp.co.sint.taglib.SISelect _jspx_th_webshop_siselect_2 = (jp.co.sint.taglib.SISelect) _jspx_tagPool_webshop_siselect_space_name_default_collection_nobody.get(jp.co.sint.taglib.SISelect.class);
                  _jspx_th_webshop_siselect_2.setPageContext(pageContext);
                  _jspx_th_webshop_siselect_2.setParent(_jspx_th_webshop_siiterator_1);
                  _jspx_th_webshop_siselect_2.setDefault(orderDetailID.getDeliveryTime());
                  _jspx_th_webshop_siselect_2.setName(deliName3);
                  _jspx_th_webshop_siselect_2.setCollection(deliveryTimeColl);
                  _jspx_th_webshop_siselect_2.setSpace(spaceNum);
                  int _jspx_eval_webshop_siselect_2 = _jspx_th_webshop_siselect_2.doStartTag();
                  if (_jspx_th_webshop_siselect_2.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
                    return;
                  _jspx_tagPool_webshop_siselect_space_name_default_collection_nobody.reuse(_jspx_th_webshop_siselect_2);
                  out.write("\r\n");
                  out.write("</td>\r\n");
isHead=false;}
                  out.write("\r\n");
                  out.write("<td class=\"txt-right nowrap cartItem\">&yen;");
                  out.print(SIUtil.NumberFormat(orderDetailID.getDeliveryFee()));
                  out.write("</td>\r\n");
                  out.write("<td class=\"txt-right nowrap cartItem\">&yen;");
                  out.print(SIUtil.NumberFormat(orderDetailID.getTotalPrice()));
                  out.write("</td>\r\n");
                  out.write("\r\n");
                  out.write("\r\n");
                  out.write("\r\n");
                  out.write("</tr>\r\n");
}
                  out.write("\r\n");
                  int evalDoAfterBody = _jspx_th_webshop_siiterator_1.doAfterBody();
                  orderDetailID = (jp.co.sint.basic.SIOrderDetail) pageContext.findAttribute("orderDetailID");
                  if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                    break;
                } while (true);
              }
              if (_jspx_th_webshop_siiterator_1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
                return;
              _jspx_tagPool_webshop_siiterator_type_id_collection.reuse(_jspx_th_webshop_siiterator_1);
              out.write("\r\n");
              int evalDoAfterBody = _jspx_th_webshop_siiterator_0.doAfterBody();
              cartID = (jp.co.sint.basic.SICart) pageContext.findAttribute("cartID");
              if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                break;
            } while (true);
          }
          if (_jspx_th_webshop_siiterator_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
            return;
          _jspx_tagPool_webshop_siiterator_type_id_collection.reuse(_jspx_th_webshop_siiterator_0);
          out.write("\r\n");
          out.write("<tr>\r\n");
          out.write("\r\n");
          out.write("\r\n");
          out.write("<td colspan=\"4\" class=\"txt-right cartItem\">");
          out.write("</td>\r\n");
          out.write("\r\n");
          out.write("<td class=\"txt-right norwrap cartItem\">小計");
          out.write("</td>\r\n");
          out.write("<td class=\"txt-right norwrap cartItem\">&yen;");
          out.print(SIUtil.NumberFormat(orderCounterID.getSumOfCB2()));
          out.write("</td>\r\n");
          out.write("<td class=\"txt-right cartItem\">");
          out.write("<input type=\"hidden\" name=\"sumOfA\" value=\"");
          out.print(orderCounterID.getSumOfA2());
          out.write("\"/>");
          out.write("</td>\r\n");
          out.write("<td class=\"txt-right nowrap cartItem\">&yen;");
          out.print(SIUtil.NumberFormat(orderCounterID.getSumOfB2()));
          out.write("</td>\r\n");
          out.write("<td class=\"txt-right nowrap cartItem\">&yen;");
          out.print(SIUtil.NumberFormat(orderCounterID.getSumOfF2()));
          out.write("</td>\r\n");
          out.write("\r\n");
          out.write("\r\n");
          out.write("</tr>\r\n");
          out.write("</table>\r\n");

long freePrice = Long.parseLong(newOrderDeliID.getFeeRule(connection,uid.getCustCode(),newOrderDeliID.getAddress()));
long yen1 = freePrice - Long.parseLong(orderCounterID.getSumOfCB2());

          out.write("\r\n");
          out.write("<p class=\"yen1\">通常送料対象商品を&yen;4,000（税込&yen;");
          out.print(SIUtil.NumberFormat(Long.toString(freePrice)));
          out.write("）以上お買い上げになると、送料無料となります。");
          out.write("<br />\r\n");
          /* ----  webshop:isTrue ---- */
          jp.co.sint.taglib.SIIsTrueTag _jspx_th_webshop_isTrue_1 = (jp.co.sint.taglib.SIIsTrueTag) _jspx_tagPool_webshop_isTrue_value.get(jp.co.sint.taglib.SIIsTrueTag.class);
          _jspx_th_webshop_isTrue_1.setPageContext(pageContext);
          _jspx_th_webshop_isTrue_1.setParent(_jspx_th_webshop_isTrue_0);
          _jspx_th_webshop_isTrue_1.setValue(yen1>0);
          int _jspx_eval_webshop_isTrue_1 = _jspx_th_webshop_isTrue_1.doStartTag();
          if (_jspx_eval_webshop_isTrue_1 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
            do {
              out.write("\r\n");
              out.write("<em>あと税込&yen;");
              out.print(SIUtil.NumberFormat(Long.toString(yen1)));
              out.write("で送料無料となります!");
              out.write("</em>\r\n");
              int evalDoAfterBody = _jspx_th_webshop_isTrue_1.doAfterBody();
              if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                break;
            } while (true);
          }
          if (_jspx_th_webshop_isTrue_1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
            return;
          _jspx_tagPool_webshop_isTrue_value.reuse(_jspx_th_webshop_isTrue_1);
          out.write("\r\n");
          out.write("</p>\r\n");
          out.write("</div>\r\n");
          int evalDoAfterBody = _jspx_th_webshop_isTrue_0.doAfterBody();
          if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
            break;
        } while (true);
      }
      if (_jspx_th_webshop_isTrue_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
        return;
      _jspx_tagPool_webshop_isTrue_value.reuse(_jspx_th_webshop_isTrue_0);
      out.write("\r\n");
      /* ----  webshop:isTrue ---- */
      jp.co.sint.taglib.SIIsTrueTag _jspx_th_webshop_isTrue_2 = (jp.co.sint.taglib.SIIsTrueTag) _jspx_tagPool_webshop_isTrue_value.get(jp.co.sint.taglib.SIIsTrueTag.class);
      _jspx_th_webshop_isTrue_2.setPageContext(pageContext);
      _jspx_th_webshop_isTrue_2.setParent(null);
      _jspx_th_webshop_isTrue_2.setValue(hasIndividual);
      int _jspx_eval_webshop_isTrue_2 = _jspx_th_webshop_isTrue_2.doStartTag();
      if (_jspx_eval_webshop_isTrue_2 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
        do {
          out.write("\r\n");
          out.write("<div class=\"box_carriage\">\r\n");
          out.write("<h3 style=\"float:left;\">「個別送料」対象商品");
          out.write("</h3>\r\n");
          out.write("<ul class=\"attention\" style=\"float:right; font-size:80%; padding-bottom:5px;\">\r\n");
          out.write("<li>※個別に配送する大型商品です。商品毎に配達希望日の指定が可能です。");
          out.write("</li>\r\n");
          out.write("<li>※大型商品のため、配達時間帯の指定は承れません。");
          out.write("</li>\r\n");
          out.write("</ul>\r\n");
          out.write("<div class=\"clearfix\">");
          out.write("</div>\r\n");
          out.write("<table>\r\n");
          out.write("<tr>\r\n");
          out.write("<th class=\"cartItem\">商品画像");
          out.write("</th>\r\n");
          out.write("<th class=\"cartItem\">商品コード");
          out.write("</th>\r\n");
          out.write("<th class=\"cartItem\">商品名");
          out.write("</th>\r\n");
          out.write("<th class=\"cartItem\">数量");
          out.write("</th>\r\n");
          out.write("<th class=\"cartItem\">単価");
          out.write("</th>\r\n");
          out.write("<th class=\"cartItem\">商品合計");
          out.write("</th>\r\n");
          out.write("<th class=\"cartItem\">配達希望日");
          out.write("</th>\r\n");
          out.write("<th class=\"cartItem\">個別送料");
          out.write("</th>\r\n");
          out.write("<th class=\"cartItem\">合計金額");
          out.write("</th>\r\n");
          out.write("\r\n");
          out.write("\r\n");
          out.write("\r\n");
          out.write("</tr>\r\n");
SIOrderDetailPK lPk=new SIOrderDetailPK();
          out.write("\r\n");
cartColl=cartMan.getCartCollection("0");
          out.write("\r\n");
          /* ----  webshop:siiterator ---- */
          jp.co.sint.taglib.SIIteratorTag _jspx_th_webshop_siiterator_2 = (jp.co.sint.taglib.SIIteratorTag) _jspx_tagPool_webshop_siiterator_type_id_collection.get(jp.co.sint.taglib.SIIteratorTag.class);
          _jspx_th_webshop_siiterator_2.setPageContext(pageContext);
          _jspx_th_webshop_siiterator_2.setParent(_jspx_th_webshop_isTrue_2);
          _jspx_th_webshop_siiterator_2.setId("cartID");
          _jspx_th_webshop_siiterator_2.setType("jp.co.sint.basic.SICart");
          _jspx_th_webshop_siiterator_2.setCollection(cartColl);
          int _jspx_eval_webshop_siiterator_2 = _jspx_th_webshop_siiterator_2.doStartTag();
          if (_jspx_eval_webshop_siiterator_2 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
            jp.co.sint.basic.SICart cartID = null;
            cartID = (jp.co.sint.basic.SICart) pageContext.findAttribute("cartID");
            do {
              out.write("\r\n");
orderDetailColl=SICartDetail.getDetailCollection(request,cartID.getCartCmdty());
              out.write("\r\n");
              /* ----  webshop:siiterator ---- */
              jp.co.sint.taglib.SIIteratorTag _jspx_th_webshop_siiterator_3 = (jp.co.sint.taglib.SIIteratorTag) _jspx_tagPool_webshop_siiterator_type_id_collection.get(jp.co.sint.taglib.SIIteratorTag.class);
              _jspx_th_webshop_siiterator_3.setPageContext(pageContext);
              _jspx_th_webshop_siiterator_3.setParent(_jspx_th_webshop_siiterator_2);
              _jspx_th_webshop_siiterator_3.setId("orderDetailID");
              _jspx_th_webshop_siiterator_3.setType("jp.co.sint.basic.SIOrderDetail");
              _jspx_th_webshop_siiterator_3.setCollection(orderDetailColl);
              int _jspx_eval_webshop_siiterator_3 = _jspx_th_webshop_siiterator_3.doStartTag();
              if (_jspx_eval_webshop_siiterator_3 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
                jp.co.sint.basic.SIOrderDetail orderDetailID = null;
                orderDetailID = (jp.co.sint.basic.SIOrderDetail) pageContext.findAttribute("orderDetailID");
                do {
                  out.write("\r\n");
lPk.setOrderDetailCode(orderDetailID.getDetailCode());
                  out.write("\r\n");
if(orderDetailID.getDeliveryTypeName().equals("個別")){
                  out.write("\r\n");
                  out.write("<tr>\r\n");
 if (SIUtil.isNotNull(orderDetailID.getSetIndividualCode())) { 
                  out.write("\r\n");
                  out.write("<td class=\"cartItem\">");
                  out.write("<img src=\"");
                  out.print(webshopSite);
                  out.write("/image/cmdty/");
                  out.print(orderDetailID.getSetCmdtyCode());
                  out.write("/");
                  out.print(orderDetailID.getSetCmdtyCode());
                  out.write("_");
                  out.print(orderDetailID.getSetIndividualCode());
                  out.write("_t.jpg\" alt=\"\" width=\"56\" height=\"42\" />");
                  out.write("</td>\r\n");
}else{
                  out.write("\r\n");
                  out.write("<td class=\"cartItem\">");
                  out.write("<img src=\"");
                  out.print(webshopSite);
                  out.write("/image/cmdty/");
                  out.print(orderDetailID.getCmdtyCode());
                  out.write("/");
                  out.print(orderDetailID.getCmdtyCode());
                  out.write("_");
                  out.print(orderDetailID.getIndividualCode());
                  out.write("_t.jpg\" alt=\"\" width=\"56\" height=\"42\" />");
                  out.write("</td>\r\n");
}
                  out.write("\r\n");
                  out.write("\r\n");
 if (SIUtil.isNotNull(orderDetailID.getSetIndividualCode())) { 
                  out.write("\r\n");
                  out.write("<td class=\"cartItem\">");
                  out.print( orderDetailID.getSetIndividualCode());
                  out.write("（");
                  out.print(orderDetailID.getIndividualCode());
                  out.write("）");
                  out.write("</td>\r\n");
 } else { 
                  out.write("\r\n");
                  out.write("<td class=\"cartItem\">");
                  out.print(orderDetailID.getIndividualCode());
                  out.write("</td>\r\n");
 } 
                  out.write("\r\n");
                  out.write("\r\n");
                  out.write("<td class=\"cartItem\">");
                  out.print(SIHTMLUtil.HTMLEncode(orderDetailID.getCartCmdtyName()));
                  out.write("</td>\r\n");
                  out.write("\r\n");
                  out.write("\r\n");
                  out.write("<td class=\"txt-right cartItem\">");
                  out.print(SIUtil.NumberFormat(orderDetailID.getAmount()));
                  out.write("<input name=\"");
                  out.print(lPk.getAmountNameTxt());
                  out.write("\" type=\"hidden\" value=\"");
                  out.print(orderDetailID.getAmount());
                  out.write("\" />");
                  out.write("</td>\r\n");
                  out.write("\r\n");
                  out.write("<td class=\"txt-right nowrap cartItem\">&yen;");
                  out.print(SIUtil.NumberFormat(orderDetailID.getPriceIncTax()));
                  out.write("（");
                  out.print(SIHTMLUtil.HTMLEncode(orderDetailID.getCmdtyTaxName()));
                  out.write("）");
                  out.write("</td>\r\n");
                  out.write("<td class=\"txt-right nowrap cartItem\">&yen;");
                  out.print(SIUtil.NumberFormat(orderDetailID.getPriceIncGift()));
                  out.write("</td>\r\n");
                  out.write("\r\n");
                  out.write("\r\n");
String deliName1="deliveryDate"+"_"+orderDetailID.getCmdtyCode()+"_"+orderDetailID.getIndividualCode()+"_"+orderDetailID.getSetCode()+"_"+orderDetailID.getSetDetailCode()+"\" id=\"select2";
                  out.write("\r\n");
                  out.write("\r\n");
                  out.write("<td class=\"txt-center cartItem\">");
                  /* ----  webshop:siselect ---- */
                  jp.co.sint.taglib.SISelect _jspx_th_webshop_siselect_3 = (jp.co.sint.taglib.SISelect) _jspx_tagPool_webshop_siselect_space_name_default_collection_nobody.get(jp.co.sint.taglib.SISelect.class);
                  _jspx_th_webshop_siselect_3.setPageContext(pageContext);
                  _jspx_th_webshop_siselect_3.setParent(_jspx_th_webshop_siiterator_3);
                  _jspx_th_webshop_siselect_3.setDefault(orderDetailID.getDeliveryDate());
                  _jspx_th_webshop_siselect_3.setName(deliName1);
                  _jspx_th_webshop_siselect_3.setCollection(deliveryDateCollIndividual);
                  _jspx_th_webshop_siselect_3.setSpace(spaceNum);
                  int _jspx_eval_webshop_siselect_3 = _jspx_th_webshop_siselect_3.doStartTag();
                  if (_jspx_th_webshop_siselect_3.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
                    return;
                  _jspx_tagPool_webshop_siselect_space_name_default_collection_nobody.reuse(_jspx_th_webshop_siselect_3);
                  out.write("</td>\r\n");
                  out.write("<td class=\"txt-right nowrap cartItem\">&yen;");
                  out.print(SIUtil.NumberFormat(orderDetailID.getDeliveryFee()));
                  out.write("</td>\r\n");
                  out.write("<td class=\"txt-right nowrap cartItem\">&yen;");
                  out.print(SIUtil.NumberFormat(orderDetailID.getTotalPrice()));
                  out.write("</td>\r\n");
                  out.write("\r\n");
                  out.write("\r\n");
                  out.write("\r\n");
                  out.write("</tr>\r\n");
}
                  out.write("\r\n");
                  int evalDoAfterBody = _jspx_th_webshop_siiterator_3.doAfterBody();
                  orderDetailID = (jp.co.sint.basic.SIOrderDetail) pageContext.findAttribute("orderDetailID");
                  if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                    break;
                } while (true);
              }
              if (_jspx_th_webshop_siiterator_3.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
                return;
              _jspx_tagPool_webshop_siiterator_type_id_collection.reuse(_jspx_th_webshop_siiterator_3);
              out.write("\r\n");
              int evalDoAfterBody = _jspx_th_webshop_siiterator_2.doAfterBody();
              cartID = (jp.co.sint.basic.SICart) pageContext.findAttribute("cartID");
              if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                break;
            } while (true);
          }
          if (_jspx_th_webshop_siiterator_2.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
            return;
          _jspx_tagPool_webshop_siiterator_type_id_collection.reuse(_jspx_th_webshop_siiterator_2);
          out.write("\r\n");
          out.write("<tr>\r\n");
          out.write("\r\n");
          out.write("\r\n");
          out.write("<td colspan=\"4\" class=\"txt-right cartItem\">");
          out.write("</td>\r\n");
          out.write("\r\n");
          out.write("<td class=\"txt-right norwrap cartItem\">小計");
          out.write("</td>\r\n");
          out.write("<td class=\"txt-right norwrap cartItem\">&yen;");
          out.print(SIUtil.NumberFormat(orderCounterID.getSumOfCB1()));
          out.write("</td>\r\n");
          out.write("<td class=\"txt-right cartItem\">");
          out.write("<input type=\"hidden\" name=\"sumOfA\" value=\"");
          out.print(orderCounterID.getSumOfA1());
          out.write("\"/>");
          out.write("</td>\r\n");
          out.write("<td class=\"txt-right nowrap cartItem\">&yen;");
          out.print(SIUtil.NumberFormat(orderCounterID.getSumOfB1()));
          out.write("</td>\r\n");
          out.write("<td class=\"txt-right nowrap cartItem\">&yen;");
          out.print(SIUtil.NumberFormat(orderCounterID.getSumOfF1()));
          out.write("</td>\r\n");
          out.write("\r\n");
          out.write("\r\n");
          out.write("\r\n");
          out.write("</tr>\r\n");
          out.write("</table>\r\n");
          out.write("</div>\r\n");
          int evalDoAfterBody = _jspx_th_webshop_isTrue_2.doAfterBody();
          if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
            break;
        } while (true);
      }
      if (_jspx_th_webshop_isTrue_2.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
        return;
      _jspx_tagPool_webshop_isTrue_value.reuse(_jspx_th_webshop_isTrue_2);
      out.write("\r\n\r\n");
      out.write("<ul class=\"total\">\r\n");
      out.write("\r\n");
 if (SIUtil.isNotNull(SIUtil.NumberFormat(orderCounterID.getSumOfH()))
      && !SIUtil.NumberFormat(orderCounterID.getSumOfH()).equals("0")) { 
      out.write("\r\n");
      out.write("<li>");
      out.write("<em>値引き　&yen;-");
      out.print(SIUtil.NumberFormat(orderCounterID.getSumOfH()));
      out.write("</em>");
      out.write("</li>\r\n");
 } 
      out.write("\r\n");
      out.write("\r\n");
      out.write("<li>送料合計　&yen;");
      out.print(SIUtil.NumberFormat(orderCounterID.getSumOfB()));
      out.write("</li>\r\n");
      out.write("<li>送料を含めた総合計　&yen;");
      out.print(SIUtil.NumberFormat(orderCounterID.getSumOfF()));
      out.write("</li>\r\n");
      out.write("</ul>\r\n");
 String feePrice = SIDBUtil.getFirstData(connection,"SELECT max(priceto)+1 FROM paymethodfeemtbl WHERE paymethodcode=2 AND fee<>0");
if (!SICheckUtil.isDigit(feePrice)) feePrice="0";
long yen2 = Long.parseLong(SIUtil.sub(feePrice,orderCounterID.getSumOfF()));
if(yen2>0){
      out.write("\r\n");
      out.write("<div class=\"box_carriage\">");
      out.write("<p class=\"yen2\">");
      out.write("<em>あと&yen;");
      out.print(SIUtil.NumberFormat(Long.toString(yen2)));
      out.write("で代引手数料が無料となります!");
      out.write("</em>");
      out.write("</p>");
      out.write("</div>\r\n");
}
      out.write("\r\n\r\n");
      out.write("<div class=\"wrapper\">\r\n");
      out.write("<p class=\"btn1\">");
      out.write("<a href=\"");
      out.print(cartSrvSite);
      out.write("\">");
      out.write("<img src=\"");
      out.print(webshopSite);
      out.write("/img/cart/btn_bak_cart.gif\" alt=\"カートに戻る\" width=\"172\" height=\"22\" />");
      out.write("</a>");
      out.write("</p>\r\n");
      out.write("<p class=\"btn2\">");
      out.write("<a href=\"javascript:gotoNext()\">");
      out.write("<img src=\"");
      out.print(webshopSite);
      out.write("/img/cart/btn_settle.gif\" alt=\"決済方法の選択へ進む\" width=\"184\" height=\"51\"/>");
      out.write("</a>");
      out.write("</p>\r\n");
      out.write("</div>\r\n");
      out.write("<p class=\"note\">以前の画面に戻る場合「配送先」「配送希望日」の変更内容はクリアされます。");
      out.write("</p>\r\n");
      out.write("<input type=\"hidden\" name=\"shc\" value=\"0\"/>\r\n");
      out.write("<input type=\"hidden\" name=\"ctc\" value=\"");
      out.print(currCtgryCode);
      out.write("\"/>\r\n");
      out.write("<input type=\"hidden\" name=\"actionNameTxt\" value=\"\"/>\r\n");
      out.write("<input type=\"hidden\" name=\"delRowTxt\" value=\"\"/>\r\n");
      out.write("</form>\r\n");
      out.write("</div>\r\n");
      out.write("<p>");
      out.write("<img src=\"");
      out.print(webshopSite);
      out.write("/img/bg_section_ft.gif\" alt=\"\" width=\"950\" height=\"20\" />");
      out.write("</p>\r\n");
      out.write("</div>\r\n\r\n");
      out.write("</div>\r\n");
      out.write("<!-- /contents -->\r\n\r\n");
      out.write("<!-- pagetop -->\r\n");
      out.write("<div id=\"pagetop\">");
      out.write("<a href=\"#top\">▲ページTOPへ");
      out.write("</a>");
      out.write("</div>\r\n");
      out.write("<!-- /pagetop -->\r\n\r\n");
      out.write("</div>\r\n");
      out.write("<!-- /contentsArea -->\r\n\r\n");
      out.write("<!-- footerArea -->\r\n");

/**
 * Copyright (c) 2003-2010 System Integrator Corporation.
 *                 All Rights Reserved.
 * @version $Id : include/footer_inc.jsp,v 2.0 2009/04/07 Naotaka Ohsugi Exp $
 * @author      : Naotaka Ohsugi
 * @Description : フッター（検索バーなし）
 * @History
 * Author        Date        Reason
 * ============  ==========  ===========================
 * Naotaka       2010/09/15  Original
 */

      out.write("\r\n");
 //▼アプリでは非表示：ここから▼
 if (request.getHeader("user-agent").indexOf("bg-webview-")==-1) { 
      out.write("\r\n\r\n");
      out.write("<div id=\"footerArea\"> \r\n  \r\n  ");
      out.write("<!-- footerNavi -->\r\n  ");
      out.write("<div id=\"footerNavi\">\r\n    ");
      out.write("<ul class=\"footerUNav\">\r\n      ");
      out.write("<li class=\"fnav01\">");
      out.write("<a href=\"");
      out.print(SIURLMap.getUrl(request,"webshop.servlet.front.hair"));
      out.write("\">");
      out.print(SIConfig.ctgryGroupName[SIConfig.CTGRYGROUP_HAIR]);
      out.write("</a>");
      out.write("</li>\r\n      ");
      out.write("<li class=\"fnav02\">");
      out.write("<a href=\"");
      out.print(SIURLMap.getUrl(request,"webshop.servlet.front.haircosme"));
      out.write("\">");
      out.print(SIConfig.ctgryGroupName[SIConfig.CTGRYGROUP_HAIRCOSME]);
      out.write("</a>");
      out.write("</li>\r\n      ");
      out.write("<li class=\"fnav03\">");
      out.write("<a href=\"");
      out.print(SIURLMap.getUrl(request,"webshop.servlet.front.esthe"));
      out.write("\">");
      out.print(SIConfig.ctgryGroupName[SIConfig.CTGRYGROUP_ESTHE]);
      out.write("</a>");
      out.write("</li>\r\n      ");
      out.write("<li class=\"fnav04\">");
      out.write("<a href=\"");
      out.print(SIURLMap.getUrl(request,"webshop.servlet.front.bed"));
      out.write("\">");
      out.print(SIConfig.ctgryGroupName[SIConfig.CTGRYGROUP_BED]);
      out.write("</a>");
      out.write("</li>\r\n      ");
      out.write("<li class=\"fnav05\">");
      out.write("<a href=\"");
      out.print(SIURLMap.getUrl(request,"webshop.servlet.front.cosme"));
      out.write("\">");
      out.print(SIConfig.ctgryGroupName[SIConfig.CTGRYGROUP_COSME]);
      out.write("</a>");
      out.write("</li>\r\n      ");
      out.write("<li class=\"fnav06\">");
      out.write("<a href=\"");
      out.print(SIURLMap.getUrl(request,"webshop.servlet.front.nail"));
      out.write("\">");
      out.print(SIConfig.ctgryGroupName[SIConfig.CTGRYGROUP_NAIL]);
      out.write("</a>");
      out.write("</li>\r\n      ");
      out.write("<li class=\"fnav07\">");
      out.write("<a href=\"");
      out.print(SIURLMap.getUrl(request,"webshop.servlet.front.eyelash"));
      out.write("\">");
      out.print(SIConfig.ctgryGroupName[SIConfig.CTGRYGROUP_EYELASH]);
      out.write("</a>");
      out.write("</li>\r\n      ");
      out.write("<li class=\"fnav07\">");
      out.write("<a href=\"");
      out.print(SIURLMap.getUrl(request,"webshop.servlet.front.book"));
      out.write("\">");
      out.print(SIConfig.ctgryGroupName[SIConfig.CTGRYGROUP_BOOK]);
      out.write("</a>");
      out.write("</li>\r\n    ");
      out.write("</ul>\r\n  ");
      out.write("</div>\r\n  ");
      out.write("<!-- /footerNavi --> \r\n  \r\n  ");
      out.write("<!-- footerBGGlink -->\r\n  ");
      out.write("<div id=\"footerBGGlink\">\r\n    ");
      out.write("<div id=\"footerBGGlink_Ct\">\r\n      ");
      out.write("<dl>\r\n        ");
      out.write("<dt>");
      out.write("<img src=\"");
      out.print(webshopSite);
      out.write("/img/footerBGG_logo.gif\" alt=\"BEAUTY GARAGE GROUP\" width=\"162\" height=\"11\" />");
      out.write("</dt>\r\n        ");
      out.write("<dd>\r\n          ");
      out.write("<ul>\r\n            ");
      out.write("<li class=\"footerBGGlink_1st\">");
      out.write("<a href=\"");
      out.print(SIURLMap.getUrl(request,"webshop.servlet.front.main"));
      out.write("\" target=\"_blank\">理美容・エステ・ネイル商材 卸通販");
      out.write("</a>");
      out.write("</li>\r\n            ");
      out.write("<li>");
      out.write("<a href=\"http://www.eyelashgarage.jp/\" target=\"_blank\">まつげエクステ商材 卸通販");
      out.write("</a>");
      out.write("</li>\r\n            ");
      out.write("<li>");
      out.write("<a href=\"http://kaigyo.beautygarage.jp/\" target=\"_blank\">美容室開業・経営支援");
      out.write("</a>");
      out.write("</li>\r\n            ");
      out.write("<li>");
      out.write("<a href=\"");
      out.print(SIHTMLUtil.consURL(request,webshopSite+"/pickup/fund/index.html",false));
      out.write("\" target=\"_blank\">サロン開業資金調達");
      out.write("</a>");
      out.write("</li>\r\n            ");
      out.write("<li>");
      out.write("<a href=\"http://www.salonfudousan.net/\" target=\"_blank\">サロン用不動産・居抜き物件");
      out.write("</a>");
      out.write("</li>\r\n            ");
      out.write("<li>");
      out.write("<a href=\"http://www.salondesign.jp/\" target=\"_blank\">店舗設計・デザイン");
      out.write("</a>");
      out.write("</li>\r\n            ");
      out.write("<li>");
      out.write("<a href=\"http://www.salonhoken.net/\" target=\"_blank\">サロン向け保険");
      out.write("</a>");
      out.write("</li>\r\n            ");
      out.write("<li>");
      out.write("<a href=\"http://www.salonsystem.jp/\" target=\"_blank\">システム導入支援");
      out.write("</a>");
      out.write("</li>\r\n            ");
      out.write("<li>");
      out.write("<a href=\"http://www.s-career.jp/\" target=\"_blank\">求人・転職");
      out.write("</a>");
      out.write("</li>\r\n            ");
      out.write("<li>");
      out.write("<a href=\"http://www.bgacademy.jp/\" target=\"_blank\">セミナー・スクール");
      out.write("</a>");
      out.write("</li>\r\n            ");
      out.write("<li>");
      out.write("<a href=\"http://www.beauty-tv.jp/\" target=\"_blank\">e-ラーニング");
      out.write("</a>");
      out.write("</li>\r\n            ");
      out.write("<li>");
      out.write("<a href=\"http://www.shukyaku.jp/\" target=\"_blank\">集客支援・ホームページ制作");
      out.write("</a>");
      out.write("</li>\r\n            ");
      out.write("<li>");
      out.write("<a href=\"http://www.salonfc.jp/\" target=\"_blank\">フランチャイズ加盟");
      out.write("</a>");
      out.write("</li>\r\n            ");
      out.write("<li>");
      out.write("<a href=\"http://www.beautymedia.jp/salon/\" target=\"_blank\">美容メディア");
      out.write("</a>");
      out.write("</li>\r\n            ");
      out.write("<li>");
      out.write("<a href=\"http://www.biyoukaitori.jp/\" target=\"_blank\">美容機器・エステ機器買取");
      out.write("</a>");
      out.write("</li>\r\n          ");
      out.write("</ul>\r\n        ");
      out.write("</dd>\r\n      ");
      out.write("</dl>\r\n    ");
      out.write("</div>\r\n  ");
      out.write("</div>\r\n  ");
      out.write("<!-- /footerBGGlink --> \r\n  \r\n  ");
      out.write("<!-- footer -->\r\n  ");
      out.write("<div id=\"footer\">\r\n    ");
      out.write("<p id=\"copyright\">Copyright by BEAUTY GARAGE INC. All rights reserved.");
      out.write("</p>\r\n    ");
      out.write("<ul>\r\n      ");
      out.write("<li class=\"cnav01\">");
      out.write("<a href=\"");
      out.print(SIHTMLUtil.consURL(request,webshopSite+"/guide/overseas.html",false));
      out.write("\">OVERSEAS");
      out.write("</a>");
      out.write("</li>\r\n      ");
      out.write("<li class=\"cnav02\">");
      out.write("<a href=\"");
      out.print(SIHTMLUtil.consURL(request,webshopSite+"/guide/law.html",false));
      out.write("\">特定商取引法に基づく表示");
      out.write("</a>");
      out.write("</li>\r\n      ");
      out.write("<li class=\"cnav03\">");
      out.write("<a href=\"");
      out.print(SIHTMLUtil.consURL(request,webshopSite+"/guide/law2.html",false));
      out.write("\">古物営業法に基づく表示");
      out.write("</a>");
      out.write("</li>\r\n      ");
      out.write("<li class=\"cnav04\">");
      out.write("<a href=\"");
      out.print(SIHTMLUtil.consURL(request,webshopSite+"/guide/privacy.html",false));
      out.write("\">プライバシーポリシー");
      out.write("</a>");
      out.write("</li>\r\n      ");
      out.write("<li class=\"cnav05\">");
      out.write("<a href=\"");
      out.print(SIHTMLUtil.consURL(request,webshopSite+"/sitemap/index.html",false));
      out.write("\">サイトマップ");
      out.write("</a>");
      out.write("</li>\r\n      ");
      out.write("<li class=\"cnav06\">");
      out.write("<a href=\"http://www.beautygarage.co.jp/\" target=\"_blank\">会社案内");
      out.write("</a> ");
      out.write("<img src=\"");
      out.print(webshopSite);
      out.write("/img/icon_blank.gif\" alt=\"\" width=\"10\" height=\"10\" />");
      out.write("</li>\r\n      ");
      out.write("<li class=\"cnav07\">");
      out.write("<a href=\"http://www.beautygarage.co.jp/recruit/\" target=\"_blank\">採用情報");
      out.write("</a> ");
      out.write("<img src=\"");
      out.print(webshopSite);
      out.write("/img/icon_blank.gif\" alt=\"\" width=\"10\" height=\"10\" />");
      out.write("</li>\r\n    ");
      out.write("</ul>\r\n    ");
      out.write("<br class=\"clear\">\r\n    ");
      out.write("<ul style=\"margin-top:7px;\">\r\n      ");
      out.write("<li class=\"cnav01\">");
      out.write("<a href=\"");
      out.print(SIHTMLUtil.consURL(request,"/agreement/index.php",false));
      out.write("\" target=\"_blank\">総合利用規約");
      out.write("</a> ");
      out.write("<img src=\"");
      out.print(webshopSite);
      out.write("/img/icon_blank.gif\" alt=\"\" width=\"10\" height=\"10\" />");
      out.write("</li>\r\n      ");
      out.write("<li class=\"cnav02\">");
      out.write("<a href=\"");
      out.print(SIHTMLUtil.consURL(request,"/agreement/gl_ec.php",false));
      out.write("\" target=\"_blank\">ビューティガレージオンラインショップ利用ガイドライン");
      out.write("</a> ");
      out.write("<img src=\"");
      out.print(webshopSite);
      out.write("/img/icon_blank.gif\" alt=\"\" width=\"10\" height=\"10\" />");
      out.write("</li>\r\n    ");
      out.write("</ul>\r\n    ");
      out.write("<!-- ssl trust --> \r\n    ");
      out.write("<br class=\"clear\">\r\n    ");
      out.write("<div id=\"verisign\"> \r\n      ");
      out.write("<script language=\"JavaScript\" TYPE=\"text/javascript\" src=\"https://trusted-web-seal.cybertrust.ne.jp/seal/getScript?host_name=www.beautygarage.jp&type=21\">");
      out.write("</script> \r\n    ");
      out.write("</div>\r\n    ");
      out.write("<!-- /ssl trust --> \r\n    ");
      out.write("<!-- ipo -->\r\n    ");
      out.write("<div id=\"ipo\"> ");
      out.write("<img src=\"");
      out.print(webshopSite);
      out.write("/img/bnr_foot_ipo.gif\" width=\"48\" height=\"55\">\r\n      ");
      out.write("<p>東証マザーズ上場");
      out.write("<br />\r\n        証券コード：3180");
      out.write("</p>\r\n    ");
      out.write("</div>\r\n    ");
      out.write("<!-- /ipo --> \r\n  ");
      out.write("</div>\r\n  ");
      out.write("<!-- /footer --> \r\n");
      out.write("</div>\r\n");
} //▲アプリでは非表示：ここまで▲ 
      out.write("\r\n\r\n");
      out.write("<!-- microad_blade_track --> \r\n");
      out.write("<script type=\"text/javascript\" class=\"microad_blade_track\">\r\n");
      out.write("<!--\r\nvar microad_blade_jp = microad_blade_jp || { 'params' : new Array(), 'complete_map' : new Object() };\r\n(function() {\r\nvar param = {'co_account_id' : '6140', 'group_id' : '', 'country_id' : '1', 'ver' : '2.1.0'};\r\nmicroad_blade_jp.params.push(param);\r\n\r\nvar src = (location.protocol == 'https:')\r\n? 'https://d-track.send.microad.jp/js/blade_track_jp.js' : 'http://d-cache.microad.jp/js/blade_track_jp.js';\r\n\r\nvar bs = document.createElement('script');\r\nbs.type = 'text/javascript'; bs.async = true;\r\nbs.charset = 'utf-8'; bs.src = src;\r\n\r\nvar s = document.getElementsByTagName('script')[0];\r\ns.parentNode.insertBefore(bs, s);\r\n})();\r\n-->\r\n");
      out.write("</script> \r\n");
      out.write("<!-- /microad_blade_track --> \r\n\r\n");
      out.write("<!-- Google Code for &#9733;&#12473;&#12510;&#12540;&#12488;&#12500;&#12463;&#12475;&#12523;&#12479;&#12464;_&#36890;&#31216;&#12473;&#12510;&#12500; --> \r\n");
      out.write("<!-- Remarketing tags may not be associated with personally identifiable information or placed on pages related to sensitive categories. For instructions on adding this tag and more information on the above requirements, read the setup guide: google.com/ads/remarketingsetup --> \r\n");
      out.write("<script type=\"text/javascript\">\r\n/* ");
      out.write("<![CDATA[ */\r\nvar google_conversion_id = 1039187569;\r\nvar google_conversion_label = \"wAH0CPnclAcQ8fzC7wM\";\r\nvar google_custom_params = window.google_tag_params;\r\nvar google_remarketing_only = true;\r\n/* ]]> */\r\n");
      out.write("</script> \r\n");
      out.write("<script type=\"text/javascript\" src=\"//www.googleadservices.com/pagead/conversion.js\">\r\n");
      out.write("</script>\r\n");
      out.write("<noscript>\r\n");
      out.write("<div style=\"display:inline;\"> ");
      out.write("<img height=\"1\" width=\"1\" style=\"border-style:none;\" alt=\"\" src=\"//googleads.g.doubleclick.net/pagead/viewthroughconversion/1039187569/?value=0&amp;label=wAH0CPnclAcQ8fzC7wM&amp;guid=ON&amp;script=0\"/> ");
      out.write("</div>\r\n");
      out.write("</noscript>\r\n");
      out.write("<!-- /Remarketing tags --> \r\n\r\n");
      out.write("<!-- YDN Site Retargeting --> \r\n");
      out.write("<script type=\"text/javascript\" language=\"javascript\">\r\n/* ");
      out.write("<![CDATA[ */\r\nvar yahoo_retargeting_id = 'O6ZPCD7WI6';\r\nvar yahoo_retargeting_label = '';\r\n/* ]]> */\r\n");
      out.write("</script> \r\n");
      out.write("<script type=\"text/javascript\" language=\"javascript\" src=\"//b92.yahoo.co.jp/js/s_retargeting.js\">");
      out.write("</script> \r\n");
      out.write("<!-- /YDN Site Retargeting -->");
      out.write("\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;
  }
}
