permission denied to access property 'href'
if (top.frames["main"].location.href.indexOf("page.php") == -1)