function chg_profile(pr_id,profile_name,img_url,url_profile_name,deadflag)
{
	//alert(pr_id+" - "+profile_name +" - "+url_profile_name+" - "+img_url);
	//alert(document.getElementById("mainurl").href);
	//alert(deadflag);
if(deadflag==1)
	{
		document.getElementById("votedowndiv").style.display="none";
		document.getElementById("votedowndiv").style.visibility="hidden";	
		//document.getElementById("pichkaridiv").style.display="none";
		//document.getElementById("pichkaridiv").style.visibility="hidden";	
		//document.getElementById("tomatodiv").style.display="none";
		//document.getElementById("tomatodiv").style.visibility="hidden";
	}
else
	{ 
		document.getElementById("votedowndiv").style.display="block";
		document.getElementById("votedowndiv").style.visibility="visible";
		//document.getElementById("pichkaridiv").style.display="block";
		//document.getElementById("pichkaridiv").style.visibility="visible";	
		//document.getElementById("tomatodiv").style.display="block";
		//document.getElementById("tomatodiv").style.visibility="visible";
	}

	document.getElementById("p_image").src = img_url; 
	document.getElementById("p_name").innerHTML = profile_name; 
	document.getElementById("p_url").href='http://connect.in.com/'+url_profile_name+'/profile-'+pr_id+'.html';
	//document.getElementById("p_rose").href='http://connect.in.com/'+url_profile_name+'/give-a-rose-'+pr_id+'.html#celeb';
	//document.getElementById("p_tomato").href='http://connect.in.com/'+url_profile_name+'/throw-a-tomato-'+pr_id+'.html#celeb';
	//document.getElementById("p_applaud").href='http://connect.in.com/'+url_profile_name+'/applaud-'+pr_id+'.html#celeb';
	//document.getElementById("p_pichkari").href='http://connect.in.com/'+url_profile_name+'/splash-pichkari-'+pr_id+'.html#celeb';
	document.voteconnectform.pr_id.value=pr_id;	
	document.voteconnectform.url_pro_name.value=url_profile_name;	
}
function vote_connect(vote)
{
	document.voteconnectform.vote.value=vote;
	url_pnames=document.voteconnectform.url_pro_name.value;
	pr_id=document.voteconnectform.pr_id.value;
	document.voteconnectform.action = "http://connect.in.com/"+url_pnames+"/profile-"+pr_id+".html";
	document.voteconnectform.submit();		
	return false;
}

