I'm trying to create a search box that searches across an entire coldfusion site and shows the search results. I've posted my HTML and JS code so far. I'm not that knowledgeable about search or coldfusion, so any help will be greatly appreciated.

```
<script type="text/javascript">
function submitSearch() {
var q = document.getElementById('q');
if (q.value.length == 0) {
    alert('Please enter a search word');
    }
else {
    var frmSearch = document.getElementById('frmSearch');
    }
}
</script>

    <div id="header-search">
    <form action="" method="post" id="frmSearch">
    <input type="text" name="q" id="q" value="Search">
    <input src="images/mag.png" id="searchsubmit" value="Search" class="btn" type="Button" onClick="submitSearch()" />
    </form>
    </div>

```