javascript statement execution
<p>Can anyone point out what might be the mistake here in this javascript. The first statement executes just fine but when i add another statement that is to be executed simultaneously, it doesn't work.</p>

<pre><code>    echo '&lt;script language="JavaScript" type="text/javascript"&gt;
        //&lt;![CDATA[
      window.open(\'./index_pdf.php?'.$query_string.'\',\'Einlagerung_EV\',\'location=no,menubar=no,resizable=yes,scrollbars=yes,status=yes,toolbar=no\');
        //]]&gt;
    &lt;/script&gt;';
    echo'&lt;script language = "JavaScript" type="text/javascript"&gt;
        //&lt;![CDATA[
        window.open('./save.php?','location=no,menubar=no,resizable=yes,scrollbars=yes,status=yes');
        //]]&gt;
        &lt;/script&gt;';
</code></pre>
