<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AgentTypeAdd.aspx.cs" Inherits="admin_Agent_AgentTypeAdd" %>

<!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 runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>添加招商代理分类</title>
<link rel="stylesheet" href="../skin/style.css" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <table>
                <tr>
                    <td>
                        类名</td>
                    <td>
                        <asp:TextBox ID="txtName" runat="server"></asp:TextBox></td>
                </tr>
                <tr>
                    <td colspan="2" align="center">
                        <asp:Button ID="btnSave" runat="server" Text="保存" OnClick="btnSave_Click" /><asp:Button ID="btnCancel"
                            runat="server" Text="取消" OnClick="btnCancel_Click" /></td>
                </tr>
            </table>
        </div>
    </form>
    <script type="text/javascript" src="../../js/Common.js"></script>
    <script type="text/javascript">
    $("btnSave").onclick=function()
    {
     if($("txtName").value.replace(/\s/g,'')=="")
     {
      alert("添加类名不能为空!")
      $("txtName").focus()
     return false;  
     } 
    }
    </script>
</body>
</html>
