Attenzione che c'e` una istruzione proprietaria.

In JS standard si scrive:

window.location.href = indirizzo;

Le altre istruzion sono OK, anche se si potrebbe scrivere piu` compatto:
codice:
var s_width=screen.width;
var s_height=screen.height;
var indirizzo = "centrale.asp?" + s_width + "x" + s_height;

window.location.href = indirizzo;