var ALPHABETPATTERN = 'abcdefghijklmnopqrstuvwxyz';
var NUMBERPATTERN = '01234567890';
var UNDERSCORE = '_';
var ATTHERATE = '@';
var SPACE = ' ';
var DASH = '-';
var HASH = '#';
var DOT = '.';
var COMMA = ',';
var COLON = ':';
var SEMICOLON = ';';
var SINGLEQUOTE = "'";
var FORWARDSLASH = '/';
var BACKWARDSLASH = "\\";
var ROUNDBRACES = '()';
var CURLYBRACES = '{}';
var SQUAREBRACES = '[]';
var AMPERSAND = '&';
var ASTERICK = '*';
var PERCENTAGE = '%';
var PLUS = '+';
var BACKQUOTE = "`";
var DOLLAR = "$";
var HURL  = "http://";
var TAB   = "\t";
var CARRETURN = "\r";
var NEWLINE = "\n";
var SPECIAL = "—";
var QUESTION = "?";
var EXCLAM = "!"; 
var REGISTER = "®";
var COPYRIGHT = "©";
var MORE = "|";
var TILT = "~"; 
var EQUAL = "=";
var HOOK = "^";
var TRADE = "™";

var ALLPATTERNS = ALPHABETPATTERN + NUMBERPATTERN + UNDERSCORE + ATTHERATE + SPACE + DASH + HASH + 
		  DOT + COMMA + COLON + SEMICOLON + SINGLEQUOTE + FORWARDSLASH + BACKWARDSLASH + 
	 	  ROUNDBRACES + CURLYBRACES + SQUAREBRACES + AMPERSAND + ASTERICK + PERCENTAGE + TILT+ DOLLAR+ TAB+
		  CARRETURN + NEWLINE + SPECIAL + QUESTION + EXCLAM + REGISTER + COPYRIGHT + BACKQUOTE + MORE + PLUS +
		  EQUAL + HOOK+ TRADE; 
		
var SPECIALCHARS = UNDERSCORE + ATTHERATE + DASH + HASH + DOT + COMMA + COLON + SEMICOLON + SINGLEQUOTE + 
	           FORWARDSLASH + BACKWARDSLASH + ROUNDBRACES + CURLYBRACES + SQUAREBRACES + AMPERSAND + ASTERICK + 
	           PERCENTAGE + TILT+ DOLLAR+ TAB + CARRETURN + NEWLINE + SPECIAL + QUESTION + EXCLAM + REGISTER +
	           COPYRIGHT + BACKQUOTE + MORE + PLUS + EQUAL + HOOK + TRADE;

var ReqdPatternForPassword = ALPHABETPATTERN+NUMBERPATTERN+SPECIALCHARS;

var ALPHANUMERIC = ALPHABETPATTERN + NUMBERPATTERN;
		
var ERRORMESSAGE;
var DATEERRORMESSAGE;

//------------------------------------------------------------------------------------------------------
// The function Initializes the Error String
function InitErrStr()
{
	ERRORMESSAGE = "The following errors occured:\n"+"-----------------------------------------------";

}
//------------------------------------------------------------------------------------------------------
// The function Initializes the Date Error String
function InitDateErrStr()
{
	DATEERRORMESSAGE = "Date Difference(s):\n"+"-----------------------------------------------";
}
//------------------------------------------------------------------------------------------------------
// The function Appendes the Messege sent to it to Error String
function CatchErrStr(Err)
{
	ERRORMESSAGE = ERRORMESSAGE+"\n"+Err;
}
//------------------------------------------------------------------------------------------------------
// The function Appendes the Messege sent to it to Error String
function CatchDateErrStr(Err)
{
	DATEERRORMESSAGE = DATEERRORMESSAGE+"\n"+Err;
}
//------------------------------------------------------------------------------------------------------
// The function Prints the Error Message
function PrintErrStr()
{
	alert(ERRORMESSAGE);	
}
//------------------------------------------------------------------------------------------------------
// The function Prints the Error Message
function PrintDateErrStr()
{
	alert(DATEERRORMESSAGE);	
}
//------------------------------------------------------------------------------------------------------
function PrintBothErrStr(NormErr,DateErr)
{
	if ( ( NormErr == false ) && ( DateErr == false ) )
	{
		alert(ERRORMESSAGE+"\n\n"+DATEERRORMESSAGE);
	}
	else if ( ( NormErr == false ) && ( DateErr == true ) )
	{
		alert(ERRORMESSAGE);
	}
	else if ( ( NormErr == true ) && ( DateErr == false ) )
	{
		alert(DATEERRORMESSAGE);
	}
}

function FindObject( ObjectName,DocumentPath )
{
	var ParentIndex,i,ReqdObject;
	if( !DocumentPath )
	{
		DocumentPath = document;
	}
	if( ( ParentIndex = ObjectName.indexOf("?") ) > 0 && parent.frames.length )
	{
		DocumentPath = parent.frames[ObjectName.substring(ParentIndex + 1)].document;
		ObjectName = ObjectName.substring(0,ParentIndex);
	}
	if( !( ReqdObject = DocumentPath[ObjectName] ) && DocumentPath.all)
	{
		ReqdObject = DocumentPath.all[ObjectName];
	}
	for ( i = 0 ; !ReqdObject && i < DocumentPath.forms.length ; i++ )
	{
		ReqdObject = DocumentPath.forms[i][ObjectName];
	}
  	for( i = 0; !ReqdObject && DocumentPath.layers && i < DocumentPath.layers.length ; i++ )
  	{
  		ReqdObject = FindObject( ObjectName,DocumentPath.layers[i].document);
  	}
  	return ReqdObject;
}


function TrimWhiteSpaces(StringVar, ReqdPatternForFirst, ReqdPatternForOther)
{
	VarObject = FindObject(StringVar);
	StringVar = VarObject.value.toLowerCase();
	var indexFound = RequiredPatternForFirst.indexOf(StringVar.charAt(0));
	if ( indexFound > 0 )
	{
		StringVar = StringVar.substr(indexFound,StringVar.length);
	}
	indexFound = RequiredPatternForOthers.lastindexOf(StringVar.charAt(StringVar.length - 1 ));
	if ( indexFound > 0 )
	{
		StringVar = StringVar.substr(0,indexFound);
	}
	VarObject.value = StringVar;
	return true;
}


function ValidateField(StringVar, FieldNameStr, ReqdPatternForFirst, ReqdPatternForOther, Reqd, MinLen, MaxLen)
{
	
	VarObject = FindObject(StringVar);
	StringVar = VarObject.value.toLowerCase();
	
	var ResultToSend = false;
	if ( ( Reqd == 'R' ) && ( StringVar.length == 0 ) )
	{
		
		CatchErrStr(FieldNameStr + ": \n" + "- Required field cannot be left blank" );
		
		ResultToSend = false;
		
	}
	else if ( StringVar.length > 0 )
	{
		if ( ( StringVar.length < MinLen ) || ( StringVar.length > MaxLen ) )
		{
			CatchErrStr(FieldNameStr + ": \n" + "- Field Length should be in between " + MinLen + " and " + MaxLen );
			ResultToSend = false;
		}
		else
		{
			var InvalidChars = '';
			for ( var i = 0 ; i < StringVar.length ; i++ )
			{
				var indexFound = -1;
				if ( i == 0 )
				{
					indexFound = ReqdPatternForFirst.indexOf(StringVar.charAt(i));
					if ( indexFound < 0 )
					{
						InvalidChars = InvalidChars + StringVar.charAt(i);
						ResultToSend = false;
					}
				}
				else
				{
					indexFound = ReqdPatternForOther.indexOf(StringVar.charAt(i));
					if ( indexFound < 0 )
					{
						InvalidChars = InvalidChars + StringVar.charAt(i);
					}	ResultToSend = false;
				}
			}
			if ( InvalidChars.length > 0 )
			{
				if ( InvalidChars.length > 20 )
				{ 
					CatchErrStr(FieldNameStr + ": \n" + "- Too Many Invalid Characters!" );
				}
				else if ( InvalidChars.length == 1 )
				{
					CatchErrStr(FieldNameStr + ": \n" + "- Character " + InvalidChars.charAt(0) + " is invalid!" );
				}
				else
				{
					var CharErrorString = "";
					for( var j = 0 ; j < InvalidChars.length ; j++ )
					{
						if ( j == 0 )
						{
							CharErrorString = InvalidChars.charAt(j);
						}
						else if ( j == ( InvalidChars.length - 1 ) )
						{
							CharErrorString = CharErrorString + ' and ' + InvalidChars.charAt(j);
						}
						else
						{
							CharErrorString = CharErrorString + ', ' + InvalidChars.charAt(j);
						}
					}
					CatchErrStr(FieldNameStr + ": \n" + "- Characters " + CharErrorString + " are invalid!" );
				}				
				ResultToSend = false;
			}
			else
			{
				ResultToSend = true;
			}
		}
	}
	else
	{
		ResultToSend = true;
	}
	return ResultToSend;
}


function CheckEmail(StringVar, FieldNameStr, Reqd)
{
	var VarObject = FindObject(StringVar);
	var StringVarValue = VarObject.value;
	var ResultToSend = false;
	AtPos = StringVarValue.indexOf('@');
	var EmailBeforeAt = "";
	var EmailAfterAt = "";
	if ( ( StringVarValue.length == 0 ) && ( Reqd == 'R' ) )
	{
		CatchErrStr( FieldNameStr + ":" + "\n" + "- Required Field cannot be left blank" );
		return ResultToSend;
	}
	else if ( StringVarValue.length > 0 )
	{
		if ( AtPos < 0 )
		{
			CatchErrStr( FieldNameStr + ":" + "\n" + "- Invalid Email syntax: Should contain '@'" );
			return ResultToSend;
		}
		else
		{
			if ( AtPos != StringVarValue.lastIndexOf('@') )
			{
				CatchErrStr( FieldNameStr + ":" + "\n" + "- Invalid Email syntax: Multiple '@' are not allowed" );
				return ResultToSend;
			}
			else
			{
				EmailBeforeAt  = StringVarValue.substring ( 0 , AtPos );
				EmailAfterAt  = StringVarValue.substring( AtPos , StringVarValue.length );
				DotPos = EmailAfterAt.lastIndexOf('.');
				if ( DotPos < 0 )
				{
					CatchErrStr( FieldNameStr + ":" + "\n" + "- Invalid Email syntax: Should contain '.' after '@'" );
					return ResultToSend;
				}
				else
				{
					if ( DotPos == EmailAfterAt.length - 1 )
					{
						CatchErrStr( FieldNameStr + ":" + "\n" + "- Invalid Email syntax: Should contain Character(s) after '.'" );
						return ResultToSend;
					}
					else
					{	
						ResultToSend = ValidateField(StringVar, FieldNameStr, ALPHABETPATTERN+NUMBERPATTERN, ALPHABETPATTERN+NUMBERPATTERN+UNDERSCORE+ATTHERATE+DOT+DASH, 'R', 5, 40);
						if (!ResultToSend)
						{
							return ResultToSend;
						}
						else
						{
							ResultToSend = true;
							if ( StringVarValue.indexOf('@.') > -1 )
							{
								CatchErrStr( FieldNameStr + ":" + "\n" + "- Invalid Email syntax: There should be character(s) between '@' and '.'" );
								ResultToSend = false;
							}
							if ( StringVarValue.indexOf('.@') > -1 )
							{
								if ( ResultToSend == false )
								{
									CatchErrStr( "- Invalid Email syntax: There should be character(s) between '.' and '@'" );
								}
								else
								{
									CatchErrStr( FieldNameStr + ":" + "\n" + "- Invalid Email syntax: There should be character(s) between '.' and '@'" );
									ResultToSend = false;
								}
							}
							if ( StringVarValue.indexOf('@-') > -1 )
							{
								if ( ResultToSend == false )
								{
									CatchErrStr( "- Invalid Email syntax: There should be character(s) between '@' and '-'" );
								}
								else
								{
									CatchErrStr( FieldNameStr + ":" + "\n" + "- Invalid Email syntax: There should be character(s) between '@' and '-'" );
									ResultToSend = false;
								}
							}
							if ( StringVarValue.indexOf('-@') > -1 )
							{
								if ( ResultToSend == false )
								{
									CatchErrStr( "- Invalid Email syntax: There should be character(s) between '-' and '@'" );
								}
								else
								{
									CatchErrStr( FieldNameStr + ":" + "\n" + "- Invalid Email syntax: There should be character(s) between '-' and '@'" );
									ResultToSend = false;
								}
							}
							if ( StringVarValue.indexOf('@_') > -1 )
							{
								if ( ResultToSend == false )
								{
									CatchErrStr( "- Invalid Email syntax: There should be character(s) between '@' and '_'" );
								}
								else
								{
									CatchErrStr( FieldNameStr + ":" + "\n" + "- Invalid Email syntax: There should be character(s) between '@' and '_'" );
									ResultToSend = false;
								}
							}
							//if ( StringVarValue.indexOf('_@') > -1 )
							//{
							//	if ( ResultToSend == false )
							//	{
							//		CatchErrStr( "- Invalid Email syntax: There should be character(s) between '_' and '@'" );
							//	}
							//	else
							//	{
							//		CatchErrStr( FieldNameStr + ":" + "\n" + "- Invalid Email syntax: There should be character(s) between '_' and '@'" );
							//		ResultToSend = false;
							//	}
							//}
							if ( StringVarValue.indexOf('.-') > -1 )
							{
								if ( ResultToSend == false )
								{
									CatchErrStr( "- Invalid Email syntax: There should be character(s) between '.' and '-'" );
								}
								else
								{
									CatchErrStr( FieldNameStr + ":" + "\n" + "- Invalid Email syntax: There should be character(s) between '.' and '-'" );
									ResultToSend = false;
								}
							}
							if ( StringVarValue.indexOf('-.') > -1 )
							{
								if ( ResultToSend == false )
								{
									CatchErrStr( "- Invalid Email syntax: There should be character(s) between '-' and '.'" );
								}
								else
								{
									CatchErrStr( FieldNameStr + ":" + "\n" + "- Invalid Email syntax: There should be character(s) between '-' and '.'" );
									ResultToSend = false;
								}
							}
							if ( StringVarValue.indexOf('._') > -1 )
							{
								if ( ResultToSend == false )
								{
									CatchErrStr( "- Invalid Email syntax: There should be character(s) between '.' and '_'" );
								}
								else
								{
									CatchErrStr( FieldNameStr + ":" + "\n" + "- Invalid Email syntax: There should be character(s) between '.' and '_'" );
									ResultToSend = false;
								}
							}
							if ( StringVarValue.indexOf('_.') > -1 )
							{
								if ( ResultToSend == false )
								{
									CatchErrStr( "- Invalid Email syntax: There should be character(s) between '_' and '.'" );
								}
								else
								{
									CatchErrStr( FieldNameStr + ":" + "\n" + "- Invalid Email syntax: There should be character(s) between '_' and '.'" );
									ResultToSend = false;
								}
							}
							if ( StringVarValue.indexOf('-_') > -1 )
							{
								if ( ResultToSend == false )
								{
									CatchErrStr( "- Invalid Email syntax: There should be character(s) between '-' and '_'" );
								}
								else
								{
									CatchErrStr( FieldNameStr + ":" + "\n" + "- Invalid Email syntax: There should be character(s) between '-' and '_'" );
								}
								ResultToSend = ResultToSend & false;
							}
							if ( StringVarValue.indexOf('_-') > -1 )
							{
								if ( ResultToSend == false )
								{
									CatchErrStr( "- Invalid Email syntax: There should be character(s) between '_' and '-'" );
								}
								else
								{
									CatchErrStr( FieldNameStr + ":" + "\n" + "- Invalid Email syntax: There should be character(s) between '_' and '-'" );
									ResultToSend = false;
								}
							}
							if ( StringVarValue.indexOf('..') > -1 )
							{
								if ( ResultToSend == false )
								{
									CatchErrStr( "- Invalid Email syntax: There should be character(s) between '.' and '.'" );
								}
								else
								{
									CatchErrStr( FieldNameStr + ":" + "\n" + "- Invalid Email syntax: There should be character(s) between '.' and '.'" );
									ResultToSend = false;
								}
							}
							if ( StringVarValue.indexOf('__') > -1 )
							{
								if ( ResultToSend == false )
								{
									CatchErrStr( "- Invalid Email syntax: There should be character(s) between '_' and '_'" );
								}
								else
								{
									CatchErrStr( FieldNameStr + ":" + "\n" + "- Invalid Email syntax: There should be character(s) between '_' and '_'" );
									ResultToSend = false;
								}
							}
							if ( StringVarValue.indexOf('--') > -1 )
							{
								if ( ResultToSend == false )
								{
									CatchErrStr( "- Invalid Email syntax: There should be character(s) between '-' and '-'" );
								}
								else
								{
									CatchErrStr( FieldNameStr + ":" + "\n" + "- Invalid Email syntax: There should be character(s) between '-' and '-'" );
									ResultToSend = false;
								}
							}
							return ResultToSend;
						}
					}
				}
			}
		}
	}
	else
	{
		return true;
	}
}

