function escapeHTML(str) {
return str.replace(/&/g, "&").replace(/"/g, """).replace(//g, ">"); // ")
}
function printQuestions() {
for (var i = 0; i < questions.length; ++i) {
var q = questions[i];
var q_num = i + 1;
document.write("Q. " + q_num + " " +
escapeHTML(q['question']) +
"
");
document.write("
"); document.write(""); document.write("
"); } function printResultArea() { document.write(""); } function startForm() { document.write("