function thesearch(){

var fullsearch = "*";
var typesearch ="";
var speedsearch ="";
var look=document.theform;
var newtype = look.thetype.options[look.thetype.selectedIndex].value
var newspeed = look.thespeed.options[look.thespeed.selectedIndex].value

if(newtype !=""){typesearch = "(" + newtype + ")"}

if(newspeed !=""){speedsearch = "(" + newspeed + ")"}

if(newtype !="" && newspeed !=""){fullsearch = typesearch + "and" + speedsearch}
else {
fullsearch =  typesearch + speedsearch
}

look.textsearch.value = fullsearch;

}
 
