function email(username, domain)
{
var linktext = username + "@" + domain;
document.write("<a href=" + "mail" + "to:" + linktext + ">" + linktext + "<" + "/a>");
return;
}

function Validator(lpform,dothis)
{
  var error = "";

        if (theform.fname.value == "" || theform.lname.value == "" || theform.email.value == "") {

                error += "You need to fill our your full name and e-mail address.\n";
        }
    if (error != "")
  {
        theerror = "You made the following errors:\n\n" + error + "\nPlease fix these and re-submit.\n";
    alert(theerror);
    return (false);

  } else {

        alert("Thank you for subscribing to the DC Minyan mailing list.");
    return (true);
  }
}


function popup(mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) =='string')
        hreft=mylink;
else
        href=mylink.href;
window.open(href, windowname, 'width=400,height=400,scrollbars=yes');
return false;
}


