<script language="javascript">
var newwindow;
function poptastic(url)
{
newwindow=window.open(url,'name','height=400,width=200');
if (window.focus) {newwindow.focus()}
}
</script>
<input type="button" onclick="poptastic('http://www.google.com');" value="Test!" />