Actually you can do many things with php look at this code :
echo '<td width=40 align=center style="font-size :12pt" bgcolor=#d0d0d0><a class=task title="Click here to see the details of this call" href=# onclick=window.open("browsecall.php?wcall=' . $row_array[$j] .'","details","toolbar=0,menubar=0,height=500,width=700,scrollbars=yes")'.'><b><i>'.$row_array[$j].'</i></b></a></td>';
What it does is open a new window in the same window were you are , just try to create a test environment using this code to see how it works.....say replace browsecall.php with your own code... and so on.....
good luck...