
function sndml(emailhost){
  var email     = "dennis";
  window.location='mailto:'+email+'@'+emailhost;
}

function checkemail(email)
{
    if (!emailisvalid(email))
    {
        alert('Email doesn\'t appear to be a valid address'); 
        return false;
    }
    else
        return true;
}
function emailisvalid(str)
{
    var foundat  = false;
    var founddot = false;
    for (var i = 0; i< str.length; i++)
    {
        if (str.charAt(i) == '@')
            foundat = true;
        if (str.charAt(i) == '.')
            founddot = true;
    }
    if (foundat && founddot)
        return true;
    else
        return false;
}

