title: how to check fancybox open or not
body: <p>I just want to check a textbox to open Fancybox.<br>
  If the textbox is empty then I want Fancybox to work else I just want to redirect another page. how can I do this.</p>
  
  <p>The below code I have my Fancybox whenever I click 'Inline' then the div open.</p>
  
  <pre><code>&lt;a class="fancybox" href="#inline1"&gt;Inline&lt;/a&gt;  
  &lt;div id="inline1" style="width:400px;display: none;"&gt;
      &lt;h3&gt;Etiam quis mi eu elit&lt;/h3&gt; 
  &lt;/div&gt;
  </code></pre>
  
  <p>but I have another button with its textbox and it search something in my web page.  </p>
  
  <pre><code>&lt;form action="/Isim/Arama" method="get"&gt;    
      &lt;input type="text" id="searchedPart" class="searchedName generalTextArea" name="searchedPart" value=""&gt; 
      &lt;input class="searchNameSearchButton" type="submit" value=""&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>now I want the following</p>
  
  <p>if searchedPart is empty<br>
   then show fancybox<br>
  else<br>
    do what it does currently  </p>