﻿function printsetup() {
    // 打印页面设置
    //alert("dfdf");
    wb.execwb(8, 1);
}

function printpreview() {
    // 打印页面预览    
    wb.execwb(7, 1);
}

function printit() {
    // 打印   
    wb.execwb(6, 6);
}
function WinClose() {
    // 关闭窗口
    parent.window.close();
}

function RepHSAutoComp(HSid, CountryCode) {
    // alert("jfkd");

    $("#"+HSid).flushCache().autocomplete(
            "/include/searchkeywords.aspx?oper=keywords&code=" + CountryCode + "&id=1&t=" + new Date().getTime(), {
                minChars: 0,
                formatItem: function(row) {
                    return row[0] + "|" + row[1];
                },
                formatResult: function(row) {
                    return row[0] + "|" + row[1];
                }
            });
}
function HSAutoComp(HSid,CountryCode) {
   // alert("jfkd");

    $("#uctest_" + HSid).flushCache().autocomplete(
            "/include/searchkeywords.aspx?oper=keywords&code=" + CountryCode+ "&id=1&t=" + new Date().getTime(), {
                minChars: 0,
                formatItem: function(row) {
                    return row[0] + "|" + row[1];
                },
                formatResult: function(row) {
                    return row[0] + "|" + row[1];
                }
            });
}