function ShowMember()
{
 var strMemberID;

 strMemberID = getCookie('membertanid');

 if((typeof(strMemberID) == "undefined")||(strMemberID == null))
 {
  document.write('<table width="500" border="0" cellspacing="2" cellpadding="0">');
  document.write('<form action="/tan/forums/MemberLogin.aspx" method="Post" target="_self">');
  document.write('<tr>');
  document.write('<td width="60"><img src="/tan/forums/images/b_username.gif" width="57" height="5">');
  document.write('<input size=14 name="Loginname">');
  document.write('</td>');
  document.write('<td width="60"><img src="/tan/forums/images/b_password.gif" width="57" height="5">');
  document.write('<input name="Passwd" type="password" size=14></td>');
  document.write('<td valign="bottom" width="380">');
  document.write('<input type="image" src="/tan/forums/images/login_b.gif" width="51" height="13" border="0"><input type="hidden" name="URLR" value="' + location.href + '"><input type="hidden" name="ClientDateTime">');
  document.write('<a href="/tan/forums/Member.aspx?URLR=' + encodeURIComponent(location.href) + '&#Register" target="_blank" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'imgRegister\',\'\',\'/tan/forums/images/b_02.gif\',1)"><img src="/tan/forums/images/b_01.gif" name="imgRegister" width="72" height="13" border="0"></a>');
  document.write('</td>');
  document.write('</tr>');
  document.write('</form>');
  document.write('</table>');
 }
 else
 {
  var strLoginID, strLoginName;

  strLoginID = getCookieWithKeys('membertanid', 'loginid');
  strLoginName = getCookieWithKeys('membertanid', 'loginname');

  document.write('<table border="0" cellspacing="2" cellpadding="2">');
  document.write('<tr>');
  document.write('<td bgcolor="#FFFFFF" class="body" align="center"><b><font color="#990000">Welcome ,  ' + strLoginName + '</font></b></td>');
  document.write('<td><table width="120" border="0" cellspacing="0" cellpadding="0">');
  document.write('<tr height="13">');
  document.write('<td width="5"><img src="/tan/forums/images/blank.gif" width="5" height="13"></td>');
  document.write('<td width="53"><img src="/tan/forums/images/b_login_r.gif" width="53" height="13"></td>');
  document.write('<td width="5"><img src="/tan/forums/images/blank.gif" width="5" height="13"></td>');
  document.write('<td width="57"><a href="/tan/forums/MemberLogOut.aspx?URLR=' + encodeURIComponent(location.href) + '" target="_self"> <img src="/tan/forums/images/b_logout_o.gif" width="57" height="13" border="0"></a></td>');
  document.write('</tr>');
  document.write('</table></td>');
  document.write('</tr>');
  document.write('</table>');
 }
}


function initMember()
{
 var strMemberIDValue = getCookie("membertanid");
 setCookieParameter("membertanid", 6 * 60* 60 * 1000, "/", "tannetwork.tv");
}