nested if statements in JavaScript

welcome to shbcf.ru