function confirm_action()
{

	userconfirm = window.confirm("Are you sure you wish to carry out this action?");
		
		if (check_confirm(userconfirm) == true)
		{
			return true;
		}
	
		else
		{
			return false;
		}
}

function check_confirm(userconfirm)
{

	if (userconfirm == true)
	{
		return true;
	}
	
	else
	{
		return false;
	}
}