function searchStore() {
    var searchText=document.getElementById("searchtext").value;
    for (var i=0;<blog.length; i++) {
        // See if the store contains the search text
        if (blog[i].body.toLowerCase().indexOf(searchText.toLowerCase()) !=-1) {
            alert("[" + (blog[i].date.getMonth() + 1) + "/" +
            blog[i].date.getDate() + "/" +blog[i].date.getFullYear() + "]" + blog[i].body);
        break;
        }
    }
    // If the search text wasn't found display a message
    if (i ==blog.length)
        alert("sorry, there are no entries that match your search.");
}