function CheckUserID (StringVar, FieldNameStr){
	var UserIDObject = FindObject(StringVar);
	var ResultToSend = true;
	if ( ( UserIDObject.value.indexOf('@') > -1 ) || ( UserIDObject.value.indexOf('.') > -1 ) )
	{
		ResultToSend = CheckEmail(StringVar, FieldNameStr, 'R');
	}
	else
	{
		ResultToSend = ValidateField(StringVar, FieldNameStr, ALPHABETPATTERN, ALPHABETPATTERN+NUMBERPATTERN+UNDERSCORE, 'R', 4, 10);
	}
	return ResultToSend;
}


function matchPassword(Pass, ConfirmPass){
	var obj 	= FindObject(Pass);
	var UPass 	= obj.value;
	obj 		= FindObject(ConfirmPass);
	var ConfirmUPass= obj.value;
	if (UPass != ConfirmUPass ){
		CatchErrStr( "Password" + ":" + "\n" + "- Password not matched" );
		return false;
	}
	else{
		return true;
	}
}

function matchEmail(Pass, ConfirmPass){
	var obj 	= FindObject(Pass);
	var UPass 	= obj.value;
	obj 		= FindObject(ConfirmPass);
	var ConfirmUPass= obj.value;
	if (UPass != ConfirmUPass ){
		CatchErrStr( "Email" + ":" + "\n" + "- Emails not matched" );
		return false;
	}
	else{
		return true;
	}
}

//	matchSongFileExtension
//	Arguments:
//		Song File Form Field Name
//	Return:
//		match result
function matchSongFileExtension(pffName){
	
	var obj 	= FindObject(pffName);
	var regexp	= /.+\..*$/;
	if (obj.value == ''){
		CatchErrStr( "Song File:\n" + "- Required field cannot be left blank" );
		return false;		
	}
	if (regexp.test(obj.value) ==false){
		CatchErrStr( "Song File:\n" + "- File name missing" );
		return false;
	}
	regexp	= /.+\.r(am|m)$/;	
	if (regexp.test(obj.value) ==false){
		CatchErrStr( "Song File:\n" + "- only *.ram or *.rm file supported" );
		return false;
	}
	else{
		return true;
	}
}

	String.prototype.trim=function(){
        return this.replace(/^\s*(\b.*\b|)\s*$/, "$1");
    }
    function areaCode(areaCode, prefixes)
    {
        this.npa = areaCode;
        this.prefixes = prefixes;
    }
     function nxx(nxx, location)
    {
        this.nxx = nxx;
        this.location = location;
    }

    <!-- set this to the number of states -->


var a = new Array(27);
a["AZ"] = new Array();
a["AZ"][0] = new areaCode("602                    ", new Array(new nxx("any","Any Location           "), new nxx("Phoenix","Phoenix")));
a["AZ"][1] = new areaCode("623                    ", new Array(new nxx("any","Any Location           "), new nxx("Phoenix","Phoenix")));
a["CA"] = new Array();
a["CA"][0] = new areaCode("323                    ", new Array(new nxx("any","Any Location           "), new nxx("Los Angeles 8","Los Angeles 8"), new nxx("Los Angeles DA 12","Los Angeles DA 12"), new nxx("Los Angeles DA 13","Los Angeles DA 13")));
a["CA"][1] = new areaCode("714                    ", new Array(new nxx("any","Any Location           "), new nxx("Santa Ana","Santa Ana")));
a["CA"][2] = new areaCode("619                    ", new Array(new nxx("any","Any Location           "), new nxx("El Cajon","El Cajon"), new nxx("San Diego","San Diego")));
a["CA"][3] = new areaCode("909                    ", new Array(new nxx("any","Any Location           "), new nxx("Arlington","Arlington"), new nxx("Ontario","Ontario"), new nxx("San Bernardino","San Bernardino"), new nxx("Sun City","Sun City"), new nxx("Temecula","Temecula")));
a["CA"][4] = new areaCode("510                    ", new Array(new nxx("any","Any Location           "), new nxx("Fremont - Newark - Greenleaf ","Fremont - Newark - Greenleaf "), new nxx("Hayward ","Hayward "), new nxx("Oakland - Berkeley ","Oakland - Berkeley "), new nxx("Oakland - Main - Piedmont ","Oakland - Main - Piedmont ")));
a["CA"][5] = new areaCode("415                    ", new Array(new nxx("any","Any Location           "), new nxx("San Rafael ","San Rafael ")));
a["CA"][6] = new areaCode("805                    ", new Array(new nxx("any","Any Location           "), new nxx("Camarillo","Camarillo"), new nxx("Moor Park","Moor Park"), new nxx("Oakview","Oakview"), new nxx("Thousand Oaks","Thousand Oaks")));
a["CA"][7] = new areaCode("310                    ", new Array(new nxx("any","Any Location           "), new nxx("El Segundo","El Segundo")));
a["CA"][8] = new areaCode("707                    ", new Array(new nxx("any","Any Location           "), new nxx("Benicia ","Benicia "), new nxx("Napa ","Napa "), new nxx("Pentaluma ","Pentaluma "), new nxx("Santa Rosa ","Santa Rosa "), new nxx("Vallejo ","Vallejo ")));
a["CA"][9] = new areaCode("213                    ", new Array(new nxx("any","Any Location           "), new nxx("LA1","LA1"), new nxx("Los Angeles DA 10","Los Angeles DA 10")));
a["CA"][10] = new areaCode("760                    ", new Array(new nxx("any","Any Location           "), new nxx("Barstow","Barstow"), new nxx("Big Pine","Big Pine"), new nxx("Bishop ","Bishop "), new nxx("Blythe","Blythe"), new nxx("Boron","Boron"), new nxx("Bridgeport","Bridgeport"), new nxx("Earp","Earp"), new nxx("El Mirage","El Mirage"), new nxx("June Lake","June Lake"), new nxx("Kernville","Kernville"), new nxx("Lee Vining","Lee Vining"), new nxx("Lenwood","Lenwood"), new nxx("Lone Pine","Lone Pine"), new nxx("Newberry","Newberry"), new nxx("Oceanside, Carlsbad","Oceanside, Carlsbad"), new nxx("Olancha","Olancha"), new nxx("Parker Dam","Parker Dam"), new nxx("Pine Creek","Pine Creek"), new nxx("Randsburg","Randsburg"), new nxx("Ridgecrest","Ridgecrest"), new nxx("ShoShone","ShoShone"), new nxx("Trona","Trona"), new nxx("Victorville","Victorville"), new nxx("Victorville-Hesperia","Victorville-Hesperia"), new nxx("Weldon","Weldon"), new nxx("Wrightwood","Wrightwood")));

a["CA"][11] = new areaCode("408                    ", new Array(new nxx("any","Any Location           "), new nxx("Gilroy ","Gilroy "), new nxx("Los Gatos ","Los Gatos "), new nxx("San Jose  (South)","San Jose  (South)"), new nxx("San Jose (North)","San Jose (North)"), new nxx("San Jose (West)","San Jose (West)"), new nxx("San Jose North","San Jose North")));
a["CA"][12] = new areaCode("661                    ", new Array(new nxx("any","Any Location           "), new nxx("Hi Vista","Hi Vista"), new nxx("Lake Hughes","Lake Hughes"), new nxx("Lancaster","Lancaster"), new nxx("Palmdale Palmdale","Palmdale Palmdale"), new nxx("Santa Clarita","Santa Clarita"), new nxx("Santa Clarita-Newhall","Santa Clarita-Newhall")));
a["CA"][13] = new areaCode("562                    ", new Array(new nxx("any","Any Location           "), new nxx("Alamitos","Alamitos"), new nxx("La Habra","La Habra"), new nxx("Long Beach","Long Beach"), new nxx("Pico Rivera","Pico Rivera")));
a["CA"][14] = new areaCode("858                    ", new Array(new nxx("any","Any Location           "), new nxx("Del Mar","Del Mar"), new nxx("La Jolla","La Jolla"), new nxx("Linda Vista, San Diego","Linda Vista, San Diego"), new nxx("Mira Mesa, San Diego","Mira Mesa, San Diego"), new nxx("Poway","Poway"), new nxx("Rancho Bernardo","Rancho Bernardo")));
a["CA"][15] = new areaCode("650                    ", new Array(new nxx("any","Any Location           "), new nxx("Los Altos ","Los Altos "), new nxx("Mountain View ","Mountain View "), new nxx("Palo Alto ","Palo Alto "), new nxx("Redwood City ","Redwood City "), new nxx("S. San Francisco ","S. San Francisco "), new nxx("San Carlos - Belmont ","San Carlos - Belmont "), new nxx("San Mateo ","San Mateo ")));
a["CA"][16] = new areaCode("949                    ", new Array(new nxx("any","Any Location           "), new nxx("Rancho Viejo","Rancho Viejo"), new nxx("Saddle Back Valley","Saddle Back Valley")));
a["CA"][17] = new areaCode("831                    ", new Array(new nxx("any","Any Location           "), new nxx("Aptos ","Aptos "), new nxx("Ben Lomand ","Ben Lomand "), new nxx("Santa Cruz ","Santa Cruz "), new nxx("Watsonville ","Watsonville ")));
a["CA"][18] = new areaCode("530                    ", new Array(new nxx("any","Any Location           "), new nxx("Auburn: Main DA","Auburn: Main DA"), new nxx("Shingle Springs","Shingle Springs"), new nxx("South Tahoe","South Tahoe")));
a["CA"][19] = new areaCode("925                    ", new Array(new nxx("any","Any Location           "), new nxx("Bishop Ranch ","Bishop Ranch "), new nxx("Concord ","Concord "), new nxx("Dublin ","Dublin "), new nxx("Pleasanton ","Pleasanton "), new nxx("Walnut Creek ","Walnut Creek ")));
a["CA"][20] = new areaCode("626                    ", new Array(new nxx("any","Any Location           "), new nxx("Azusa","Azusa"), new nxx("Pasadena-Pasadena","Pasadena-Pasadena")));
a["CA"][21] = new areaCode("916                    ", new Array(new nxx("any","Any Location           "), new nxx("Elk Grove","Elk Grove"), new nxx("Fair Oaks (Sacramento)","Fair Oaks (Sacramento)"), new nxx("Folsom","Folsom"), new nxx("Lincoln","Lincoln"), new nxx("Michigan Bar","Michigan Bar"), new nxx("Rio Linda","Rio Linda"), new nxx("Roseville: Citrus Heights DA","Roseville: Citrus Heights DA"), new nxx("Sacramento: Main DA","Sacramento: Main DA"), new nxx("Sacramento: North DA","Sacramento: North DA"), new nxx("South Placer","South Placer")));
a["CA"][22] = new areaCode("818                    ", new Array(new nxx("any","Any Location           "), new nxx("Canoga Park","Canoga Park"), new nxx("San Fernando","San Fernando")));

a["CO"] = new Array();
a["CO"][0] = new areaCode("303                    ", new Array(new nxx("any","Any Location           "), new nxx("Denver Sullivan","Denver Sullivan")));
a["CO"][1] = new areaCode("720                    ", new Array(new nxx("any","Any Location           "), new nxx("Aurora","Aurora"), new nxx("Denver","Denver")));
a["CT"] = new Array();
a["CT"][0] = new areaCode("860                    ", new Array(new nxx("any","Any Location           "), new nxx("Cornwall","Cornwall"), new nxx("Deep River","Deep River"), new nxx("Enfield","Enfield"), new nxx("Farmington","Farmington"), new nxx("Glastonbury","Glastonbury"), new nxx("Hartford","Hartford"), new nxx("Manchester","Manchester"), new nxx("Middletown","Middletown"), new nxx("Mystic","Mystic"), new nxx("New Britain","New Britain"), new nxx("New London","New London"), new nxx("New Milford","New Milford"), new nxx("Norwich","Norwich"), new nxx("Old Saybrook","Old Saybrook"), new nxx("Plainville","Plainville"), new nxx("Putnam","Putnam"), new nxx("Simsbury","Simsbury"), new nxx("Southington","Southington"), new nxx("Storrs","Storrs"), new nxx("Torrington","Torrington"), new nxx("Watertown","Watertown"), new nxx("Windsor","Windsor"), new nxx("Windsor Locks","Windsor Locks"), new nxx("Winsted","Winsted")));
a["CT"][1] = new areaCode("203                    ", new Array(new nxx("any","Any Location           "), new nxx("AnsoniaDerby","AnsoniaDerby"), new nxx("Bridgeport","Bridgeport"), new nxx("Cheshire","Cheshire"), new nxx("Danbury","Danbury"), new nxx("Darien","Darien"), new nxx("Fairfield","Fairfield"), new nxx("Georgetown","Georgetown"), new nxx("Huntington","Huntington"), new nxx("Meriden","Meriden"), new nxx("Milford","Milford"), new nxx("New Canaan","New Canaan"), new nxx("New Haven","New Haven"), new nxx("Newton ","Newton "), new nxx("Norwalk","Norwalk"), new nxx("Old Greenwich","Old Greenwich"), new nxx("Seymour","Seymour"), new nxx("Stamford","Stamford"), new nxx("Trumbull","Trumbull"), new nxx("Wallingford","Wallingford"), new nxx("Waterbury","Waterbury"), new nxx("Westport","Westport"), new nxx("Wilton","Wilton"), new nxx("Wolcott","Wolcott"), new nxx("Woodbury","Woodbury")));

