function getCookie(name) {

  var search;

  search = name + "="
  offset = document.cookie.indexOf(search) 
  if (offset != -1) {
    offset += search.length ;
    end = document.cookie.indexOf(";", offset) ;
    if (end == -1)
      end = document.cookie.length;
    return document.cookie.substring(offset, end);
  }
  else
    return "";
}
function unipro_clearCookie(name1) 
{
	document.cookie = name1+"=; " + "domain=sina.com.cn; path=/; ";     
//bites = document.cookie.split("; ");
} 


function Logout() {
	unipro_clearCookie("SUNINGCK");
	window.location="http://ad4.sina.com.cn/shh/aatozz/suning20061130/votesite/index.html";
}
if (getCookie("SUNINGCK") != "")
{
	var unipro_login_displayname = getCookie( "nick" );	
	str='<table width="521" height="99" border="0" cellpadding="0" cellspacing="0">\
		  <tr>\
			<td valign="top" background="images/temp_02bg.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">\
			  <tr>\
				<td width="90" height="40">&nbsp;</td>\
				<td width="407" valign="bottom"><span class="STYLE2"><font  color="#ffffff">'+unipro_login_displayname+'</font></span></td>\
			  </tr>\
			  <tr>\
				<td>&nbsp;</td>\
				<td><img src="images/b3.gif" width="371" height="53" border="0" usemap="#Map" /><a href="javascript:Logout();"><font  color="#ffffff">ÍË³ö</font></a></td>\
			  </tr>\
			</table></td>\
		  </tr>\
		</table>\
		<map name="Map" id="Map"><area shape="rect" coords="227,3,284,17" href="vote_tele.html" target="_parent" />\
		<area shape="rect" coords="171,35,227,51" href="http://client.sina.com.cn/200611suning/reg.php?op=edit" target="_blank" />\
		</map>';
		document.write(str);
}
else 
{
	str = '<table width="521" height="99" border="0" cellpadding="0" cellspacing="0">\
  <tr>\
    <td valign="top" background="images/temp_02.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">\
       <form name=login action=http://client.sina.com.cn/200611suning/login.php method=post>\
      <tr>\
        <td height="74" colspan="2">&nbsp;</td>\
        <td width="180" rowspan="2"><table width="100%" border="0" cellspacing="6" cellpadding="0">\
          <tr>\
            <td><div align="right">\
              <input name="login" type="text" size="15" />\
            </div></td>\
          </tr>\
          <tr>\
            <td><div align="right">\
              <input name="passwd" type="password" size="15" />\
            </div></td>\
          </tr>\
        </table></td>\
        <td width="70" rowspan="2" align="left"><Input type=Image src="images/b2.gif" width="50" height="40" border="0" /></a></td>\
      </tr>\
      </form>\
      <tr>\
        <td width="29%">&nbsp;</td>\
        <td width="21%"><a href="http://client.sina.com.cn/200611suning/reg.php" target="_blank"><img src="images/b1.gif" width="78" height="19" border="0" /></a></td>\
        </tr>\
    </table></td>\
  </tr>\
</table>';
  document.write(str);

}