﻿/*****************************************************************************
  Used by accordion quickref->kidshealth tab->search function

  This is here because the ampersand embedded in the window.location link
  isn't being handled properly by Firefox or Chrome.  IE works, go figure.
  Even when enclosed with CDATA, it is still being changed to &amp; which
  is being barfed upon by the browser.
*****************************************************************************/
function searchKeyUp(e) {
    if (e.which || e.keyCode) {
        if ((e.which == 13) || (e.keyCode == 13)) {
            document.getElementById('searchKHSubmit').click();
            return false;
        }
    }
    else {
        return true;
    }
}

function doKHSearch() {
    window.location = '/Brenner/Search/Results.aspx?st=' + document.getElementById('KHSearch').value + '&cl=brenner_kidshealth';
    return false;
}

