salve, il browser mi dice che è sbagliata la sintassi in
if (str[j]==s) {trovato=true

codice:
        str=p.split("#")
	trovato=false;
	if (i>1){
	for (var j=0;j<str.length;j++)
	{
		if (str[j]==s) {trovato=true;)
	}
	}
cosa c'è di sbagliato?