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

<!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 id="Head1" runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <title>免费发布求购信息</title>
    <link rel="Stylesheet" href="../Css/System/General.css" type="text/css" />
    <link rel="Stylesheet" href="../Css/2009/message.css" type="text/css" />

    <script language="javascript" type="text/javascript" src="../js/jquery-cn.js"></script>

    <script language="javascript" type="text/javascript" src="../js/Common.js"></script>

</head>
<body>
    <div id="head">
        <div id="logo">
            <a href="/">
                <img src="../Images/logo.jpg" width="183" height="63" border="0" /></a></div>
        <div id="nav_re">
            <ul>
                <li><a href="/login/login.aspx" target="_blank"><span class="delu"></span></a><a
                    href="/login/register.aspx" target="_blank"><span class="zuce"></span></a><a href="/member/index.aspx"
                        target="_blank"><span class="fub"></span></a><span class="free" style="margin-left: 0px;">
                        </span></li>
                <li class="tel">
                    <h3>
                        客服热线：0351-7622426</h3>
                </li>
            </ul>
            <div class="clr">
            </div>
        </div>
    </div>
    <form id="form1" runat="server">
        <div id="main">
            <div class="pur_table_bg">
                免费发布求购信息</div>
            <table width="780" border="0" align="center" cellpadding="0" cellspacing="0" class="pur_table">
                <tr>
                    <th class="thbg">
                        填写联系方式</th>
                    <th colspan="2">
                        <span class="span_r"><font color="red">*</font>为必填</span>请务必填写准确的联系信息！（否则客户无法联系到您，信息不能被审核通过。）</th>
                </tr>
                <tr>
                    <td width="16%" class="left2">
                        <strong>联系人：</strong><span class="red"> *</span></td>
                    <td>
                        <asp:TextBox ID="txtLinkName" runat="server" Width="121px" align="left"></asp:TextBox>
                    </td>
                    <td>
                        <div id="lbl_txtLinkName">
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="left2">
                        <strong>公司名称：</strong><span class="red"> *</span></td>
                    <td>
                        <asp:TextBox ID="txtCompanyName" runat="server" Width="200px"></asp:TextBox></td>
                    <td>
                        <div id="lbl_txtDepartment">
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="left2">
                        <strong>电子邮件：</strong><span class="red"> *</span></td>
                    <td>
                        <asp:TextBox ID="txtEmail" runat="server" Width="200px"></asp:TextBox>
                    </td>
                    <td>
                        <div id="lbl_txtPosition">
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="left2" style="height: 26px">
                        <strong>固定电话：</strong><span class="red"> *</span></td>
                    <td style="height: 26px; width: 215px;">
                        <asp:TextBox ID="txtTel_International" runat="server" Width="20px" Text="86" MaxLength="2"></asp:TextBox>
                        <asp:TextBox ID="txtTel_DistrictNumber" runat="server" Width="30px" MaxLength="5"></asp:TextBox>
                        <asp:TextBox ID="txtTel_Telephone" runat="server" Width="70px" MaxLength="8"></asp:TextBox>
                        <asp:TextBox ID="txtTel_Ext" runat="server" Width="50px"></asp:TextBox>
                    </td>
                    <td style="height: 26px">
                        <div id="lbl_txtTel_1234">
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="left2">
                        <strong>手机：</strong><span class="red"> *</span></td>
                    <td>
                        <asp:TextBox ID="txtMobilePhone" runat="server" Width="200px" MaxLength="22"></asp:TextBox>
                    </td>
                    <td>
                        <div id="lbl_txtMobilePhone">
                        </div>
                    </td>
                </tr>
                <tr id="trCode" runat="server">
                    <td class="left2">
                        <strong>验证码：</strong><span class="red"> *</span></td>
                    <td style="width: 215px; height: 22px">
                        <asp:TextBox ID="yanzheng" runat="server" Width="72px" MaxLength="7"></asp:TextBox>
                        <img id="imgVerify" src="../login/CheckCode.aspx?" alt="看不清？点击更换" onclick="this.src=this.src+'?'" />
                    </td>
                    <td id="lbl_yangzheng">
                    </td>
                </tr>
                <tr runat="server">
                    <td colspan="3" class="purtent">
                        <asp:Button ID="btnSave" runat="server" Text="下一步" Width="70px" Height="22px" OnClientClick="javascript: return checkinfo()"
                            OnClick="btnSave_Click" />

                        <script language="JavaScript" src="../js/area.js" type="text/javascript"></script>

                    </td>
                </tr>
            </table>
        </div>
    </form>
    <div id="font">
        <p>
            <a href="../search/solely.aspx?url=关于我们">关于网胜</a> | <a href="../search/solely.aspx?url=联系我们">
                联系我们</a> | <a href="../search/solely.aspx?url=广告服务">广告服务</a> | <a href="../search/solely.aspx?url=网站地图">
                    网站地图</a> | <a href="../search/solely.aspx?url=诚聘英才">诚聘英才</a> | <a href="../search/solely.aspx?url=网站申明">
                        网站申明</a> | <a href="../search/solely.aspx?url=意见投诉">意见投诉</a> | <a href="../search/solely.aspx?url=帮助中心">
                            帮助中心</a> | <a href="../search/solely.aspx?url=友情链接">友情链接</a>
            <br />
            客服咨询热线：0351-7622426 0351-7622428 传真：0351-7622428
            <br />
            版权所有 网胜科技有限公司 [<a href="http://bbs.websen.net" target="_blank">技术支持论坛</a>] 晋ICP备05004115号
            <br />
            Copyright&copy;2004-2008 websen.net. All Rights Reserved
        </p>
    </div>
