You will need to put in some simple javascript into the head of the home.tpl document to make this work but that would be:
Code:
{literal}
<script language="JavaScript" type="text/JavaScript">
function NameWindow() {
self.name = "mainwin";
}
</script>
{/literal}
And change the <body> statement to include
onLoad="NameWindow()"
hth