function setVotePht(obj,vt)
{
	var maxvt = 5;
	var minvt = 0;

	if ( vt>=minvt && vt<=maxvt )
	{
		var j=minvt;
		while(j<vt)
		{
			obj.childNodes[j].src = 'imgs/star_vote_in.gif';
			j++;
		}
		while(j<maxvt)
		{
			obj.childNodes[j].src = 'imgs/star_vote_out.gif';
			j++;
		}
	}
	else
	{
		for ( j=minvt ; j<maxvt ; j++ )
		{
			obj.childNodes[j].src = 'imgs/star_vote_out.gif';
		}
	}
}

incvt = 0;
function updateVotPhtDiv(obj,cid)
{
	var url = './funajax.php?f=fotornd&act=getvotestars2byid&id='+cid;

	var sts = getWithAjaxPost2(url,null);

	if ( sts != "" )
	{
		bobj = obj.parentNode.parentNode;
		obj.parentNode.parentNode.innerHTML = sts;

		prepare_effect_srcphtlidiv_stars(bobj);
	}
}

function addVotePht(cid, vt)
{
	var url = './funajax.php?f=fotornd&act=votephotobyid&id='+cid+'&vt='+vt;

	var sts = getWithAjaxPost2(url,null);
}

function addVotePht1(obj, cid, vt)
{
	addVotePht(cid, vt);

	updateVotPhtDiv(obj,cid);
}

function delVotePht(cid)
{
	var url = './funajax.php?f=fotornd&act=delvotebyidip&id='+cid;

	var sts = getWithAjaxPost2(url,null);
}

function delVotePht1(obj, cid)
{
	delVotePht(cid);

	updateVotPhtDiv(obj,cid);
}