function check_frame_page(querystr){ regexp_frame = /^(\/)?frame\.neo/; reg_act = /^(\/)?email_actions\.neo/; if((!regexp_frame.test(top.location.pathname))&&(!reg_act.test(top.location.pathname))){ top.location.href = "/frame.neo?startat="+querystr; } }