Forum Moderators: open
In JavaScript you don't have to explicitly declare variables like you do in most languages. The first time you use a new variable name, it is automatically declared. The variable type (either string or numeric) is implied by the first value assigned to the variable.
The code could have been written like this (which means exactly the same thing):
var swin = window.open.....etc
var swin = window.open.....etc
swin = window.open.....etc
var swin = window.open.....etc