how can i fix this Javascript with to document write on multiple location.href.indexOf
<p>how can i fix this JavaScript with to document write on multiple <code>location.href.indexOf</code></p>

<pre><code>if (location.href.indexOf( "/smispage""/tpfpage""/client_images_new""/client_images_list" ) &gt; -1) {
    document.write( '&lt;base target="_blank" /&gt;' );
}
</code></pre>

<p>It only seems to work on the <strong>smispage</strong> page regardless of how I lay out the list so:</p>

<pre><code>"x","y" or "x";"y" or "x""y" or "x, y" or "x: y" or  "x,y" or "x;y"
</code></pre>
