﻿function gotoSearch() {
    var searchInput = document.getElementById("searchInput");
    if (searchInput != null) {
        location.href = "search.aspx?q=" + encodeURI(searchInput.value);
    }
}

function searchPress(event) {
    if (event.keyCode == 13) {
        gotoSearch();
        return false;
    }
}
