用两次这个语句
onclick="parent.frames['leftFrame'].location.href='other.asp';parent.frames['rightFrame'].location.href='other1.asp'";
onclick="parent.frames['leftFrame'].location.href='other.asp';parent.frames['rightFrame'].location.href='other1.asp'";
<script>
function openwindow(values1,values2)
{
parent.frames[main].location.href=values1;
parent.frames[top].location.href=values2;
}
</script>.....onclick=openwindow(1.asp,2.asp);