/* ***** FINDS VISITOR DOMAIN *****
 This script extracts the URL the visitor used to
 navigate to the site in order to write this 
 information into email form message subjects.
*/

// Dimensions script variables.
var visitorUrl = String(window.location);
var endUrl

// Extract URL from client browser.
visitorUrl = visitorUrl.substr(7);
endUrl = visitorUrl.indexOf("/");
visitorUrl = visitorUrl.substring(0, endUrl);

// Write e-mail form subject hidden field.
document.write("<input name='subject' type='hidden' value='Lead from " + visitorUrl + "'>");

