Javascript function pb

Hello,
Yes one more **** pop up threat…
Anyway, here’s my pb: I’m using that function in my html:


<SCRIPT LANGUAGE="JavaScript">

function Launch(page , myheight, mywidth) {
OpenWin = this.open(page, "CtrlWindow", "toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no,width=mywidth,height=myheight");
}
</SCRIPT>

And that on my flash button:


on (release) {
	getURL("javascript:Launch('somepage.html' , '400' , '300')");
}

But it doesn’t seem to care about myheight and mywidth… it open a 100*100 pop up it seems… Now if i tweak the function to:


function Launch(page) {
OpenWin = this.open(page, "CtrlWindow", "toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no,width=400,height=300");
}

it works…
so why can’t i pass thoses variables in my JS function? what am i doing wrong??

TiA :slight_smile: