<!--

var curtable = 'diggarea';
var lasttable = 'diggarea';

function resetTabs(t)
{
	var alltable = 'diggarea,memberarea,feedbackarea';
	var tbs  = alltable.split(',');
	for(var i=0;i<tbs.length;i++)
	{
	    if(tbs[i]==curtable) continue;
	    $DE(tbs[i]).style.display = 'none';
	    $DE(tbs[i]+'_t').className = 'bbr';
  }
}

function exchange(aid)
{
	if(curtable==aid) return ;
	lasttable = curtable;
	curtable = aid;
	$DE(aid).style.display = 'block';
	$DE(aid+'_t').className = 'bbr1';
	resetTabs(0);
}

function CheckLogin(){
  var taget_obj = document.getElementById('_userlogin');
  myajax = new DedeAjax(taget_obj,false,false,'','','');
  myajax.SendGet2("member/ajax_loginsta.php");
  DedeXHTTP = null;
}

-->
 i<$name('voteItem'+ formID).length; i++){
		if ($name('voteItem'+ formID)[i].checked){
			isSel = true;
		}
	}
	if (isSel==false){
		alert('请先选择你要投票的选项');return false;
	}

	AjaxPostDeal("voteForm"+ formID);
	return false;
}

// 投票结果
function ReadVoteResult(formID){
	var ajax=new AJAXRequest();
	ajax.encode = function(str) {
		return encodeURI(str);
	}

	ajax.get(
		"deal.asp?mudi=voteResult&dataID="+ formID,
		// 回调函数，注意，是回调函数名，不要带括号
		function(obj) {
			if (obj.responseText.length<50){
				eval(obj.responseText);
			}else{
				document.getElementById('voteResultBox'+ formID).innerHTML = obj.responseText;
				$id('voteResultBox'+ formID).style.display="";
				$id('voteBox'+ formID).style.display="none";
			}
		}
	);
	return false;

}

// 关闭投票结果
function CloseVoteResult(formID){
	$id('voteResultBox'+ formID).style.display="none";
	$id('voteBox'+ formID).style.display="";

}


