Hi Guys

The Javascript code below gives an error when checking in Firefox Javascript console

Code:
<SCRIPT language=JavaScript>
<!-- Begin
function expandingWindow(website) {
var windowprops='width=100,height=100,scrollbars=yes,status=0,resizable=0'
var heightspeed = 10; // vertical scrolling speed (higher = slower)
var widthspeed = 10;  // horizontal scrolling speed (higher = slower)
var leftdist = 10;    // distance to left edge of window
var topdist = 10;     // distance to top edge of window

if (window.resizeTo&&navigator.userAgent.indexOf("Opera")==-1) {
var winwidth = 800;
var winheight = 600;
var sizer = new Object(                                                               );
for (sizeheight = 1; sizeheight < winheight; sizeheight += heightspeed)
sizer.resizeTo("1", sizeheight);
for (sizewidth = 1; sizewidth < winwidth; sizewidth += widthspeed)
sizer.resizeTo(sizewidth, sizeheight);
sizer.location = website;
}
else
new Object(                   );
}
//  End -->
</SCRIPT>
The error is that sizer.resizeTo is not a function.The highlighted line above

Please help
Niva