<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="registration.aspx.cs" Inherits="FangPage.Admin.registration" %>

<%@ Register Assembly="FangPage.Control" Namespace="FangPage.Control" TagPrefix="cc1" %>
<!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">
<html>
<head>
    <title>软件注册许可</title>
    <link href="styles/style.css" type="text/css" rel="stylesheet" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <script type="text/javascript">
    function paste()   
      {          
          var copySN=clipboardData.getData("Text");	  		
          if (copySN.length==35) {
              document.Form1.License1.value=copySN.substring(0,8);
              document.Form1.License2.value=copySN.substring(9,17);
              document.Form1.License3.value=copySN.substring(18,26);
              document.Form1.License4.value=copySN.substring(27,35);
              document.Form1.License4.focus();
         }
      }
    function License_onkeyup(num) {
      var this_obj=eval('document.Form1.License'+num)
      var sn=this_obj.value
      sn=sn.toUpperCase()
      var valid_char='0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ'
      for (i=0;i<=sn.length;i++) {
        var the_char=sn.charAt(i)
        if(valid_char.indexOf(the_char)==-1){
          alert('注册码只由数字和字母组成！')
          this_obj.value=sn.substring(0,i)
          return 1
        }
      }
      var next_obj=eval('document.Form1.License'+(num+1))
      if (num+1<=4){
         if (this_obj.value.length>=8) next_obj.focus()
      }
      if(this_obj.value!=sn) this_obj.value=sn
    }
    </script>

</head>
<body>
    <form id="Form1" runat="server">
    <table height="100%" width="100%" align="center">
        <tbody>
            <tr>
                <td align="center">
                    <table width="590" border="0" align="center" cellpadding="0" cellspacing="0">
                        <tr>
                            <td height="10" align="left"><img src="images/rtop.jpg" width="590" height="10" /></td>
                        </tr>
                        <tr>
                            <td background="images/rmiddle.jpg">
                                <table width="588" border="0" align="left" cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td height="20" align="center">
                                            
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="left">
                                            <div style="padding-left:10px; padding-bottom:10px;"><img src="images/logo.gif" width="552" height="75" /></div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td height="10" align="center">
                                            
                                        </td>
                                    </tr>
                                    <tr>
                                        <td height="30" align="left">
                                            <div style="padding-left:20px;padding-right:20px;"><strong><asp:Label ID="Label1" runat="server" Text=""></asp:Label></strong></div>
                                        </td>
                                    </tr>
                                    <tr>
                                    <td align="left">
                                        <div style="padding-left: 20px; padding-top: 10px; padding-right:20px;">
                                            方配网络技术有限公司(FangPage)免费提供网站后台管理系统(BMS)，您可以在完全遵守本最终用户许可协议的基础上，将本软件应用于非商业用途而不必支付费用，如果需要进行商业性的销售、复制和散发，必须获得方配网络公司的授权和许可。<br>
                                        </div> 
                                        <div style="padding-left: 20px; padding-top: 10px; padding-right:20px;">如果您安装使用本软件，则表示接受本协议所有条款。安装使用之前请认真阅读<a href="license.html" target="_blank">《用户许可协议》</a>。</div>
                                        <div style="padding-left: 20px; padding-top: 10px; padding-right:20px;">方配官方网站：<a href="http://www.fangpage.com" target="_blank">http://www.fangpage.com</a></div>
                                    </td>
                                    </tr>
                                    <tr>
                                      <td align="center" height="50"></td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td><img src="images/rbottom.jpg" width="590" height="11" /></td>
                        </tr>
                    </table>
                </td>
            </tr>
        </tbody>
    </table>
    </form>
</body>
</html>