a["DC"] = new Array();
a["DC"][0] = new areaCode("703                    ", new Array(new nxx("any","Any Location           "), new nxx("Washington DC Zone 17 Falls Church McLean","Washington DC Zone 17 Falls Church McLean"), new nxx("Washington DC Zone 8 Alexandria, Arlington, Kingston/Richmond Hwy.","Washington DC Zone 8 Alexandria, Arlington, Kingston/Richmond Hwy.")));
a["DC"][1] = new areaCode("202                    ", new Array(new nxx("any","Any Location           "), new nxx("Washington DC Area Zone 1 Washington","Washington DC Area Zone 1 Washington")));

a["DE"] = new Array();
a["DE"][0] = new areaCode("302                    ", new Array(new nxx("any","Any Location           "), new nxx("Hockessin","Hockessin"), new nxx("New Castle","New Castle"), new nxx("Newark","Newark"), new nxx("Wilmington","Wilmington")));

a["FL"] = new Array();
a["FL"][0] = new areaCode("321                    ", new Array(new nxx("any","Any Location           "), new nxx("Apopka","Apopka"), new nxx("Cocoa","Cocoa"), new nxx("Cocoa Beach","Cocoa Beach"), new nxx("East Orange","East Orange"), new nxx("Eau Gallie","Eau Gallie"), new nxx("Geneva","Geneva"), new nxx("Kenansville","Kenansville"), new nxx("Melbourne","Melbourne"), new nxx("Montverde","Montverde"), new nxx("Orlando","Orlando"), new nxx("Oviedo","Oviedo"), new nxx("Reedy Creek","Reedy Creek"), new nxx("Sanford","Sanford"), new nxx("Titusville","Titusville"), new nxx("Winter Garden","Winter Garden")));
a["FL"][1] = new areaCode("772                    ", new Array(new nxx("any","Any Location           "), new nxx("Port St. Lucie","Port St. Lucie"), new nxx("Vero Beach","Vero Beach")));
a["FL"][2] = new areaCode("561                    ", new Array(new nxx("any","Any Location           "), new nxx("Belleglade","Belleglade"), new nxx("Boca Raton","Boca Raton"), new nxx("West Palm Beach","West Palm Beach")));
a["FL"][3] = new areaCode("305                    ", new Array(new nxx("any","Any Location           "), new nxx("Big Pine Key","Big Pine Key"), new nxx("Key Largo","Key Largo")));
a["FL"][4] = new areaCode("954                    ", new Array(new nxx("any","Any Location           "), new nxx("Fort Lauderdale","Fort Lauderdale")));
a["FL"][5] = new areaCode("786                    ", new Array(new nxx("any","Any Location           "), new nxx("Miami","Miami")));

a["GA"] = new Array();
a["GA"][0] = new areaCode("678                    ", new Array(new nxx("any","Any Location           "), new nxx("Atlanta, NE","Atlanta, NE"), new nxx("Atlanta, NW","Atlanta, NW"), new nxx("Atlanta, South","Atlanta, South")));
a["GA"][1] = new areaCode("706                    ", new Array(new nxx("any","Any Location           "), new nxx("Athens","Athens")));
a["GA"][2] = new areaCode("404                    ", new Array(new nxx("any","Any Location           "), new nxx("Atlanta","Atlanta")));

a["IL"] = new Array();
a["IL"][0] = new areaCode("815                    ", new Array(new nxx("any","Any Location           "), new nxx("Crescent City ","Crescent City "), new nxx("Gardner ","Gardner "), new nxx("Joliet","Joliet"), new nxx("Kankakee ","Kankakee "), new nxx("Lockport ","Lockport "), new nxx("Manhattan ","Manhattan "), new nxx("McHenry ","McHenry "), new nxx("Morris ","Morris "), new nxx("Ottawa ","Ottawa "), new nxx("Plainfield","Plainfield"), new nxx("Plainfield ","Plainfield "), new nxx("Utica ","Utica "), new nxx("Wilmington ","Wilmington "), new nxx("Woodstock ","Woodstock ")));
a["IL"][1] = new areaCode("773                    ", new Array(new nxx("any","Any Location           "), new nxx("Chicago Zone 3","Chicago Zone 3"), new nxx("Chicago Zone 9","Chicago Zone 9")));
a["IL"][2] = new areaCode("312                    ", new Array(new nxx("any","Any Location           "), new nxx("Chicago 1","Chicago 1"), new nxx("Chicago Zone 1","Chicago Zone 1")));
a["IL"][3] = new areaCode("708                    ", new Array(new nxx("any","Any Location           "), new nxx("Beecher ","Beecher "), new nxx("Calumet City","Calumet City"), new nxx("Calumet City ","Calumet City "), new nxx("Chicago Heights ","Chicago Heights "), new nxx("Oak Lawn ","Oak Lawn "), new nxx("Tinley Park ","Tinley Park ")));
a["IL"][4] = new areaCode("847                    ", new Array(new nxx("any","Any Location           "), new nxx("Algonquin ","Algonquin "), new nxx("Antioch ","Antioch "), new nxx("Barrington ","Barrington "), new nxx("Elk Grove","Elk Grove"), new nxx("Elk Grove ","Elk Grove "), new nxx("Evanston ","Evanston "), new nxx("Hampshire ","Hampshire "), new nxx("Lake Forest ","Lake Forest "), new nxx("Lake Zurich ","Lake Zurich "), new nxx("Libertyville ","Libertyville "), new nxx("Northbrook ","Northbrook "), new nxx("Park Ridge ","Park Ridge "), new nxx("Round Lake ","Round Lake "), new nxx("Wauconda ","Wauconda "), new nxx("Zion","Zion")));
a["IL"][5] = new areaCode("630                    ", new Array(new nxx("any","Any Location           "), new nxx("Aurora","Aurora"), new nxx("Aurora ","Aurora "), new nxx("Big Rock ","Big Rock "), new nxx("Downers Grove","Downers Grove"), new nxx("Downers Grove ","Downers Grove "), new nxx("Elmhurst ","Elmhurst "), new nxx("Geneva ","Geneva "), new nxx("Kaneville ","Kaneville "), new nxx("Roselle ","Roselle ")));

a["IN"] = new Array();
a["IN"][0] = new areaCode("219                    ", new Array(new nxx("any","Any Location           "), new nxx("Gary","Gary"), new nxx("Lowell","Lowell"), new nxx("Merrilville","Merrilville"), new nxx("Morrocco","Morrocco")));

a["MA"] = new Array();
a["MA"][0] = new areaCode("617                    ", new Array(new nxx("any","Any Location           "), new nxx("Boston","Boston"), new nxx("Cambridge","Cambridge"), new nxx("Quincy","Quincy")));
a["MA"][1] = new areaCode("413                    ", new Array(new nxx("any","Any Location           "), new nxx("East Hampton","East Hampton"), new nxx("Pittsfield","Pittsfield"), new nxx("Westfield","Westfield"), new nxx("Williamstown","Williamstown")));
a["MA"][2] = new areaCode("508                    ", new Array(new nxx("any","Any Location           "), new nxx("Brockton","Brockton"), new nxx("Framingham","Framingham"), new nxx("Marlboro","Marlboro"), new nxx("Natick","Natick"), new nxx("North Attleboro","North Attleboro"), new nxx("Taunton","Taunton"), new nxx("Worcester","Worcester")));
a["MA"][3] = new areaCode("781                    ", new Array(new nxx("any","Any Location           "), new nxx("Burlington","Burlington"), new nxx("Lynn","Lynn"), new nxx("Waltham","Waltham")));
a["MA"][4] = new areaCode("978                    ", new Array(new nxx("any","Any Location           "), new nxx("Andover","Andover"), new nxx("Concord","Concord"), new nxx("Danvers","Danvers"), new nxx("Fitchburg","Fitchburg"), new nxx("Ipswich","Ipswich"), new nxx("Lowell","Lowell"), new nxx("Newburyport","Newburyport"), new nxx("Westminster","Westminster")));

a["MD"] = new Array();
a["MD"][0] = new areaCode("301                    ", new Array(new nxx("any","Any Location           "), new nxx("Gaithersburg","Gaithersburg"), new nxx("Washington DC Area Zone 3 Silver Springs","Washington DC Area Zone 3 Silver Springs"), new nxx("Washington DC Area Zone 4 Hyattsville","Washington DC Area Zone 4 Hyattsville")));
a["MD"][1] = new areaCode("443                    ", new Array(new nxx("any","Any Location           "), new nxx("Annapolis","Annapolis"), new nxx("Baltimore","Baltimore"), new nxx("Brooklyn Park-Linthicum","Brooklyn Park-Linthicum"), new nxx("Cockeysville","Cockeysville"), new nxx("Columbia","Columbia"), new nxx("Dundalk","Dundalk"), new nxx("Essex","Essex"), new nxx("Glen Burnie","Glen Burnie"), new nxx("Pikesville","Pikesville"), new nxx("Randallstown","Randallstown"), new nxx("Reisterstown","Reisterstown"), new nxx("Towson","Towson"), new nxx("Waterloo","Waterloo"), new nxx("Woodlawn","Woodlawn")));
a["MD"][2] = new areaCode("240                    ", new Array(new nxx("any","Any Location           "), new nxx("Laurel","Laurel"), new nxx("Washington DC Area Zone 10 Rockville","Washington DC Area Zone 10 Rockville"), new nxx("Washington DC Area Zone 11 Kensington","Washington DC Area Zone 11 Kensington"), new nxx("Washington DC Area Zone 13 Berwyn","Washington DC Area Zone 13 Berwyn"), new nxx("Washington DC Area Zone 14 Bowie-Glendale","Washington DC Area Zone 14 Bowie-Glendale"), new nxx("Washington DC Area Zone 2 Bethesda","Washington DC Area Zone 2 Bethesda"), new nxx("Washington DC Area Zone 5 Capital Heights","Washington DC Area Zone 5 Capital Heights")));

a["MI"] = new Array();
a["MI"][0] = new areaCode("810                    ", new Array(new nxx("any","Any Location           "), new nxx("Byron","Byron"), new nxx("Fenton","Fenton"), new nxx("Flint","Flint"), new nxx("Lapeer","Lapeer"), new nxx("Lexington","Lexington"), new nxx("Marine City","Marine City"), new nxx("Port Huron","Port Huron"), new nxx("Sandusky","Sandusky")));
a["MI"][1] = new areaCode("517                    ", new Array(new nxx("any","Any Location           "), new nxx("Howell","Howell")));
a["MI"][2] = new areaCode("313                    ", new Array(new nxx("any","Any Location           "), new nxx("Detroit Zone  1-6","Detroit Zone  1-6")));
a["MI"][3] = new areaCode("248                    ", new Array(new nxx("any","Any Location           "), new nxx("Oxford","Oxford"), new nxx("Pontiac","Pontiac"), new nxx("Royal Oak","Royal Oak")));
a["MI"][4] = new areaCode("734                    ", new Array(new nxx("any","Any Location           "), new nxx("Ann Arbor","Ann Arbor"), new nxx("Belleville","Belleville"), new nxx("Livonia","Livonia"), new nxx("Monroe","Monroe"), new nxx("Wyandotte","Wyandotte")));
a["MI"][5] = new areaCode("586                    ", new Array(new nxx("any","Any Location           "), new nxx("New Haven","New Haven"), new nxx("Romeo","Romeo"), new nxx("Roseville","Roseville"), new nxx("Warren","Warren")));

a["MN"] = new Array();
a["MN"][0] = new areaCode("612                    ", new Array(new nxx("any","Any Location           "), new nxx("Twin Cities (Minneapolis)","Twin Cities (Minneapolis)")));
a["MN"][1] = new areaCode("763                    ", new Array(new nxx("any","Any Location           "), new nxx("Twin Cities (Plymouth)","Twin Cities (Plymouth)")));
a["MN"][2] = new areaCode("952                    ", new Array(new nxx("any","Any Location           "), new nxx("Apple Valley","Apple Valley"), new nxx("Twin Cities (Hopkins)","Twin Cities (Hopkins)")));
a["MN"][3] = new areaCode("651                    ", new Array(new nxx("any","Any Location           "), new nxx("Red Wing","Red Wing"), new nxx("St. Criox Beach","St. Criox Beach"), new nxx("Twin Cities (St. Paul)","Twin Cities (St. Paul)")));

a["MO"] = new Array();
a["MO"][0] = new areaCode("314                    ", new Array(new nxx("any","Any Location           "), new nxx("Creve Coeur","Creve Coeur"), new nxx("Kirkwood","Kirkwood"), new nxx("Ladue","Ladue"), new nxx("Mehlville","Mehlville"), new nxx("Sappington","Sappington"), new nxx("St. Louis","St. Louis")));
a["MO"][1] = new areaCode("636                    ", new Array(new nxx("any","Any Location           "), new nxx("Chesterfield MCA","Chesterfield MCA"), new nxx("Fenton MCA","Fenton MCA"), new nxx("Harvester MCA","Harvester MCA"), new nxx("Manchester MCA","Manchester MCA"), new nxx("St. Charles MCA","St. Charles MCA"), new nxx("Valley Park MCA","Valley Park MCA")));

a["NH"] = new Array();
a["NH"][0] = new areaCode("603                    ", new Array(new nxx("any","Any Location           "), new nxx("Concord","Concord"), new nxx("Exeter","Exeter"), new nxx("Hampton","Hampton"), new nxx("Hanover","Hanover"), new nxx("Keene","Keene"), new nxx("Laconia","Laconia"), new nxx("Manchester","Manchester"), new nxx("Milton","Milton"), new nxx("Nashua","Nashua"), new nxx("Peterborough","Peterborough"), new nxx("Plaistow","Plaistow"), new nxx("Plymouth","Plymouth"), new nxx("Rochester","Rochester"), new nxx("Wolfeboro","Wolfeboro")));

