function showEmail(link,regId,bPrivate)
{
	if(bPrivate)	window.location=link+'&RegisterBookItemId='+regId+'&op=tributePrivateCondolenceViewShowEmail';
	else 		window.location=link+'&RegisterBookItemId='+regId+'&op=tributeCondolenceViewShowEmail';
}

function hideEmail(link,regId, bPrivate)
{
	if (confirm("Before you decide to hide your email please consider that displaying\nyour email address will allow friends and family of whom you may have\nlost contact with to contact you.\n\nYour email address will not be distributed to anyone except\nthose who are viewing this condolence page.\n\nWith this in mind, are you sure you want to hide your email address?"))
	{
		if(bPrivate) 	window.location=link+'&RegisterBookItemId='+regId+'&op=tributePrivateCondolenceViewHideEmail';
		else		window.location=link+'&RegisterBookItemId='+regId+'&op=tributeCondolenceViewHideEmail';
	}
}


function showCondolence(link,regId,bPrivate)
{
	if(bPrivate)	window.location=link+'&RegisterBookItemId='+regId+'&op=tributePrivateCondolenceViewShow';
	else		window.location=link+'&RegisterBookItemId='+regId+'&op=tributeCondolenceViewShow';
}


function hideCondolence(link,regId, bPrivate)
{
	if (confirm("Do you wish to hide this condolence so that only the family will receive it?"))
	{
		if(bPrivate)	window.location=link+'&RegisterBookItemId='+regId+'&op=tributePrivateCondolenceViewHide';
		else 		window.location=link+'&RegisterBookItemId='+regId+'&op=tributeCondolenceViewHide';
	}
}


function removeCondolence(link,regId, bPrivate)
{
	if (confirm("Are you sure you want to remove this condolence?"))
	{
		if(bPrivate)	window.location=link+'&RegisterBookItemId='+regId+'&op=tributePrivateCondolenceViewRemove';
		else 		window.location=link+'&RegisterBookItemId='+regId+'&op=tributeCondolenceViewRemove';
	}
}

function removeDonation(link,regId, bPrivate)
{
	if (confirm("Are you sure you want to remove this donation?"))
	{
		if(bPrivate)	window.location=link+'&RegisterBookItemId='+regId+'&op=tributePrivateCondolenceViewRemoveDonation';
		else		window.location=link+'&RegisterBookItemId='+regId+'&op=tributeCondolenceViewRemoveDonation';
	}
}


function condolenceCard(link,regId)
{
	javascript:open(link+'&RegisterBookItemId='+regId+'&op=tributeCondolenceCard', 'GoogleMaps', 'alwaysRaised=1,dependent=1,directories=0,width=739,height=500,hotkeys=0,menubar=0,resizable=0,location=0,scrollbars=0,status=0,titlebar=1,toolbar=0,left='+parseInt((screen.availWidth/2)-(739/2))+',top='+parseInt((screen.availHeight/2)-(500/2))).focus();
	
}

function removeDonation(link,donId)
{
	if (confirm("Are you sure you want to remove this donation?"))
	{
		window.location=link+'&DonationId='+donId+'&op=tributeCondolenceViewRemove';
	}
}

