var addElement = function(a, b, funcName)
{
//var funcName = ????
if (!funcName) funcName='addElement';
if(funcName == 'addElement') alert('Hello World!');
else alert('Goodbay World!');
//Code
}
var addText = function(a,b) { return addElement(a,b,'addText'); };