
// JavaScript Document
// First, strip off any URL variables
var URLAddress = location.href.substring(0,(location.href.indexOf("?")>0)?location.href.indexOf("?"):location.href.length)

// Remove characters outisde the printable range as well as "<" and ">" which may indicate tags.
var newAddress = '';
for (i=0;i<URLAddress.length;i++)
{
 if ((URLAddress.charCodeAt(i) > 31 || URLAddress.charCodeAt(i) < 127) && URLAddress.charAt(i) != '>' && URLAddress.charAt(i) != '<')
  newAddress = newAddress + URLAddress.charAt(i);
}

// write cleaned URL
document.write(newAddress);
//-->