a["NJ"] = new Array();
a["NJ"][0] = new areaCode("973                    ", new Array(new nxx("any","Any Location           "), new nxx("Boonton","Boonton"), new nxx("Caldwell","Caldwell"), new nxx("Dover","Dover"), new nxx("Livingston","Livingston"), new nxx("Netcong","Netcong"), new nxx("Newark ","Newark "), new nxx("Newfoundland","Newfoundland"), new nxx("Nutley ","Nutley "), new nxx("Orange","Orange"), new nxx("Passaic","Passaic"), new nxx("Paterson","Paterson"), new nxx("Pompton Lakes","Pompton Lakes"), new nxx("Rockaway","Rockaway"), new nxx("West Milford","West Milford"), new nxx("Whippany","Whippany")));
a["NJ"][1] = new areaCode("908                    ", new Array(new nxx("any","Any Location           "), new nxx("Bernardsville","Bernardsville"), new nxx("Elizabeth","Elizabeth"), new nxx("Hackettstown","Hackettstown"), new nxx("Milford","Milford"), new nxx("Neshanic","Neshanic"), new nxx("Peapack","Peapack"), new nxx("Phillpsburg","Phillpsburg"), new nxx("Plainfield","Plainfield"), new nxx("Roselle","Roselle"), new nxx("Somerville","Somerville"), new nxx("Summit","Summit"), new nxx("Washington","Washington")));

a["NJ"][2] = new areaCode("609                    ", new Array(new nxx("any","Any Location           "), new nxx("Burlington","Burlington"), new nxx("Cranbury","Cranbury"), new nxx("Ewing","Ewing"), new nxx("Fort Dix","Fort Dix"), new nxx("Hightstown","Hightstown"), new nxx("Hopewell (Mercer)","Hopewell (Mercer)"), new nxx("Medford","Medford"), new nxx("Mercerville","Mercerville"), new nxx("Mount Holly","Mount Holly"), new nxx("Pennington","Pennington"), new nxx("Princeton","Princeton"), new nxx("Trenton","Trenton")));

a["NJ"][3] = new areaCode("856                    ", new Array(new nxx("any","Any Location           "), new nxx("Beaver Brook","Beaver Brook"), new nxx("Berlin","Berlin"), new nxx("Blackwood","Blackwood"), new nxx("Bridgeton","Bridgeton"), new nxx("Camden","Camden"), new nxx("Collingswood","Collingswood"), new nxx("Glassboro","Glassboro"), new nxx("Gloucester","Gloucester"), new nxx("Haddon Heights","Haddon Heights"), new nxx("Haddonfield","Haddonfield"), new nxx("Laurel Springs","Laurel Springs"), new nxx("Marlton","Marlton"), new nxx("Merchantville","Merchantville"), new nxx("Millville","Millville"), new nxx("Moorestown","Moorestown"), new nxx("Paulsboro","Paulsboro"), new nxx("Penns Grove","Penns Grove"), new nxx("Pitman","Pitman"), new nxx("Riverside","Riverside"), new nxx("Riverton","Riverton"), new nxx("Salem","Salem"), new nxx("Swedesboro","Swedesboro"), new nxx("Vineland","Vineland"), new nxx("Williamstown","Williamstown"), new nxx("Woodbury","Woodbury"), new nxx("Woodstown","Woodstown")));


a["NJ"][4] = new areaCode("201                    ", new Array(new nxx("any","Any Location           "), new nxx("Closter","Closter"), new nxx("Cragmere","Cragmere"), new nxx("Englewood","Englewood"), new nxx("Fairlawn","Fairlawn"), new nxx("Hackensack","Hackensack"), new nxx("Jersey City","Jersey City"), new nxx("Oakland","Oakland"), new nxx("Park Ridge","Park Ridge"), new nxx("Ramsey","Ramsey"), new nxx("Ridgewood","Ridgewood"), new nxx("Rutherford","Rutherford"), new nxx("Teaneck","Teaneck"), new nxx("Union City","Union City"), new nxx("Wycoff ","Wycoff ")));


a["NJ"][5] = new areaCode("732                    ", new Array(new nxx("any","Any Location           "), new nxx("Belmar","Belmar"), new nxx("Bound Brook","Bound Brook"), new nxx("Englishtown ","Englishtown "), new nxx("Farmingdale","Farmingdale"), new nxx("Franklin Park ","Franklin Park "), new nxx("Freehold","Freehold"), new nxx("Jamesburg","Jamesburg"), new nxx("Keyport","Keyport"), new nxx("Lakewood","Lakewood"), new nxx("Long Branch ","Long Branch "), new nxx("Middletown","Middletown"), new nxx("New Brunswick","New Brunswick"), new nxx("Perth Amboy","Perth Amboy"), new nxx("Point Pleasant","Point Pleasant"), new nxx("Red Bank","Red Bank"), new nxx("South Amboy","South Amboy"), new nxx("Toms River","Toms River")));


a["NV"] = new Array();


a["NV"][0] = new areaCode("702                    ", new Array(new nxx("any","Any Location           "), new nxx("Blue Diamond","Blue Diamond"), new nxx("Boulder City","Boulder City"), new nxx("Henderson","Henderson"), new nxx("Las Vegas","Las Vegas"), new nxx("Laughlin","Laughlin"), new nxx("Mount Charleston","Mount Charleston"), new nxx("Searchlight","Searchlight")));


a["NY"] = new Array();


a["NY"][0] = new areaCode("716                    ", new Array(new nxx("any","Any Location           "), new nxx("Barker ","Barker "), new nxx("Buffalo ","Buffalo "), new nxx("Cattaraugus ","Cattaraugus "), new nxx("Clarence ","Clarence "), new nxx("Dunkirk ","Dunkirk "), new nxx("East Aurora ","East Aurora "), new nxx("Ellicottville ","Ellicottville "), new nxx("Franklinville ","Franklinville "), new nxx("Grand Island ","Grand Island "), new nxx("Hamburg ","Hamburg "), new nxx("Lockport ","Lockport "), new nxx("Niagara Falls ","Niagara Falls "), new nxx("Olean ","Olean "), new nxx("Orchard Park ","Orchard Park "), new nxx("Pendelton ","Pendelton "), new nxx("Springville ","Springville "), new nxx("Tonawanda ","Tonawanda "), new nxx("Wanakah ","Wanakah "), new nxx("West Seneca ","West Seneca "), new nxx("Williamsville ","Williamsville ")));


a["NY"][1] = new areaCode("518                    ", new Array(new nxx("any","Any Location           "), new nxx("Albany","Albany"), new nxx("Amsterdam","Amsterdam"), new nxx("Argyle","Argyle"), new nxx("Ballston Spa","Ballston Spa"), new nxx("Castleton","Castleton"), new nxx("Catskill","Catskill"), new nxx("Colonie","Colonie"), new nxx("Glens Falls","Glens Falls"), new nxx("Hudson","Hudson"), new nxx("Lake George","Lake George"), new nxx("Lake Placid","Lake Placid"), new nxx("Mechanicville","Mechanicville"), new nxx("Oak Hill","Oak Hill"), new nxx("Plattsburgh","Plattsburgh"), new nxx("Saranac Lake","Saranac Lake"), new nxx("Saratoga Springs","Saratoga Springs"), new nxx("Schenectady","Schenectady"), new nxx("Troy","Troy"), new nxx("Tupper Lake","Tupper Lake"), new nxx("Warrensburg","Warrensburg"), new nxx("Westerlo","Westerlo")));


a["NY"][2] = new areaCode("315                    ", new Array(new nxx("any","Any Location           "), new nxx("Auburn ","Auburn "), new nxx("Baldwinsville ","Baldwinsville "), new nxx("Camillus ","Camillus "), new nxx("Carthage ","Carthage "), new nxx("Chittenango ","Chittenango "), new nxx("Cicero ","Cicero "), new nxx("Fayetteville ","Fayetteville "), new nxx("Geneva ","Geneva "), new nxx("Gouverneur ","Gouverneur "), new nxx("Liverpool ","Liverpool "), new nxx("Macedon ","Macedon "), new nxx("Marion ","Marion "), new nxx("Massena ","Massena "), new nxx("Newark ","Newark "), new nxx("Oneida ","Oneida "), new nxx("Oswego ","Oswego "), new nxx("Penn Yan ","Penn Yan "), new nxx("Potsdam ","Potsdam "), new nxx("Rome ","Rome "), new nxx("Seneca Falls ","Seneca Falls "), new nxx("Syracuse ","Syracuse "), new nxx("Utica ","Utica "), new nxx("Waterloo ","Waterloo "), new nxx("Watertown ","Watertown ")));


a["NY"][3] = new areaCode("607                    ", new Array(new nxx("any","Any Location           "), new nxx("Cortland ","Cortland "), new nxx("Ithaca ","Ithaca ")));


a["NY"][4] = new areaCode("845                    ", new Array(new nxx("any","Any Location           "), new nxx("Beacon","Beacon"), new nxx("Carmel ","Carmel "), new nxx("Congers","Congers"), new nxx("Fallsburgh","Fallsburgh"), new nxx("Highland","Highland"), new nxx("Hyde Park","Hyde Park"), new nxx("Kingston","Kingston"), new nxx("Newburgh","Newburgh"), new nxx("Nyack","Nyack"), new nxx("Pawling","Pawling"), new nxx("Phoenicia","Phoenicia"), new nxx("Poughkeepsie","Poughkeepsie"), new nxx("Woodstock","Woodstock")));


a["NY"][5] = new areaCode("646                    ", new Array(new nxx("any","Any Location           "), new nxx("New York City Zone 1","New York City Zone 1")));


a["NY"][6] = new areaCode("347                    ", new Array(new nxx("any","Any Location           "), new nxx("Brooklyn ","Brooklyn "), new nxx("New York City Zone 15","New York City Zone 15"), new nxx("Staten Island","Staten Island")));


a["NY"][7] = new areaCode("631                    ", new Array(new nxx("any","Any Location           "), new nxx("Eastport ","Eastport "), new nxx("Sag Harbor ","Sag Harbor ")));


a["NY"][8] = new areaCode("917                    ", new Array(new nxx("any","Any Location           "), new nxx("New York City 1","New York City 1")));


a["NY"][9] = new areaCode("585                    ", new Array(new nxx("any","Any Location           "), new nxx("Albion ","Albion "), new nxx("Avon ","Avon "), new nxx("Batavia ","Batavia "), new nxx("Bergen ","Bergen "), new nxx("Brockport ","Brockport "), new nxx("Caledonia ","Caledonia "), new nxx("Canandaigua ","Canandaigua "), new nxx("Churchville ","Churchville "), new nxx("Dansville ","Dansville "), new nxx("East Rochester ","East Rochester "), new nxx("Fairport ","Fairport "), new nxx("Geneseo ","Geneseo "), new nxx("Henrietta ","Henrietta "), new nxx("Honeoye Falls ","Honeoye Falls "), new nxx("Le Roy ","Le Roy "), new nxx("Naples ","Naples "), new nxx("Pavillion ","Pavillion "), new nxx("Perry ","Perry "), new nxx("Rochester ","Rochester "), new nxx("Rush ","Rush "), new nxx("Scottsville ","Scottsville "), new nxx("Spencerport ","Spencerport "), new nxx("Varysburg ","Varysburg "), new nxx("Victor ","Victor "), new nxx("Warsaw ","Warsaw "), new nxx("Webster ","Webster "), new nxx("Wellsville ","Wellsville "), new nxx("West Webster ","West Webster "), new nxx("Wyoming ","Wyoming ")));


a["NY"][10] = new areaCode("914                    ", new Array(new nxx("any","Any Location           "), new nxx("White Plains","White Plains"), new nxx("Yonkers","Yonkers")));


a["OH"] = new Array();


a["OH"][0] = new areaCode("216                    ", new Array(new nxx("any","Any Location           "), new nxx("Cleveland","Cleveland"), new nxx("Independence","Independence"), new nxx("Montrose","Montrose"), new nxx("Terrace","Terrace")));


a["OH"][1] = new areaCode("440                    ", new Array(new nxx("any","Any Location           "), new nxx("Bedford","Bedford"), new nxx("Berea","Berea"), new nxx("Brecksville","Brecksville"), new nxx("Burton","Burton"), new nxx("Chagrin Falls","Chagrin Falls"), new nxx("Chesterland","Chesterland"), new nxx("Gates Mills","Gates Mills"), new nxx("Hillcrest","Hillcrest"), new nxx("Kirtland","Kirtland"), new nxx("Leroy (Lake)","Leroy (Lake)"), new nxx("Mentor","Mentor"), new nxx("North Rayalton","North Rayalton"), new nxx("Olmstead Falls","Olmstead Falls"), new nxx("Painsville","Painsville"), new nxx("Strongsville","Strongsville"), new nxx("Trinity","Trinity"), new nxx("Victory","Victory"), new nxx("Wickliffe","Wickliffe"), new nxx("Willoughby","Willoughby")));


a["OR"] = new Array();


a["OR"][0] = new areaCode("971                    ", new Array(new nxx("any","Any Location           "), new nxx("Beaverton","Beaverton"), new nxx("Portland","Portland")));


a["OR"][1] = new areaCode("503                    ", new Array(new nxx("any","Any Location           "), new nxx("Portland","Portland")));


a["PA"] = new Array();


a["PA"][0] = new areaCode("484                    ", new Array(new nxx("any","Any Location           "), new nxx("Bethlehem","Bethlehem"), new nxx("Collegeville","Collegeville"), new nxx("Exton","Exton"), new nxx("Norristown","Norristown"), new nxx("Northampton","Northampton"), new nxx("Philadelphia Suburban 10","Philadelphia Suburban 10"), new nxx("Philadelphia Suburban 11","Philadelphia Suburban 11"), new nxx("Philadelphia Suburban 12","Philadelphia Suburban 12"), new nxx("Philadelphia Suburban 13","Philadelphia Suburban 13"), new nxx("Philadelphia Suburban 14","Philadelphia Suburban 14"), new nxx("Philadelphia Suburban 17","Philadelphia Suburban 17"), new nxx("Philadelphia Suburban 21","Philadelphia Suburban 21"), new nxx("Philadelphia Suburban 22","Philadelphia Suburban 22"), new nxx("Philadelphia Suburban 23","Philadelphia Suburban 23"), new nxx("Philadelphia Suburban 24","Philadelphia Suburban 24"), new nxx("Philadelphia Suburban 25","Philadelphia Suburban 25"), new nxx("Philadelphia Suburban 26","Philadelphia Suburban 26"), new nxx("Philadelphia Suburban 28","Philadelphia Suburban 28"), new nxx("Philadelphia Suburban 29","Philadelphia Suburban 29"), new nxx("Philadelphia Suburban 31","Philadelphia Suburban 31"), new nxx("Philadelphia Suburban Zone 30","Philadelphia Suburban Zone 30"), new nxx("Pottstown","Pottstown"), new nxx("Reading","Reading"), new nxx("Royersford","Royersford"), new nxx("West Chester","West Chester")));


