<%@ Page Language="vb" AutoEventWireup="false" MasterPageFile="~/WFAdmin/ModalAdminPage.master" CodeBehind="LocationEdit.aspx.vb" Inherits="WebFoundations.WFPortal.UI.LocationEdit" %>

<asp:Content ContentPlaceHolderID="TagHead" runat="server">
    <script type="text/javascript">
        function CloseAndRebind() {
            GetRadWindow().Close();
            GetRadWindow().BrowserWindow.refreshGrid();
        }
        function GetRadWindow() {
            var oWindow = null;
            if (window.radWindow) oWindow = window.radWindow; //Will work in Moz in all cases, including clasic dialog
            else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;//IE (and Moz az well)
            return oWindow;
        }
        function CancelEdit() {
            GetRadWindow().Close();
        }
    </script>
</asp:Content>

<asp:Content ContentPlaceHolderID="MainContent" runat="server">

    <div class="fields">
        <label>
            <asp:Label ID="lblname" runat="server" />
            <asp:TextBox ID="txtname" runat="server" MaxLength="50" />
            <asp:RequiredFieldValidator ID="reqname" Display="Dynamic" runat="server" ControlToValidate="txtname" />
        </label>
        <label>
            <asp:Label ID="lbltimezone" runat="server" />
            <asp:TextBox ID="txttimezone" runat="server" Width="31px" MaxLength="3" />
            <asp:RegularExpressionValidator ID="valtimezone" runat="server" Display="Dynamic" ControlToValidate="txttimezone" ValidationExpression="-[0-9]+|[0-9]+" />
            <asp:RequiredFieldValidator ID="reqtimezone" runat="server" Display="Dynamic" ControlToValidate="txttimezone" />
        </label>
    </div>

    <section class="actions">
        <asp:Button ID="btnok" runat="server" CssClass="button" />
        <input id="btncancel" type="button" class="button" value="button" runat="server" />
    </section>
</asp:Content>

