I have tried that, both variations (with ' and ") and I still get javasciprt's cryptic errors. Here is what I have:
$msg = "You have moved from ".$from." products page to ".$to.". \nIf you continue, you will loose the content of your cart.";
echo '<script language="javascript">';
echo 'var width="300", height="125";';
echo 'var left = (screen.width/2) - width/2;';
echo 'var top = (screen.height/2) - height/2;';
echo 'var styleStr = \'toolbar=no,location=no,status=no,menubar=no,scrollbar=no,resizable=no,width=\'+width+\',height=\'+height+\',left=\'+left+\',top=\'+top+\',screenX=\'+left+\',screenY=\'+top;';
echo 'window.open(\'msgbox.php?msg="'.$msg.'"&msg_type="builder"\',"msgWin",styleStr)';
echo '</script>';
Thanx.