function getcookie(name)
	{
		var cookfound=false;	
		var start=0;
		var end=0;
		var cookstring=document.cookie;
		var i=0;
		while(i<=cookstring.length)
			{
				start=i;
				end=start+name.length;
				if(cookstring.substring(start,end)==name)
					{
						cookfound=true;
						break;
					}
				i++;
			}
				if(cookfound)
					{
						start=end+1;
						end=cookstring.indexOf(";",start);
						if(end<start)
							end=cookstring.length;
							return cookstring.substring(start,end);
					}
				else
					{return "";}
	}

function reguser()
	{
		var userid=getcookie("cuid");
		if (userid!="")
			{
				document.write("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td height=\"18\" valign=\"bottom\"><font color=\"black\">您好，</font><font color=\"#FF6633\">"+userid+"</font>。");
				return true;
			}
		else
			{
				return false;
			}
	}

document.write('<table width="776" border="0" cellspacing="0" cellpadding="0">');
document.write('<tr>'); 
document.write('<td class="B01" width="10">&nbsp;</td>');
document.write('<td background="/subshowstyle/1/head_bg_stripe.gif">');
document.write('<table width="100%" border="0" cellspacing="0" cellpadding="0">');
document.write('<tr>');
document.write('<td colspan="3"><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td width="75"><a href="/"><img src="/subshowstyle/1/head_kaxiu_logo.gif" width="75" height="60" border="0"></a></td><td>');
//---------------------
//theAds=new Array();
//theAds[0]="<img src=/banner/fee.gif border=0 height=60>";
//theAds[1]="<a href=\"/html/intro/buy_intro_1.htm\" target=\"_blank\"><img src=/banner/girl.gif border=0 height=60></a>";
//var rand=Math.round(Math.random()*10);
//while(rand>1)
	//{
		//rand=Math.round(Math.random()*10);
	//}

//document.write(theAds[rand]);
//------------------------------------
document.write('</td></tr></table></td></tr>');
document.write('<tr>');
document.write('<td width="150" align="right"><img src="/subshowstyle/1/head_top_leaves.gif" width="116" height="30"></td>');
document.write('<td width="337" background="/subshowstyle/1/head_bg_menu.gif" valign="bottom">');
document.write('<table width="100%" border="0" cellspacing="0" cellpadding="0">');
document.write('<tr>');
document.write('<td height="18">&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://kaxiu.salala.com.cn/" target="_blank" style="text-decoration:none"><font color="#FFFFFF">鲜花礼品</font></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="/topten_week.php" style="text-decoration:none"><font color="#FFFFFF">靓卡推荐</font></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#" style="text-decoration:none"><font color="#FFFFFF">校园风光</font></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="/html/allei/" target="_blank" style="text-decoration:none"><font color="#FFFFFF">贺卡列表</font></a></td>');
document.write('</tr>');
document.write('</table>');
document.write('</td>');
document.write('<td><img src="/subshowstyle/1/head_stripe_shadow.gif" width="59" height="30"></td>');
document.write('</tr>');
document.write('</table>');
document.write('</td>');
document.write('<td><img src="list.gif" width="199" height="50"></td>');
document.write('<td width="12" valign="top"><img src="/subshowstyle/1/head_top_right_cirque.gif" width="12" height="20"></td>');
document.write('<td class="B01" width="10">&nbsp;</td>');
document.write('</tr>');
document.write('</table>');
document.write('<table width="776" border="0" cellspacing="0" cellpadding="0">');
document.write('    <tr>');
document.write('      <td width="10" class="B01"><img src="/images/pageindex_blank.gif" width="1" height="10"></td>');
document.write('      <td background="/subshowstyle/1/head_bg_nacarat.gif" height="10"><img src="/subshowstyle/1/head_middle_leaves.gif" width="138" height="10"></td>');
document.write('      <td width="10" class="B01"><img src="/images/pageindex_blank.gif" width="1" height="10"></td>');
document.write('    </tr>');
document.write('  </table>');
document.write('  <table width="776" border="0" cellspacing="0" cellpadding="0">');
document.write('    <tr> ');
document.write('      <td width="10" class="B01"><img src="/images/pageindex_blank.gif" width="1" height="8"></td>');
document.write('      <td width="138" class="B03"><img src="/subshowstyle/1/leaves_bottom.gif" width="138" height="8"><br>');
document.write('        &nbsp;&nbsp;<a href="/"><span class="F201">首页</span></a></td>');
document.write('      <td width="2" class="B04"><img src="/images/pageindex_blank.gif" width="1" height="8"></td>');document.write('<td class="B02" align="center"><table border="0" cellspacing="0" cellpadding="0">');
document.write('          <tr> ');
document.write("            <form action=\"http://reguser.kaxiu.com/login.php\" name=\"login\" method=\"post\" onsubmit='host_name=window.location.href;document.login.url.value=host_name.substring(host_name.indexOf(\"/\",7),host_name.length)'><td height=\"18\" valign=\"bottom\">");	

if (reguser()) 		
	{
		document.write("<td width=\"145\" align=\"center\"><a href=\"http://reguser.kaxiu.com/\" target=\"_blank\" ><img src=\"/images/p2_m_5.gif\" width=\"90\" height=\"16\" hspace=\"2\" border=\"0\"></a><a href=\"http://reguser.kaxiu.com/logout.php\"><img src=\"/images/p2_m_4.gif\" width=\"45\" height=\"16\" border=\"0\"></a></td><td width=\"18\" height=\"16\" align=\"right\"><a href=\"/html/help/index.html\" target=\"_blank\"><img src=\"/images/log_help1.gif\" width=\"15\" height=\"15\" border=\"0\"></a></td></tr></table>");		
	}	
else
	{
		document.write("用户名：<input type=\"text\" name=\"userid\" size=\"10\" class=\"input1\">&nbsp;&nbsp;密码：<input type=\"password\" name=\"passwd\" size=\"10\" class=\"input1\">&nbsp;&nbsp;<input type=\"hidden\" name=\"url\" value=\"\"><input type=\"submit\" value=\"登录\" class=\"input1\">");		
	}
document.write('</td></form>');
document.write('            <td width="60" align="center">&nbsp;</td>');
document.write('         </tr>');
document.write('        </table>');
document.write('      </td>');
document.write('      <td class="B02" width="40" valign="bottom" align="center">&nbsp;</td>');
document.write('      <td width="10" class="B01"><img src="/images/pageindex_blank.gif" width="1" height="8"></td>');
document.write('    </tr>');
document.write('  </table>');