var siteloc;
var winWidth;
var winHeight;
var winname;

function FinanceWin(siteloc,winWidth,winHeight,winname) {

// Set height and width
var NewWinHeight=winWidth;
var NewWinWidth=winHeight;

// Place the window
var NewWinPutX=150;
var NewWinPutY=50;

//Get what is below onto one line

TheNewWin = window.open(siteloc,winname,'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no'); 

//Get what is above onto one line

TheNewWin.resizeTo(NewWinHeight,NewWinWidth);
TheNewWin.moveTo(NewWinPutX,NewWinPutY);

}