var cv = document.NOMEFORM.NOMECAMPO.value;
if(!cv.match(/parola/)) {
alert ("il campo non contiene la parola chiave");
...

Ciao
Michele