// JavaScript Document
function searchPage() {
  with (document.frmShopSearch) {
    if (txtSearch.value == "") {
      alert('Please enter a keyword');
    }
    else {
      window.location = "searchresults.asp?Keyword=" + txtSearch.value.replace(/ /g, " ");
    }
  }
}

function checkEnter(e) {

  if (e.keyCode == 13) {
    if (document.frmShopSearch.txtSearch.value != "") {
      window.location = "searchresults.asp?Keyword=" + document.frmShopSearch.txtSearch.value.replace(/ /g, " ");
    }
    else {
      alert('Please enter a keyword');
    }
    return false;
  }
  else {
    return true;
  }
}