var dnsList 	= new Object();
var stateList 	= new Object();
var displayDNC	= true;


<!-- For additional DNC list add the state here -->
dnsList["AL"]="getDNCPhoneMessage";
dnsList["AR"]="getDNCPhoneMessage";
dnsList["CT"]="getDNCPhoneMessage";
dnsList["IN"]="getDNCPhoneMessage";
dnsList["ND"]="getDNCPhoneMessage";
dnsList["OK"]="getDNCPhoneMessage";

<!-- For additional DNC Cell phone list add the state here -->
dnsList["AZ"]="getDNCCellMessage";
dnsList["CO"]="getDNCCellMessage";
dnsList["LA"]="getDNCCellMessage";

<!-- For additional DNC And No Cell phone list add the state here -->
dnsList["NJ"]="getDNCPhoneANDCellMessage";
dnsList["TX"]="getDNCPhoneANDCellMessage";


<!-- State Listing -->
stateList["AL"]="Alabama";
stateList["AK"]="Alaska";
stateList["AZ"]="Arizona";
stateList["AR"]="Arkansas";
stateList["CA"]="California";
stateList["CO"]="Colorado";
stateList["CT"]="Connecticut";
stateList["DE"]="Delaware";
stateList["DC"]="District of Columbia";
stateList["FL"]="Florida";
stateList["GA"]="Georgia";
stateList["HI"]="Hawaii";
stateList["ID"]="Idaho";
stateList["IL"]="Illinois";
stateList["IN"]="Indiana";
stateList["IA"]="Iowa";
stateList["KS"]="Kansas";
stateList["KY"]="Kentucky";
stateList["LA"]="Louisiana";
stateList["ME"]="Maine";
stateList["MD"]="Maryland";
stateList["MA"]="Massachusetts";
stateList["MI"]="Michigan";
stateList["MN"]="Minnesota";
stateList["MS"]="Mississippi";
stateList["MO"]="Missouri";
stateList["MT"]="Montana";
stateList["NE"]="Nebraska";
stateList["NV"]="Nevada";
stateList["NH"]="New Hampshire";
stateList["NJ"]="New Jersey";
stateList["NM"]="New Mexico";
stateList["NY"]="New York";
stateList["NC"]="North Carolina";
stateList["ND"]="North Dakota";
stateList["OH"]="Ohio";
stateList["OK"]="Oklahoma";
stateList["OR"]="Oregon";
stateList["PA"]="Pennsylvania";
stateList["RI"]="Rhode Island";
stateList["SC"]="South Carolina";
stateList["SD"]="South Dakota";
stateList["TN"]="Tennessee";
stateList["TX"]="Texas";
stateList["UT"]="Utah";
stateList["VT"]="Vermont";
stateList["VA"]="Virginia";
stateList["WA"]="Washington";
stateList["WV"]="West Virginia";
stateList["WI"]="Wisconsin";
stateList["WY"]="Wyoming";

// Function used to get the DNC Message
function showInfo( fieldID ) {

	var language = document.getElementById("Language");
	if ( language != null ) {
		language = language.value;
	} else {
		language = "";
	}		
	
	
	if ( displayDNC && document.getElementById("Request_Message_Division").value == "resi" ) {
		
		var choice = document.getElementById( fieldID );
		if ( dnsList[choice.options[ choice.selectedIndex ].value ] != null ) {
			var alertFncMsgStr = dnsList[ choice.options[choice.selectedIndex].value ] + language + "('" +
									stateList[ choice.options[choice.selectedIndex].value ] + "')";

			eval( alertFncMsgStr );
		}
	}
}



//****************************************** DNC Alert Messages For English **********************************************************//
function getDNCPhoneMessage( stateName ) {
  
	alert( 		"DO NOT CALL ADVISORY\n\n" +
		  
		  		"Thank you for your interest in ADT's products and services. Unfortunately, under " +
				"certain circumstances " + stateName + " law " +
				"may not permit companies like ADT to contact consumers who are on a Do Not " +
				"Call List.  If you believe you are on any Do Not Call List, please call ADT at " +
				pageNumber + ".");
}


