I think you forget to close your { and }, and you should return to avoid calculating.
if (isNaN(numPrice)) {
alert("Sorry,you must enter a numeric value to place order");
return;
}
if (isNaN(taxP)) {
alert("Sorry, you must enter a numeric tax value to continue");
return;
}