a["PA"][1] = new areaCode("412                    ", new Array(new nxx("any","Any Location           "), new nxx("Pittsburgh 1","Pittsburgh 1"), new nxx("Pittsburgh 4","Pittsburgh 4"), new nxx("Pittsburgh 6","Pittsburgh 6"), new nxx("Pittsburgh 7","Pittsburgh 7")));


a["PA"][2] = new areaCode("215                    ", new Array(new nxx("any","Any Location           "), new nxx("Philadelphia 1","Philadelphia 1")));


a["PA"][3] = new areaCode("267                    ", new Array(new nxx("any","Any Location           "), new nxx("Doylestown","Doylestown"), new nxx("Lansdale","Lansdale"), new nxx("Line Lexington","Line Lexington"), new nxx("Newtown","Newtown"), new nxx("North Wales","North Wales"), new nxx("Philadelphia  2","Philadelphia  2"), new nxx("Philadelphia 4","Philadelphia 4"), new nxx("Philadelphia Suburban 32","Philadelphia Suburban 32"), new nxx("Philadelphia Suburban 33","Philadelphia Suburban 33"), new nxx("Philadelphia Suburban 34","Philadelphia Suburban 34"), new nxx("Philadelphia Suburban 37","Philadelphia Suburban 37"), new nxx("Philadelphia Suburban 38","Philadelphia Suburban 38"), new nxx("Philadelphia Suburban 39","Philadelphia Suburban 39"), new nxx("Philadelphia Suburban 40","Philadelphia Suburban 40"), new nxx("Philadelphia Suburban 41","Philadelphia Suburban 41"), new nxx("Philadelphia Suburban 42","Philadelphia Suburban 42"), new nxx("Philadelphia Suburban 43 ","Philadelphia Suburban 43 "), new nxx("Philadelphia Suburban 44","Philadelphia Suburban 44"), new nxx("Philadelphia Suburban 45","Philadelphia Suburban 45")));


a["RI"] = new Array();


a["RI"][0] = new areaCode("401                    ", new Array(new nxx("any","Any Location           "), new nxx("Newport","Newport"), new nxx("Portsmouth","Portsmouth"), new nxx("Providence","Providence"), new nxx("Warren","Warren")));


a["TX"] = new Array();
a["TX"][0] = new areaCode("903                    ", new Array(new nxx("any","Any Location           "), new nxx("Alba","Alba"), new nxx("Bagwell","Bagwell"), new nxx("Benwheeler","Benwheeler"), new nxx("Bloomnggrv","Bloomnggrv"), new nxx("Bogota","Bogota"), new nxx("Caddo Mills","Caddo Mills"), new nxx("Como","Como"), new nxx("Corsicana","Corsicana"), new nxx("Denison","Denison"), new nxx("Elkhart","Elkhart"), new nxx("Gunter","Gunter"), new nxx("Ladonia","Ladonia"), new nxx("Oakwood","Oakwood"), new nxx("Point","Point"), new nxx("Slocum","Slocum"), new nxx("VanAlstyne","VanAlstyne"), new nxx("Windom","Windom")));
a["TX"][1] = new areaCode("214                    ", new Array(new nxx("any","Any Location           "), new nxx("Dallas","Dallas")));
a["TX"][2] = new areaCode("409                    ", new Array(new nxx("any","Any Location           "), new nxx("Galveston","Galveston")));
a["TX"][3] = new areaCode("469                    ", new Array(new nxx("any","Any Location           "), new nxx("Bristol","Bristol"), new nxx("Crandall","Crandall"), new nxx("Ferris","Ferris"), new nxx("Forney","Forney"), new nxx("Maypearl","Maypearl"), new nxx("McKinney","McKinney"), new nxx("Midlothian","Midlothian"), new nxx("Milford","Milford"), new nxx("RedOak","RedOak"), new nxx("Rockwall","Rockwall"), new nxx("Terrell","Terrell"), new nxx("Venus","Venus"), new nxx("Waxahachie","Waxahachie")));
a["TX"][4] = new areaCode("940                    ", new Array(new nxx("any","Any Location           "), new nxx("Aubrey","Aubrey"), new nxx("Denton","Denton")));
a["TX"][5] = new areaCode("254                    ", new Array(new nxx("any","Any Location           "), new nxx("Breckenridge","Breckenridge"), new nxx("Cross Plains","Cross Plains"), new nxx("May","May"), new nxx("Rising Star","Rising Star"), new nxx("Strawn","Strawn"), new nxx("Walnut Springs","Walnut Springs")));
a["TX"][6] = new areaCode("936                    ", new Array(new nxx("any","Any Location           "), new nxx("Huntington","Huntington"), new nxx("Pennington","Pennington")));
a["TX"][7] = new areaCode("832                    ", new Array(new nxx("any","Any Location           "), new nxx("Alvin","Alvin"), new nxx("Baytown","Baytown"), new nxx("Cypress","Cypress"), new nxx("LaPorte","LaPorte"), new nxx("Pinehurst","Pinehurst"), new nxx("Richmond Rosenberg","Richmond Rosenberg"), new nxx("Smither Lake","Smither Lake"), new nxx("Splendora","Splendora"), new nxx("Spring","Spring"), new nxx("Tomball","Tomball"), new nxx("Valley Lodge","Valley Lodge"), new nxx("Westfield","Westfield")));
a["TX"][8] = new areaCode("979                    ", new Array(new nxx("any","Any Location           "), new nxx("Bay City","Bay City"), new nxx("Freeport","Freeport")));
a["TX"][9] = new areaCode("817                    ", new Array(new nxx("any","Any Location           "), new nxx("Cleburne","Cleburne"), new nxx("Fort Worth","Fort Worth"), new nxx("Granbury","Granbury"), new nxx("Reno","Reno"), new nxx("Weatherford","Weatherford")));

a["VA"] = new Array();
a["VA"][0] = new areaCode("703                    ", new Array(new nxx("any","Any Location           "), new nxx("Herndon","Herndon"), new nxx("Washington DC Zone 19 Fairfax/Vienna","Washington DC Zone 19 Fairfax/Vienna")));

a["WA"] = new Array();
a["WA"][0] = new areaCode("206                    ", new Array(new nxx("any","Any Location           "), new nxx("Seattle","Seattle")));
a["WA"][1] = new areaCode("360                    ", new Array(new nxx("any","Any Location           "), new nxx("Arlington","Arlington"), new nxx("Belfair","Belfair"), new nxx("Bellingham","Bellingham"), new nxx("Bremerton","Bremerton"), new nxx("Coupeville","Coupeville"), new nxx("Enumclaw","Enumclaw"), new nxx("Everson","Everson"), new nxx("Mt. Vernon","Mt. Vernon"), new nxx("Olympia","Olympia"), new nxx("Poulsbo","Poulsbo"), new nxx("Quilcene","Quilcene"), new nxx("Shelton","Shelton"), new nxx("Silverdale","Silverdale"), new nxx("Snohomish","Snohomish"), new nxx("Vancouver","Vancouver")));
a["WA"][2] = new areaCode("253                    ", new Array(new nxx("any","Any Location           "), new nxx("Auburn","Auburn"), new nxx("Des Moines","Des Moines"), new nxx("Graham","Graham"), new nxx("Kent","Kent"), new nxx("Summer","Summer"), new nxx("Tacoma","Tacoma"), new nxx("Tacoma Waverly","Tacoma Waverly")));
a["WA"][3] = new areaCode("425                    ", new Array(new nxx("any","Any Location           "), new nxx("Bellevue","Bellevue"), new nxx("Bothell","Bothell"), new nxx("Everett","Everett"), new nxx("Halls Lake","Halls Lake"), new nxx("Issaquash","Issaquash"), new nxx("Kirkland","Kirkland"), new nxx("Renton","Renton")));

//@ReplaceEnd
    a[""] = new Array();

    a[""][0]=new areaCode("Select An Area Code", new Array(new nxx("","Select A Region")));



    // function for area code
    function pop2(x)
    {
        //alert(x);


        var temp = document.myForm.npa;

        var temp2= document.myForm.nxx;

        clean(temp);

        clean(temp2);

        //alert("index: " + temp);

        //alert(a[temp].length);

        //alert(a[x]);

        //alert(a[x].length)

        for (i=0;i<a[x].length;i++)
        {
        //  alert(a[x][i].npa);

            temp.options[i] = new Option(a[x][i].npa, a[x][i].npa.trim());


        }

        temp.options[0].selected = true;

        pop3(0);

    }

    // function for NXX
    function pop3(x)
    {
        var temp = document.myForm.nxx;

        clean(temp);

        var index1 = document.myForm.state.options[document.myForm.state.options.selectedIndex].value
        var index2 = document.myForm.npa.options.selectedIndex
        //alert("index from 2: " + index2);

        //alert("this guys: " +x);

        //alert(a[temp].length);

        //alert(a[x]);

        //alert(a[index1][index2].prefixes.length);

        // place the array in temp variable for easy access
        var prefixes = a[index1][index2].prefixes;

        for (i=0;i<prefixes.length;i++)
        {
            //alert(prefixes[i]);

            temp.options[i] = new Option(prefixes[i].location, prefixes[i].nxx);


        }
        temp.options[0].selected = true;

    }

    // function empties select boxed
    function clean(selectBox)
    {
        for (i = selectBox.options.length-1;i>0;i--)
            selectBox.options[i] = null;
    }

function onFocusFunction(){
document.myForm.npa.selectedIndex = 0;

document.myForm.nxx.selectedIndex = 0;

document.myForm.state.selectedIndex = 0;

}

function autotab(object1, object2, objectsize)
  {
    if (object1.value.length == objectsize)
    object2.focus()
  }
	String.prototype.trim=function(){
        return this.replace(/^\s*(\b.*\b|)\s*$/, "$1");
    }
    function areaCode(areaCode, prefixes)
    {
        this.npa = areaCode;
        this.prefixes = prefixes;
    }
     function nxx(nxx, location)
    {
        this.nxx = nxx;
        this.location = location;
    }

    <!-- set this to the number of states -->


var a = new Array(27);
a["AZ"] = new Array();
a["AZ"][0] = new areaCode("602                    ", new Array(new nxx("any","Any Location           "), new nxx("Phoenix","Phoenix")));
a["AZ"][1] = new areaCode("623                    ", new Array(new nxx("any","Any Location           "), new nxx("Phoenix","Phoenix")));
a["CA"] = new Array();
a["CA"][0] = new areaCode("323                    ", new Array(new nxx("any","Any Location           "), new nxx("Los Angeles 8","Los Angeles 8"), new nxx("Los Angeles DA 12","Los Angeles DA 12"), new nxx("Los Angeles DA 13","Los Angeles DA 13")));
a["CA"][1] = new areaCode("714                    ", new Array(new nxx("any","Any Location           "), new nxx("Santa Ana","Santa Ana")));
a["CA"][2] = new areaCode("619                    ", new Array(new nxx("any","Any Location           "), new nxx("El Cajon","El Cajon"), new nxx("San Diego","San Diego")));
a["CA"][3] = new areaCode("909                    ", new Array(new nxx("any","Any Location           "), new nxx("Arlington","Arlington"), new nxx("Ontario","Ontario"), new nxx("San Bernardino","San Bernardino"), new nxx("Sun City","Sun City"), new nxx("Temecula","Temecula")));
a["CA"][4] = new areaCode("510                    ", new Array(new nxx("any","Any Location           "), new nxx("Fremont - Newark - Greenleaf ","Fremont - Newark - Greenleaf "), new nxx("Hayward ","Hayward "), new nxx("Oakland - Berkeley ","Oakland - Berkeley "), new nxx("Oakland - Main - Piedmont ","Oakland - Main - Piedmont ")));
a["CA"][5] = new areaCode("415                    ", new Array(new nxx("any","Any Location           "), new nxx("San Rafael ","San Rafael ")));
a["CA"][6] = new areaCode("805                    ", new Array(new nxx("any","Any Location           "), new nxx("Camarillo","Camarillo"), new nxx("Moor Park","Moor Park"), new nxx("Oakview","Oakview"), new nxx("Thousand Oaks","Thousand Oaks")));
a["CA"][7] = new areaCode("310                    ", new Array(new nxx("any","Any Location           "), new nxx("El Segundo","El Segundo")));
a["CA"][8] = new areaCode("707                    ", new Array(new nxx("any","Any Location           "), new nxx("Benicia ","Benicia "), new nxx("Napa ","Napa "), new nxx("Pentaluma ","Pentaluma "), new nxx("Santa Rosa ","Santa Rosa "), new nxx("Vallejo ","Vallejo ")));
a["CA"][9] = new areaCode("213                    ", new Array(new nxx("any","Any Location           "), new nxx("LA1","LA1"), new nxx("Los Angeles DA 10","Los Angeles DA 10")));
a["CA"][10] = new areaCode("760                    ", new Array(new nxx("any","Any Location           "), new nxx("Barstow","Barstow"), new nxx("Big Pine","Big Pine"), new nxx("Bishop ","Bishop "), new nxx("Blythe","Blythe"), new nxx("Boron","Boron"), new nxx("Bridgeport","Bridgeport"), new nxx("Earp","Earp"), new nxx("El Mirage","El Mirage"), new nxx("June Lake","June Lake"), new nxx("Kernville","Kernville"), new nxx("Lee Vining","Lee Vining"), new nxx("Lenwood","Lenwood"), new nxx("Lone Pine","Lone Pine"), new nxx("Newberry","Newberry"), new nxx("Oceanside, Carlsbad","Oceanside, Carlsbad"), new nxx("Olancha","Olancha"), new nxx("Parker Dam","Parker Dam"), new nxx("Pine Creek","Pine Creek"), new nxx("Randsburg","Randsburg"), new nxx("Ridgecrest","Ridgecrest"), new nxx("ShoShone","ShoShone"), new nxx("Trona","Trona"), new nxx("Victorville","Victorville"), new nxx("Victorville-Hesperia","Victorville-Hesperia"), new nxx("Weldon","Weldon"), new nxx("Wrightwood","Wrightwood")));

