if (nsped == ' abcdef' && status == 22) {
document.write(trak3);
}

http://javascript.html.it/guide/lezi...ratori-logici/

ciao