How to validate a Social Security Number.
Formats : 000-00-0000 and no dashes


function isSSN(str)
{
    var re = /^\d{3}-?\d{2}-?\d{4}$/;
    return re.test(str);
}