﻿function serkey() {

        if (document.getElementById('txtK').value == "请输入关键字" || document.getElementById('txtK').value == "") {
            alert("请输入关键字");
            return;
        }

        window.location.href = "Search.aspx?Key=" + encodeURI(document.getElementById('txtK').value);

    }
    $(function() {
        if (window.location.href.indexOf("Key") > 0) {
            document.getElementById('txtK').value = decodeURI(getQueryString("Key"));
        }
    });
