﻿document.write(
"<table cellspacing='0' cellpadding='0' width='100%' border='0' >"+
                    "<tbody  >"+
                      "<tr >"+
                        "<td valign='top' width='211'><a href='Cltindex.aspx?AllData=1' style='border:0px solid #ccc'><img src='images/loge.jpg' width='211' height='78' /></td>"+
                        "<td valign='top' >&nbsp;</td>"+
						
                        "<td valign='top'  width='720'><div id='topright' >"+
						"<div id='div_guest' valign='top' >"+
                            "<table width='100%' border='0' cellspacing='2' cellpadding='0' class='topright' valign='top'>"+
                              "<tr valign='top'>"+
                                "<td>"+
								"<a href='CltUserShoppingCart.aspx' onMouseOut='MM_swapImgRestore()' onMouseOver=\"MM_swapImage('ImageE','','images/buyc.jpg',1)\"><img src='images/buy.jpg' name='ImageE' width='94' height='27' border='0' id='Image14' /></a></td>"+

                                "<td>会員ID</td>"+
                                "<td><input type='text' name='textfield' id='txtUserName' style='width:60px' /></td>"+
                                "<td>パスワード</td>"+
                                "<td><input type='password' name='textfield2' id='txtPassword' style='width:60px' onkeypress='userLogin()'/></td>"+
                                "<td><a href='#' onclick='UserLoginCheck()'><img src='images/enter.jpg' width='70' height='21' /></a></td>"+
                                "<td><span  style='font-size:9px; '><a href='#' onclick=\"window.open('CltUserForgetPassword.aspx', 'CltUserRegister','')\">パスワードをお忘れの方</a></span></td>"+
								
                              "</tr>"+
                            "</table>"+
							"</div>"+
                        "</div>"+
                            "<div id='topright2'  valign='top'>"+
                              "<table width='100%' border='0' cellspacing='4' cellpadding='0' valign='top'>"+
                                "<tr valign='top'>"+
                                  "<td><img src='images/icon_03.jpg'/></td>"+
                                  "<td>"+
								  "<a href='#'onclick=\"window.open('CltUserRegister.aspx', 'CltUserRegister','')\">新規会員登録</a>"+		                                   "</td>"+
                                "</tr>"+
								
                              "</table>"+
                            "</div> "+
							
						"<div id='div_userLogin'  style='display:none'  >"+
		
                			"<table width='100%'  border='0' cellpadding='0' cellspacing='0'>"+
							"<tr>"+
 								 "<td class ='wite' >"+
								"<a href='CltUserShoppingCart.aspx' onMouseOut='MM_swapImgRestore()' onMouseOver=\"MM_swapImage('ImageY','','images/buyc.jpg',1)\"><img src='images/buy.jpg' name='ImageY' width='94' height='27' border='0' id='Image14' ></a></td>"+
								"<td width='10' class ='wite' >&nbsp; </td>"+
								"<td width='180' class ='wite' >会員ID&nbsp;<strong><font color='#fe9601'><span id='userWelcome' >ｘｘｘｘxｘ</span></font></strong>&nbsp;でログイン中</td>"+
								"<td width='119' align='center' style='color:#FFFFFF'  ><a href='CltUserInfo.aspx'>会員情報</a></td>"+
								"<td width='158'class ='wite' ><a href='#' onMouseOut='MM_swapImgRestore()' onMouseOver=\"MM_swapImage('btnLogout','','images/botton_dd.jpg',1)\" onclick='UserLoginOut()'><img src='images/bottom-top-6.gif' name='btnLogout' width='58' height='20' hspace='5' align='absmiddle' border='0'/></a></td>"+
 "<td ><img src='images/icon_06.jpg'/><a href='Cltchina-hotels7.aspx' >予約内容を見る</a></td>"+
							"</tr>"+
							"<tr height ='31'><td height ='20'>&nbsp;</td></tr>"+
						"</table>"+

						
						"</div>"+
							"</td>"+

                      "</tr>"+
                    "</tbody>"+
                "</table>"

);
function userLogin()
{
	if (13 == window.event.keyCode)
	{
		event.keyCode=9
		UserLoginCheck();
	}
}



function showUserInfo(userId)
{
	if ("" != userId)
	{
		document.getElementById("div_guest").style.display = "none";
		document.getElementById("div_userLogin").style.display = "";
	　　document.getElementById("userWelcome").innerText = userId;
	    document.getElementById("topright2").style.display = "none";
		
	}
	else
	{
		document.getElementById("div_guest").style.display = "";
		document.getElementById("div_userLogin").style.display = "none";
	    document.getElementById("topright2").style.display = "block";
		
	}
}