function DoDrugSearch(blah) {
var errors = '';
var tdrugName = blah.value;
var drugName = tdrugName.split(' ');
var goodwords = 0;
var totalwords = drugName.length;
for (var oo=0;oo<drugName.length;oo++) {
	if (drugName[oo].length > 2) { goodwords++; }
}

if (document.DrugSearch.AW[1].checked == true) { errors = 'Any word search: At least one search term to short, you must use 3 or more characters per word.'; }

if ((document.DrugSearch.AW[0].checked == true) && (goodwords < 1)) { errors = 'All words search: At least one search term must be 3 or more characters.'; }

if (drugName.length == 3) {
	if ((drugName[0] == 'Type') && (drugName[1] == 'Name') && (drugName[2] == 'Here')) { errors = 'You did not type anything to search for.'; }
}

if (errors) { alert(errors); }
else { 
document.DrugSearch.submit(); 
}

}


function kbEnter () {
    with( window.event )
        if(keyCode==13) { 
	DoDrugSearch();
	returnValue = false; 
	}
}

//function DoManuSearch() {

//var errors = '';

//if (document.ManuSearch.Manufacturer.selectedIndex == 0) { errors += 'You must select a Manufacturer.'; }

//if (errors) { alert(errors); }
//else { 
//document.ManuSearch.submit(); 
//}

//}