Preventing onclick-function to be active when in settimeout function
<p>Im creating a memory and I almost have it all done. My remaining problem is that while in the setTimeout function,</p>

<pre><code>setTimeout(function(){
    for(i = 0; i &lt; guesses.length; i++){
        if(clearedPairs[i] != i){
            var reset = document.getElementById(cardPosition[i]);
            reset.removeAttribute("style");
        }
    }
    score.innerHTML = parseInt(score.innerHTML,10) - 10;
    resetValues();
}, 800);
</code></pre>

<p>If a click occurs on another card, while its waiting to turn the two open cards back over, the player will receive additional minus point, and thats not whats supposed to happen. Can anyone help?</p>

<p>I can post more of the code if needed.</p>
