// JavaScript Document

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function get(theForm,div) {
	var radioSelected = false;
	var getstr = "";
	for (i=0; i<theForm.results.length; i++)
	{
		if (theForm.results[i].checked)
		{
		getstr += theForm.results[i].name + "=" + theForm.results[i].value+"&"+theForm.chid[i].name + "=" + theForm.chid[i].value + "&id=" +theForm.meta_pollID.value;
		checkedValue = theForm.results[i].value;
		checkedValueChild = theForm.chid[i].value;
		radioSelected = true;
		}
	}
	if (!radioSelected)
	{
		alert("Та өөрийн сонголтоо хийнэ vv.");
		return (false);
	}
	else
	{
		ajaxpage('modules/mod_poll/get.php?option=poll_result&div='+div+'&'+getstr+'', ''+div+'');
		return (false);
	}
}
function res(id,div) {
	ajaxpage('modules/mod_poll/get.php?option=poll_result&div='+div+'&id='+id+'',''+div+'');
	return (false)
}

