

// Copyright 2008 by Constant Contact Inc.,
var ConstantContactPoll_a07e2jfjm4efwl37jrw = function() {
  var pollHtml = '<table width="300"><tr><td style="text-align: left"><div style="border: 1px solid #737373; background: #66FF33;" class="cc-poll-container" id="cc-poll-a07e2jfjm4efwl37jrw"><div id="cc-poll-a07e2jfjm4efwl37jrw-replace"><div style="  border-bottom: 1px solid #b7b7b7;   padding: 0.5em;   font-family: Arial;  font-size: 12pt;  color: #0099FF;">What are Your Biggest Weight loss Struggles?</div><div style="  border-bottom: 1px solid #b7b7b7;   border-top: 1px solid #FFFFFF;   padding: 0.5em;   font-family: Arial;   font-size: 10pt;   color: #3333FF;"><input onclick="ConstantContactPoll_a07e2jfjm4efwl37jrw.selectAnswer( this.value)" value="0" name="cc-poll-answer-option_a07e2jfjm4efwl37jrw" type="radio"/>Nutrition Alone</div><div style="  border-bottom: 1px solid #b7b7b7;   border-top: 1px solid #FFFFFF;   padding: 0.5em;   font-family: Arial;   font-size: 10pt;   color: #3333FF;"><input onclick="ConstantContactPoll_a07e2jfjm4efwl37jrw.selectAnswer( this.value)" value="1" name="cc-poll-answer-option_a07e2jfjm4efwl37jrw" type="radio"/>Nutrition and Exercise Combination</div><div style="  border-bottom: 1px solid #b7b7b7;   border-top: 1px solid #FFFFFF;   padding: 0.5em;   font-family: Arial;   font-size: 10pt;   color: #3333FF;"><input onclick="ConstantContactPoll_a07e2jfjm4efwl37jrw.selectAnswer( this.value)" value="2" name="cc-poll-answer-option_a07e2jfjm4efwl37jrw" type="radio"/>Exercise Alone</div><div style="  border-bottom: 1px solid #b7b7b7;   border-top: 1px solid #FFFFFF;   padding: 0.5em;   font-family: Arial;   font-size: 10pt;   color: #3333FF;"><input onclick="ConstantContactPoll_a07e2jfjm4efwl37jrw.selectAnswer( this.value)" value="3" name="cc-poll-answer-option_a07e2jfjm4efwl37jrw" type="radio"/>I do not know what is right for me individually</div><div style="border-bottom: 1px solid #b7b7b7; border-top: 1px solid #FFFFFF; padding: 0.5em;"><input onclick="ConstantContactPoll_a07e2jfjm4efwl37jrw.submit()" style="  font-family: Arial;  font-size: 12pt;  color: white;  background-color: #FF8413;" value="Vote" name="vote" type="button"/></div></div><div style="border-top: 1px solid #FFFFFF; padding: 0.3em; background-color: #CCCCCC; color: #666666; font-family: Arial; text-align: right; font-size: 8pt;"><a target="_blank" style="text-decoration: none; color: #666666;" href="http://www.constantcontact.com/survey/index.jsp?pn=bgconsulting&cc=ViraWidPOL">Online Surveys</a> by <a target="_blank" href="http://www.constantcontact.com/survey/index.jsp?pn=bgconsulting&cc=ViraWidPOL"><img src="http://img.constantcontact.com/ui/images1/cc_logo_tiny.gif" width="61" height="22" border="0"  /></a></div></div></td></tr></table>';
  var pollResultsHtml = '<div style="  border-bottom: 1px solid #b7b7b7;   padding: 0.5em;   font-family: Arial;  font-size: 12pt;  color: #0099FF;">What are Your Biggest Weight loss Struggles?</div><div style="  border-bottom: 1px solid #b7b7b7;   border-top: 1px solid #FFFFFF;   padding: 0.5em;   font-family: Arial;   font-size: 10pt;   color: #3333FF;">Nutrition Alone<div><img src="http://img.constantcontact.com/ui/images/spacer.gif" width="100px" height="20px;" border="0"  style="background-color: orange;" valign="bottom" />\n      100%\n    </div></div><div style="  border-bottom: 1px solid #b7b7b7;   border-top: 1px solid #FFFFFF;   padding: 0.5em;   font-family: Arial;   font-size: 10pt;   color: #3333FF;">Nutrition and Exercise Combination<div><img src="http://img.constantcontact.com/ui/images/spacer.gif" width="0px" height="20px;" border="0"  style="background-color: orange;" valign="bottom" />\n      0%\n    </div></div><div style="  border-bottom: 1px solid #b7b7b7;   border-top: 1px solid #FFFFFF;   padding: 0.5em;   font-family: Arial;   font-size: 10pt;   color: #3333FF;">Exercise Alone<div><img src="http://img.constantcontact.com/ui/images/spacer.gif" width="0px" height="20px;" border="0"  style="background-color: orange;" valign="bottom" />\n      0%\n    </div></div><div style="  border-bottom: 1px solid #b7b7b7;   border-top: 1px solid #FFFFFF;   padding: 0.5em;   font-family: Arial;   font-size: 10pt;   color: #3333FF;">I do not know what is right for me individually<div><img src="http://img.constantcontact.com/ui/images/spacer.gif" width="0px" height="20px;" border="0"  style="background-color: orange;" valign="bottom" />\n      0%\n    </div></div>';

  var instanceId = "a07e2jfjm4efwl37jrw";
  var pollSubmitUrl = "http://survey.constantcontact.com/poll/a07e2jfjm4efwl37jrw/vote.js";
  var selectedOption = -1;

  function doSubmit() {
    var scriptElm = document.createElement("script");
    scriptElm.type = "text/javascript";
    if (pollSubmitUrl.indexOf('?') == -1) {
      pollSubmitUrl += '?';
    }
    scriptElm.src = pollSubmitUrl + "&selectedOption=" + selectedOption + "&instanceId=" + instanceId;

    document.getElementsByTagName("body").item(0).appendChild( scriptElm);
  }

  return {
      showPoll: function() {
        document.write( pollHtml);
      },

      submit: function() {
        if (selectedOption != -1) {
          doSubmit();
        } else {
          this.showResults( pollResultsHtml);
        }
      },

      showResults: function( html) {
        document.getElementById("cc-poll-" + instanceId + "-replace").innerHTML = html;
      },

      selectAnswer: function(i) {
        selectedOption = i;
      }
  }
}();

ConstantContactPoll_a07e2jfjm4efwl37jrw.showPoll();

