PHP code to open new resized window
<p>I am not very well versed in PHP code, but I have an overall goal I hope someone can help me with. I have this code snippet from my site:</p>

<pre><code>$show = false;
if($this-&gt;_general['post_ci_linkedin_show'])
{ 
    $url = urlencode(get_permalink($post-&gt;ID));
    $title = urlencode($post-&gt;post_title);
    $source = urlencode(get_bloginfo('url'));

    $surl = $this-&gt;_general['post_ci_linkedin_url'];
    $surl = str_replace('[%url]', $url, $surl);
    $surl = str_replace('[%title]', $title, $surl);                
    $surl = str_replace('[%source]', $source, $surl);

    $out .= '&lt;a class="icon" href="'.$surl.'" rel="LinkedIn"&gt;&lt;img class="unitPng" src="'.get_bloginfo('template_url').'/img/icons/community/comm_LinkedIn.png" /&gt;&lt;/a&gt;'; 
    $show = true;
}
</code></pre>

<p>Which produces:</p>

<pre><code>src="http://www.websitename.com/subpage/mypage"
</code></pre>

<p>It produces other things obviously, like rel="blah" and such, but this is the part I want to tweak.</p>

<p>I want to change the PHP code snippet above so that the end result is:</p>

<pre><code>href="javascript:void window.open('http://www.websitename.com/subpage/mypage','', 'height=700,width=500');"
</code></pre>

<p>I am just not sure of which parts of this code to change to get this result, I have tried just pasting it around the <code>.$surl.</code> but it gave me an error on my whole page.</p>

<p>Thanks!</p>
