/**
 *
 * Validate against embargoed countries.
 *
 * Thomas Nicolosi
 * Red Bus Corporation
 * thomas@redbuscorp.com
 *
 * Current Revision:
 * 1.0.0
 * Revision Date:
 * 2008-10-15
 *
 * Note: Requires jQuery library.
 */
 jQuery.validator.addMethod(
                            "embargo",
                            function(value){
                              /**
                               * var blackList is an array containing the list
                               * of proscribed nations.
                               */
                              var blackList = [
                                                        "Cuba",
                                                        "Iran",
                                                        "Sudan",
                                                        "North Korea",
                                                        "Syrian Arab Republic",
                                                        "Iraq",
                                                        "Libyan Arab Jamahiriya"];
                              var i = 0;
                              var blackFlag = true;
                              for (i = 0; i < blackList.length; i++)
                              {
                                if(value === blackList[i])
                                {
                                   blackFlag = false;
                                   break;
                                }
                              }
                              return blackFlag;
                            },
                            "<p>You have selected an embargoed country in which the US and/or the UN maintains sanctions on any trade or business activity.</p>"
                            );
