If you are presented with a note, lets say G, and you also get to know that it is G, and then you get to get to hear a piece in lets say F major:
If this happens then it is possible to hear that it is in F <-- this is what relative pitch does.
^Actually, this is very easy to do! But it is not a case of absolute pitch.
@Slow: it makes no sense that you can hear some specific pitches, like D and B, but you need help for other notes: if what you say is true, then you should absolutely be able to make out what any note is, from this D or B that you say you have in your head. Y'know; intervals:)
Also, if what you say is true, then you have absolute pitch - no doubt.
But the way you describe it, I would say your so-far successes with B and D, have either been luck, or a case of the method I wrote above this.
Don't forget, that the pitch of the last song you heard, can be kept in your head for a little while..
I think what I said was pretty accurate.
@Ricky: I think you are talking about intervals? Am I wrong?
If this is what you mean, then that is something you can hear even with a bad relative pitch. And this is what should be practiced. When hearing intervals you always have some note(usually the tonica) to "compare" the unknown note to.
Everyone knows a third when they hear one, so if one is played in a song in Bb major, you know right away that the note is a D.
Am I on a different subject now?

Anyways, this has nothing to do with "recognizing notes", as FireArrow
Puts it.
@FireArrow:
Oh good good, you actually understood my point!:) awesome! Then that should lead straight to where you want! I can't seem to open the link, but yes thereare plenty of eartraining-stuff that helps with hearing which interval an exact note is on!
I am in music high school, and I have a subject called "listening". So I've gotten quite the training on this.

Another tip: in most songs - simple songs - where the melody holds itself within the key at all times (this is where I refer to Pop); there literally only are seven different tones the melody can build itself on. Therefore recognizing the notes in the melody can also be as easy as just playing it right of the bat - I do this all the time - I hear a song, and I simply just play it - nothing more.
How, you ask? Well this is sorta subconscicious interval action: You will learn to trust how the intervals make out the melody, and eventuallly this will make you able to get a note picture in your head from just hearing the song. Yes, it is wonderful.
My golden rule is: "you can play ANYTHING as long as you can sing it!" The only thing in the way of this is that most people don't even dare to try:)