function vetAnswers99() { var yes = 0; var no = 0; for (var i=1;i<2;i++) { if (eval("document.xlaapmform99.answer" + i + ".value") !='') { yes++; } } if (yes == 1) { return true; } else { alert('Please answer all the questions before submitting'); return false; } } function xlaapmsubmit99(){ // Validate data if (vetAnswers99()){ xlaapm2 = window.open('','xlaapm2','toolbar=0,location=0,status=1,menubar=1,scrollbars=1,resizable=1,width=500,height=350'); document.xlaapmform99.submit(); xlaapm2.focus(); location.href = location.href; } } document.write('