I have a problem updating a page with info specific to an order. I have a confirm as such:

<label onClick="if(confirm('Are you sure you wish to Refund this payment?')){refundCM('<?php echo $OrderId; ?>','<?php echo $row_rsPayments[PaymentId]; ?>'); window.location='orderview.php?OrderId=<?php echo $OrderId; ?>';}" style="color:#0000ff" onMouseOver="this.style.color='#ff0000';this.style.textDecoration='underline';" onMouseOut="this.style.color='#0000ff';this.style.textDecoration='';"><?php echo $row_rsPayments['AmtUnapplied']; ?></label><?php } else { echo $row_rsPayments['AmtUnapplied']; }?>
notice I am trying to refresh the current page after running the function refundCM - but this doesn't seem to work. If I can't put a php variable in the javascript function - how can I refresh the current page?