function poll_grab(trgid, getstr) {

 

var xmlHttp;

try

  {

  // Firefox, Opera 8.0+, Safari

  xmlHttp=new XMLHttpRequest();

  }

catch (e)

  {

  // Internet Explorer

  try

    {

    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");

    }

  catch (e)

    {

    try

      {

      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");

      }

    catch (e)

      {

      alert("Your browser does not support AJAX!");

      return false;

      }

    }

  }

 

  xmlHttp.onreadystatechange=function()

    {

    if(xmlHttp.readyState==4 && trgid!='Nowhere')

      {

	target=document.getElementById(trgid);

    target.innerHTML=xmlHttp.responseText;

	working=0

      }

    }

  xmlHttp.open("GET", "http://orbmore.com/poll/poll.php" + getstr, true);

  xmlHttp.send(null);

  }

function poll() {

	checked=getCheckedValue(document.forms['form'].elements['choice'])

	poll_grab("pollspace", "?vote=1&choice="+checked)
	
}

function getCheckedValue(radioObj) {
	if(!radioObj)
		return "";
	var radioLength = radioObj.length;
	if(radioLength == undefined)
		if(radioObj.checked)
			return radioObj.value;
		else
			return "";
	for(var i = 0; i < radioLength; i++) {
		if(radioObj[i].checked) {
			return radioObj[i].value;
		}
	}
	return "";
}