function ShowMember()
{
	var strMemberID;

	strMemberID = getCookie('learningid');

	if((typeof(strMemberID) == "undefined")||(strMemberID == null))
	{
document.write('<table width="300" border="0" cellspacing="2" cellpadding="0">');
document.write('<form action="LogOn.aspx" method="Post"><tr>');
document.write('<td align="left" class="login2"><img src="images/space.gif" width="5" height="5" /></td>');
document.write('<td>&nbsp;</td>');
document.write('<td width="60%" align="left" class="login2"> username </td>');
document.write('<td><span class="login2"><img src="images/space.gif" width="15" height="5" /></span></td>');
document.write('<td><span class="login2">password</span></td>');
document.write('<td>&nbsp;</td>');
document.write('<td align="left" class="login2"><img src="images/space.gif" width="5" height="5" /></td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td><a href="register.aspx"><img src="images/member.gif" width="77" height="10" border="0" /></a></td>');
document.write('<td>&nbsp;</td>');
document.write('<td align="left"><input name="Loginname" type="text" class="box" id="Loginname" /></td>');
document.write('<td>&nbsp;</td>');
document.write('<td><input name="Passwd" type="password" class="box" id="Passwd" /></td>');
document.write('<td><input type="image" src="images/login.jpg" width="69" height="20"></td>');
document.write('<td>&nbsp;</td>');
document.write('</tr></form>');
document.write('</table>');

	}
	else
	{
		var strLoginID, strLoginName;

		strLoginID = getCookieWithKeys('learningid', 'loginid');
		strLoginName = getCookieWithKeys('learningid', 'loginname');
		
	
document.write('<table width="100%" border="0" cellspacing="0" cellpadding="0">');
document.write('<tr>');
document.write('<td align="left"><img src="images/space.gif" width="5" height="2" /></td>');
document.write('<td><img src="images/space.gif" width="20" height="2" /></td>');
document.write('<td width="100%"><img src="images/space.gif" width="5" height="2" /></td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td align="left"><table border="0" cellpadding="4" cellspacing="1" bgcolor="#CCCCCC">');
document.write('<tr>');
document.write('<td bgcolor="#FFFFFF"><a href="LogOut.asp?URLR=' + location.href + '"><img src="images/logout.gif" width="84" height="11" border="0" /></a></td>');
document.write('</tr>');
document.write('</table></td>');
document.write('<td align="center" class="gray_bold">:</td>');
document.write('<td width="100%">ขอต้อนรับสมาชิก <span class="subject">' + strLoginName + '</span></td>');
document.write('</tr>');
document.write('</table>');
		

	}
              
}

function initMember()
{
	var strMemberIDValue = getCookie("learningid");
	setCookieParameter("learningid", 6 * 60* 60 * 1000, "/", "myfirsbrain.com");

}
