/* 
 * openLink
 * This function can open the link 
 * customized by the target
 */
function openLink(theUrl,target,title,features)
{
	var win;

	if(target == '_blank')
	{
		win = window.open(theUrl,title,features);
	}
	else if(target == '_self')
	{
		win = this.window.location.href(theUrl);
	}
	else if(target == '_opener')
	{
		if(!window.opener)
		{
			win = this.window.location.href=theUrl;
		}
		else
		{
			window.opener.location.href=theUrl;			
		}
	}
}
