function openWincc(url)
{
var j=window.open(url,"jj","left=20, top=20, width=600,height=584,scrollbars=1")
j.focus();
}
function openWinLogo(url)
{
var j=window.open(url,"jj","left=20, top=20, width=600,height=254,scrollbars=1")
j.focus();
}
function openWinBanner(url)
{
var j=window.open(url,"jj","left=20, top=20, width=763,height=385,scrollbars=1")
j.focus();
}
function show(layer_ref) { 
    var element = document.getElementById(layer_ref);
	element.style.display = "block";
}

function hide(layer_ref) { 
    var element = document.getElementById(layer_ref);
    element.style.display = "none";
}

function changeTab(evt, foLnk, fiTab)
			{
				hide('dv01');
				hide('dv02');
				hide('dv03');
				hide('dv04');
				show('dv0' + fiTab);
				
}
function showObjective(fsDivID)
{
	
    hideAll();
    document.getElementById(fsDivID).style.display='block';
}

function hideAll()
{
	if(document.getElementById('wink'))
    	document.getElementById('wink').style.display='none';
	if(document.getElementById('setting'))
    	document.getElementById('setting').style.display='none';
}

function hideObjective()
{
    hideAll();
}

function confirmMsgDelete()
{
	if(confirm('Are you sure you want to delete this mail?'))
	{
		alert('Your mail has been deleted successfully.');
		//window.location='mail-my-inbox.php';	
		location.reload();
	}
	else
	{
		return false();
	}
}

function confirmMsgBlock()
{
	if(confirm('Are you sure you want to block this user?'))
	{
		alert('User has been blocked successfully.');
		//window.location='mail-my-inbox.php';	
		location.reload();
	}
	else
	{
		return false();
	}
}

function confirmPriorMsg()
{
	if(confirm('Are you sure you want to set this email as prior email?'))
	{
		alert('Prior Email has been set successfully.');
		//window.location='mail-my-inbox.php';	
		location.reload();
	}
	else
	{
		return false();
	}
}

function confirmUnJoinMsg()
{
	if(confirm('Are you sure you want to unjoin from this club?'))
	{
		alert('You have successfully unjoined.');
		//window.location='mail-my-inbox.php';	
		location.reload();
	}
	else
	{
		return false();
	}
}
