<%@ page language="C#" autoeventwireup="true" inherits="fclp_fclp_tg_do, ZKCMS" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>
<%@ Register TagName="meta" TagPrefix="UC" Src="~/s/include/meta.ascx" %>
<!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="X-UA-Compatible" content="IE=EmulateIE7" />
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <title>提交购房意向</title>
    <UC:meta ID="meta1" runat="server" />
    <style type="text/css">body{background:#fff;}.self_tip{border:solid 1px #ffe5a5;padding:6px 6px 6px 12px;color:#f30;width:370px;margin:0 auto;background:#fff;-moz-border-radius: 5px;-webkit-border-radius: 5px;border-radius: 5px;}</style>
    <script type="text/javascript">
        function check(){
            if(document.getElementById("contact").value==""){alert("您的姓名不能为空！");return false;}
            if(document.getElementById("phone").value==""){alert("您的联系方式不能为空！");return false;}
        }
        if (top.location == self.location)document.write("<style>body{background:#CEE3F7;}</style>");
    </script>
</head>
<body>
    <form id="form1" runat="server" autocomplete="off">
    <div style="position: absolute; right: 0;" id="self_abs1"><img alt="点击关闭" src="/s/skin/close.gif" style="cursor: pointer" onclick="top.location=top.location.href.replace('&act=upload','').replace('act=upload','')" /></div>
    <div style="padding-top:5px" id="self_tip_box"><div class="self_tip" id="self_tip">(提交本意向表后我们将及时通知您该楼盘开盘、看房、团购的消息)</div></div>
    <div class="do1">    
        <table border="0" cellpadding="0" cellspacing="0" class="table1" id="self_table1">
            <tr>
                <td class="tt">您打算何时购房：</td>
                <td>
                    <asp:TextBox ID="buydate" runat="server" MaxLength="500" CssClass="inp4" Width="280"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="tt">您的购房预算：</td>
                <td>
                    <asp:TextBox ID="budget" runat="server" MaxLength="30" CssClass="inp4" Width="280"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="tt">购买户型与面积：</td>
                <td>
                    <asp:TextBox ID="doormodel" runat="server" MaxLength="30" CssClass="inp4" Width="280"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="tt">购房付款方式：</td>
                <td>
                    <asp:TextBox ID="paytype" runat="server" MaxLength="30" CssClass="inp4" Width="280"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="tt"><b>您的姓名：</b></td>
                <td>
                    <asp:TextBox ID="contact" runat="server" MaxLength="20" CssClass="inp4" Width="150"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="tt"><b>您的联系方式：</b></td>
                <td>
                    <asp:TextBox ID="phone" runat="server" MaxLength="30" CssClass="inp4" Width="150"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="tt">&nbsp;</td>
                <td>
                    <table border="0" cellpadding="0" cellspacing="0">
                        <tr>
                            <td>
                                <asp:Button ID="ButtonSubmit" runat="server" CssClass="but4" Text="确认提交" OnClick="ButtonSubmit_Click" OnClientClick="return check()" />
                            </td>
                            <td>
                                <div style="padding-left: 10px" class="red"><asp:Literal ID="msg" runat="server"></asp:Literal></div>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
        <script type="text/javascript">
            if(top.location == location){
                document.getElementById("self_table1").style.marginLeft="auto";
                document.getElementById("self_table1").style.marginRight="auto";                
                document.getElementById("self_tip_box").style.marginLeft="auto";
                document.getElementById("self_tip_box").style.marginRight="auto";                
                if(document.all&&document.getElementById){
                    document.getElementById("self_tip_box").style.width="450";
                    document.getElementById("self_tip_box").style.paddingTop="40"; 
                    document.getElementById("self_tip_box").style.paddingLeft="10";
                }
                else{
                    document.getElementById("self_tip_box").style.width="450px";
                    document.getElementById("self_tip_box").style.paddingTop="40px"; 
                    document.getElementById("self_tip_box").style.paddingLeft="10px";
                }                
                document.getElementById("self_tip").style.width="100%";                
                document.getElementById("self_abs1").style.display="none";
            }
        </script>
    </div>
    </form>
</body>
</html>
