﻿function goToSearch() {


    var searchText = $("#txtkey").val();

    var newkey = encodeURI(searchText);

    if (searchText == "请输入搜索的内容" || searchText == "") {

        $("#sousuo").attr("href", location.href);
    }
    else {

        window.location = "SearchInfo.aspx?keyword=" + newkey;
    }

}



function getfocus() {

    if ($("#txtkey").val() == "请输入搜索的内容") {
        $("#txtkey").val("");
    }
}
function lostfocus() {

    if ($("#txtkey").val() == "") {

        $("#txtkey").val("请输入搜索的内容");
    }
}
