after you call window.open(), the object model in the new window might not be ready yet, try something like
<script>
var wina=null;function open_window(bname, url, village, aname)
{  wina=window.open(url, bname);
  setTimeout("testRun('"+village+"','"+aname+"')",1000); //try in 1 second
}function testRun(village, aname)
{
  if (wina == null)
return;
  if (wina.document.readyState == "complete")
  {
        var winaBody=wina.document.body;
        winaBody.innerHTML=village+aname;
  }
  else
   setTimeout("testRun('"+village+"','"+aname+"')",1000); //try again in 1 second
}
</script>
<a href="javascript:void(open_window('win', 'about:blank','abc','def'))">按此查看</a>