window.openをしているページはtest.htmlじゃないのかよ?
formとframesetを両方同じページに記述するのはそりゃ無茶苦茶だぞ。