<input type="text" name="q" id="q" size="15" onkeyup="loadXMLDoc('livesearch_results.php?q='+this.value)" style="width:250px; " />
would become
<input type="text" name="q" id="q" size="15" onkeyup="buildParamList(this);" style="width:250px; " />
Code:
function buildParamList(obj)
{
var url = 'livesearch_results.php?q=' + obj.value;
var db = "&database=' + document.getElementById('database').value;
loadXMLDoc(url)
}
You need to ad the id tag to the database select control.
This is just a general idea of how you could do it, hope it helps.