a["CA"][11] = new areaCode("408                    ", new Array(new nxx("any","Any Location           "), new nxx("Gilroy ","Gilroy "), new nxx("Los Gatos ","Los Gatos "), new nxx("San Jose  (South)","San Jose  (South)"), new nxx("San Jose (North)","San Jose (North)"), new nxx("San Jose (West)","San Jose (West)"), new nxx("San Jose North","San Jose North")));
a["CA"][12] = new areaCode("661                    ", new Array(new nxx("any","Any Location           "), new nxx("Hi Vista","Hi Vista"), new nxx("Lake Hughes","Lake Hughes"), new nxx("Lancaster","Lancaster"), new nxx("Palmdale Palmdale","Palmdale Palmdale"), new nxx("Santa Clarita","Santa Clarita"), new nxx("Santa Clarita-Newhall","Santa Clarita-Newhall")));
a["CA"][13] = new areaCode("562                    ", new Array(new nxx("any","Any Location           "), new nxx("Alamitos","Alamitos"), new nxx("La Habra","La Habra"), new nxx("Long Beach","Long Beach"), new nxx("Pico Rivera","Pico Rivera")));
a["CA"][14] = new areaCode("858                    ", new Array(new nxx("any","Any Location           "), new nxx("Del Mar","Del Mar"), new nxx("La Jolla","La Jolla"), new nxx("Linda Vista, San Diego","Linda Vista, San Diego"), new nxx("Mira Mesa, San Diego","Mira Mesa, San Diego"), new nxx("Poway","Poway"), new nxx("Rancho Bernardo","Rancho Bernardo")));
a["CA"][15] = new areaCode("650                    ", new Array(new nxx("any","Any Location           "), new nxx("Los Altos ","Los Altos "), new nxx("Mountain View ","Mountain View "), new nxx("Palo Alto ","Palo Alto "), new nxx("Redwood City ","Redwood City "), new nxx("S. San Francisco ","S. San Francisco "), new nxx("San Carlos - Belmont ","San Carlos - Belmont "), new nxx("San Mateo ","San Mateo ")));
a["CA"][16] = new areaCode("949                    ", new Array(new nxx("any","Any Location           "), new nxx("Rancho Viejo","Rancho Viejo"), new nxx("Saddle Back Valley","Saddle Back Valley")));
a["CA"][17] = new areaCode("831                    ", new Array(new nxx("any","Any Location           "), new nxx("Aptos ","Aptos "), new nxx("Ben Lomand ","Ben Lomand "), new nxx("Santa Cruz ","Santa Cruz "), new nxx("Watsonville ","Watsonville ")));
a["CA"][18] = new areaCode("530                    ", new Array(new nxx("any","Any Location           "), new nxx("Auburn: Main DA","Auburn: Main DA"), new nxx("Shingle Springs","Shingle Springs"), new nxx("South Tahoe","South Tahoe")));
a["CA"][19] = new areaCode("925                    ", new Array(new nxx("any","Any Location           "), new nxx("Bishop Ranch ","Bishop Ranch "), new nxx("Concord ","Concord "), new nxx("Dublin ","Dublin "), new nxx("Pleasanton ","Pleasanton "), new nxx("Walnut Creek ","Walnut Creek ")));
a["CA"][20] = new areaCode("626                    ", new Array(new nxx("any","Any Location           "), new nxx("Azusa","Azusa"), new nxx("Pasadena-Pasadena","Pasadena-Pasadena")));
a["CA"][21] = new areaCode("916                    ", new Array(new nxx("any","Any Location           "), new nxx("Elk Grove","Elk Grove"), new nxx("Fair Oaks (Sacramento)","Fair Oaks (Sacramento)"), new nxx("Folsom","Folsom"), new nxx("Lincoln","Lincoln"), new nxx("Michigan Bar","Michigan Bar"), new nxx("Rio Linda","Rio Linda"), new nxx("Roseville: Citrus Heights DA","Roseville: Citrus Heights DA"), new nxx("Sacramento: Main DA","Sacramento: Main DA"), new nxx("Sacramento: North DA","Sacramento: North DA"), new nxx("South Placer","South Placer")));
a["CA"][22] = new areaCode("818                    ", new Array(new nxx("any","Any Location           "), new nxx("Canoga Park","Canoga Park"), new nxx("San Fernando","San Fernando")));

a["CO"] = new Array();
a["CO"][0] = new areaCode("303                    ", new Array(new nxx("any","Any Location           "), new nxx("Denver Sullivan","Denver Sullivan")));
a["CO"][1] = new areaCode("720                    ", new Array(new nxx("any","Any Location           "), new nxx("Aurora","Aurora"), new nxx("Denver","Denver")));
a["CT"] = new Array();
a["CT"][0] = new areaCode("860                    ", new Array(new nxx("any","Any Location           "), new nxx("Cornwall","Cornwall"), new nxx("Deep River","Deep River"), new nxx("Enfield","Enfield"), new nxx("Farmington","Farmington"), new nxx("Glastonbury","Glastonbury"), new nxx("Hartford","Hartford"), new nxx("Manchester","Manchester"), new nxx("Middletown","Middletown"), new nxx("Mystic","Mystic"), new nxx("New Britain","New Britain"), new nxx("New London","New London"), new nxx("New Milford","New Milford"), new nxx("Norwich","Norwich"), new nxx("Old Saybrook","Old Saybrook"), new nxx("Plainville","Plainville"), new nxx("Putnam","Putnam"), new nxx("Simsbury","Simsbury"), new nxx("Southington","Southington"), new nxx("Storrs","Storrs"), new nxx("Torrington","Torrington"), new nxx("Watertown","Watertown"), new nxx("Windsor","Windsor"), new nxx("Windsor Locks","Windsor Locks"), new nxx("Winsted","Winsted")));
a["CT"][1] = new areaCode("203                    ", new Array(new nxx("any","Any Location           "), new nxx("AnsoniaDerby","AnsoniaDerby"), new nxx("Bridgeport","Bridgeport"), new nxx("Cheshire","Cheshire"), new nxx("Danbury","Danbury"), new nxx("Darien","Darien"), new nxx("Fairfield","Fairfield"), new nxx("Georgetown","Georgetown"), new nxx("Huntington","Huntington"), new nxx("Meriden","Meriden"), new nxx("Milford","Milford"), new nxx("New Canaan","New Canaan"), new nxx("New Haven","New Haven"), new nxx("Newton ","Newton "), new nxx("Norwalk","Norwalk"), new nxx("Old Greenwich","Old Greenwich"), new nxx("Seymour","Seymour"), new nxx("Stamford","Stamford"), new nxx("Trumbull","Trumbull"), new nxx("Wallingford","Wallingford"), new nxx("Waterbury","Waterbury"), new nxx("Westport","Westport"), new nxx("Wilton","Wilton"), new nxx("Wolcott","Wolcott"), new nxx("Woodbury","Woodbury")));

a["DC"] = new Array();
a["DC"][0] = new areaCode("703                    ", new Array(new nxx("any","Any Location           "), new nxx("Washington DC Zone 17 Falls Church McLean","Washington DC Zone 17 Falls Church McLean"), new nxx("Washington DC Zone 8 Alexandria, Arlington, Kingston/Richmond Hwy.","Washington DC Zone 8 Alexandria, Arlington, Kingston/Richmond Hwy.")));
a["DC"][1] = new areaCode("202                    ", new Array(new nxx("any","Any Location           "), new nxx("Washington DC Area Zone 1 Washington","Washington DC Area Zone 1 Washington")));

a["DE"] = new Array();
a["DE"][0] = new areaCode("302                    ", new Array(new nxx("any","Any Location           "), new nxx("Hockessin","Hockessin"), new nxx("New Castle","New Castle"), new nxx("Newark","Newark"), new nxx("Wilmington","Wilmington")));

a["FL"] = new Array();
a["FL"][0] = new areaCode("321                    ", new Array(new nxx("any","Any Location           "), new nxx("Apopka","Apopka"), new nxx("Cocoa","Cocoa"), new nxx("Cocoa Beach","Cocoa Beach"), new nxx("East Orange","East Orange"), new nxx("Eau Gallie","Eau Gallie"), new nxx("Geneva","Geneva"), new nxx("Kenansville","Kenansville"), new nxx("Melbourne","Melbourne"), new nxx("Montverde","Montverde"), new nxx("Orlando","Orlando"), new nxx("Oviedo","Oviedo"), new nxx("Reedy Creek","Reedy Creek"), new nxx("Sanford","Sanford"), new nxx("Titusville","Titusville"), new nxx("Winter Garden","Winter Garden")));
a["FL"][1] = new areaCode("772                    ", new Array(new nxx("any","Any Location           "), new nxx("Port St. Lucie","Port St. Lucie"), new nxx("Vero Beach","Vero Beach")));
a["FL"][2] = new areaCode("561                    ", new Array(new nxx("any","Any Location           "), new nxx("Belleglade","Belleglade"), new nxx("Boca Raton","Boca Raton"), new nxx("West Palm Beach","West Palm Beach")));
a["FL"][3] = new areaCode("305                    ", new Array(new nxx("any","Any Location           "), new nxx("Big Pine Key","Big Pine Key"), new nxx("Key Largo","Key Largo")));
a["FL"][4] = new areaCode("954                    ", new Array(new nxx("any","Any Location           "), new nxx("Fort Lauderdale","Fort Lauderdale")));
a["FL"][5] = new areaCode("786                    ", new Array(new nxx("any","Any Location           "), new nxx("Miami","Miami")));

a["GA"] = new Array();
a["GA"][0] = new areaCode("678                    ", new Array(new nxx("any","Any Location           "), new nxx("Atlanta, NE","Atlanta, NE"), new nxx("Atlanta, NW","Atlanta, NW"), new nxx("Atlanta, South","Atlanta, South")));
a["GA"][1] = new areaCode("706                    ", new Array(new nxx("any","Any Location           "), new nxx("Athens","Athens")));
a["GA"][2] = new areaCode("404                    ", new Array(new nxx("any","Any Location           "), new nxx("Atlanta","Atlanta")));

a["IL"] = new Array();
a["IL"][0] = new areaCode("815                    ", new Array(new nxx("any","Any Location           "), new nxx("Crescent City ","Crescent City "), new nxx("Gardner ","Gardner "), new nxx("Joliet","Joliet"), new nxx("Kankakee ","Kankakee "), new nxx("Lockport ","Lockport "), new nxx("Manhattan ","Manhattan "), new nxx("McHenry ","McHenry "), new nxx("Morris ","Morris "), new nxx("Ottawa ","Ottawa "), new nxx("Plainfield","Plainfield"), new nxx("Plainfield ","Plainfield "), new nxx("Utica ","Utica "), new nxx("Wilmington ","Wilmington "), new nxx("Woodstock ","Woodstock ")));
a["IL"][1] = new areaCode("773                    ", new Array(new nxx("any","Any Location           "), new nxx("Chicago Zone 3","Chicago Zone 3"), new nxx("Chicago Zone 9","Chicago Zone 9")));
a["IL"][2] = new areaCode("312                    ", new Array(new nxx("any","Any Location           "), new nxx("Chicago 1","Chicago 1"), new nxx("Chicago Zone 1","Chicago Zone 1")));
a["IL"][3] = new areaCode("708                    ", new Array(new nxx("any","Any Location           "), new nxx("Beecher ","Beecher "), new nxx("Calumet City","Calumet City"), new nxx("Calumet City ","Calumet City "), new nxx("Chicago Heights ","Chicago Heights "), new nxx("Oak Lawn ","Oak Lawn "), new nxx("Tinley Park ","Tinley Park ")));
a["IL"][4] = new areaCode("847                    ", new Array(new nxx("any","Any Location           "), new nxx("Algonquin ","Algonquin "), new nxx("Antioch ","Antioch "), new nxx("Barrington ","Barrington "), new nxx("Elk Grove","Elk Grove"), new nxx("Elk Grove ","Elk Grove "), new nxx("Evanston ","Evanston "), new nxx("Hampshire ","Hampshire "), new nxx("Lake Forest ","Lake Forest "), new nxx("Lake Zurich ","Lake Zurich "), new nxx("Libertyville ","Libertyville "), new nxx("Northbrook ","Northbrook "), new nxx("Park Ridge ","Park Ridge "), new nxx("Round Lake ","Round Lake "), new nxx("Wauconda ","Wauconda "), new nxx("Zion","Zion")));
a["IL"][5] = new areaCode("630                    ", new Array(new nxx("any","Any Location           "), new nxx("Aurora","Aurora"), new nxx("Aurora ","Aurora "), new nxx("Big Rock ","Big Rock "), new nxx("Downers Grove","Downers Grove"), new nxx("Downers Grove ","Downers Grove "), new nxx("Elmhurst ","Elmhurst "), new nxx("Geneva ","Geneva "), new nxx("Kaneville ","Kaneville "), new nxx("Roselle ","Roselle ")));

a["IN"] = new Array();
a["IN"][0] = new areaCode("219                    ", new Array(new nxx("any","Any Location           "), new nxx("Gary","Gary"), new nxx("Lowell","Lowell"), new nxx("Merrilville","Merrilville"), new nxx("Morrocco","Morrocco")));

a["MA"] = new Array();
a["MA"][0] = new areaCode("617                    ", new Array(new nxx("any","Any Location           "), new nxx("Boston","Boston"), new nxx("Cambridge","Cambridge"), new nxx("Quincy","Quincy")));
a["MA"][1] = new areaCode("413                    ", new Array(new nxx("any","Any Location           "), new nxx("East Hampton","East Hampton"), new nxx("Pittsfield","Pittsfield"), new nxx("Westfield","Westfield"), new nxx("Williamstown","Williamstown")));
a["MA"][2] = new areaCode("508                    ", new Array(new nxx("any","Any Location           "), new nxx("Brockton","Brockton"), new nxx("Framingham","Framingham"), new nxx("Marlboro","Marlboro"), new nxx("Natick","Natick"), new nxx("North Attleboro","North Attleboro"), new nxx("Taunton","Taunton"), new nxx("Worcester","Worcester")));
a["MA"][3] = new areaCode("781                    ", new Array(new nxx("any","Any Location           "), new nxx("Burlington","Burlington"), new nxx("Lynn","Lynn"), new nxx("Waltham","Waltham")));
a["MA"][4] = new areaCode("978                    ", new Array(new nxx("any","Any Location           "), new nxx("Andover","Andover"), new nxx("Concord","Concord"), new nxx("Danvers","Danvers"), new nxx("Fitchburg","Fitchburg"), new nxx("Ipswich","Ipswich"), new nxx("Lowell","Lowell"), new nxx("Newburyport","Newburyport"), new nxx("Westminster","Westminster")));

