Javascript / JQuery if Statement not working
<p>Purpose of the code shown is to add by time some reminder. the cases are for different days of the week  and in that days specific times.
Strange thing some statements are working most not, but i dont see what breaks the code:</p>

<pre><code>    function refreshTime() {
  var now = getTime();
  $('#date').html(now.day + ', ' + now.date + '. ' + now.month);
  $('#time').html("&lt;span class='hour'&gt;" + now.hour + "&lt;/span&gt;" + "&lt;span class='minute'&gt;" + now.minute + "&lt;/span&gt;" + "&lt;span class='second'&gt;" + now.second + "&lt;/span&gt;");
  if (now.day != "Sonntag" &amp;&amp; now.day != "Samstag")
    {
    if (now.hour == "9" &amp;&amp; now.minute &gt;= "50")
      {
      var left = "60" - now.minute;
      $('#gh').html("&lt;span class='gh_remind'&gt;Grosshandel einstellen in " + left + " Minuten!&lt;/span&gt;");
      }
    if (now.hour == '11' &amp;&amp; now.minute &gt;= '50')
      {
      var left = '60' - now.minute;
      $('#gh').html("&lt;span class='gh_remind'&gt;Grosshandel einstellen in " + left + " Minuten!&lt;/span&gt;");
      } 
    if (now.hour == '14' &amp;&amp; now.minute &gt;= '50')
      {
      var left = '60' - now.minute;
      $('#gh').html("&lt;span class='gh_remind'&gt;Grosshandel einstellen in " + left + " Minuten!&lt;/span&gt;");
      }
    if (now.hour == "17" &amp;&amp; now.minute &gt;= "50")
      {
      var left = "60" - now.minute;
      $('#gh').html("&lt;span class='gh_remind'&gt;Grosshandel einstellen in " + left + " Minuten!&lt;/span&gt;");
      }
     else
     {
     $('#gh').html("");
     }      
    }
  if (now.day == "Samstag")
    {
    if (now.hour == "9" &amp;&amp; now.minute &gt;= "50")
      {
      var left = "60" - now.minute;
      $('#gh').html("&lt;span class='gh_remind'&gt;Grosshandel einstellen in " + left + " Minuten!&lt;/span&gt;");
      }
    if (now.hour == "12" &amp;&amp; now.minute &gt;= "50")
      {
      var left = "60" - now.minute;
      $('#gh').html("&lt;span class='gh_remind'&gt;Grosshandel einstellen in " + left + " Minuten!&lt;/span&gt;");
      } 
    if (now.hour == "13" &amp;&amp; now.minute &gt;= "50")
      {
      var left = "60" - now.minute;
      $('#gh').html("&lt;span class='gh_remind'&gt;Grosshandel einstellen in " + left + " Minuten!&lt;/span&gt;");
      }     
    else
     {
     $('#gh').html("");
     }         
    }

}
</code></pre>

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