

// Copyright 2008 by Constant Contact Inc.,
var ConstantContactPoll_a07e2fbsnuafp017nhe = function() {
  var pollHtml = '<table width="300"><tr><td style="text-align: left"><div style="border: 1px solid #737373; background: #FFFFFF;" class="cc-poll-container" id="cc-poll-a07e2fbsnuafp017nhe"><div id="cc-poll-a07e2fbsnuafp017nhe-replace"><div style="  border-bottom: 1px solid #b7b7b7;   padding: 0.5em;   font-family: Arial;  font-size: 12pt;  color: #000000;">How does your organization plan to address its ERP software situation in 2009?</div><div style="  border-bottom: 1px solid #b7b7b7;   border-top: 1px solid #FFFFFF;   padding: 0.5em;   font-family: Arial;   font-size: 10pt;   color: #000000;"><input onclick="ConstantContactPoll_a07e2fbsnuafp017nhe.selectAnswer( this.value)" value="0" name="cc-poll-answer-option_a07e2fbsnuafp017nhe" type="radio"/>Begin or continue implementing a new system</div><div style="  border-bottom: 1px solid #b7b7b7;   border-top: 1px solid #FFFFFF;   padding: 0.5em;   font-family: Arial;   font-size: 10pt;   color: #000000;"><input onclick="ConstantContactPoll_a07e2fbsnuafp017nhe.selectAnswer( this.value)" value="1" name="cc-poll-answer-option_a07e2fbsnuafp017nhe" type="radio"/>Upgrade the current system</div><div style="  border-bottom: 1px solid #b7b7b7;   border-top: 1px solid #FFFFFF;   padding: 0.5em;   font-family: Arial;   font-size: 10pt;   color: #000000;"><input onclick="ConstantContactPoll_a07e2fbsnuafp017nhe.selectAnswer( this.value)" value="2" name="cc-poll-answer-option_a07e2fbsnuafp017nhe" type="radio"/>Keep the current system, but make improvements</div><div style="  border-bottom: 1px solid #b7b7b7;   border-top: 1px solid #FFFFFF;   padding: 0.5em;   font-family: Arial;   font-size: 10pt;   color: #000000;"><input onclick="ConstantContactPoll_a07e2fbsnuafp017nhe.selectAnswer( this.value)" value="3" name="cc-poll-answer-option_a07e2fbsnuafp017nhe" type="radio"/>Keep the current system unchanged</div><div style="  border-bottom: 1px solid #b7b7b7;   border-top: 1px solid #FFFFFF;   padding: 0.5em;   font-family: Arial;   font-size: 10pt;   color: #000000;"><input onclick="ConstantContactPoll_a07e2fbsnuafp017nhe.selectAnswer( this.value)" value="4" name="cc-poll-answer-option_a07e2fbsnuafp017nhe" type="radio"/>None of the above</div><div style="border-bottom: 1px solid #b7b7b7; border-top: 1px solid #FFFFFF; padding: 0.5em;"><input onclick="ConstantContactPoll_a07e2fbsnuafp017nhe.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?cc=ViraWidPOL">Online Surveys</a> by <a target="_blank" href="http://www.constantcontact.com/survey/index.jsp?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: #000000;">How does your organization plan to address its ERP software situation in 2009?</div><div style="  border-bottom: 1px solid #b7b7b7;   border-top: 1px solid #FFFFFF;   padding: 0.5em;   font-family: Arial;   font-size: 10pt;   color: #000000;">Begin or continue implementing a new system<div><img src="http://img.constantcontact.com/ui/images/spacer.gif" width="35px" height="20px;" border="0"  style="background-color: orange;" valign="bottom" />\n      35%\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: #000000;">Upgrade the current system<div><img src="http://img.constantcontact.com/ui/images/spacer.gif" width="15px" height="20px;" border="0"  style="background-color: orange;" valign="bottom" />\n      15%\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: #000000;">Keep the current system, but make improvements<div><img src="http://img.constantcontact.com/ui/images/spacer.gif" width="29px" height="20px;" border="0"  style="background-color: orange;" valign="bottom" />\n      29%\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: #000000;">Keep the current system unchanged<div><img src="http://img.constantcontact.com/ui/images/spacer.gif" width="9px" height="20px;" border="0"  style="background-color: orange;" valign="bottom" />\n      9%\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: #000000;">None of the above<div><img src="http://img.constantcontact.com/ui/images/spacer.gif" width="13px" height="20px;" border="0"  style="background-color: orange;" valign="bottom" />\n      13%\n    </div></div>';

  var instanceId = "a07e2fbsnuafp017nhe";
  var pollSubmitUrl = "http://survey.constantcontact.com/poll/a07e2fbsnuafp017nhe/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_a07e2fbsnuafp017nhe.showPoll();

