﻿
function SearchProduct(e, txtsearchid) {
    if (e == null || e.keyCode == 13) {
        var bt = document.getElementById(txtsearchid);
        window.location = "/HelpSearch.aspx?srch=" + bt.value;
        return false;
    }
}


// Open child window
function openChild(filepath, height, width) {
    var x, y;
    x = (self.screen.availHeight - height) / 2;
    y = (self.screen.availWidth - width) / 2;

    var winAtts = 'width=' + width + ' , height=' + height + ', toolbar=no, scrollbars=yes, directories=no, left=' + y + ',top=' + x + ' ';
    var chidPopUp = window.open(filepath, null, winAtts);

    if (chidPopUp != null) {
        chidPopUp.focus();
    }
}