function getDNCCellMessage( stateName ) {

	alert( 		"DO NOT CALL ADVISORY\n\n" +
		  
		  		"Thank you for your interest in ADT's products and services. Unfortunately, under " +
				"certain circumstances " + stateName + " law may not permit ADT to contact you on " +
				"your mobile/cellular telephone. If the number you provided is a mobile/cellular " +
				"telephone number, please enter a different telephone number. If you do not have another " +
				"number where you can be reached, please call ADT at " + pageNumber + "." );
}

function getDNCPhoneANDCellMessage( stateName ) {

	alert( 		"DO NOT CALL ADVISORY\n\n" +
		  
		  		"Thank you for your interest in ADT's products and services.  Unfortunately, under " +
				"certain circumstances " + stateName + " law may not permit companies like ADT to " +
				"contact consumers who are on a Do Not Call List. In addition, " + stateName + " prohibits " +
				"ADT from calling you on your mobile/cellular telephone.  If the number you provided is a " +
				"mobile/cellular telephone number, please enter a different telephone number. " +

				"\n\nPlease call ADT at " + pageNumber + " if:" +
				"\n-  You can only be contacted at a mobile/cellular telephone; or" +
				"\n-  You believe you are on any Do Not Call List.");
}

//***********************************************************************************************************************************//


//****************************************** DNC Alert Messages For SPANISH **********************************************************//
function getDNCPhoneMessageSPN( stateName ) {
  
	alert( 		"AVISO DE NO LLAMAR\n\n" +
		  
			"Gracias por su inter\351s en los productos y servicios de ADT.  Desafortunadamente, bajo " +
			"algunas circunstancias la ley de " + stateName + " puede no permitir a las compa\361\355as como ADT " +
			"contactar clientes que se encuentren en una Lista de No Llamar (DNC List).  Si usted cree " +
			"que su nombre aparece en cualquier Lista de No Llamar, favor contactar a ADT llamando al " +
			pageNumber + ".");
				
}


function getDNCCellMessageSPN( stateName ) {

	alert( 		"AVISO DE NO LLAMAR\n\n" +
				
			"Gracias por su inter\351s en los productos y servicios de ADT. Desafortunadamente, bajo algunas " +
			"circunstancias la ley de " + stateName + " puede no permitir a ADT contactarlo a su tel\351fono " +
			"m\363vil/ celular.  Si el n\372mero que usted suministr\363 es un n\372mero de tel\351fono m\363vil/ celular, " +
			"por favor ingrese un nuevo n\372mero telef\363nico.  Si usted no tiene otro n\372mero donde  sea posible " +
			"contactarlo, por favor llame a ADT al " + pageNumber + ".");
}

function getDNCPhoneANDCellMessageSPN( stateName ) {

	alert( 		"AVISO DE NO LLAMAR\n\n" +
		  
		  	"Gracias por su inter\351s en los productos y servicios de ADT.  Desafortunadamente, bajo algunas " +
		  	"circunstancias la ley de " + stateName + " puede no permitir a las compa\361\355as como ADT contactar " +
		  	"clientes que se encuentren en una Lista de No Llamar-(DNC List).\n\n" +
			
			"Adem\341s, " + stateName + " proh\355be a ADT llamarlo a usted a su tel\351fono m\363vil/ celular. Si el " +
			"n\372mero que usted suministr\363 es un n\372mero de tel\351fono m\363vil/ celular, por favor ingrese un " +
			"nuevo n\372mero telef\363nico. " + 
			
			"\n\nFavor llamar a ADT al " + pageNumber + " si:" +
			"\n-  Usted solamente puede ser contactado a trav\351s de un tel\351fono m\363vil/ celular; o" +
			"\n-  Usted cree que su nombre aparece en cualquier Lista de No Llamar (Do Not Call List).");
}

//***********************************************************************************************************************************//
