	// read in the users url,
	var textOnlyUrl = document.URL;
	// prepare regular expression pattern.
	var re = /[a-z]\//;
	// replace url with new pattern.
	var newtextOnlyUrl = textOnlyUrl.replace(re, 'e/text/');
	//return the new url
	document.write("<a href="+newtextOnlyUrl+" >PDA Version<\/a>");