function joinCommunity(obj)
{
	document.frmCommunity.reqMode.value="join";
	document.frmCommunity.submit();
}
function unjoinCommunity(obj)
{
	document.frmCommunity.reqMode.value="unjoin";
	document.frmCommunity.submit();
}
function deleteCommunity(obj)
{
	document.delCommunity.reqMode.value="deleteCommunity";
	document.delCommunity.submit();
}
function _sendRequest()
{
	document.getElementById("frReqMsg").style.display='none';
	document.frmFriend.reqMsg.value=document.getElementsByName("inviteMsg").item(0).value;
	document.frmFriend.submit();	
}
function validateuserincommunity()
{
	var error=0;
	if(document.userincommunityform.communityusername.value=="")
	{
		document.getElementById("errorcommunitymsg").innerHTML = "* User is required.";
		document.userincommunityform.communityusername.focus()
		error =1;
		return false;
	}
	if(error==0)
	{
		document.userincommunityform.submit();
	}
}
