/*
* @File		 	communities.js
* @Author	 	Sudhir
* @Created	 	13-Feb-2009
* @Description  js file for members communities
*/				


// function for join a community
function fnSignUpNow(intCID,reUrl)
{	
	var comID = intCID;
	window.location.href=reUrl+'registration';
}

// function for join a community
function fnJoinCommunities(intCID,reUrl)
{	
	document.frmListCommunity.commuID.value = intCID;
	document.frmListCommunity.task.value = 'joincommu';
	document.frmListCommunity.submit();
}


// function for unjoin to a community
function fnRemoveMeCommunities(intCID,reUrl)
{	
	document.frmListCommunity.commuID.value = intCID;
	document.frmListCommunity.task.value = 'unjoincommu';
	document.frmListCommunity.submit();
}

// function for open send to friend form 
function fnSendtoFriend(intCID,reUrl) 
{	
	window.location.href=reUrl+'community-sendfriendform/'+intCID;
}


//function to redirect to community profile
function fnRedirect(intCommunityID,reUrl)
{
	window.document.location=intCommunityID;
	
}//end function


//function to redirect to blog page
function fnRedirectBlog(intCommunityID,reUrl)
{
	window.location.href=intCommunityID;
	
}//end fucntion


//function to redirect to blog comments page
function fnRedirectBlogComments(intTID,reUrl)
{
	window.location.href=intTID;
	
}//end fucntion


