ssh-keygen -t rsa
This command can be executed in any SSH enabled Linux machine. RSA keys will be stored in .ssh directory created in your home directory.
Following java script function can be used to check email validation.
function checkEmail() {
var email = document.getElementById('txtEmail');
var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
if (!filter.test(email.value)) {
alert('Please provide a valid email address');
email.focus;
return false;
}