<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>

<!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">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table>
            <tr>
                <td align="center" colspan="4">
                    <asp:Label ID="Label1" runat="server" Font-Bold="True" Font-Size="Large" ForeColor="#804040"
                        Text="Break Even Point" Width="160px"></asp:Label></td>
            </tr>
            <tr>
                <td style="width: 132px; height: 21px">
                    <asp:Label ID="Label2" runat="server" Text="Price:"></asp:Label></td>
                <td style="width: 7px; height: 21px">
                    <asp:TextBox ID="priceTextBox" runat="server" Width="80px"></asp:TextBox></td>
                <td style="width: 100px; height: 21px">
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="priceTextBox"
                        ErrorMessage="Price field cannot be left blank.">*</asp:RequiredFieldValidator>
                    <asp:CompareValidator ID="priceToVCCompareValidator" runat="server" ControlToCompare="vcTextBox"
                        ControlToValidate="priceTextBox" ErrorMessage="Price must be greater than Variable Cost."
                        Operator="GreaterThan" SetFocusOnError="True" Type="Currency">*</asp:CompareValidator></td>
                <td style="width: 54px; height: 21px">
                </td>
            </tr>
            <tr>
                <td style="width: 132px">
                    <asp:Label ID="Label3" runat="server" Text="Variable Cost:" Width="96px"></asp:Label></td>
                <td style="width: 7px">
                    <asp:TextBox ID="vcTextBox" runat="server" Height="22px" Width="80px"></asp:TextBox></td>
                <td style="width: 100px">
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="vcTextBox"
                        ErrorMessage=" Variable Cost field cannot be left blank.">*</asp:RequiredFieldValidator></td>
                <td style="width: 54px">
                </td>
            </tr>
            <tr>
                <td style="width: 132px">
                    <asp:Label ID="Label4" runat="server" Text="Fixed Cost:"></asp:Label></td>
                <td style="width: 7px">
                    <asp:TextBox ID="fcTextBox" runat="server" Height="22px" Width="80px"></asp:TextBox></td>
                <td style="width: 100px">
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="fcTextBox"
                        ErrorMessage="Fixed Cost field cannot be left blank.">*</asp:RequiredFieldValidator></td>
                <td style="width: 54px">
                </td>
            </tr>
            <tr>
                <td style="width: 132px">
                    <asp:Label ID="Label5" runat="server" Font-Bold="True" Text="Break Even Quantity:"
                        Width="160px"></asp:Label></td>
                <td style="width: 7px">
                    <asp:Label ID="BEPLabel" runat="server" BackColor="#FFFFC0" BorderColor="#804040"
                        BorderStyle="Solid" BorderWidth="2px" Height="22px" Width="80px"></asp:Label></td>
                <td style="width: 100px">
                </td>
                <td style="width: 54px">
                </td>
            </tr>
            <tr>
                <td style="width: 132px; height: 25px">
                    <asp:Button ID="computeBEPButton" runat="server" Text="Compute BEP" /></td>
                <td colspan="3" style="height: 25px">
                    <asp:ValidationSummary ID="ValidationSummary1" runat="server" />
                </td>
            </tr>
        </table>
    
    </div>
        <br />
        <asp:HyperLink ID="summaryHyperlink" runat="server" NavigateUrl="~/summary.aspx">Summary</asp:HyperLink>
    </form>
</body>
</html>
