jQuery.validator.addMethod(
                           "emailDomain",

                           function (value){
                                            function blockedDomains(){
                                                    /**
                                                     * This function returns an array that contains the email
                                                     * domains that we want to exclude.
                                                     */
                                                    var excludedDomains = new Array(
                                                                                    "yahoo",
                                                                                    /* "aol", */
                                                                                    "gmail",
                                                                                    "google",
                                                                                    "hotmail",
                                                                                    "andrew",
                                                                                    "kathrein",
                                                                                    "jaybeamwireless",
                         
                         "kmwcomm.com"
                                                                                    );
                                                    return excludedDomains;
                                             }
                                             function getDomain(theEmail){
                                                   /**
                                                    * This function extracts the domain associated
                                                    * with an email address, theEmail, that has been previously
                                                    * validated for proper format.
                                                    */
                                                   var at="@";
                                                   var dot=".";
                                                   var lat=theEmail.indexOf(at);
                                                   var string_start = lat+1;
                                                   var emailDomain = theEmail.slice(string_start);
                                                   //var ldot=emailPart.indexOf(dot);
                                                   //var string_end = ldot;
                                                   //var emailDomain = theEmail.slice(string_start,string_end);
                                                   return emailDomain;
                                             }
                                             function testAddress(address){
                                                    /**
                                                     * "address" is an email address that has been validated in
                                                     * ValidateForm() and echeck(str)
                                                     */
                                                   
                                                   var blockedEmails = blockedDomains(); //Get the list of blocked domains.
                                            
                                                   var theDomain = getDomain(address); //Extract the email address domain.
                                                   
                                                   /**
                                                    * Compare the domain of the submitted email address to the blocked
                                                    * email domains. Throw an alert and return "false" to prevent
                                                    * submission of the form.
                                                    */
                                                   
                                                   //var l = blockedEmails.length;
                                                   var i;
                                                   for(i in blockedEmails)
                                                   {
                                                         if(theDomain.match(blockedEmails[i]) == blockedEmails[i])
                                                         {
                                                           return false;
                                                         }
                                                   }
                                            
                                                   return true;
                                             }
                                             return testAddress(value);
                           }
                           ,
                           "Email from this domain<br />is not allowed"
                           );