<%@ page language="VB" validaterequest="false" enableviewstate="true" inherits="hcw.friendlist, App_Web__biyzfcu" %>
<%@ Register TagPrefix="list" TagName="newly" Src="uc/newly.ascx" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title></title>
<link href="images/css.css" rel="stylesheet" type="text/css" />
</head>
<body>

<div id="Tlist" runat="server"></div>
			               <DIV id="knowlist" runat="server">
            <form action="messlist.aspx?kind=dolist" method="post" name="form1" id="form1">
              <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
                              <tr>
                              <td><table width="380" border="0" cellpadding="0" cellspacing="0" id="t1" runat="server">
                                <tr>
                                  <td width="12%" height="36" align="center"><strong>状态</strong></td>
                                  <td width="37%" align="left"><strong>姓名</strong></td>
                                  <td width="9%" align="left"><strong>状态</strong></td>
                                  <td width="42%" align="left"><strong>姓名</strong></td>
                                </tr>
						                              </table></td>
                            </tr>
              </table>
              <table width="100%" height="30" border="0" align="center" cellpadding="0" cellspacing="0" 
      background="images/inbox_tabbd.jpg" class="dottable">
                               <tr>
                    <td width="100" align="middle" > 
                      <img src="images/tijiao.gif" width="71" height="22" onclick="setnickname();" style="CURSOR: hand"/></td>
                    <td width="100" align="middle" ><a style="CURSOR: hand" onclick="selectAll('namelist',true)">全部选择</a></td>
                    <td width="20"><img src="images/inbox_interval2.jpg" /></td>
                    <td width="100" align="left" ><a style="CURSOR: hand"  onclick="selectAll('namelist',false)">取消选择</a></td>
                    <td width="700" align="right"><input id="action" type="hidden" value="delete" 
          name="action" /></td>
                  </tr>
              </table>
            </form>  </DIV>
  </asp:panel>
<script language="JavaScript" type="text/javascript">
function delit()
{
if(confirm('确定要删除吗？'))
{
return true;
}
else
return false;
}

function selectAll(name,state) {
  	var ids = document.getElementsByName(name);           
	for (var i = 0; i < ids.length; i++)            
	{                  
   	     ids[i].checked = state;           
	}           
}    
</script>
<SCRIPT language=JavaScript type=text/JavaScript>
function setnickname(){
    var friend_name = document.getElementsByName("namelist"); 
	var nickname='';
	for(i=0;i<friend_name.length;i++){
		 if (friend_name[i].checked) { 
		nickname = nickname + friend_name[i].value+";";
		}
	}
	nickname = nickname.substring(0,nickname.length-1); 
	opener.setnickname(nickname);
	window.close();
	
}
</SCRIPT>
	</body>
