Salve.. può andare:
codice:
<script>
function goto(object){
if (object == "forum") {location.href='http://foruminesistente';}
else if (object == "guestbook") {location.href='http://foruminesistente';}
}
</script>
codice:
Forum
?

Oppure, esiste il case of in JS? se sì, la sintassi com'è?
tnx a lot