rem: var newSite = "" + data; 
context: function refetchRelatedLinks(Handler, data){	// we can only get related links data on HTTP URLs	var newSite = "" + data;	if (newSite.indexOf("http://") != 0)	{		dump("Unable to fetch related links data on non-HTTP URL.\n");		return(false);	}	newSite = newSite.substr(7);			// strip off "http://" prefix	var portOffset = newSite.indexOf(":");	var slashOffset = newSite.indexOf("/");	var theOffset = ((portOffset >=0) && (portOffset <= slashOffset)) ? portOffset : slashOffset;	if (theOffset >= 0)	newSite = newSite.substr(0, theOffset);	var currentSite = "";	if (Handler.URL != null)	{		currentSite = Handler.URL.substr(7);	// strip off "http://" prefix		portOffset = currentSite.indexOf(":");		slashOffset = currentSite.indexOf("/");		theOffset = ((portOffset >=0) && (portOffset <= slashOffset)) ? portOffset : slashOffset;		if (theOffset >= 0)	currentSite = currentSite.substr(0, theOffset );	}	dump("Related Links:  Current top-level: " + currentSite + "    new top-level: " + newSite + "\n");	// only request new related links data if we've got a new web site (hostname change)	if (currentSite != newSite)	{		Handler.URL = data;	}}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/4688b94e6d7fc938bd46dd3f1dbd7b8703db0733/related-panel.js/clean/xpfe/components/related/resources/related-panel.js