var a=document.getElementById("criForm");
a.action='itemselectInfo.action';
var tg = a.action.split('/')[a.action.split('/').length-2];
a.target = tg;
alert(tg);
a.submit();
window.close();
}
</script>
//这是我的子页面的js
function openNewWin1(){
var reVal =window.showModalDialog("chaxun.jsp",'dialogHeight:480px;dialogWidth:750px');
}//这是打开窗口的js,父页面jsp