

var poll_103118 = "";
var results_103118 = "";

var pollElem_103118 = document.getElementById("pliner_poll_form_103118");
var resultsElem_103118 = document.getElementById("pliner_poll_results_103118");

poll_103118 += "<table align=\"center\" cellpadding=\"0\" cellspacing=\"0\" style=\"font-size: 12px; font-family: Calibri, Arial, sans-serif;\">";
poll_103118 += "<tr><td align=\"left\" id=\"pliner_poll_103118_container\">";
poll_103118 += "<div style=\"font-size: 14px; font-weight: bold;\">The death penalty:</div><br />";
poll_103118 += "<div align=\"center\">The voting on this poll has ended.</div>";
poll_103118 += "<br /><div align=\"center\"><a href=\"javascript:pliner_poll_103118_results();\" onclick=\"pliner_poll_103118_results();return false;\">View the Poll Results</a></div>";
poll_103118 += "</td></tr></table><br />";



results_103118 += "<div style=\"position: relative; background-image(http://www.pliner.net/apppoll2/images/loading.gif); background-position: center top; background-repeat: no-repeat;\">";
results_103118 += "<div style=\"position: absolute; top: 6px; right: 5px; z-index: 15; font-size: 11px;\">";
results_103118 += "<a href=\"javascript:\" onclick=\"resultsElem_103118.style.display = 'none';return false;\" style=\"color: #000000; text-decoration: none; font-family: Arial, Sans-Serif;\">";
results_103118 += "Close <img src=\"http://www.pliner.net/apppoll2/images/closemessage.gif\" width=\"10\" height=\"10\" align=\"absmiddle\" alt=\"Close Results\" border=\"0\" />";
results_103118 += "</a>";
results_103118 += "</div>";
results_103118 += "<iframe style=\"background-color: Transparent;\" height=\"300\" width=\"370\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" id=\"pliner_poll_frame_103118\"></iframe>";
results_103118 += "</div>";

pollElem_103118.innerHTML = poll_103118;
resultsElem_103118.innerHTML = results_103118;

resultsElem_103118.style.display = "none";
resultsElem_103118.style.position = "absolute";
resultsElem_103118.style.top = "0px";
resultsElem_103118.style.left = "0px";

function pliner_poll_103118_vote()
{
    var radioGroup = document.getElementsByName("pliner_poll_103118");
    var selectedValue = -1;

    for (var i=0; i < radioGroup.length; i++)
        if (radioGroup[i] != null && radioGroup[i].checked)
            selectedValue = radioGroup[i].value;
            
    if (selectedValue == -1) { alert("You have not made a selection yet!"); return; }

    pliner_poll_103118_results(selectedValue);
}

function pliner_poll_103118_results(answer)
{
    if (answer == null || answer == undefined || !answer) answer = -1;
    var addr = "http://www.pliner.net/apppoll2/results.aspx?p=1da988e&v=" + answer;
    document.getElementById("pliner_poll_frame_103118").src = addr;
    
    var cont = document.getElementById("pliner_poll_103118_container");
    resultsElem_103118.style.display = "block";
    resultsElem_103118.style.top = FindPosY_103118(cont) + "px";
    resultsElem_103118.style.left = FindPosX_103118(cont) + "px";
}

function pliner_poll_103118_select(elem)
{
    if (elem == null || !elem) return;
    for (var n=0; n < elem.childNodes.length; n++)
        if (elem.childNodes[n].nodeName.toLowerCase() == 'input') 
            if (elem.childNodes[n].type.toLowerCase() == 'radio')
                elem.childNodes[n].checked = true;
}

function FindPosX_103118(obj) {
	var curleft = 0;
	if(obj.offsetParent)
		while(1) {
			curleft += obj.offsetLeft;
			if(!obj.offsetParent) break;
			obj = obj.offsetParent; }
	else if(obj.x) curleft += obj.x;
	return curleft; }
function FindPosY_103118(obj) {
	var curtop = 0;
	if(obj.offsetParent)
		while(1) {
			curtop += obj.offsetTop;
			if(!obj.offsetParent) break;
			obj = obj.offsetParent; }
	else if(obj.y) curtop += obj.y;
	return curtop; }