I have the following code
Whenever either of them happens it breaks the code and does nothing and causes all code that follows to not get executed. I tried commenting them out and as long as the one that will be executed is commented out everything after it works. Things that are placed before this section still work fine.
if( depth > 140 )
document.getElementById("divetimes").innerHTML = ('<p>There is no safe no decompression time for this depth.</p>');
document.getElementById("divetimes").innerHTML = ('<p>At that depth your no decompression limit is <em class = myclass2>' + nodetime + '</em> minutes. You need to make a saftey if your down at least <em class = myclass3>' + sstime + '</em> minutes.</p>' );