function mailSample()
{
    var email = window.prompt("Enter the email address to send the sample to.")
    
    if (email != null && email != "")
    {
        dojo.xhrGet({
        	url: "/designs/sample",
            content: {email: email},
            handleAs: "text",
        	load: function(data)
            {
                alert("Invitation sample sent.")
        	}
        });
    }
}