var _proid;
var _item;
var i_mark="";
var i_info="";
//获取关注
function set_cookie(proid,i_mark1,i_info1){
	url = "http://mobi.younet.com/_cookie.php?proid="+proid+"&ts=" + new Date().getTime();
	_proid = proid;
	i_mark = i_mark1;
	i_info = i_info1;
	send_request(url,callback_cookie);
}	

function get_click(proid){
	url = "http://mobi.younet.com/_get_count.php?proid="+proid+"&ts=" + new Date().getTime();
	send_request(url,callback_click);
}




/* 投票函数 */
function vote(proid,choose)
{
		url = "http://mobi.younet.com/_vote.php?act=vote&choose="+choose+"&proid="+proid+"&ts=" + new Date().getTime();
		_item = choose;
		send_request(url,callback_vote);
}

/* 投票显示函数 */
function vote_show(proid)
{

		url = "http://mobi.younet.com/_vote.php?act=show&proid="+proid+"&ts=" + new Date().getTime();
		send_request(url,callback_voteShow);
}

//处理文本格式信息的函数.
function callback_vote()	
{

	if(http_request.readyState == 4)
	{
		if (http_request.status == 200)
		{
			if(http_request.responseText){
				alert(http_request.responseText);
				//document.getElementById("vote"+_item).innerHTML=parseInt(document.getElementById("vote"+_item).innerHTML)+1;
				vote_show(_proid);
			}
		}
	}
}

//处理文本格式信息的函数.
function callback_voteShow()	
{

	if(http_request.readyState == 4)
	{
		if (http_request.status == 200)
		{
			if(http_request.responseText){
				document.getElementById("votelist").innerHTML="";
				document.getElementById("votelist").innerHTML=http_request.responseText;
							get_click(_proid);
			}
		}
	}
}

//处理文本格式信息的函数.
function callback_cookie()	
{

	if(http_request.readyState == 4)
	{
		if (http_request.status == 200)
		{
			//document.getElementById("gz").innerHTML="";
			//document.getElementById("gz").innerHTML=http_request.responseText;
			vote_show(_proid);
			//biz_show();
		}
	}
}
//处理文本格式信息的函数.
function callback_click()	
{

	if(http_request.readyState == 4)
	{
		if (http_request.status == 200)
		{

		}
	}
}

