function highlightInterests(IDString) {
	if ( _proxy_jslib_handle(document, 'getElementById', '', 0, 0))
	{
		var elem =  _proxy_jslib_handle(document, 'getElementById', '', 1, 0)(IDString);
		if (elem == undefined)
			return;

		inputString =  _proxy_jslib_handle(elem, 'innerHTML', '', 0, 0);

		
		/*
			Delimiters in hex:
			,	\x2C
			(	\x28
			)	\x29
			-	\x2D
			:	\x3A
			;	\x3B
			*	\x2A
			/	\x2F
			\	\x5C
			.	\x2E
			!	\x21
			?	\x3F
			{	\x7B
			}	\x7D
			[	\x5B
			]	\x5D
			+	\x2B
			Control chars in hex:
			<	\x3C
			>	\x3E
		*/
		var HTML = /([\x3C\x3E])/gi;
		var Items = /([^\s\x2C\x28\x29\x2D\x3A\x3B\x2A\x2F\x5C\x2E\x21\x3F\x7B\x7D\x5B\x5D\x2B]+([\s]+[^\s\x2C\x28\x29\x2D\x3A\x3B\x2A\x2F\x5C\x2E\x21\x3F\x7B\x7D\x5B\x5D\x2B]+)*)/g;
		var outputString = inputString;
		if (!HTML.test(outputString) && outputString.indexOf('<z>') == -1)
		{
			outputString =  _proxy_jslib_handle(outputString, 'replace', '', 1, 0)(Items, "<A HREF=\"#\" CLASS=\"searchlinksmall\" onclick=\"executeSearch('" + IDString + "',this.innerHTML);return false;\">$1</A>");
			 _proxy_jslib_assign('',  _proxy_jslib_handle(document, 'getElementById', '', 1, 0)(IDString), 'innerHTML', '=', ( outputString));
		}
	}
}

function executeSearch(IDString, linkRef) {
    var searchTerm = encodeURI(linkRef);
    var intType;
    if ( _proxy_jslib_handle(IDString, 'search', '', 1, 0)(/ProfileGeneral/) != -1)
        intType = "G";
    else if ( _proxy_jslib_handle(IDString, 'search', '', 1, 0)(/ProfileMusic/) != -1)
        intType = "Mu";
    else if ( _proxy_jslib_handle(IDString, 'search', '', 1, 0)(/ProfileMovies/) != -1)
        intType = "M";
    else if ( _proxy_jslib_handle(IDString, 'search', '', 1, 0)(/ProfileBooks/) != -1)
        intType = "B";
    else
    {
         _proxy_jslib_assign('',  _proxy_jslib_handle(null, 'location', location, 0, 0), 'href', '=', ( "http://sads.myspace.com/index.cfm?fuseaction=advancedFind.results&searchtarget=tms&searchtype=myspace&t=tms&get=1&websearch=1&searchBoxID=HeaderWebResults&searchString=" + searchTerm + "&q=" + searchTerm));
        return;
    }
     _proxy_jslib_assign('',  _proxy_jslib_handle(null, 'location', location, 0, 0), 'href', '=', ( "http://searchservice.myspace.com/index.cfm?fuseaction=search&searchBy=First&interestType=" + intType + "&f_search_criteria=" + searchTerm));
}
 ;
_proxy_jslib_flush_write_buffers() ;