Function inside function

Ok, i need to use a function to call an dragging function (already working), and that function will call another function wich will see if the drag hitted the right target.
So, this is the drag function:


fotorasgada.onPress = function() {
	if (_root.Itens[1] == false) {
		_root.deleteOk = true;
		_root.drag(_root.fotorasgada,"IT_fotorasgada","fotorasgada","MC_menu.fotorasgada",-37.2,45.2);
		_root.Itens[1] = true;
	}
};


function drag(clicado, link, newlink, thedrag, newX, newY) {
	if (_root.deleteOk == true) {
		removeMovieClip(clicado);
	}
	MC_menu.attachMovie(link,newlink,numero);
	numero++;
	MC_menu[newlink]._x = newX;
	MC_menu[newlink]._y = newY;

	MC_menu[newlink].onPress = function() {
		startDrag(thedrag);
	};

	MC_menu[newlink].onRelease = function() {
		if (MC_menu.hitTest(qualPerson)) {
			stopDrag();
			MC_menu[newlink]._x = newX;
			MC_menu[newlink]._y = newY;

			if (checkItem(thedrag) == true) {
				trace("if ok");
				VAR_dialogo = true;
				MC_dialogo.MC_menudialogo.BT_perg._visible = false;
				MC_dialogo.MC_menudialogo.BT_afir._visible = false;
				MC_dialogo.BT_Ditem._visible = true;
				dialogo(RespItem[cena],TIMER_Item[cena],ItemExpr[cena]);
				TIMER_Item[cena]++;
			} else {
				VAR_dialogo = true;
				trace("if sux");
				_root.MC_dialogo.CAIXA_dialogo.text = "Não posso mostrar isso!";
				_root.MC_dialogo.CAIXA_dir.text = "";
				_root.MC_dialogo.CAIXA_esq.text = "Dupin";
			}

			/*
			_root.MC_dialogo.CAIXA_dialogo.text = "Sim?";
			_root.MC_dialogo.CAIXA_dir.text = person;
			_root.MC_dialogo.CAIXA_esq.text = "";
			*/

		} else {
			stopDrag();
			MC_menu[newlink]._x = newX;
			MC_menu[newlink]._y = newY;
		}
	};

}


this is the second function:


function checkItem(clicado):Boolean {
	if ((clicado == fotorasgada) && (qualPerson == MC_personagem2)) {
		return true;
		trace("foi true");
	} else {
		return false;
		trace("foi false");
	}
}

So, my problem is with the parameters…
After i click an object, it will be deleted and go to a menu (MC_menu). Once a drag this item, it will check the right target (checkItem), if it is the right target it will return true and will start a dialogue, else he will say it can´t be done (ive traced here “IF SUX”)…

problem is it even goes to the checkItem function…
What do i do?