function KeywordSearch(send_url, divTgs) { var strwhere = ""; var str = $.trim($(divTgs).val()); if (str.length > 0) { strwhere += "?keyword=" + encodeURI($(divTgs).val()); } window.location.href = send_url + strwhere; return false; } function KeywordSearchOpen(send_url, divTgs, tablename) { var strwhere = ""; var str = $.trim($(divTgs).val()); if (str.length > 0) { strwhere += "?keyword=" + encodeURI($(divTgs).val()) + "&tablename=" + tablename; } var url = "http://archives.yuwei-crystal.com" + send_url + strwhere; window.open(url); } function CategorySearch(send_url, categoryId) { var strwhere = ""; if (categoryId != undefined && categoryId != '') { strwhere += "&categoryId=" + categoryId; } window.location.href = send_url + strwhere; return false; } function DangAnSearch(send_url, name, author, time) { var strwhere = ""; var strName = $.trim($(name).val()); if (strName.length > 0) { strwhere += "&name=" + encodeURI($(name).val()); } var strAuthor = $.trim($(author).val()); if (strAuthor.length > 0) { strwhere += "&author=" + encodeURI($(author).val()); } var strTime = $.trim($(time).val()); if (strTime.length > 0) { strwhere += "&time=" + encodeURI($(time).val()); } window.location.href = send_url + strwhere; return false; } function DangAnSiteSearchForValue(send_url, name, author, time) { var strwhere = ""; if (name != undefined && name != '') { strwhere += "&name=" + name } if (author != undefined && author != '') { strwhere += "&author=" + author } if (time != undefined && time != '') { strwhere += "&time=" + time } window.location.href = send_url + strwhere; return false; } function SiteSearch(send_url, no, name) { var strwhere = ""; var strNo = $.trim($(no).val()); if (strNo.length > 0) { strwhere += "&no=" +strNo; } var strName = $.trim($(name).val()); if (strName.length > 0) { strwhere += "&name=" + strName; } window.location.href = send_url + strwhere; return false; } function SiteSearchForValue(send_url, name, no) { if(arguments.length==4) { DangAnSiteSearchForValue(arguments[0],arguments[1],arguments[2],arguments[3]); return; } var strwhere = ""; if (no != undefined && no != '') { strwhere += "&no=" + no } if (name != undefined && name != '') { strwhere += "&name=" + name } window.location.href = send_url + strwhere; return false; } function SiteSearchOpen(send_url, name) { var strwhere = ""; var strName = $.trim($(name).val()); if (strName.length > 0) { strwhere += "&name=" + encodeURI($(name).val()); } var url = "http://archives.yuwei-crystal.com" + send_url + strwhere; window.open(url); }