﻿function searchKeyword() {
    if (document.getElementById("keyword").value == "") {
        alert("请输入关键词");
        return;
    }
    window.open("search.aspx?type=search&typeId=" + document.getElementById("category").value + "&keyWords=" + encodeURIComponent(document.getElementById("keyword").value) + "", "_self", "");
    }


function ReimgSize() {
    for (i = 0; i < document.images.length; i++) {
        if (document.images[i].width > 650) {
            document.images[i].width = 650
        }
    }
}
function ShowIframe(url,title,pams,wth,hgh) {
    var pop = new Popup({ contentType: 1, scrollType: 'yes', isReloadOnClose: false, width: wth, height: hgh });
    pop.setContent("contentUrl", url);
    pop.setContent("title", title);
    pop.build();
    pop.show();
}
function ShowConfirm(title,context,callBackFun,pamId,pamInfo,pamObj) {
    var pop = new Popup({ contentType: 3, isReloadOnClose: true, width: 340, height: 80 });
    pop.setContent("title", "confirm对话框示例");
    pop.setContent("confirmCon", "confirm对话框的内容");
    pop.setContent("callBack", ShowCallBack);
    pop.setContent("parameter", { id: pamId, str: pamInfo, obj: pamObj });
    pop.build();
    pop.show();
}
function ShowAlert(title,context,wth,hgh) {
    var pop = new Popup({ contentType: 4, isReloadOnClose: false, width: wth, height: hgh });
    pop.setContent("title", title);
    pop.setContent("alertCon", context);
    pop.build();
    pop.show();
}

function ShowCallBack(para) {
    var o_pop = para["obj"];
    var obj = document.getElementById(para["id"]);
    o_pop.close();
    obj.innerHTML = para["str"];
}


function submitOrderNum() {
    var orderNum = document.getElementById("orderNum").value;
    window.open("orderShow.aspx?orderNum=" + orderNum , "_blank", "");
    
}





