     var warning_check = document.getElementsByClassName("warning");     if(warning_check.length == 0) {             checkAll(); //another function call     } else {         window.location.reload();     } }