var jcartNo			= getCartNo();
var icartNo  = "";
var icartNo1 = "";
if ( jcartNo != "" ){
    var icartNo = "?cartno=" + jcartNo;
    var icartNo1 = "&cartno=" + jcartNo;
}
function html_get_login(j_cooklang){
   
   var j_id = GetCookie("CNEWSID");   
   
   document.writeln('<table width="139" align=center border="0" cellspacing="0" cellpadding="0">');
   document.writeln('<tr>');
        
   if (j_id == null || j_id == 'null'){
       document.writeln('<td align=center><a href=/scfree_membership.shtml'+icartNo+'><img src="http://images.ttnet.net/pi/cimages/index/scmake.gif" border="0"></a></td>');
       document.writeln('</tr>');
       document.writeln('</table>');
       document.writeln('<table width="139" align=center border="0" cellspacing="0" cellpadding="0">');
       document.writeln('<tr>');
       document.writeln('<td bgcolor="#FFFDF4">');
       document.writeln('<table width="100%" border="0" cellspacing="0" cellpadding="0">');
       document.writeln('<tr>');
       document.writeln('<td colspan="2" height="11"><img src="http://images.ttnet.net/pi/cimages/dot_clear.gif" width="1" height="11"></td>');
       document.writeln('</tr>');   
   
       document.writeln('<tr>');
       document.writeln('<td width=20></td>');
       document.writeln('<td height=18><b class="content-H1">'+unicode("．")+'</b></td><td width=200><a href="/html/first/sp1.htm'+icartNo+'" class="content-H1">'+unicode("首次到访")+'?</a></td>');
       document.writeln('</tr>');
       document.writeln('<tr>');
       document.writeln('<td></td>');
       document.writeln('<td height=18><b class="content-H1">'+unicode("．")+'</b></td><td><a href="/cttnet-bin/clogin.cgi?log=Y&cooklang=2'+icartNo1+'" class="content-H1">'+unicode("会员登录")+'</a></td>');
       document.writeln('</tr>');
       document.writeln('<tr>');
       document.writeln('<td></td>');
       document.writeln('<td height=18><b class="content-H1">'+unicode("．")+'</b></td><td><a href="javascript:forget_password(\'\')" class="content-H1">'+unicode("忘记密码")+'?</a></td>');
       document.writeln('</tr>');
       document.writeln('<tr>');
       document.writeln('<td colspan=3 height=6><img src=http://images.ttnet.net/pi/cimages/dot_clear.gif width=1 height=6></td>');
       document.writeln('</tr>');
       document.writeln('<tr>');
       document.writeln('<td></td>');
       document.writeln('<td height=18><b class="content-H1">'+unicode("．")+'</b></td><td><a href="/swhat_do.htm'+icartNo+'" class="content-H1">'+unicode("会员专属")+'</a></td>');
       document.writeln('</tr>');
       document.writeln('<tr>');
       document.writeln('<td></td>');
       document.writeln('<td height=18><b class="content-H1">'+unicode("．")+'</b></td><td><a href="/cttnet-bin/ce_myset.cgi?cooklang=2'+icartNo1+'" class="content-H1">'+unicode("我的文笔")+'</a></td>');
       document.writeln('</tr>');
       document.writeln('<tr>');
       document.writeln('<td colspan=3 height=6><img src=http://images.ttnet.net/pi/cimages/dot_clear.gif width=1 height=6></td>');
       document.writeln('</tr>');         
   }else{
       document.writeln('<td width="3"><img src="http://images.ttnet.net/pi/cimages/lt1-1.gif" width="3" height="22"></td>');
       document.writeln('<td align="center" bgcolor="#F5E8E4"><font color="#000000" class="shi_14">'+unicode("欢迎光临")+'!!</font></td>');
       document.writeln('<td width="3"><img src="http://images.ttnet.net/pi/cimages/lt1-2.gif" width="3" height="22"></td>');
       document.writeln('</tr>');
       document.writeln('</table>');
       document.writeln('<table width="139" align=center border="0" cellspacing="0" cellpadding="0">');
       document.writeln('<tr>');
       document.writeln('<td bgcolor="#FFFDF4">');
       document.writeln('<table width="100%" border="0" cellspacing="0" cellpadding="0">');
       document.writeln('<tr>');
       document.writeln('<td colspan="2" height="11"><img src="http://images.ttnet.net/pi/cimages/dot_clear.gif" width="1" height="11"></td>');
       document.writeln('</tr>');   
       
       document.writeln('<tr>');
       document.writeln('<td colspan=3>');
       document.writeln('<table width=100% border=0 cellspacing=0 cellpadding=2>');
       document.writeln('<tr>');
       document.writeln('<td width=2></td>');
       document.writeln('<td align=left>');
       document.writeln('<font color=#CC6600><b>Hi</b></font> <font face=verdana><b>'+j_id+'</b></font>');
       document.writeln('</td>');
       document.writeln('<td class=shi12 align=right>');
       document.writeln('<font face=verdana ><a href=/cttnet-bin/c_logout.cgi?cooklang=1'+icartNo1+' onClick="return logout()" class="content-H2">'+unicode("注销")+'</a></font>');
       document.writeln('</td>');
       document.writeln('<td width=2></td>');
       document.writeln('</tr>');
       document.writeln('</table>');
       document.writeln('</td>');
       document.writeln('</tr>');
       document.writeln('<tr>');
       document.writeln('<td colspan=3 height=6><img src=http://images.ttnet.net/pi/cimages/dot_clear.gif width=1 height=6></td>');
       document.writeln('</tr>');
       document.writeln('<tr>');
       document.writeln('<td colspan=3 height=6><img src=http://images.ttnet.net/pi/cimages/dot_clear.gif width=1 height=6></td>');
       document.writeln('</tr>');
       document.writeln('<tr>');
       document.writeln('<td></td>');
       document.writeln('<td height=18><b class="content-H1">'+unicode("．")+'</b></td><td width=200><a href=/swhat_do.htm'+icartNo+' class="content-H1">'+unicode("会员专属")+'</a></td>');
       document.writeln('</tr>');
       document.writeln('<tr>');
       document.writeln('<td></td>');
       document.writeln('<td height=18><b class="content-H1">'+unicode("．")+'</b></td><td><a href="/cttnet-bin/ce_myset.cgi?cooklang=2'+icartNo1+'" class="content-H1">'+unicode("我的文笔")+'</a></td>');
       document.writeln('</tr>');
       document.writeln('<tr>');
       document.writeln('<td colspan=3 height=6><img src=http://images.ttnet.net/pi/cimages/dot_clear.gif width=1 height=6></td>');
       document.writeln('</tr>');
       document.writeln('<tr>');
       document.writeln('<td></td>');
       document.writeln('<td height=18><b class="content-H1">'+unicode("．")+'</b></td><td><a href="/html/map/ssitemap.htm'+icartNo+'" class="content-H1">'+unicode("站点导览")+'</a></td>');
       document.writeln('</tr>');
       document.writeln('<tr>');
       document.writeln('<td></td>');
       document.writeln('<td height=18><b class="content-H1">'+unicode("．")+'</b></td><td><a href="/html/qna/sindex.htm'+icartNo+'" class="content-H1">'+unicode("常见问题")+'</a></td>');
       document.writeln('</tr>');
       document.writeln('<tr>');
       document.writeln('<td colspan=3 height=6><img src=http://images.ttnet.net/pi/cimages/dot_clear.gif width=1 height=6></td>');
       document.writeln('</tr>');
       document.writeln('<script language="JavaScript">');
       document.writeln('<!--');
       document.writeln('function logout(){');
       document.writeln('return confirm( "您确定要登出吗?" );');
       document.writeln('}');
       document.writeln('//-->');
       document.writeln('</script>');       
   }
   document.writeln('<tr>');
   document.writeln('<td colspan="2" height="11"><img src="http://images.ttnet.net/pi/cimages/dot_clear.gif" width="1" height="11"></td>');
   document.writeln('</tr>');
   document.writeln('</table>');
   document.writeln('<table width="100%" border="0" cellspacing="0" cellpadding="0">');
   document.writeln('<tr>');
   document.writeln('<td width="1"><img src="http://images.ttnet.net/pi/cimages/dot_clear.gif" width="1" height="1"></td>');
   document.writeln('<td bgcolor="#FDF2D5"><img src="http://images.ttnet.net/pi/cimages/dot_clear.gif" width="1" height="1"></td>');
   document.writeln('</tr>');
   document.writeln('</table>');
   document.writeln('</td>');
   document.writeln('<td bgcolor="#FDF2D5" width="1"><img src="http://images.ttnet.net/pi/cimages/dot_clear.gif" width="1" height="1"></td>');
   document.writeln('</tr>');
   document.writeln('</table>');
}



