<%@ Control Language="c#" AutoEventWireup="false" Codebehind="LoginForm.ascx.cs" Inherits="XpShop.WebUI.Modules.LoginForm" TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>
<div class="login_css">
<script type="text/javascript">
        function AddFavorite(sURL, sTitle)
        {
            try
            {
                window.external.addFavorite(sURL,sTitle);
            }
            catch (e)
            {
                try
                {
                    window.sidebar.addPanel(sTitle,sURL,"");
                }
                catch (e)
                {
                    alert("加入收藏失败，请使用Ctrl+D进行添加");
                }
            }
        }
        function setHomepage(){  
            if (document.all){  
            document.body.style.behavior='url(#default#homepage)';  
            document.body.setHomePage(document.URL);  
          }else if (window.sidebar){  
                if(window.netscape){  
                try{   
                   netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");   
                }catch (e){   
                             alert( "该操作被浏览器拒绝，如果想启用该功能，请在地址栏内输入 about:config,然后将项 signed.applets.codebase_principal_support 值该为true" );   
                }  
                 }   
             var prefs = Components.classes['@mozilla.org/preferences-service;1'].getService(Components. interfaces.nsIPrefBranch);  
             prefs.setCharPref('browser.startup.homepage',document.URL);  
            }  
         } 
</script> 
		<span id="news_login"></span>
		<iframe src="/<%=System.Configuration.ConfigurationSettings.AppSettings["ShopFolder"]%>frmLogin.aspx?NoCopyright=1" border="0" height="0" width="0" style="visibility: hidden"></iframe>
　|　
		<a href="#" onclick="setHomepage();"><%=GetResourceString("SetAsHomepage")%></a> 　|　
		<a href="javascript:void(0);" target="_self" onClick="javascript:AddFavorite('<%=config.SiteUrl%>','<%=config.SiteName%>')" ><%=GetResourceString("AddToFavorite")%></a>　|
        <a href="/<%=System.Configuration.ConfigurationSettings.AppSettings["ShopFolder"]%>Guest.aspx"><%=GetResourceString("GuestBook")%></a>
</div>