</body>

<script language="javascript">
var txtdiv = new Array("lbl_txtLinkName","lbl_txtDepartment","lbl_txtPosition","lbl_txtTel_1234","lbl_txtMobilePhone");
var txt = new Array(6);
txt[0]="<img src="+rightIcon+" width=\"19\" height=\"16\" align=\"absmiddle\"> <font color=#FF0000>联系人不能为空</font>";
txt[1]="<img src="+rightIcon+" width=\"19\" height=\"16\" align=\"absmiddle\"> <font color=#FF0000>公司名称不能为空</font>";
txt[2]="<img src="+rightIcon+" width=\"19\" height=\"16\" align=\"absmiddle\"> <font color=#FF0000>电子邮箱不能为空</font>";
txt[3]="<img src="+rightIcon+" width=\"19\" height=\"16\" align=\"absmiddle\"> <font color=#FF0000>固定电话不能为空</font>";
txt[4]="<img src="+rightIcon+" width=\"19\" height=\"16\" align=\"absmiddle\"> <font color=#FF0000>手机不能为空</font>";
txt[5]="<img src="+rightIcon+" width=\"19\" height=\"16\" align=\"absmiddle\"> <font color=#FF0000>输入不符合规范,请输入数字!</font>";
var flog="";
        function $(id){
            return document.getElementById(id);
        }
 function checkinfo(){
    if( $("txtLinkName").value=="") {
            $("lbl_txtLinkName").innerHTML=txt[0];
           flog="0"; 
    } else{
            $("lbl_txtLinkName").innerHTML="";
    }  
    if($("txtCompanyName").value=="") {
            $("lbl_txtDepartment").innerHTML=txt[1];
            flog="0";  
    }else{
            $("lbl_txtDepartment").innerHTML="";
    }
    
    if($("txtEmail").value==""){
            $("lbl_txtPosition").innerHTML=txt[2];
            flog="0";  
   } else if(!ValidateEmail($("txtEmail").value)){
            $("lbl_txtPosition").innerHTML=txt[5];
            flog="0";  
   }else{
            $("lbl_txtPosition").innerHTML="";
    }
   
    if($("txtTel_International").value=="" || $("txtTel_DistrictNumber").value==""|| $("txtTel_Telephone").value=="") {
             $("lbl_txtTel_1234").innerHTML=txt[3];
            flog="0"; 
    } else if(!isNumber($("txtTel_International").value) || !isNumber($("txtTel_DistrictNumber").value) || !isNumber($("txtTel_Telephone").value)){
             $("lbl_txtTel_1234").innerHTML=txt[5];
            flog="0"; 
    } else{
            $("lbl_txtTel_1234").innerHTML="";
    }
   
    if($("txtMobilePhone").value=="") {
            $("lbl_txtMobilePhone").innerHTML=txt[4];
            flog="0";  
    }else if(!checkMobile($("txtMobilePhone").value)) {
             $("lbl_txtMobilePhone").innerHTML=txt[5];
            flog="0";  
    } else{
            $("lbl_txtMobilePhone").innerHTML="";
    }
    if(flog=="0"){
           return false;
    } else {   
           return true;   
    }        
}  
</script>

</html>
