function addEmailLink() {
	// If the user's browser does not support document.getElementById, then we may as well not execute the script:
	if(!document.getElementById) {
		return false;
	}
	
	// First, get a reference to the productContainer we need to change:
	var productContainer = document.getElementById('productContainer');
	if (!productContainer) {
		return false;
	}
	
	var divsInContainer = productContainer.getElementsByTagName('div');
	var linkContainer;
	
	for (var i=0;i<divsInContainer.length;i++) {
  	if (divsInContainer[i].className == 'productDetails') {
      linkContainer = divsInContainer[i];
    }
  }
  
	
	// Define the text for the link:
	var linkText = document.createTextNode('Email to a friend');
	// Create the link itself:
	var linkMarkup = document.createElement('a');
	
	linkMarkup.id = 'emailAFriend';
	// Add the link text to the link:
	linkMarkup.appendChild(linkText);
	
	/*
	// Create the list item:
	var listItemMarkup = document.createElement('li');
	*/
	
	// Define a subject for the email message:
	var emailSubject = escape('Check out Tres Femme!');
	// Define the body for the email message:
	var emailBody = 'I thought you might like to see these Tres Femme products! Check out this page: ';
	
	// Build the whole link + add the current url to it:
	linkMarkup.href = 'mailto:?subject=' + emailSubject + '&body=' + emailBody + location.href;

	/*
	// Add the link into the list item:
	listItemMarkup.appendChild(linkMarkup);
	// Add an id attribute to the list item so we can hang some styles on it:
	listItemMarkup.id = 'emailnav';
	*/
	
	// Then add the link to the list:
	linkContainer.appendChild(linkMarkup);
	return true;
}

//window.onload = addEmailLink;