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