change href with jquery
<p>I need to change href tag with jquery, now i've got this.</p>

<pre><code>$(document).ready(function () {
    var hScreen = $(window).height();
    var lScreen = $(window).width();

    if(hScreen &lt; 800){

    }
});
</code></pre>

<p>now i want to see if hScreen is less than 800 my href will be:</p>

<pre><code>&lt;a href="javascript:" onClick="window.open('v2/main.html','longu','width='+screen.availWidth,'height='+screen.availHeight,scrollbars=1); return false;" &gt;
</code></pre>

<p>else if hScreen is more i must see this:</p>

<pre><code>&lt;a href="main.htm"&gt;
</code></pre>

<p>thx for your help!!</p>
