> IF (agree == true) is it a typo? js is case sensitive. The correct usage should be if(agree==true) { ... } else { ... } The {} delimeters are absent as well. Cheers, Volkan.