a["MD"] = new Array();
a["MD"][0] = new areaCode("301                    ", new Array(new nxx("any","Any Location           "), new nxx("Gaithersburg","Gaithersburg"), new nxx("Washington DC Area Zone 3 Silver Springs","Washington DC Area Zone 3 Silver Springs"), new nxx("Washington DC Area Zone 4 Hyattsville","Washington DC Area Zone 4 Hyattsville")));
a["MD"][1] = new areaCode("443                    ", new Array(new nxx("any","Any Location           "), new nxx("Annapolis","Annapolis"), new nxx("Baltimore","Baltimore"), new nxx("Brooklyn Park-Linthicum","Brooklyn Park-Linthicum"), new nxx("Cockeysville","Cockeysville"), new nxx("Columbia","Columbia"), new nxx("Dundalk","Dundalk"), new nxx("Essex","Essex"), new nxx("Glen Burnie","Glen Burnie"), new nxx("Pikesville","Pikesville"), new nxx("Randallstown","Randallstown"), new nxx("Reisterstown","Reisterstown"), new nxx("Towson","Towson"), new nxx("Waterloo","Waterloo"), new nxx("Woodlawn","Woodlawn")));
a["MD"][2] = new areaCode("240                    ", new Array(new nxx("any","Any Location           "), new nxx("Laurel","Laurel"), new nxx("Washington DC Area Zone 10 Rockville","Washington DC Area Zone 10 Rockville"), new nxx("Washington DC Area Zone 11 Kensington","Washington DC Area Zone 11 Kensington"), new nxx("Washington DC Area Zone 13 Berwyn","Washington DC Area Zone 13 Berwyn"), new nxx("Washington DC Area Zone 14 Bowie-Glendale","Washington DC Area Zone 14 Bowie-Glendale"), new nxx("Washington DC Area Zone 2 Bethesda","Washington DC Area Zone 2 Bethesda"), new nxx("Washington DC Area Zone 5 Capital Heights","Washington DC Area Zone 5 Capital Heights")));

a["MI"] = new Array();
a["MI"][0] = new areaCode("810                    ", new Array(new nxx("any","Any Location           "), new nxx("Byron","Byron"), new nxx("Fenton","Fenton"), new nxx("Flint","Flint"), new nxx("Lapeer","Lapeer"), new nxx("Lexington","Lexington"), new nxx("Marine City","Marine City"), new nxx("Port Huron","Port Huron"), new nxx("Sandusky","Sandusky")));
a["MI"][1] = new areaCode("517                    ", new Array(new nxx("any","Any Location           "), new nxx("Howell","Howell")));
a["MI"][2] = new areaCode("313                    ", new Array(new nxx("any","Any Location           "), new nxx("Detroit Zone  1-6","Detroit Zone  1-6")));
a["MI"][3] = new areaCode("248                    ", new Array(new nxx("any","Any Location           "), new nxx("Oxford","Oxford"), new nxx("Pontiac","Pontiac"), new nxx("Royal Oak","Royal Oak")));
a["MI"][4] = new areaCode("734                    ", new Array(new nxx("any","Any Location           "), new nxx("Ann Arbor","Ann Arbor"), new nxx("Belleville","Belleville"), new nxx("Livonia","Livonia"), new nxx("Monroe","Monroe"), new nxx("Wyandotte","Wyandotte")));
a["MI"][5] = new areaCode("586                    ", new Array(new nxx("any","Any Location           "), new nxx("New Haven","New Haven"), new nxx("Romeo","Romeo"), new nxx("Roseville","Roseville"), new nxx("Warren","Warren")));

a["MN"] = new Array();
a["MN"][0] = new areaCode("612                    ", new Array(new nxx("any","Any Location           "), new nxx("Twin Cities (Minneapolis)","Twin Cities (Minneapolis)")));
a["MN"][1] = new areaCode("763                    ", new Array(new nxx("any","Any Location           "), new nxx("Twin Cities (Plymouth)","Twin Cities (Plymouth)")));
a["MN"][2] = new areaCode("952                    ", new Array(new nxx("any","Any Location           "), new nxx("Apple Valley","Apple Valley"), new nxx("Twin Cities (Hopkins)","Twin Cities (Hopkins)")));
a["MN"][3] = new areaCode("651                    ", new Array(new nxx("any","Any Location           "), new nxx("Red Wing","Red Wing"), new nxx("St. Criox Beach","St. Criox Beach"), new nxx("Twin Cities (St. Paul)","Twin Cities (St. Paul)")));

a["MO"] = new Array();
a["MO"][0] = new areaCode("314                    ", new Array(new nxx("any","Any Location           "), new nxx("Creve Coeur","Creve Coeur"), new nxx("Kirkwood","Kirkwood"), new nxx("Ladue","Ladue"), new nxx("Mehlville","Mehlville"), new nxx("Sappington","Sappington"), new nxx("St. Louis","St. Louis")));
a["MO"][1] = new areaCode("636                    ", new Array(new nxx("any","Any Location           "), new nxx("Chesterfield MCA","Chesterfield MCA"), new nxx("Fenton MCA","Fenton MCA"), new nxx("Harvester MCA","Harvester MCA"), new nxx("Manchester MCA","Manchester MCA"), new nxx("St. Charles MCA","St. Charles MCA"), new nxx("Valley Park MCA","Valley Park MCA")));

a["NH"] = new Array();
a["NH"][0] = new areaCode("603                    ", new Array(new nxx("any","Any Location           "), new nxx("Concord","Concord"), new nxx("Exeter","Exeter"), new nxx("Hampton","Hampton"), new nxx("Hanover","Hanover"), new nxx("Keene","Keene"), new nxx("Laconia","Laconia"), new nxx("Manchester","Manchester"), new nxx("Milton","Milton"), new nxx("Nashua","Nashua"), new nxx("Peterborough","Peterborough"), new nxx("Plaistow","Plaistow"), new nxx("Plymouth","Plymouth"), new nxx("Rochester","Rochester"), new nxx("Wolfeboro","Wolfeboro")));

a["NJ"] = new Array();
a["NJ"][0] = new areaCode("973                    ", new Array(new nxx("any","Any Location           "), new nxx("Boonton","Boonton"), new nxx("Caldwell","Caldwell"), new nxx("Dover","Dover"), new nxx("Livingston","Livingston"), new nxx("Netcong","Netcong"), new nxx("Newark ","Newark "), new nxx("Newfoundland","Newfoundland"), new nxx("Nutley ","Nutley "), new nxx("Orange","Orange"), new nxx("Passaic","Passaic"), new nxx("Paterson","Paterson"), new nxx("Pompton Lakes","Pompton Lakes"), new nxx("Rockaway","Rockaway"), new nxx("West Milford","West Milford"), new nxx("Whippany","Whippany")));
a["NJ"][1] = new areaCode("908                    ", new Array(new nxx("any","Any Location           "), new nxx("Bernardsville","Bernardsville"), new nxx("Elizabeth","Elizabeth"), new nxx("Hackettstown","Hackettstown"), new nxx("Milford","Milford"), new nxx("Neshanic","Neshanic"), new nxx("Peapack","Peapack"), new nxx("Phillpsburg","Phillpsburg"), new nxx("Plainfield","Plainfield"), new nxx("Roselle","Roselle"), new nxx("Somerville","Somerville"), new nxx("Summit","Summit"), new nxx("Washington","Washington")));

a["NJ"][2] = new areaCode("609                    ", new Array(new nxx("any","Any Location           "), new nxx("Burlington","Burlington"), new nxx("Cranbury","Cranbury"), new nxx("Ewing","Ewing"), new nxx("Fort Dix","Fort Dix"), new nxx("Hightstown","Hightstown"), new nxx("Hopewell (Mercer)","Hopewell (Mercer)"), new nxx("Medford","Medford"), new nxx("Mercerville","Mercerville"), new nxx("Mount Holly","Mount Holly"), new nxx("Pennington","Pennington"), new nxx("Princeton","Princeton"), new nxx("Trenton","Trenton")));

a["NJ"][3] = new areaCode("856                    ", new Array(new nxx("any","Any Location           "), new nxx("Beaver Brook","Beaver Brook"), new nxx("Berlin","Berlin"), new nxx("Blackwood","Blackwood"), new nxx("Bridgeton","Bridgeton"), new nxx("Camden","Camden"), new nxx("Collingswood","Collingswood"), new nxx("Glassboro","Glassboro"), new nxx("Gloucester","Gloucester"), new nxx("Haddon Heights","Haddon Heights"), new nxx("Haddonfield","Haddonfield"), new nxx("Laurel Springs","Laurel Springs"), new nxx("Marlton","Marlton"), new nxx("Merchantville","Merchantville"), new nxx("Millville","Millville"), new nxx("Moorestown","Moorestown"), new nxx("Paulsboro","Paulsboro"), new nxx("Penns Grove","Penns Grove"), new nxx("Pitman","Pitman"), new nxx("Riverside","Riverside"), new nxx("Riverton","Riverton"), new nxx("Salem","Salem"), new nxx("Swedesboro","Swedesboro"), new nxx("Vineland","Vineland"), new nxx("Williamstown","Williamstown"), new nxx("Woodbury","Woodbury"), new nxx("Woodstown","Woodstown")));


a["NJ"][4] = new areaCode("201                    ", new Array(new nxx("any","Any Location           "), new nxx("Closter","Closter"), new nxx("Cragmere","Cragmere"), new nxx("Englewood","Englewood"), new nxx("Fairlawn","Fairlawn"), new nxx("Hackensack","Hackensack"), new nxx("Jersey City","Jersey City"), new nxx("Oakland","Oakland"), new nxx("Park Ridge","Park Ridge"), new nxx("Ramsey","Ramsey"), new nxx("Ridgewood","Ridgewood"), new nxx("Rutherford","Rutherford"), new nxx("Teaneck","Teaneck"), new nxx("Union City","Union City"), new nxx("Wycoff ","Wycoff ")));


a["NJ"][5] = new areaCode("732                    ", new Array(new nxx("any","Any Location           "), new nxx("Belmar","Belmar"), new nxx("Bound Brook","Bound Brook"), new nxx("Englishtown ","Englishtown "), new nxx("Farmingdale","Farmingdale"), new nxx("Franklin Park ","Franklin Park "), new nxx("Freehold","Freehold"), new nxx("Jamesburg","Jamesburg"), new nxx("Keyport","Keyport"), new nxx("Lakewood","Lakewood"), new nxx("Long Branch ","Long Branch "), new nxx("Middletown","Middletown"), new nxx("New Brunswick","New Brunswick"), new nxx("Perth Amboy","Perth Amboy"), new nxx("Point Pleasant","Point Pleasant"), new nxx("Red Bank","Red Bank"), new nxx("South Amboy","South Amboy"), new nxx("Toms River","Toms River")));


a["NV"] = new Array();


a["NV"][0] = new areaCode("702                    ", new Array(new nxx("any","Any Location           "), new nxx("Blue Diamond","Blue Diamond"), new nxx("Boulder City","Boulder City"), new nxx("Henderson","Henderson"), new nxx("Las Vegas","Las Vegas"), new nxx("Laughlin","Laughlin"), new nxx("Mount Charleston","Mount Charleston"), new nxx("Searchlight","Searchlight")));


a["NY"] = new Array();


a["NY"][0] = new areaCode("716                    ", new Array(new nxx("any","Any Location           "), new nxx("Barker ","Barker "), new nxx("Buffalo ","Buffalo "), new nxx("Cattaraugus ","Cattaraugus "), new nxx("Clarence ","Clarence "), new nxx("Dunkirk ","Dunkirk "), new nxx("East Aurora ","East Aurora "), new nxx("Ellicottville ","Ellicottville "), new nxx("Franklinville ","Franklinville "), new nxx("Grand Island ","Grand Island "), new nxx("Hamburg ","Hamburg "), new nxx("Lockport ","Lockport "), new nxx("Niagara Falls ","Niagara Falls "), new nxx("Olean ","Olean "), new nxx("Orchard Park ","Orchard Park "), new nxx("Pendelton ","Pendelton "), new nxx("Springville ","Springville "), new nxx("Tonawanda ","Tonawanda "), new nxx("Wanakah ","Wanakah "), new nxx("West Seneca ","West Seneca "), new nxx("Williamsville ","Williamsville ")));


a["NY"][1] = new areaCode("518                    ", new Array(new nxx("any","Any Location           "), new nxx("Albany","Albany"), new nxx("Amsterdam","Amsterdam"), new nxx("Argyle","Argyle"), new nxx("Ballston Spa","Ballston Spa"), new nxx("Castleton","Castleton"), new nxx("Catskill","Catskill"), new nxx("Colonie","Colonie"), new nxx("Glens Falls","Glens Falls"), new nxx("Hudson","Hudson"), new nxx("Lake George","Lake George"), new nxx("Lake Placid","Lake Placid"), new nxx("Mechanicville","Mechanicville"), new nxx("Oak Hill","Oak Hill"), new nxx("Plattsburgh","Plattsburgh"), new nxx("Saranac Lake","Saranac Lake"), new nxx("Saratoga Springs","Saratoga Springs"), new nxx("Schenectady","Schenectady"), new nxx("Troy","Troy"), new nxx("Tupper Lake","Tupper Lake"), new nxx("Warrensburg","Warrensburg"), new nxx("Westerlo","Westerlo")));


a["NY"][2] = new areaCode("315                    ", new Array(new nxx("any","Any Location           "), new nxx("Auburn ","Auburn "), new nxx("Baldwinsville ","Baldwinsville "), new nxx("Camillus ","Camillus "), new nxx("Carthage ","Carthage "), new nxx("Chittenango ","Chittenango "), new nxx("Cicero ","Cicero "), new nxx("Fayetteville ","Fayetteville "), new nxx("Geneva ","Geneva "), new nxx("Gouverneur ","Gouverneur "), new nxx("Liverpool ","Liverpool "), new nxx("Macedon ","Macedon "), new nxx("Marion ","Marion "), new nxx("Massena ","Massena "), new nxx("Newark ","Newark "), new nxx("Oneida ","Oneida "), new nxx("Oswego ","Oswego "), new nxx("Penn Yan ","Penn Yan "), new nxx("Potsdam ","Potsdam "), new nxx("Rome ","Rome "), new nxx("Seneca Falls ","Seneca Falls "), new nxx("Syracuse ","Syracuse "), new nxx("Utica ","Utica "), new nxx("Waterloo ","Waterloo "), new nxx("Watertown ","Watertown ")));


a["NY"][3] = new areaCode("607                    ", new Array(new nxx("any","Any Location           "), new nxx("Cortland ","Cortland "), new nxx("Ithaca ","Ithaca ")));


a["NY"][4] = new areaCode("845                    ", new Array(new nxx("any","Any Location           "), new nxx("Beacon","Beacon"), new nxx("Carmel ","Carmel "), new nxx("Congers","Congers"), new nxx("Fallsburgh","Fallsburgh"), new nxx("Highland","Highland"), new nxx("Hyde Park","Hyde Park"), new nxx("Kingston","Kingston"), new nxx("Newburgh","Newburgh"), new nxx("Nyack","Nyack"), new nxx("Pawling","Pawling"), new nxx("Phoenicia","Phoenicia"), new nxx("Poughkeepsie","Poughkeepsie"), new nxx("Woodstock","Woodstock")));


a["NY"][5] = new areaCode("646                    ", new Array(new nxx("any","Any Location           "), new nxx("New York City Zone 1","New York City Zone 1")));


a["NY"][6] = new areaCode("347                    ", new Array(new nxx("any","Any Location           "), new nxx("Brooklyn ","Brooklyn "), new nxx("New York City Zone 15","New York City Zone 15"), new nxx("Staten Island","Staten Island")));


