rem: dump("Unable to fetch related links data on non-HTTP URL.\n"); 
add: debug("Unable to fetch related links data on non-HTTP URL.\n"); 
context: function refetchRelatedLinks(Handler, data){	var newSite = "" + data;	// if we're looking at a translated page, get RL data for the true site	if (newSite.indexOf("http://levis.alis.com:8080/") == 0)	{		var matchStr = "AlisTargetURI=";	// this is expected to be the last argument		var targetOffset = data.indexOf(matchStr);		if (targetOffset > 0)		{			targetOffset += matchStr.length;			newSite = newSite.substr(targetOffset);			data = newSite;		}	}	// we can only get related links data on HTTP URLs	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 );	}	debug("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)	{		// privacy: don't send anything after a '?'		var theSite = "" + data;		var questionOffset = theSite.indexOf("?");		if (questionOffset > 0)		{			theSite = theSite.substr(0, questionOffset);		}		Handler.URL = theSite;	}}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/6439a438cde024a168b6df95b34029d8a2922cff/related-panel.js/clean/xpfe/components/related/resources/related-panel.js