togli i doppi apici

if (document.f.nome.value.match(/\s+/)){...}

ciao