var pollOptionNum = 0; var pollOptionId = ', $context['last_choice_id'], '; function addPollOption() { if (pollOptionNum == 0) { for (var i = 0; i < document.forms.postmodify.elements.length; i++) if (document.forms.postmodify.elements[i].id.substr(0, 8) == "options-") pollOptionNum++; } pollOptionNum++ pollOptionId++ setOuterHTML(document.getElementById("pollMoreOptions"), \'