function html_get_login2(j_cooklang){
   
   var j_id = GetCookie("CNEWSID");   
   var j_url = ""; 
    if(j_cooklang == 2){
        j_url = "http://cn.ttnet.net";
    }else{
        j_url = "http://tw.ttnet.net";
    }
   
   document.writeln('<table width="139" align=center border="0" cellspacing="0" cellpadding="0">');
   document.writeln('<tr>');
        
   if (j_id == null || j_id == 'null'){
       document.writeln('<td align=center><a href='+j_url+'/scfree_membership.shtml'+icartNo+'><img src="http://images.ttnet.net/pi/cimages/index/scmake.gif" border="0"></a></td>');
       document.writeln('</tr>');
       document.writeln('</table>');
       document.writeln('<table width="139" align=center border="0" cellspacing="0" cellpadding="0">');
       document.writeln('<tr>');
       document.writeln('<td bgcolor="#FFFDF4">');
       document.writeln('<table width="100%" border="0" cellspacing="0" cellpadding="0">');

       document.writeln('<tr>');
       document.writeln('<td colspan="4" height="11"><img src="http://images.ttnet.net/pi/cimages/dot_clear.gif" height="11"></td>');
       document.writeln('</tr>');   
   
       document.writeln('<tr>');
       document.writeln('<td height=18><b class="content-H1">'+unicode("．")+'</b></td><td><a href="'+j_url+'/html/first/sp1.htm'+icartNo+'" class="content-H1">'+unicode("首次到访")+'?</a></td>');
       document.writeln('<td height=18><b class="content-H1">'+unicode("．")+'</b></td><td><a href="'+j_url+'/swhat_do.htm'+icartNo+'" class="content-H1">'+unicode("会员专属")+'</a></td>');
       document.writeln('</tr>');
       document.writeln('<tr>');
       document.writeln('<td height=18><b class="content-H1">'+unicode("．")+'</b></td><td><a href="'+j_url+'/cttnet-bin/clogin.cgi?log=Y&cooklang=2'+icartNo1+'" class="content-H1">'+unicode("会员登录")+'</a></td>');
       document.writeln('<td height=18><b class="content-H1">'+unicode("．")+'</b></td><td><a href="javascript:forget_password(\'\')" class="content-H1">'+unicode("忘记密码")+'?</a></td>');
       document.writeln('</tr>');

   }else{
       document.writeln('<td width="3"><img src="http://images.ttnet.net/pi/cimages/lt1-1.gif" width="3" height="22"></td>');
       document.writeln('<td align="center" bgcolor="#F5E8E4"><font color="#000000" class="shi_14">'+unicode("欢迎光临")+'!!</font></td>');
       document.writeln('<td width="3"><img src="http://images.ttnet.net/pi/cimages/lt1-2.gif" width="3" height="22"></td>');
       document.writeln('</tr>');
       document.writeln('</table>');
       document.writeln('<table width="139" align=center border="0" cellspacing="0" cellpadding="0">');
       document.writeln('<tr>');
       document.writeln('<td bgcolor="#FFFDF4">');
       document.writeln('<table width="100%" border="0" cellspacing="0" cellpadding="0">');
       document.writeln('<tr>');
       document.writeln('<td colspan="2" height="11"><img src="http://images.ttnet.net/pi/cimages/dot_clear.gif" width="1" height="11"></td>');
       document.writeln('</tr>');   
       
       document.writeln('<tr>');
       document.writeln('<td colspan=3>');
       document.writeln('<table width=100% border=0 cellspacing=0 cellpadding=2>');
       document.writeln('<tr>');
       document.writeln('<td width=2></td>');
       document.writeln('<td align=left>');
       document.writeln('<font color=#CC6600><b>Hi</b></font> <font face=verdana><b>'+j_id+'</b></font>');
       document.writeln('</td>');
       document.writeln('<td class=shi12 align=right>');
       document.writeln('<font face=verdana ><a href='+j_url+'/cttnet-bin/c_logout.cgi?cooklang=1'+icartNo1+' onClick="return logout()" class="content-H2">'+unicode("注销")+'</a></font>');
       document.writeln('</td>');
       document.writeln('<td width=2></td>');
       document.writeln('</tr>');
       document.writeln('</table>');
       document.writeln('</td>');
       document.writeln('</tr>');
       document.writeln('<tr>');
       document.writeln('<td colspan=3 height=6><img src=http://images.ttnet.net/pi/cimages/dot_clear.gif width=1 height=6></td>');
       document.writeln('</tr>');
       document.writeln('<tr>');
       document.writeln('<td colspan=3 height=6><img src=http://images.ttnet.net/pi/cimages/dot_clear.gif width=1 height=6></td>');
       document.writeln('</tr>');
       document.writeln('<tr>');
       document.writeln('<td></td>');
       document.writeln('<td height=18><b class="content-H1">'+unicode("．")+'</b></td><td width=200><a href='+j_url+'/swhat_do.htm'+icartNo+' class="content-H1">'+unicode("会员专属")+'</a></td>');
       document.writeln('</tr>');
       document.writeln('<tr>');
       document.writeln('<td></td>');
       document.writeln('<td height=18><b class="content-H1">'+unicode("．")+'</b></td><td><a href="'+j_url+'/cttnet-bin/ce_myset.cgi?cooklang=2'+icartNo1+'" class="content-H1">'+unicode("我的文笔")+'</a></td>');
       document.writeln('</tr>');
       document.writeln('<tr>');
       document.writeln('<td colspan=3 height=6><img src=http://images.ttnet.net/pi/cimages/dot_clear.gif width=1 height=6></td>');
       document.writeln('</tr>');
       document.writeln('<tr>');
       document.writeln('<td></td>');
       document.writeln('<td height=18><b class="content-H1">'+unicode("．")+'</b></td><td><a href="'+j_url+'/html/map/ssitemap.htm'+icartNo+'" class="content-H1">'+unicode("站点导览")+'</a></td>');
       document.writeln('</tr>');
       document.writeln('<tr>');
       document.writeln('<td></td>');
       document.writeln('<td height=18><b class="content-H1">'+unicode("．")+'</b></td><td><a href="'+j_url+'/html/qna/sindex.htm'+icartNo+'" class="content-H1">'+unicode("常见问题")+'</a></td>');
       document.writeln('</tr>');
       document.writeln('<tr>');
       document.writeln('<td colspan=3 height=6><img src=http://images.ttnet.net/pi/cimages/dot_clear.gif width=1 height=6></td>');
       document.writeln('</tr>');
       document.writeln('<script language="JavaScript">');
       document.writeln('<!--');
       document.writeln('function logout(){');
       document.writeln('return confirm( "您确定要登出吗?" );');
       document.writeln('}');
       document.writeln('//-->');
       document.writeln('</script>');       
   }
   document.writeln('<tr>');
   document.writeln('<td colspan="2" height="11"><img src="http://images.ttnet.net/pi/cimages/dot_clear.gif" width="1" height="11"></td>');
   document.writeln('</tr>');
   document.writeln('</table>');
   document.writeln('<table width="100%" border="0" cellspacing="0" cellpadding="0">');
   document.writeln('<tr>');
   document.writeln('<td width="1"><img src="http://images.ttnet.net/pi/cimages/dot_clear.gif" width="1" height="1"></td>');
   document.writeln('<td bgcolor="#FDF2D5"><img src="http://images.ttnet.net/pi/cimages/dot_clear.gif" width="1" height="1"></td>');
   document.writeln('</tr>');
   document.writeln('</table>');
   document.writeln('</td>');
   document.writeln('<td bgcolor="#FDF2D5" width="1"><img src="http://images.ttnet.net/pi/cimages/dot_clear.gif" width="1" height="1"></td>');
   document.writeln('</tr>');
   document.writeln('</table>');
}
