﻿function DoEmployeeSearch(tbBoxId, url) {

    var tbBox = document.getElementById(tbBoxId);
    if (url.indexOf("?") != -1) {
        parameters = '&eq=' + tbBox.value;
    }
    else {
        parameters = '?eq=' + tbBox.value;
    }
    var searchUrl = url + parameters;
    trackSearch(tbBox.value);
    window.location = encodeURI(searchUrl);
    return false;
}
