// JavaScript Document

//Useful Cross Browser Event Handler Functionality

function addEvent(el,ev,fn)
{
	if(!window.addEventListener)
	{
		el.attachEvent("on"+ev,fn)
	}
	else
	{
		el.addEventListener(ev,fn,false);
	}
}


/* Digno Function Namespace */

var DIGINO = { 

	getObj: function (id)
	{
		return document.getElementById(id);
	},

	showHide : function(id,text) //ShowHide Function
	{
	var el = this.getObj(id);
	
	el.value = text;

	addEvent(el,"focus",function()
	{
		if(el.value === text)
		{
			el.value = "";
		}
	});
	
	addEvent(el,"blur",function()
	{
		if(el.value === "")
		{
			el.value = text;
		}
		
	});

	}
}//END DIGINO NAMESPACE

DIGINO.showHide("s","Research Articles");