﻿function searchit() {
    if ($("#wd").val() == "请输入邮政编码/地址") {
        alert("请输入邮政编码/地址");
        $("#wd").focus();
        return;
    }
    if ($("#wd").val() == "") {
        alert("请输入邮政编码/地址");
        $("#wd").focus();
        return;
    }
    $("#formsearch").action = "/youbian1.aspx";
    $("#formsearch").submit();
}
function searchfocus() {
    if ($("#wd").val() == "请输入邮政编码/地址") {
        $("#wd").val("");
    }

}
function searchblur() {
    if ($("#wd").val() == "") {
        $("#wd").val("请输入邮政编码/地址");
    }
}
function showbar() {
    var barjs = "<div style='text-align:center;' style='margin-bottom:10px;'>";
    barjs += "<a href='http://www.chaohua.net/ipdomain.aspx' title='IP反查域名' style='font-size:18px;'>IP反查域名</a>&nbsp;&nbsp;";
    barjs += "<a href='http://www.chaohua.net/icp.aspx' title='ICP备案号查询' style='font-size:18px;'>ICP备案号查询</a>&nbsp;&nbsp;";
    barjs += "<a href='http://www.chaohua.net/alexa.aspx' title='alexa排名查询' style='font-size:18px;'>alexa排名查询</a>&nbsp;&nbsp;";
    barjs += "<a href='http://www.img123.cn/' title='各地网址大全' style='font-size:18px;'>各地网址大全</a>&nbsp;&nbsp;";
    barjs += "<a href='http://www.img123.com/' title='邮政编码查询' style='font-size:18px;'>邮政编码查询</a>&nbsp;&nbsp;";
    barjs += "<a href='http://www.lkq.cn/' title='汽车时刻查询' style='font-size:18px;'>汽车时刻查询</a>&nbsp;&nbsp;";
    barjs += "</div>";
    document.write(barjs);
}
function shows() {
    document.write('<table align="center" cellpadding="0" cellspacing="0">');
    document.write('<tr bgcolor="white">');
    document.write('<td>');
    document.write('<form id="formsearch" name="formsearch" action="/youbian1.aspx" style="margin:0px;padding:0px;"><input type="text" id="wd" name="wd" style="width:506px;height:24px;line-height:24px;border:1px solid #c5d5c5;margin:0px;padding-left:10px;" onfocus="javascript:searchfocus()" onblur="javascript:searchblur()"  value="请输入邮政编码/地址" /><input type="button" style="height:28px;line-height:28px;width:60px;border:1px solid #c5d5c5;background-color:#bf0000;color:#ffffff;cursor:hand;" value="搜索" onclick="javascript:searchit()" /></form>');
    document.write('</td>');
    document.write('</tr>');
    document.write('</table><br />');
}
