Cookie problem - cookie's not defined
<p>Guys, I'm having a trouble with a cookie.</p>

<p>The error: </p>

<blockquote>
  <p>"linhaOS" isn't defined.</p>
</blockquote>

<p>I wanna know if the cookie is null in the beggining of code.</p>

<pre><code>$("#pApresentacao").click(function _click(){    



if ($.cookie("exibir") == null)
{   
    if ($("#hdLinhaOsView").val() != ""){i=$("#hdLinhaOsView").val()}
    else {i=0}; 
    $.cookie("exibir",1);
    $.cookie("linhaOS",i);
    _apresentacao(i);
}
else
{

    if ($.cookie("linhaOS") == null){i=0}
    else{i=$.cookie(linhaOS)};

    _apresentacao(i);
};
</code></pre>

<p>The first cookie(exibir) is working fine. But the second is not! How is it possible? It is almost the same.</p>

<p>Could someone help me?</p>

<p>Thks folks.</p>
