	// read in the users url,
	var WithTextOnlyUrl = document.URL;
	
	// prepare regular expression pattern.
	var remove = /text\//;
	// replace url with new pattern.
	var BackToNormalUrl = WithTextOnlyUrl.replace(remove, '');
	//return the new url
	document.write("<a href="+BackToNormalUrl+" >back to media rich site</a>");