I have an easy solution and requires you to determine the width and height in the link, please try (It works with most browsers):
<a href='#' onClick=" document.getElementById('myform').src='t2.htm';document.getElementById('myform').width='500px'; document.getElementById('myform').height='400px'; return false">500x400</a>