var subject ="?subject=";
//params:  
//name: email address before the "@" symbol
//domain: email address after the "@" symbol minus the .com/.uk/etc.
//sub: subject of e-mail
//Display: message to display on the webpage (part between the <a> and  <a/> tags). A value of "0" means use e-mail address

function Message(sub,display)
{
 /* creates a mailto link with the provided subjectline displayed as message
 //params: 
 sub:  subject line of e-mail
 display: how to display the link on the webpage, i.e. Click "here". if passed "0" then display as the e-mail address.
 */
 var sendto = "americas@atdi.com"
 if(display == "0")
 {
  document.write('<a href="' + 'mailto:' + sendto + subject + sub + '">' + sendto + '</a>');
 }
 else
 {
 document.write('<a href="' + 'mailto:' + sendto + subject + sub + '">' + display + '</a>');
 }
 
}//end Message

/*Same as Message except no subject line*/
function genericMessage(display)
{
 var sendto = "americas@atdi.com"
 
 if(display == "0")
 {
 document.write('<a href="' + 'mailto:' + sendto + '">' + sendto + '</a>');
 }
 else
 {
 document.write('<a href="' + 'mailto:' + sendto + '">' + display + '</a>');
 }
}//end genericMessage
