Hello,

I would like to be able to pass two arguments via function:
1. name
2. email

Then I would like to split the fullname into an array so I would have first and last name. then I would concat the firstname and lastname (firstname.lastname) then I would like to hyperlink the the name so if the user clicks on the name, email client pops open and prompts user for email. I have tried to write the function, but appreciate any help. I am very new to JAVASCRIPT so please forgive my poor code.

PHP Code:
function contactInfo(name,email)
{
  var 
domain "@yahoo.com";
  var 
splitName split.name(" ");
  var 
emailAddress splitName[0] + "." splitName[1] + domain;

 
document.write("<a herf = 'mailto:' + emailAddress> + name + "</a>";