a["NY"][7] = new areaCode("631                    ", new Array(new nxx("any","Any Location           "), new nxx("Eastport ","Eastport "), new nxx("Sag Harbor ","Sag Harbor ")));


a["NY"][8] = new areaCode("917                    ", new Array(new nxx("any","Any Location           "), new nxx("New York City 1","New York City 1")));


a["NY"][9] = new areaCode("585                    ", new Array(new nxx("any","Any Location           "), new nxx("Albion ","Albion "), new nxx("Avon ","Avon "), new nxx("Batavia ","Batavia "), new nxx("Bergen ","Bergen "), new nxx("Brockport ","Brockport "), new nxx("Caledonia ","Caledonia "), new nxx("Canandaigua ","Canandaigua "), new nxx("Churchville ","Churchville "), new nxx("Dansville ","Dansville "), new nxx("East Rochester ","East Rochester "), new nxx("Fairport ","Fairport "), new nxx("Geneseo ","Geneseo "), new nxx("Henrietta ","Henrietta "), new nxx("Honeoye Falls ","Honeoye Falls "), new nxx("Le Roy ","Le Roy "), new nxx("Naples ","Naples "), new nxx("Pavillion ","Pavillion "), new nxx("Perry ","Perry "), new nxx("Rochester ","Rochester "), new nxx("Rush ","Rush "), new nxx("Scottsville ","Scottsville "), new nxx("Spencerport ","Spencerport "), new nxx("Varysburg ","Varysburg "), new nxx("Victor ","Victor "), new nxx("Warsaw ","Warsaw "), new nxx("Webster ","Webster "), new nxx("Wellsville ","Wellsville "), new nxx("West Webster ","West Webster "), new nxx("Wyoming ","Wyoming ")));


a["NY"][10] = new areaCode("914                    ", new Array(new nxx("any","Any Location           "), new nxx("White Plains","White Plains"), new nxx("Yonkers","Yonkers")));


a["OH"] = new Array();


a["OH"][0] = new areaCode("216                    ", new Array(new nxx("any","Any Location           "), new nxx("Cleveland","Cleveland"), new nxx("Independence","Independence"), new nxx("Montrose","Montrose"), new nxx("Terrace","Terrace")));


a["OH"][1] = new areaCode("440                    ", new Array(new nxx("any","Any Location           "), new nxx("Bedford","Bedford"), new nxx("Berea","Berea"), new nxx("Brecksville","Brecksville"), new nxx("Burton","Burton"), new nxx("Chagrin Falls","Chagrin Falls"), new nxx("Chesterland","Chesterland"), new nxx("Gates Mills","Gates Mills"), new nxx("Hillcrest","Hillcrest"), new nxx("Kirtland","Kirtland"), new nxx("Leroy (Lake)","Leroy (Lake)"), new nxx("Mentor","Mentor"), new nxx("North Rayalton","North Rayalton"), new nxx("Olmstead Falls","Olmstead Falls"), new nxx("Painsville","Painsville"), new nxx("Strongsville","Strongsville"), new nxx("Trinity","Trinity"), new nxx("Victory","Victory"), new nxx("Wickliffe","Wickliffe"), new nxx("Willoughby","Willoughby")));


a["OR"] = new Array();


a["OR"][0] = new areaCode("971                    ", new Array(new nxx("any","Any Location           "), new nxx("Beaverton","Beaverton"), new nxx("Portland","Portland")));


a["OR"][1] = new areaCode("503                    ", new Array(new nxx("any","Any Location           "), new nxx("Portland","Portland")));


a["PA"] = new Array();


a["PA"][0] = new areaCode("484                    ", new Array(new nxx("any","Any Location           "), new nxx("Bethlehem","Bethlehem"), new nxx("Collegeville","Collegeville"), new nxx("Exton","Exton"), new nxx("Norristown","Norristown"), new nxx("Northampton","Northampton"), new nxx("Philadelphia Suburban 10","Philadelphia Suburban 10"), new nxx("Philadelphia Suburban 11","Philadelphia Suburban 11"), new nxx("Philadelphia Suburban 12","Philadelphia Suburban 12"), new nxx("Philadelphia Suburban 13","Philadelphia Suburban 13"), new nxx("Philadelphia Suburban 14","Philadelphia Suburban 14"), new nxx("Philadelphia Suburban 17","Philadelphia Suburban 17"), new nxx("Philadelphia Suburban 21","Philadelphia Suburban 21"), new nxx("Philadelphia Suburban 22","Philadelphia Suburban 22"), new nxx("Philadelphia Suburban 23","Philadelphia Suburban 23"), new nxx("Philadelphia Suburban 24","Philadelphia Suburban 24"), new nxx("Philadelphia Suburban 25","Philadelphia Suburban 25"), new nxx("Philadelphia Suburban 26","Philadelphia Suburban 26"), new nxx("Philadelphia Suburban 28","Philadelphia Suburban 28"), new nxx("Philadelphia Suburban 29","Philadelphia Suburban 29"), new nxx("Philadelphia Suburban 31","Philadelphia Suburban 31"), new nxx("Philadelphia Suburban Zone 30","Philadelphia Suburban Zone 30"), new nxx("Pottstown","Pottstown"), new nxx("Reading","Reading"), new nxx("Royersford","Royersford"), new nxx("West Chester","West Chester")));


a["PA"][1] = new areaCode("412                    ", new Array(new nxx("any","Any Location           "), new nxx("Pittsburgh 1","Pittsburgh 1"), new nxx("Pittsburgh 4","Pittsburgh 4"), new nxx("Pittsburgh 6","Pittsburgh 6"), new nxx("Pittsburgh 7","Pittsburgh 7")));


a["PA"][2] = new areaCode("215                    ", new Array(new nxx("any","Any Location           "), new nxx("Philadelphia 1","Philadelphia 1")));


a["PA"][3] = new areaCode("267                    ", new Array(new nxx("any","Any Location           "), new nxx("Doylestown","Doylestown"), new nxx("Lansdale","Lansdale"), new nxx("Line Lexington","Line Lexington"), new nxx("Newtown","Newtown"), new nxx("North Wales","North Wales"), new nxx("Philadelphia  2","Philadelphia  2"), new nxx("Philadelphia 4","Philadelphia 4"), new nxx("Philadelphia Suburban 32","Philadelphia Suburban 32"), new nxx("Philadelphia Suburban 33","Philadelphia Suburban 33"), new nxx("Philadelphia Suburban 34","Philadelphia Suburban 34"), new nxx("Philadelphia Suburban 37","Philadelphia Suburban 37"), new nxx("Philadelphia Suburban 38","Philadelphia Suburban 38"), new nxx("Philadelphia Suburban 39","Philadelphia Suburban 39"), new nxx("Philadelphia Suburban 40","Philadelphia Suburban 40"), new nxx("Philadelphia Suburban 41","Philadelphia Suburban 41"), new nxx("Philadelphia Suburban 42","Philadelphia Suburban 42"), new nxx("Philadelphia Suburban 43 ","Philadelphia Suburban 43 "), new nxx("Philadelphia Suburban 44","Philadelphia Suburban 44"), new nxx("Philadelphia Suburban 45","Philadelphia Suburban 45")));


a["RI"] = new Array();


a["RI"][0] = new areaCode("401                    ", new Array(new nxx("any","Any Location           "), new nxx("Newport","Newport"), new nxx("Portsmouth","Portsmouth"), new nxx("Providence","Providence"), new nxx("Warren","Warren")));


a["TX"] = new Array();
a["TX"][0] = new areaCode("903                    ", new Array(new nxx("any","Any Location           "), new nxx("Alba","Alba"), new nxx("Bagwell","Bagwell"), new nxx("Benwheeler","Benwheeler"), new nxx("Bloomnggrv","Bloomnggrv"), new nxx("Bogota","Bogota"), new nxx("Caddo Mills","Caddo Mills"), new nxx("Como","Como"), new nxx("Corsicana","Corsicana"), new nxx("Denison","Denison"), new nxx("Elkhart","Elkhart"), new nxx("Gunter","Gunter"), new nxx("Ladonia","Ladonia"), new nxx("Oakwood","Oakwood"), new nxx("Point","Point"), new nxx("Slocum","Slocum"), new nxx("VanAlstyne","VanAlstyne"), new nxx("Windom","Windom")));
a["TX"][1] = new areaCode("214                    ", new Array(new nxx("any","Any Location           "), new nxx("Dallas","Dallas")));
a["TX"][2] = new areaCode("409                    ", new Array(new nxx("any","Any Location           "), new nxx("Galveston","Galveston")));
a["TX"][3] = new areaCode("469                    ", new Array(new nxx("any","Any Location           "), new nxx("Bristol","Bristol"), new nxx("Crandall","Crandall"), new nxx("Ferris","Ferris"), new nxx("Forney","Forney"), new nxx("Maypearl","Maypearl"), new nxx("McKinney","McKinney"), new nxx("Midlothian","Midlothian"), new nxx("Milford","Milford"), new nxx("RedOak","RedOak"), new nxx("Rockwall","Rockwall"), new nxx("Terrell","Terrell"), new nxx("Venus","Venus"), new nxx("Waxahachie","Waxahachie")));
a["TX"][4] = new areaCode("940                    ", new Array(new nxx("any","Any Location           "), new nxx("Aubrey","Aubrey"), new nxx("Denton","Denton")));
a["TX"][5] = new areaCode("254                    ", new Array(new nxx("any","Any Location           "), new nxx("Breckenridge","Breckenridge"), new nxx("Cross Plains","Cross Plains"), new nxx("May","May"), new nxx("Rising Star","Rising Star"), new nxx("Strawn","Strawn"), new nxx("Walnut Springs","Walnut Springs")));
a["TX"][6] = new areaCode("936                    ", new Array(new nxx("any","Any Location           "), new nxx("Huntington","Huntington"), new nxx("Pennington","Pennington")));
a["TX"][7] = new areaCode("832                    ", new Array(new nxx("any","Any Location           "), new nxx("Alvin","Alvin"), new nxx("Baytown","Baytown"), new nxx("Cypress","Cypress"), new nxx("LaPorte","LaPorte"), new nxx("Pinehurst","Pinehurst"), new nxx("Richmond Rosenberg","Richmond Rosenberg"), new nxx("Smither Lake","Smither Lake"), new nxx("Splendora","Splendora"), new nxx("Spring","Spring"), new nxx("Tomball","Tomball"), new nxx("Valley Lodge","Valley Lodge"), new nxx("Westfield","Westfield")));
a["TX"][8] = new areaCode("979                    ", new Array(new nxx("any","Any Location           "), new nxx("Bay City","Bay City"), new nxx("Freeport","Freeport")));
a["TX"][9] = new areaCode("817                    ", new Array(new nxx("any","Any Location           "), new nxx("Cleburne","Cleburne"), new nxx("Fort Worth","Fort Worth"), new nxx("Granbury","Granbury"), new nxx("Reno","Reno"), new nxx("Weatherford","Weatherford")));

a["VA"] = new Array();
a["VA"][0] = new areaCode("703                    ", new Array(new nxx("any","Any Location           "), new nxx("Herndon","Herndon"), new nxx("Washington DC Zone 19 Fairfax/Vienna","Washington DC Zone 19 Fairfax/Vienna")));

a["WA"] = new Array();
a["WA"][0] = new areaCode("206                    ", new Array(new nxx("any","Any Location           "), new nxx("Seattle","Seattle")));
a["WA"][1] = new areaCode("360                    ", new Array(new nxx("any","Any Location           "), new nxx("Arlington","Arlington"), new nxx("Belfair","Belfair"), new nxx("Bellingham","Bellingham"), new nxx("Bremerton","Bremerton"), new nxx("Coupeville","Coupeville"), new nxx("Enumclaw","Enumclaw"), new nxx("Everson","Everson"), new nxx("Mt. Vernon","Mt. Vernon"), new nxx("Olympia","Olympia"), new nxx("Poulsbo","Poulsbo"), new nxx("Quilcene","Quilcene"), new nxx("Shelton","Shelton"), new nxx("Silverdale","Silverdale"), new nxx("Snohomish","Snohomish"), new nxx("Vancouver","Vancouver")));
a["WA"][2] = new areaCode("253                    ", new Array(new nxx("any","Any Location           "), new nxx("Auburn","Auburn"), new nxx("Des Moines","Des Moines"), new nxx("Graham","Graham"), new nxx("Kent","Kent"), new nxx("Summer","Summer"), new nxx("Tacoma","Tacoma"), new nxx("Tacoma Waverly","Tacoma Waverly")));
a["WA"][3] = new areaCode("425                    ", new Array(new nxx("any","Any Location           "), new nxx("Bellevue","Bellevue"), new nxx("Bothell","Bothell"), new nxx("Everett","Everett"), new nxx("Halls Lake","Halls Lake"), new nxx("Issaquash","Issaquash"), new nxx("Kirkland","Kirkland"), new nxx("Renton","Renton")));

//@ReplaceEnd
    a[""] = new Array();

    a[""][0]=new areaCode("Select An Area Code", new Array(new nxx("","Select A Region")));



    // function for area code
    function pop2(x)
    {
        //alert(x);

	var temp  = FindObject("npa");
        //var temp = document.myForm.npa;

        var temp2= document.myForm.nxx;

        clean(temp);

        clean(temp2);

        //alert("index: " + temp);

        //alert(a[temp].length);

        //alert(a[x]);

        //alert(a[x].length)

        for (i=0;i<a[x].length;i++)
        {
        //  alert(a[x][i].npa);

            temp.options[i] = new Option(a[x][i].npa, a[x][i].npa.trim());


        }

        temp.options[0].selected = true;

        pop3(0);

    }

    // function for NXX
    function pop3(x)
    {
        var temp = document.myForm.nxx;

        clean(temp);

        var index1 = document.myForm.state.options[document.myForm.state.options.selectedIndex].value
        var index2 = document.myForm.npa.options.selectedIndex
        //alert("index from 2: " + index2);

        //alert("this guys: " +x);

        //alert(a[temp].length);

        //alert(a[x]);

        //alert(a[index1][index2].prefixes.length);

        // place the array in temp variable for easy access
        var prefixes = a[index1][index2].prefixes;

        for (i=0;i<prefixes.length;i++)
        {
            //alert(prefixes[i]);

            temp.options[i] = new Option(prefixes[i].location, prefixes[i].nxx);


        }
        temp.options[0].selected = true;

    }

    // function empties select boxed
    function clean(selectBox)
    {
        for (i = selectBox.options.length-1;i>0;i--)
            selectBox.options[i] = null;
    }

function onFocusFunction(){
document.myForm.npa.selectedIndex = 0;

document.myForm.nxx.selectedIndex = 0;

document.myForm.state.selectedIndex = 0;

}


function autotab(object1, object2, objectsize)
  {
    if (object1.value.length == objectsize)
    object2.focus()
  }
