<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="find.aspx.cs" Inherits="JuSNS.Web.home.friend.find" %>
<!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>
<title id="ptitle" runat="server">邀请朋友</title>
    <script language="javascript" type="text/javascript" src="../../js/ajax.js"></script>
    <script language="javascript" type="text/javascript" src="../../js/public.js"></script>
    <link href="../../template/<% Response.Write(JuSNS.Config.UiConfig.SkinStyle); %>/css/base.css" id="skinpath" type="text/css" rel="stylesheet" />
    <script src="../../js/friend.js" charset="gb2312" type="text/javascript" language="javascript"></script></head>
<body>
<!--头部-->
<%=this.GetHtmlShort()%>
<div id="divhead">
    <%=this.GetHtmlHead()%>
</div>

<div id="divbody">
    <div id="body_first">
        <div class="body_menu"> 
        <%=this.GetHtmlLeft()%>
        </div>
    </div>
    <div id="body_sec">
            <div id="body_mid"> 
                <div class="body_frame"> 
                 <!--主题内容中-->    
                      <div class="body_frame_otherinfo">
	                        <div class="title">
                                <div class="l"><img src="../../template/<%Response.Write(JuSNS.Config.UiConfig.SkinStyle); %>/images/site/friend.gif" align="absmiddle" /> <span class="shenlan bold font14 ocolor">邀请MSN/GTalk好友</span></div>
                                <div class="r"><a href="javascript:window.history.back();" title="返回上一页">返回上一页</a></div>
                                <div class="c"></div>
                            </div>
            		       
                            <div class="nav-menu">
                                <ul>
                                 <li class="cbg"></li>
                                 <li><a href="../friend">朋友列表</a></li>
                                 <li><a href="../network/?a=2">随便看看</a></li>
                                 <li class="current"><a href="../friend/invite.aspx">邀请朋友</a></li>
                                 <li class="cbg"></li>
                                 </ul>
                            </div>        
                        </div>
                     
                     <div class="body_sec_all">
                            <div class="msg-error" id="error_div" visible="false" runat="server"></div>
                            <div class="spline"></div> 
                            <div class="hdtitle bold" id="ff-lm">
                             <img src="../../template/images/msn.gif" align="absmiddle" /> 邀请 MSN 好友
                            </div>
                           <div class="spline"></div> 
                            <div class="content-reshow pstr">
                                输入你的 MSN 账号和密码，邀请你的 MSN 好友
                            </div>
                           <form method="post" name="formMSN" id="formMSN" action="invitemsn.aspx">
                           <div class="content">
                                    <label class="f-label" for="login-msn">MSN账号</label>
                                    <input name="login" type="text" class="f-text s30" id="login-msn" value="" />
                                     <span class="reshow" id="msntip"></span>
                           </div>
                           
                           <div class="content">
                                    <label class="f-label" for="password-msn">MSN密码</label>
                                    <input name="password" type="password" class="f-text s30" id="password-msn" />                           
                           </div>
                           
                            <div class="content">
                                 <label class="f-label">&nbsp;</label> 
                                <input type="button" onclick="javascript:sendfind(this.form,'msntip',document.formMSN.login.value,'msnnot',this);"
                                    class="f-button findfriend" value="邀请MSN好友" /> &nbsp; <span class="showSumbitflow" id="msnnot"></span>
                            </div>
                           <div class="spline"></div> 
                            <div class="pstr blue">
                                放心，我们不会保存你的 MSN 密码。您可以先更改密码，好友邀请成功后，更改回原密码。
                            </div>                           
                            </form>
                           <div class="line"></div> 
                            <div class="hdtitle bold" id="ff-gt">
                             <img src="../../template/images/gtalk.gif" align="absmiddle" /> 邀请 GTalk 好友</div>
                           <div class="spline"></div> 
                            <div class="content-reshow pstr">
                                输入你的 GTalk 账号和密码，邀请你的 GTalk 好友
                            </div> 
                           <form name="FormGtalk" method="post" id="FormGtalk" action="invitegtalk.aspx">
                           <div class="content">
                                    <label class="f-label" for="login-msn">GTalk账号</label>
                                    <input name="login" type="text" class="f-text s30" id="login-gtalk" value="" />
                                     <span class="reshow" id="gtalktip"></span>
                           </div>
                           
                           <div class="content">
                                    <label class="f-label" for="password-msn">GTalk密码</label>
                                    <input name="password" type="password" class="f-text s30" id="password-gtalk" />                           
                           </div>
                           
                            <div class="content">
                              <label class="f-label">&nbsp;</label>  
                                <input type="button" class="f-button" value="邀请GTalk好友" onclick="javascript:sendfind(this.form,'gtalktip',document.FormGtalk.login.value,'gtalknot',this);" /> &nbsp; <span
                                            class="showSumbitflow" id="gtalknot"></span>
                            </div>
                           <div class="spline"></div> 
                            <div class="pstr blue">
                                放心，我们不会保存你的 GTalk 密码。您可以先更改密码，好友邀请成功后，更改回原密码。
                            </div>                           
                            </form>
                           <div class="spline"></div>                          
                     </div> 
                        
               </div>
                <!--底部-->
             <div class="divbottom">
              <%=this.GetHtmlFoot()%>
              </div>                    
            </div>
       </div>
 </div>           
</body>
</html>
<script language="javascript" type="text/javascript">
function sendfind(formobj,spanobj,value,msnnot,butobj)
{
    if(value=="")
    {
        document.getElementById(spanobj).innerHTML='账号不能为空';
    }
    else
    {
        butobj.disabled=true;
        document.getElementById(spanobj).innerHTML='';
        document.getElementById(msnnot).innerHTML=' &nbsp; 正在搜索，此过程可能需几分钟时间，请不要刷新页面。';
        formobj.submit();
    }
}
</script>