<script>
function issubmit(){
document.frm.action="a.asp"
document.frm.target="one"
document.frm.submit()
document.frm.action="b.asp"
document.frm.target="two"
document.frm.submit()
}
</script>
<form name="frm" method="post">
<input type="button" name="sub" value="submit" onclick="issubmit()">
</form>