Amigo prueba asi....
Código PHP:
$open_attachment_window ="openwindowExternal('details_transport.php?Origin =".$valor[Origin]."&Operator_Type=".$valor[Operator_Type]."&Transport_Departure_Date=".$valor[Transport_Departure_Date]."','600','400','N','mac_os_x','add_attachment_to_s ale')";
$table .= "input('button','add_attachment_to_sale',$value='De tails',$css='',$js='onClick=". $open_attachment_window."')";