
//alert(mmbflg);

// 会員（CP_KBN == 1）
if (mmbflg == 1) {
document.write('<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" background="/dexcreative/images/head_back.gif" class="header2">');
document.write('  <tr>');
document.write('    <td align="right"><img src="/dexcreative/images/spacer.gif" width="400" height="62" alt="" /></td>');
document.write('    <td align="right" valign="top" width="420"><table border="0" cellpadding="0" cellspacing="0">');
document.write('      <tr>');
document.write('        <td><table border="0" cellpadding="0" cellspacing="0">');
document.write('          <tr>');
document.write('            <td valign="top"><img src="/dexcreative/images/bt_line_02.gif" width="1" height="22" /></td>');
document.write('			<td align="center" valign="top" class="login"><!-- User Name -->ようこそ　');
document.write(				utf8to16(my_unescape(getCookie("DEXUNAME2"))),"　様</td>");
document.write('            <td valign="top"><img src="/dexcreative/images/bt_line_02.gif" width="1" height="22" /></td>');
document.write('            <!-- Logout -->');
document.write('            <td valign="top"><a href="/cgi-bin2/dexlogout.cgi?url=http://www.dex.ne.jp/dexcreative/brand/" target="_top" onMouseOver="MM_swapImage(\'logout\',\'\',\'/dexcreative/images/bt_logout_on.gif\',1)" onMouseOut="MM_swapImgRestore()"><img src="/dexcreative/images/bt_logout.gif" alt="ログアウト" name="logout" width="99" height="22" border="0" id="logout"></a><br /></td>');
document.write('            <td valign="top"><img src="/dexcreative/images/bt_line_02.gif" width="1" height="22" /></td>');
document.write('            <td valign="top"><a href="/dexcreative/frame.cgi?rtn=1&amp;main=/guide/main.html" target="_top" onmouseover="MM_swapImage(\'guide\',\'\',\'/dexcreative/images/bt_guide_on.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/dexcreative/images/bt_guide.gif" alt="ご利用ガイド" name="guide" width="101" height="22" border="0" id="guide" /></a></td>');
document.write('          </tr>');
document.write('        </table>');
document.write('              <img src="/dexcreative/images/spacer.gif" width="1" height="18" alt="" /><br />');
document.write('        </td>');
document.write('      </tr>');
document.write('      <tr>');
document.write('        <td><table border="0" cellpadding="0" cellspacing="0">');
document.write('          <tr valign="top">');
document.write('            <td><a href="/dexcreative/frame.cgi?rtn=1&main=/keepbox/keepbox.php" target="_top" onmouseover="MM_swapImage(\'box\',\'\',\'/dexcreative/images/bt_box_on.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/dexcreative/images/bt_box.gif" alt="キープボックス" name="box" width="101" height="23" border="0" id="box" /></a></td>');
document.write('            <td><img src="/dexcreative/images/bt_line_03.gif" width="1" height="23" /></td>');
document.write('            <td><a href="/dexcreative/frame.cgi?rtn=1&amp;main=/cgi-bin2/cart_in.cgi?db_kind=D" target="_top" onmouseover="MM_swapImage(\'cart\',\'\',\'/dexcreative/images/bt_cart_on.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/dexcreative/images/bt_cart.gif" alt="カート" name="cart" width="99" height="23" border="0" id="cart" /></a></td>');
document.write('            <td><img src="/dexcreative/images/bt_line_03.gif" width="1" height="23" /></td>');
document.write('            <td><a href="/dexcreative/frame.cgi?rtn=1&amp;main=https://ssl.dex.ne.jp/cgi-bin/prevMemb.cgi" target="_top" onmouseover="MM_swapImage(\'account\',\'\',\'/dexcreative/images/bt_account_on.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/dexcreative/images/bt_account.gif" alt="アカウント" name="account" width="99" height="23" border="0" id="account" /></a></td>');
document.write('            <td><img src="/dexcreative/images/bt_line_03.gif" width="1" height="23" /></td>');
document.write('            <td><a href="/dexcreative/frame.cgi?rtn=1&amp;main=/form/" target="_top" onmouseover="MM_swapImage(\'contact\',\'\',\'/dexcreative/images/bt_contact_on.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/dexcreative/images/bt_contact.gif" alt="お問い合せ" name="contact" width="101" height="23" border="0" id="contact" /></a></td>');
document.write('          </tr>');
document.write('        </table>');
document.write('              <img src="/dexcreative/images/spacer.gif" width="1" height="7" alt="" /><br />');
document.write('        </td>');
document.write('      </tr>');
document.write('    </table></td>');
document.write('    <td><img src="/dexcreative/images/head_back.gif" width="40" height="70" /></td>');
document.write('  </tr>');
document.write('</table>');

// 会員（CP_KBN != 1）
} else if (mmbflg == 2) {
document.write('<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" background="/dexcreative/images/head_back.gif" class="header2">');
document.write('  <tr>');
document.write('    <td align="right"><img src="/dexcreative/images/spacer.gif" width="400" height="62" alt="" /></td>');
document.write('    <td align="right" valign="top" width="420"><table border="0" cellpadding="0" cellspacing="0">');
document.write('      <tr>');
document.write('        <td><table border="0" cellpadding="0" cellspacing="0">');
document.write('          <tr>');
document.write('            <td valign="top"><img src="/dexcreative/images/bt_line_02.gif" width="1" height="22" /></td>');
document.write('			<td align="center" valign="top" class="login"><!-- User Name -->ようこそ　');
document.write(				utf8to16(my_unescape(getCookie("DEXUNAME2"))),"　様</td>");
document.write('            <td valign="top"><img src="/dexcreative/images/bt_line_02.gif" width="1" height="22" /></td>');
document.write('            <!-- Logout -->');
document.write('            <td valign="top"><a href="/cgi-bin2/dexlogout.cgi?url=http://www.dex.ne.jp/dexcreative/brand/" target="_top" onMouseOver="MM_swapImage(\'logout\',\'\',\'/dexcreative/images/bt_logout_on.gif\',1)" onMouseOut="MM_swapImgRestore()"><img src="/dexcreative/images/bt_logout.gif" alt="ログアウト" name="logout" width="99" height="22" border="0" id="logout"></a><br /></td>');
document.write('            <td valign="top"><img src="/dexcreative/images/bt_line_02.gif" width="1" height="22" /></td>');
document.write('            <td valign="top"><a href="/dexcreative/frame.cgi?rtn=1&amp;main=/guide/main.html" target="_top" onmouseover="MM_swapImage(\'guide\',\'\',\'/dexcreative/images/bt_guide_on.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/dexcreative/images/bt_guide.gif" alt="ご利用ガイド" name="guide" width="101" height="22" border="0" id="guide" /></a></td>');
document.write('          </tr>');
document.write('        </table>');
document.write('              <img src="/dexcreative/images/spacer.gif" width="1" height="18" alt="" /><br />');
document.write('        </td>');
document.write('      </tr>');
document.write('      <tr>');
document.write('        <td><table border="0" cellpadding="0" cellspacing="0">');
document.write('          <tr valign="top">');
document.write('            <td><a href="/dexcreative/frame.cgi?rtn=1&main=/keepbox/keepbox.php" target="_top" onmouseover="MM_swapImage(\'box\',\'\',\'/dexcreative/images/bt_box_on.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/dexcreative/images/bt_box.gif" alt="キープボックス" name="box" width="101" height="23" border="0" id="box" /></a></td>');
document.write('            <td><img src="/dexcreative/images/bt_line_03.gif" width="1" height="23" /></td>');
document.write('            <td><a href="/dexcreative/frame.cgi?rtn=1&amp;main=/cgi-bin2/cart_in.cgi?db_kind=D" target="_top" onmouseover="MM_swapImage(\'cart\',\'\',\'/dexcreative/images/bt_cart_on.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/dexcreative/images/bt_cart.gif" alt="カート" name="cart" width="99" height="23" border="0" id="cart" /></a></td>');
document.write('            <td><img src="/dexcreative/images/bt_line_03.gif" width="1" height="23" /></td>');
document.write('            <td><a href="/dexcreative/frame.cgi?rtn=1&amp;main=https://ssl.dex.ne.jp/cgi-bin/prevMemb.cgi" target="_top" onmouseover="MM_swapImage(\'account\',\'\',\'/dexcreative/images/bt_account_on.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/dexcreative/images/bt_account.gif" alt="アカウント" name="account" width="99" height="23" border="0" id="account" /></a></td>');
document.write('            <td><img src="/dexcreative/images/bt_line_03.gif" width="1" height="23" /></td>');
document.write('            <td><a href="/dexcreative/frame.cgi?rtn=1&amp;main=/form/" target="_top" onmouseover="MM_swapImage(\'contact\',\'\',\'/dexcreative/images/bt_contact_on.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/dexcreative/images/bt_contact.gif" alt="お問い合せ" name="contact" width="101" height="23" border="0" id="contact" /></a></td>');
document.write('          </tr>');
document.write('        </table>');
document.write('              <img src="/dexcreative/images/spacer.gif" width="1" height="7" alt="" /><br />');
document.write('        </td>');
document.write('      </tr>');
document.write('    </table></td>');
document.write('    <td><img src="/dexcreative/images/head_back.gif" width="40" height="70" /></td>');
document.write('  </tr>');
document.write('</table>');



// 非会員
} else if (mmbflg == 3) {
document.write('<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" background="/dexcreative/images/head_back.gif" class="header2">');
document.write('  <tr>');
document.write('    <td align="right"><img src="/dexcreative/images/spacer.gif" width="400" height="62" alt="" /></td>');
document.write('    <td align="right" valign="top" width="420"><table border="0" cellpadding="0" cellspacing="0">');
document.write('      <tr>');
document.write('        <td><table border="0" cellpadding="0" cellspacing="0">');
document.write('          <tr>');
document.write('            <td valign="top"><img src="/dexcreative/images/bt_line_02.gif" width="1" height="22" /></td>');
document.write('            <td align="center" valign="top" class="login"><!-- User Name -->');
document.write('              </td>');
document.write('            <td valign="top"><img src="/dexcreative/images/bt_line_02.gif" width="1" height="22" /></td>');
document.write('            <!-- Login -->');
document.write('            <td valign="top"><a href="/dexcreative/frame.cgi?rtn=1&main=/login/dexcreative/login_brand.html" target="_top" onmouseover="MM_swapImage(\'login\',\'\',\'/dexcreative/images/bt_login_on.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/dexcreative/images/bt_login.gif" alt="ログイン/会員登録" name="login" width="99" height="22" border="0" id="login" /></a><br /></td>');
document.write('            <td valign="top"><img src="/dexcreative/images/bt_line_02.gif" width="1" height="22" /></td>');
document.write('            <td valign="top"><a href="/dexcreative/frame.cgi?rtn=1&amp;main=/guide/main.html" target="_top" onmouseover="MM_swapImage(\'guide\',\'\',\'/dexcreative/images/bt_guide_on.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/dexcreative/images/bt_guide.gif" alt="ご利用ガイド" name="guide" width="101" height="22" border="0" id="guide" /></a></td>');
document.write('          </tr>');
document.write('        </table>');
document.write('              <img src="/dexcreative/images/spacer.gif" width="1" height="18" alt="" /><br />');
document.write('        </td>');
document.write('      </tr>');
document.write('      <tr>');
document.write('        <td><table border="0" cellpadding="0" cellspacing="0">');
document.write('          <tr valign="top">');
document.write('            <td><a href="/dexcreative/frame.cgi?rtn=1&main=/keepbox/keepbox.php" target="_top" onmouseover="MM_swapImage(\'box\',\'\',\'/dexcreative/images/bt_box_on.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/dexcreative/images/bt_box.gif" alt="キープボックス" name="box" width="101" height="23" border="0" id="box" /></a></td>');
document.write('            <td><img src="/dexcreative/images/bt_line_03.gif" width="1" height="23" /></td>');
document.write('            <td><a href="/dexcreative/frame.cgi?rtn=1&main=/login/dexcreative/cart/login.html" target="_top" onmouseover="MM_swapImage(\'cart\',\'\',\'/dexcreative/images/bt_cart_on.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/dexcreative/images/bt_cart.gif" alt="カート" name="cart" width="99" height="23" border="0" id="cart" /></a></td>');
document.write('            <td><img src="/dexcreative/images/bt_line_03.gif" width="1" height="23" /></td>');
document.write('            <td><a href="/dexcreative/frame.cgi?rtn=1&main=/login/dexcreative/acount/login.html" target="_top" onmouseover="MM_swapImage(\'account\',\'\',\'/dexcreative/images/bt_account_on.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/dexcreative/images/bt_account.gif" alt="アカウント" name="account" width="99" height="23" border="0" id="account" /></a></td>');
document.write('            <td><img src="/dexcreative/images/bt_line_03.gif" width="1" height="23" /></td>');
document.write('            <td><a href="/dexcreative/frame.cgi?rtn=1&main=/form/" target="_top" onmouseover="MM_swapImage(\'contact\',\'\',\'/dexcreative/images/bt_contact_on.gif\',1)" onmouseout="MM_swapImgRestore()"><img src="/dexcreative/images/bt_contact.gif" alt="お問い合せ" name="contact" width="101" height="23" border="0" id="contact" /></a></td>');
document.write('          </tr>');
document.write('        </table>');
document.write('              <img src="/dexcreative/images/spacer.gif" width="1" height="7" alt="" /><br />');
document.write('        </td>');
document.write('      </tr>');
document.write('    </table></td>');
document.write('    <td><img src="/dexcreative/images/head_back.gif" width="40" height="70" /></td>');
document.write('  </tr>');
document.write('</table>');

}

