﻿var regtxt = new RegExp("^([\u4E00-\uFA29]|[\uE7C7-\uE7F3]|[ ]|[a-zA-Z0-9])*$");

function search_check() {
    //alert(document.getElementById('searchword1'));
    var skey = document.getElementById('searchword1').value;

    
    if (skey == '' || skey == '请输入关键字') {
        alert('请输入关键字!');
        return false;
    } else {
        if (!regtxt.test(skey)) {
            alert("请不要输入特殊字符！");
            skey.value = '';
            return false;
        } else {
            //alert(document.searchform.searchword1.value);
            document.location.href = "Search_" + encodeURIComponent(skey) + "_0.htm";
        }
    }
}

//弹出窗口，固定位置left=100,top=100
function openWindowS(URL, Width, Height) {
    window.open(URL, '', 'width=' + Width + ',height=' + Height + ',resizable=1,scrollbars=1,status=no,toolbar=no,location=no,menu=no,left=60,top=60');
}


