﻿function openWin(w, h, fileUrl) {
    var scrLeft = (screen.width - w) / 2;
    var scrTop = (screen.height - h) / 2;
    var param = 'top=' + scrTop + ',left=' + scrLeft + ',toolbar=0,location=0,status=0,menubar=0,resizable=1, scrollbars=0,width=' + w + ',height=' + h + ''
    window.open(fileUrl, "", param);
}
/** END */

function confirmDel() {
    return confirm("确实要删除该记录吗?")
}

function selectAll() {
    var o = event.srcElement;
    var oForm = o.form;
    for (var i = 0; i < oForm.elements.length; i++) {
        oForm.elements[i].checked = o.checked;
    }
}

function findNode(node, findTagName) {
    if (node == null) {
        node = node.parentNode;
    } else {
        if (node.tagName.toUpperCase() == findTagName) {
            return node;
        }
    }
    return null;
}

var home = "home";
var searchURL = "/" + home
searchURL += "/" + "SearchResult" + "/?kw=";
