﻿//
// BEGIN JSON CODE
//

/*
*
* This file was auto-generated by Validar Lead Import.
*
* Copyright (c) 2010, Validar Incorporated
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*     * Redistributions of source code must retain the above copyright
*       notice, this list of conditions and the following disclaimer.
*     * Redistributions in binary form must reproduce the above copyright
*       notice, this list of conditions and the following disclaimer in the
*       documentation and/or other materials provided with the distribution.
*     * Neither the name of the Validar Incorporated nor the
*       names of its contributors may be used to endorse or promote products
*       derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY VALIDAR INCORPORATED 'AS-IS' AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL VALIDAR INCORPORATED BE LIABLE FOR ANY
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
*/

/*
* This code was created by Validar Inc. AnySource Code Generator V3.9.18.3230
*/

var CSHContactUsv2 = {
	// This constant represents the unspecified value for all enumerations
	ENUM_UNSPEC_VALUE : -1,
	
	// The maximum number of characters
	TEXT_MAX_LEN : 4000,
	
	// Used with property Salutation
	SalutationType : {
		DOCTEUR : 0,
		Dr : 1,
		DRSSA : 2,
		Dra : 3,
		Frau : 4,
		Heer : 5,
		Herr : 6,
		MADAME : 7,
		MADEMOISELLE : 8,
		Mevrouw : 9,
		Miss : 10,
		MONSIEUR : 11,
		Mr : 12,
		Mrs : 13,
		Ms : 14,
		Pan : 15,
		Pani : 16,
		Panna : 17,
		Prof : 18,
		PROFSSA : 19,
		Professor : 20,
		SIGRA : 21,
		SIG : 22
	},
	
	// Used with property LeadRank
	LeadRankType : {
		A : 0,
		B : 1
	},
	
	// Used with property Facility_Type
	Facility_TypeType : {
		Ambulatory : 0,
		CancerCenter : 1,
		CollegeTrainingInstitute : 2,
		ConsultantPM : 3,
		DiagnosticImagingCenter : 4,
		DiagnosticImagingCenterMultiFacilityChain : 5,
		DistributorOEMVAR : 6,
		FreeStandingDataCenter : 7,
		GPOGroupPurchasingOrganization : 8,
		Hospital : 9,
		IDSRHA : 10,
		InHospitalDataCenter : 11,
		MedicalGroupPractice : 12,
		OrthopedicPractice : 13,
		Other : 14,
		ResearchInstitute : 15,
		SingleHospitalHealthSystem : 16,
		SubAcute : 17,
		WomensHealthCenter : 18
	},
	
	// Used with property Purchasing_Role
	Purchasing_RoleType : {
		Coach : 0,
		DecisionMaker : 1,
		EconomicBuyer : 2,
		EvaluatorTechnical : 3,
		ExecutiveSponsor : 4,
		Purchaser : 5,
		TechnicalBuyer : 6,
		UserBuyer : 7,
		Other : 8
	},
	
	// Used with property Product_Interest
	Product_InterestType : {
		Medical_Imaging : 0,
		Molecular_Imaging : 1,
		NDT : 2
	},
	
	// Used with property Site_Country
	Site_CountryType : {
		AD : 0,
		AE : 1,
		AF : 2,
		AG : 3,
		AI : 4,
		AL : 5,
		AM : 6,
		AN : 7,
		AO : 8,
		AQ : 9,
		AR : 10,
		AS : 11,
		AT : 12,
		AU : 13,
		AW : 14,
		AX : 15,
		AZ : 16,
		BA : 17,
		BB : 18,
		BD : 19,
		BE : 20,
		BF : 21,
		BG : 22,
		BH : 23,
		BI : 24,
		BJ : 25,
		BL : 26,
		BM : 27,
		BN : 28,
		BO : 29,
		BR : 30,
		BS : 31,
		BT : 32,
		BV : 33,
		BW : 34,
		BY : 35,
		BZ : 36,
		CA : 37,
		CC : 38,
		CD : 39,
		CF : 40,
		CG : 41,
		CH : 42,
		CI : 43,
		CK : 44,
		CL : 45,
		CM : 46,
		CN : 47,
		CO : 48,
		CR : 49,
		CU : 50,
		CV : 51,
		CX : 52,
		CY : 53,
		CZ : 54,
		DE : 55,
		DJ : 56,
		DK : 57,
		DM : 58,
		DO : 59,
		DZ : 60,
		EC : 61,
		EE : 62,
		EG : 63,
		EH : 64,
		ER : 65,
		ES : 66,
		ET : 67,
		FI : 68,
		FJ : 69,
		FK : 70,
		FM : 71,
		FO : 72,
		FR : 73,
		GA : 74,
		GB : 75,
		GD : 76,
		GE : 77,
		GF : 78,
		GG : 79,
		GH : 80,
		GI : 81,
		GL : 82,
		GM : 83,
		GN : 84,
		GP : 85,
		GQ : 86,
		GR : 87,
		GS : 88,
		GT : 89,
		GU : 90,
		GW : 91,
		GY : 92,
		HK : 93,
		HM : 94,
		HN : 95,
		HR : 96,
		HT : 97,
		HU : 98,
		ID : 99,
		IE : 100,
		IL : 101,
		IM : 102,
		IN : 103,
		IO : 104,
		IQ : 105,
		IR : 106,
		IS : 107,
		IT : 108,
		JE : 109,
		JM : 110,
		JO : 111,
		JP : 112,
		KE : 113,
		KG : 114,
		KH : 115,
		KI : 116,
		KM : 117,
		KN : 118,
		KP : 119,
		KR : 120,
		KW : 121,
		KY : 122,
		KZ : 123,
		LA : 124,
		LB : 125,
		LC : 126,
		LI : 127,
		LK : 128,
		LR : 129,
		LS : 130,
		LT : 131,
		LU : 132,
		LV : 133,
		LY : 134,
		MA : 135,
		MC : 136,
		MD : 137,
		ME : 138,
		MF : 139,
		MG : 140,
		MH : 141,
		MK : 142,
		ML : 143,
		MM : 144,
		MN : 145,
		MO : 146,
		MP : 147,
		MQ : 148,
		MR : 149,
		MS : 150,
		MT : 151,
		MU : 152,
		MV : 153,
		MW : 154,
		MX : 155,
		MY : 156,
		MZ : 157,
		NA : 158,
		NC : 159,
		NE : 160,
		NF : 161,
		NG : 162,
		NI : 163,
		NL : 164,
		NO : 165,
		NP : 166,
		NR : 167,
		NU : 168,
		NZ : 169,
		OM : 170,
		PA : 171,
		PE : 172,
		PF : 173,
		PG : 174,
		PH : 175,
		PK : 176,
		PL : 177,
		PM : 178,
		PN : 179,
		PR : 180,
		PS : 181,
		PT : 182,
		PW : 183,
		PY : 184,
		QA : 185,
		RE : 186,
		RO : 187,
		RS : 188,
		RU : 189,
		RW : 190,
		SA : 191,
		SB : 192,
		SC : 193,
		SD : 194,
		SE : 195,
		SG : 196,
		SH : 197,
		SI : 198,
		SJ : 199,
		SK : 200,
		SL : 201,
		SM : 202,
		SN : 203,
		SO : 204,
		SR : 205,
		ST : 206,
		SV : 207,
		SY : 208,
		SZ : 209,
		TC : 210,
		TD : 211,
		TF : 212,
		TG : 213,
		TH : 214,
		TJ : 215,
		TK : 216,
		TL : 217,
		TM : 218,
		TN : 219,
		TO : 220,
		TR : 221,
		TT : 222,
		TV : 223,
		TW : 224,
		TZ : 225,
		UA : 226,
		UG : 227,
		UM : 228,
		US : 229,
		UY : 230,
		UZ : 231,
		VA : 232,
		VC : 233,
		VE : 234,
		VG : 235,
		VI : 236,
		VN : 237,
		VU : 238,
		WF : 239,
		WS : 240,
		XK : 241,
		YE : 242,
		YT : 243,
		ZA : 244,
		ZM : 245,
		ZW : 246
	},
	
	// Used with property Mktg_Email_Opt_In
	Mktg_Email_Opt_InType : {
		Yes : 0,
		No : 1
	},
	
	// Public properties
	Salutation : -1,
	FirstName : null,
	LastName : null,
	Company : null,
	Title : null,
	Email : null,
	Street : null,
	City : null,
	State : null,
	PostalCode : null,
	Phone : null,
	LeadRank : -1,
	Facility_Type : -1,
	Purchasing_Role : -1,
	Product_Interest : -1,
	CARE_Medical_Imaging_IT_Product_Interest : {
		CADChest : false,
		CADMammo : false,
		ComputedRadiography : false,
		ComputerAidedDetectionCAD : false,
		CR : false,
		CRMammo : false,
		CROnco : false,
		Dental : false,
		DigitalRadiography : false,
		DR : false,
		EquipmentService : false,
		FilmMammo : false,
		FilmOnco : false,
		FilmImagingegxrayfilm : false,
		FilmSystemsGenRad : false,
		FilmSystemsMammo : false,
		FilmSystemsOnco : false,
		HealthcareITegPACSRIS : false,
		Mammography : false,
		MedicalPrintSystemseglaserprint : false,
		MolecularImaging : false,
		Oncology : false,
		Orthopedics : false,
		Other : false,
		PACS : false,
		PACSCardio : false,
		PACSMammo : false,
		Printers : false,
		ProfessionalServices : false,
		RIS : false,
		StorageArchive : false
	},
	Description : null,
	CARE_Molecular_Imaging_Product_Interest : {
		PET_SPECT_CT : false,
		InVivoSystems : false,
		ImageStationSystems : false,
		GelLogicSystems : false,
		SpecimenRadiography : false,
		AnalysisSoftware : false,
		InVivoDXSPRO : false,
		FilmImaging : false
	},
	CARE_NDT_Product_Interest : {
		CRDigitalSolutions : false,
		FilmSolutions : false,
		FilmBadgeDosimetry : false
	},
	Potential_Purchase_Date : null,
	Site_Country : -1,
	Mktg_Email_Opt_In : -1,
	
	// SourceId is a tracking property that is used to indicate the source of the lead
	SourceId : null,
	
	// ResultKey is a tracking property that is used to indicate the unique identifier of the result
	ResultKey : null,
	
	// MergeKey is a tracking property that is used to merge the result with contact or demographic data
	MergeKey : null,
	
	// ResultDateTime ResultDateTime is the collection date and time of the result
	ResultDateTime : null,
	
	// AlwaysAdd is a property that, when true, will create a new result even when the value for ResultKey matches an existing result, otherwise the matching result will be updated
	AlwaysAdd : true,
	
	// Public control properties
	_Timeout : 300000, // Timeout in milliseconds, default 5 min
	_SubmitResult : false, // Set to the result of the lead submission, true or false
	_SubmitMessage : null, // Set to the message returned from the lead submission
	
	_Reset : function() {
		// Public properties
		this.Salutation = this.ENUM_UNSPEC_VALUE;
		this.FirstName = null;
		this.LastName = null;
		this.Company = null;
		this.Title = null;
		this.Email = null;
		this.Street = null;
		this.City = null;
		this.State = null;
		this.PostalCode = null;
		this.Phone = null;
		this.LeadRank = this.ENUM_UNSPEC_VALUE;
		this.Facility_Type = this.ENUM_UNSPEC_VALUE;
		this.Purchasing_Role = this.ENUM_UNSPEC_VALUE;
		this.Product_Interest = this.ENUM_UNSPEC_VALUE;
		this.CARE_Medical_Imaging_IT_Product_Interest.CADChest = false;
		this.CARE_Medical_Imaging_IT_Product_Interest.CADMammo = false;
		this.CARE_Medical_Imaging_IT_Product_Interest.ComputedRadiography = false;
		this.CARE_Medical_Imaging_IT_Product_Interest.ComputerAidedDetectionCAD = false;
		this.CARE_Medical_Imaging_IT_Product_Interest.CR = false;
		this.CARE_Medical_Imaging_IT_Product_Interest.CRMammo = false;
		this.CARE_Medical_Imaging_IT_Product_Interest.CROnco = false;
		this.CARE_Medical_Imaging_IT_Product_Interest.Dental = false;
		this.CARE_Medical_Imaging_IT_Product_Interest.DigitalRadiography = false;
		this.CARE_Medical_Imaging_IT_Product_Interest.DR = false;
		this.CARE_Medical_Imaging_IT_Product_Interest.EquipmentService = false;
		this.CARE_Medical_Imaging_IT_Product_Interest.FilmMammo = false;
		this.CARE_Medical_Imaging_IT_Product_Interest.FilmOnco = false;
		this.CARE_Medical_Imaging_IT_Product_Interest.FilmImagingegxrayfilm = false;
		this.CARE_Medical_Imaging_IT_Product_Interest.FilmSystemsGenRad = false;
		this.CARE_Medical_Imaging_IT_Product_Interest.FilmSystemsMammo = false;
		this.CARE_Medical_Imaging_IT_Product_Interest.FilmSystemsOnco = false;
		this.CARE_Medical_Imaging_IT_Product_Interest.HealthcareITegPACSRIS = false;
		this.CARE_Medical_Imaging_IT_Product_Interest.Mammography = false;
		this.CARE_Medical_Imaging_IT_Product_Interest.MedicalPrintSystemseglaserprint = false;
		this.CARE_Medical_Imaging_IT_Product_Interest.MolecularImaging = false;
		this.CARE_Medical_Imaging_IT_Product_Interest.Oncology = false;
		this.CARE_Medical_Imaging_IT_Product_Interest.Orthopedics = false;
		this.CARE_Medical_Imaging_IT_Product_Interest.Other = false;
		this.CARE_Medical_Imaging_IT_Product_Interest.PACS = false;
		this.CARE_Medical_Imaging_IT_Product_Interest.PACSCardio = false;
		this.CARE_Medical_Imaging_IT_Product_Interest.PACSMammo = false;
		this.CARE_Medical_Imaging_IT_Product_Interest.Printers = false;
		this.CARE_Medical_Imaging_IT_Product_Interest.ProfessionalServices = false;
		this.CARE_Medical_Imaging_IT_Product_Interest.RIS = false;
		this.CARE_Medical_Imaging_IT_Product_Interest.StorageArchive = false;
		this.Description = null;
		this.CARE_Molecular_Imaging_Product_Interest.PET_SPECT_CT = false;
		this.CARE_Molecular_Imaging_Product_Interest.InVivoSystems = false;
		this.CARE_Molecular_Imaging_Product_Interest.ImageStationSystems = false;
		this.CARE_Molecular_Imaging_Product_Interest.GelLogicSystems = false;
		this.CARE_Molecular_Imaging_Product_Interest.SpecimenRadiography = false;
		this.CARE_Molecular_Imaging_Product_Interest.AnalysisSoftware = false;
		this.CARE_Molecular_Imaging_Product_Interest.InVivoDXSPRO = false;
		this.CARE_Molecular_Imaging_Product_Interest.FilmImaging = false;
		this.CARE_NDT_Product_Interest.CRDigitalSolutions = false;
		this.CARE_NDT_Product_Interest.FilmSolutions = false;
		this.CARE_NDT_Product_Interest.FilmBadgeDosimetry = false;
		this.Potential_Purchase_Date = null;
		this.Site_Country = this.ENUM_UNSPEC_VALUE;
		this.Mktg_Email_Opt_In = this.ENUM_UNSPEC_VALUE;
		this.SourceId = null;
		this.ResultKey = null;
		this.MergeKey = null;
		this.ResultDateTime = null;
		this.AlwaysAdd = true;
		this._SubmitResult = false;
		this._SubmitMessage = null;
		
		// Internal properties
		this.__onCompCb = null;
		this.__onTimeCb = null;
		this.__firstReq = true;
		this.__curProp = 0;
		this.__curOffset = 0;
		this.__subKey = null;
		this.__timer = null;
		this.__scriptElt = null;
	},
	
	// Call this method to submit the lead
	// c - function to call when the submission process completes
	// t - function to call if the submission process times out
	_SubmitLead : function(c, t) {
		this.__onCompCb = c;
		this.__onTimeCb = t;
		if (this.__validate()) {
			this.__doSubmit();
		} else {
			this._SubmitResult = false;
			if (this.__onCompCb != null) this.__onCompCb();
		}
	},
	
	// !!! DO NOT USE OR MODIFY !!!
	// Internal properties and functions
	// !!! DO NOT USE OR MODIFY !!!
	__onCompCb : null,
	__onTimeCb : null,
	
	__firstReq : true,
	__curProp : 0,
	__maxProp : 66,
	__curOffset : 0,
	__subKey : null,
	
	__timer : null,
	__scriptElt : null,
	
	__getIdPairs : function() {
		if (this.__firstReq) {
			this.__firstReq = false;
			return "_JO=CSHContactUsv2&_OG=f85f7907-4604-4603-8a73-b1d5a83a6153&_LSG=7578e44a-64a0-4804-8476-b3fb9a7a6fd2";
		}
		else return "_JO=CSHContactUsv2&_SK=" + this.__subKey;
	},
	
	__getCurPropKey : function() {
		switch(this.__curProp) {
			case 0: return "_DI";
			case 1: return "_RK";
			case 2: return "_MK";
			case 3: return "_RD";
			case 4: return "_AA";
			case 5:
				switch (this.Salutation) {
					case this.SalutationType.DOCTEUR: return "Salutation_DOCTEUR";
					case this.SalutationType.Dr: return "Salutation_Dr";
					case this.SalutationType.DRSSA: return "Salutation_DRSSA";
					case this.SalutationType.Dra: return "Salutation_Dra";
					case this.SalutationType.Frau: return "Salutation_Frau";
					case this.SalutationType.Heer: return "Salutation_Heer";
					case this.SalutationType.Herr: return "Salutation_Herr";
					case this.SalutationType.MADAME: return "Salutation_MADAME";
					case this.SalutationType.MADEMOISELLE: return "Salutation_MADEMOISELLE";
					case this.SalutationType.Mevrouw: return "Salutation_Mevrouw";
					case this.SalutationType.Miss: return "Salutation_Miss";
					case this.SalutationType.MONSIEUR: return "Salutation_MONSIEUR";
					case this.SalutationType.Mr: return "Salutation_Mr";
					case this.SalutationType.Mrs: return "Salutation_Mrs";
					case this.SalutationType.Ms: return "Salutation_Ms";
					case this.SalutationType.Pan: return "Salutation_Pan";
					case this.SalutationType.Pani: return "Salutation_Pani";
					case this.SalutationType.Panna: return "Salutation_Panna";
					case this.SalutationType.Prof: return "Salutation_Prof";
					case this.SalutationType.PROFSSA: return "Salutation_PROFSSA";
					case this.SalutationType.Professor: return "Salutation_Professor";
					case this.SalutationType.SIGRA: return "Salutation_SIGRA";
					case this.SalutationType.SIG: return "Salutation_SIG";
				}
				return null;
			case 6: return "FirstName";
			case 7: return "LastName";
			case 8: return "Company";
			case 9: return "Title";
			case 10: return "Email";
			case 11: return "Street";
			case 12: return "City";
			case 13: return "State";
			case 14: return "PostalCode";
			case 15: return "Phone";
			case 16:
				switch (this.LeadRank) {
					case this.LeadRankType.A: return "LeadRank_A";
					case this.LeadRankType.B: return "LeadRank_B";
				}
				return null;
			case 17:
				switch (this.Facility_Type) {
					case this.Facility_TypeType.Ambulatory: return "Facility_Type_Ambulatory";
					case this.Facility_TypeType.CancerCenter: return "Facility_Type_CancerCenter";
					case this.Facility_TypeType.CollegeTrainingInstitute: return "Facility_Type_CollegeTrainingInstitute";
					case this.Facility_TypeType.ConsultantPM: return "Facility_Type_ConsultantPM";
					case this.Facility_TypeType.DiagnosticImagingCenter: return "Facility_Type_DiagnosticImagingCenter";
					case this.Facility_TypeType.DiagnosticImagingCenterMultiFacilityChain: return "Facility_Type_DiagnosticImagingCenterMultiFacilityChain";
					case this.Facility_TypeType.DistributorOEMVAR: return "Facility_Type_DistributorOEMVAR";
					case this.Facility_TypeType.FreeStandingDataCenter: return "Facility_Type_FreeStandingDataCenter";
					case this.Facility_TypeType.GPOGroupPurchasingOrganization: return "Facility_Type_GPOGroupPurchasingOrganization";
					case this.Facility_TypeType.Hospital: return "Facility_Type_Hospital";
					case this.Facility_TypeType.IDSRHA: return "Facility_Type_IDSRHA";
					case this.Facility_TypeType.InHospitalDataCenter: return "Facility_Type_InHospitalDataCenter";
					case this.Facility_TypeType.MedicalGroupPractice: return "Facility_Type_MedicalGroupPractice";
					case this.Facility_TypeType.OrthopedicPractice: return "Facility_Type_OrthopedicPractice";
					case this.Facility_TypeType.Other: return "Facility_Type_Other";
					case this.Facility_TypeType.ResearchInstitute: return "Facility_Type_ResearchInstitute";
					case this.Facility_TypeType.SingleHospitalHealthSystem: return "Facility_Type_SingleHospitalHealthSystem";
					case this.Facility_TypeType.SubAcute: return "Facility_Type_SubAcute";
					case this.Facility_TypeType.WomensHealthCenter: return "Facility_Type_WomensHealthCenter";
				}
				return null;
			case 18:
				switch (this.Purchasing_Role) {
					case this.Purchasing_RoleType.Coach: return "Purchasing_Role_Coach";
					case this.Purchasing_RoleType.DecisionMaker: return "Purchasing_Role_DecisionMaker";
					case this.Purchasing_RoleType.EconomicBuyer: return "Purchasing_Role_EconomicBuyer";
					case this.Purchasing_RoleType.EvaluatorTechnical: return "Purchasing_Role_EvaluatorTechnical";
					case this.Purchasing_RoleType.ExecutiveSponsor: return "Purchasing_Role_ExecutiveSponsor";
					case this.Purchasing_RoleType.Purchaser: return "Purchasing_Role_Purchaser";
					case this.Purchasing_RoleType.TechnicalBuyer: return "Purchasing_Role_TechnicalBuyer";
					case this.Purchasing_RoleType.UserBuyer: return "Purchasing_Role_UserBuyer";
					case this.Purchasing_RoleType.Other: return "Purchasing_Role_Other";
				}
				return null;
			case 19:
				switch (this.Product_Interest) {
					case this.Product_InterestType.Medical_Imaging: return "Product_Interest_Medical_Imaging";
					case this.Product_InterestType.Molecular_Imaging: return "Product_Interest_Molecular_Imaging";
					case this.Product_InterestType.NDT: return "Product_Interest_NDT";
				}
				return null;
			case 20: return "CARE_Medical_Imaging_IT_Product_Interest_CADChest";
			case 21: return "CARE_Medical_Imaging_IT_Product_Interest_CADMammo";
			case 22: return "CARE_Medical_Imaging_IT_Product_Interest_ComputedRadiography";
			case 23: return "CARE_Medical_Imaging_IT_Product_Interest_ComputerAidedDetectionCAD";
			case 24: return "CARE_Medical_Imaging_IT_Product_Interest_CR";
			case 25: return "CARE_Medical_Imaging_IT_Product_Interest_CRMammo";
			case 26: return "CARE_Medical_Imaging_IT_Product_Interest_CROnco";
			case 27: return "CARE_Medical_Imaging_IT_Product_Interest_Dental";
			case 28: return "CARE_Medical_Imaging_IT_Product_Interest_DigitalRadiography";
			case 29: return "CARE_Medical_Imaging_IT_Product_Interest_DR";
			case 30: return "CARE_Medical_Imaging_IT_Product_Interest_EquipmentService";
			case 31: return "CARE_Medical_Imaging_IT_Product_Interest_FilmMammo";
			case 32: return "CARE_Medical_Imaging_IT_Product_Interest_FilmOnco";
			case 33: return "CARE_Medical_Imaging_IT_Product_Interest_FilmImagingegxrayfilm";
			case 34: return "CARE_Medical_Imaging_IT_Product_Interest_FilmSystemsGenRad";
			case 35: return "CARE_Medical_Imaging_IT_Product_Interest_FilmSystemsMammo";
			case 36: return "CARE_Medical_Imaging_IT_Product_Interest_FilmSystemsOnco";
			case 37: return "CARE_Medical_Imaging_IT_Product_Interest_HealthcareITegPACSRIS";
			case 38: return "CARE_Medical_Imaging_IT_Product_Interest_Mammography";
			case 39: return "CARE_Medical_Imaging_IT_Product_Interest_MedicalPrintSystemseglaserprint";
			case 40: return "CARE_Medical_Imaging_IT_Product_Interest_MolecularImaging";
			case 41: return "CARE_Medical_Imaging_IT_Product_Interest_Oncology";
			case 42: return "CARE_Medical_Imaging_IT_Product_Interest_Orthopedics";
			case 43: return "CARE_Medical_Imaging_IT_Product_Interest_Other";
			case 44: return "CARE_Medical_Imaging_IT_Product_Interest_PACS";
			case 45: return "CARE_Medical_Imaging_IT_Product_Interest_PACSCardio";
			case 46: return "CARE_Medical_Imaging_IT_Product_Interest_PACSMammo";
			case 47: return "CARE_Medical_Imaging_IT_Product_Interest_Printers";
			case 48: return "CARE_Medical_Imaging_IT_Product_Interest_ProfessionalServices";
			case 49: return "CARE_Medical_Imaging_IT_Product_Interest_RIS";
			case 50: return "CARE_Medical_Imaging_IT_Product_Interest_StorageArchive";
			case 51: return "Description";
			case 52: return "CARE_Molecular_Imaging_Product_Interest_PET_SPECT_CT";
			case 53: return "CARE_Molecular_Imaging_Product_Interest_InVivoSystems";
			case 54: return "CARE_Molecular_Imaging_Product_Interest_ImageStationSystems";
			case 55: return "CARE_Molecular_Imaging_Product_Interest_GelLogicSystems";
			case 56: return "CARE_Molecular_Imaging_Product_Interest_SpecimenRadiography";
			case 57: return "CARE_Molecular_Imaging_Product_Interest_AnalysisSoftware";
			case 58: return "CARE_Molecular_Imaging_Product_Interest_InVivoDXSPRO";
			case 59: return "CARE_Molecular_Imaging_Product_Interest_FilmImaging";
			case 60: return "CARE_NDT_Product_Interest_CRDigitalSolutions";
			case 61: return "CARE_NDT_Product_Interest_FilmSolutions";
			case 62: return "CARE_NDT_Product_Interest_FilmBadgeDosimetry";
			case 63: return "Potential_Purchase_Date";
			case 64:
				switch (this.Site_Country) {
					case this.Site_CountryType.AD: return "Site_Country_AD";
					case this.Site_CountryType.AE: return "Site_Country_AE";
					case this.Site_CountryType.AF: return "Site_Country_AF";
					case this.Site_CountryType.AG: return "Site_Country_AG";
					case this.Site_CountryType.AI: return "Site_Country_AI";
					case this.Site_CountryType.AL: return "Site_Country_AL";
					case this.Site_CountryType.AM: return "Site_Country_AM";
					case this.Site_CountryType.AN: return "Site_Country_AN";
					case this.Site_CountryType.AO: return "Site_Country_AO";
					case this.Site_CountryType.AQ: return "Site_Country_AQ";
					case this.Site_CountryType.AR: return "Site_Country_AR";
					case this.Site_CountryType.AS: return "Site_Country_AS";
					case this.Site_CountryType.AT: return "Site_Country_AT";
					case this.Site_CountryType.AU: return "Site_Country_AU";
					case this.Site_CountryType.AW: return "Site_Country_AW";
					case this.Site_CountryType.AX: return "Site_Country_AX";
					case this.Site_CountryType.AZ: return "Site_Country_AZ";
					case this.Site_CountryType.BA: return "Site_Country_BA";
					case this.Site_CountryType.BB: return "Site_Country_BB";
					case this.Site_CountryType.BD: return "Site_Country_BD";
					case this.Site_CountryType.BE: return "Site_Country_BE";
					case this.Site_CountryType.BF: return "Site_Country_BF";
					case this.Site_CountryType.BG: return "Site_Country_BG";
					case this.Site_CountryType.BH: return "Site_Country_BH";
					case this.Site_CountryType.BI: return "Site_Country_BI";
					case this.Site_CountryType.BJ: return "Site_Country_BJ";
					case this.Site_CountryType.BL: return "Site_Country_BL";
					case this.Site_CountryType.BM: return "Site_Country_BM";
					case this.Site_CountryType.BN: return "Site_Country_BN";
					case this.Site_CountryType.BO: return "Site_Country_BO";
					case this.Site_CountryType.BR: return "Site_Country_BR";
					case this.Site_CountryType.BS: return "Site_Country_BS";
					case this.Site_CountryType.BT: return "Site_Country_BT";
					case this.Site_CountryType.BV: return "Site_Country_BV";
					case this.Site_CountryType.BW: return "Site_Country_BW";
					case this.Site_CountryType.BY: return "Site_Country_BY";
					case this.Site_CountryType.BZ: return "Site_Country_BZ";
					case this.Site_CountryType.CA: return "Site_Country_CA";
					case this.Site_CountryType.CC: return "Site_Country_CC";
					case this.Site_CountryType.CD: return "Site_Country_CD";
					case this.Site_CountryType.CF: return "Site_Country_CF";
					case this.Site_CountryType.CG: return "Site_Country_CG";
					case this.Site_CountryType.CH: return "Site_Country_CH";
					case this.Site_CountryType.CI: return "Site_Country_CI";
					case this.Site_CountryType.CK: return "Site_Country_CK";
					case this.Site_CountryType.CL: return "Site_Country_CL";
					case this.Site_CountryType.CM: return "Site_Country_CM";
					case this.Site_CountryType.CN: return "Site_Country_CN";
					case this.Site_CountryType.CO: return "Site_Country_CO";
					case this.Site_CountryType.CR: return "Site_Country_CR";
					case this.Site_CountryType.CU: return "Site_Country_CU";
					case this.Site_CountryType.CV: return "Site_Country_CV";
					case this.Site_CountryType.CX: return "Site_Country_CX";
					case this.Site_CountryType.CY: return "Site_Country_CY";
					case this.Site_CountryType.CZ: return "Site_Country_CZ";
					case this.Site_CountryType.DE: return "Site_Country_DE";
					case this.Site_CountryType.DJ: return "Site_Country_DJ";
					case this.Site_CountryType.DK: return "Site_Country_DK";
					case this.Site_CountryType.DM: return "Site_Country_DM";
					case this.Site_CountryType.DO: return "Site_Country_DO";
					case this.Site_CountryType.DZ: return "Site_Country_DZ";
					case this.Site_CountryType.EC: return "Site_Country_EC";
					case this.Site_CountryType.EE: return "Site_Country_EE";
					case this.Site_CountryType.EG: return "Site_Country_EG";
					case this.Site_CountryType.EH: return "Site_Country_EH";
					case this.Site_CountryType.ER: return "Site_Country_ER";
					case this.Site_CountryType.ES: return "Site_Country_ES";
					case this.Site_CountryType.ET: return "Site_Country_ET";
					case this.Site_CountryType.FI: return "Site_Country_FI";
					case this.Site_CountryType.FJ: return "Site_Country_FJ";
					case this.Site_CountryType.FK: return "Site_Country_FK";
					case this.Site_CountryType.FM: return "Site_Country_FM";
					case this.Site_CountryType.FO: return "Site_Country_FO";
					case this.Site_CountryType.FR: return "Site_Country_FR";
					case this.Site_CountryType.GA: return "Site_Country_GA";
					case this.Site_CountryType.GB: return "Site_Country_GB";
					case this.Site_CountryType.GD: return "Site_Country_GD";
					case this.Site_CountryType.GE: return "Site_Country_GE";
					case this.Site_CountryType.GF: return "Site_Country_GF";
					case this.Site_CountryType.GG: return "Site_Country_GG";
					case this.Site_CountryType.GH: return "Site_Country_GH";
					case this.Site_CountryType.GI: return "Site_Country_GI";
					case this.Site_CountryType.GL: return "Site_Country_GL";
					case this.Site_CountryType.GM: return "Site_Country_GM";
					case this.Site_CountryType.GN: return "Site_Country_GN";
					case this.Site_CountryType.GP: return "Site_Country_GP";
					case this.Site_CountryType.GQ: return "Site_Country_GQ";
					case this.Site_CountryType.GR: return "Site_Country_GR";
					case this.Site_CountryType.GS: return "Site_Country_GS";
					case this.Site_CountryType.GT: return "Site_Country_GT";
					case this.Site_CountryType.GU: return "Site_Country_GU";
					case this.Site_CountryType.GW: return "Site_Country_GW";
					case this.Site_CountryType.GY: return "Site_Country_GY";
					case this.Site_CountryType.HK: return "Site_Country_HK";
					case this.Site_CountryType.HM: return "Site_Country_HM";
					case this.Site_CountryType.HN: return "Site_Country_HN";
					case this.Site_CountryType.HR: return "Site_Country_HR";
					case this.Site_CountryType.HT: return "Site_Country_HT";
					case this.Site_CountryType.HU: return "Site_Country_HU";
					case this.Site_CountryType.ID: return "Site_Country_ID";
					case this.Site_CountryType.IE: return "Site_Country_IE";
					case this.Site_CountryType.IL: return "Site_Country_IL";
					case this.Site_CountryType.IM: return "Site_Country_IM";
					case this.Site_CountryType.IN: return "Site_Country_IN";
					case this.Site_CountryType.IO: return "Site_Country_IO";
					case this.Site_CountryType.IQ: return "Site_Country_IQ";
					case this.Site_CountryType.IR: return "Site_Country_IR";
					case this.Site_CountryType.IS: return "Site_Country_IS";
					case this.Site_CountryType.IT: return "Site_Country_IT";
					case this.Site_CountryType.JE: return "Site_Country_JE";
					case this.Site_CountryType.JM: return "Site_Country_JM";
					case this.Site_CountryType.JO: return "Site_Country_JO";
					case this.Site_CountryType.JP: return "Site_Country_JP";
					case this.Site_CountryType.KE: return "Site_Country_KE";
					case this.Site_CountryType.KG: return "Site_Country_KG";
					case this.Site_CountryType.KH: return "Site_Country_KH";
					case this.Site_CountryType.KI: return "Site_Country_KI";
					case this.Site_CountryType.KM: return "Site_Country_KM";
					case this.Site_CountryType.KN: return "Site_Country_KN";
					case this.Site_CountryType.KP: return "Site_Country_KP";
					case this.Site_CountryType.KR: return "Site_Country_KR";
					case this.Site_CountryType.KW: return "Site_Country_KW";
					case this.Site_CountryType.KY: return "Site_Country_KY";
					case this.Site_CountryType.KZ: return "Site_Country_KZ";
					case this.Site_CountryType.LA: return "Site_Country_LA";
					case this.Site_CountryType.LB: return "Site_Country_LB";
					case this.Site_CountryType.LC: return "Site_Country_LC";
					case this.Site_CountryType.LI: return "Site_Country_LI";
					case this.Site_CountryType.LK: return "Site_Country_LK";
					case this.Site_CountryType.LR: return "Site_Country_LR";
					case this.Site_CountryType.LS: return "Site_Country_LS";
					case this.Site_CountryType.LT: return "Site_Country_LT";
					case this.Site_CountryType.LU: return "Site_Country_LU";
					case this.Site_CountryType.LV: return "Site_Country_LV";
					case this.Site_CountryType.LY: return "Site_Country_LY";
					case this.Site_CountryType.MA: return "Site_Country_MA";
					case this.Site_CountryType.MC: return "Site_Country_MC";
					case this.Site_CountryType.MD: return "Site_Country_MD";
					case this.Site_CountryType.ME: return "Site_Country_ME";
					case this.Site_CountryType.MF: return "Site_Country_MF";
					case this.Site_CountryType.MG: return "Site_Country_MG";
					case this.Site_CountryType.MH: return "Site_Country_MH";
					case this.Site_CountryType.MK: return "Site_Country_MK";
					case this.Site_CountryType.ML: return "Site_Country_ML";
					case this.Site_CountryType.MM: return "Site_Country_MM";
					case this.Site_CountryType.MN: return "Site_Country_MN";
					case this.Site_CountryType.MO: return "Site_Country_MO";
					case this.Site_CountryType.MP: return "Site_Country_MP";
					case this.Site_CountryType.MQ: return "Site_Country_MQ";
					case this.Site_CountryType.MR: return "Site_Country_MR";
					case this.Site_CountryType.MS: return "Site_Country_MS";
					case this.Site_CountryType.MT: return "Site_Country_MT";
					case this.Site_CountryType.MU: return "Site_Country_MU";
					case this.Site_CountryType.MV: return "Site_Country_MV";
					case this.Site_CountryType.MW: return "Site_Country_MW";
					case this.Site_CountryType.MX: return "Site_Country_MX";
					case this.Site_CountryType.MY: return "Site_Country_MY";
					case this.Site_CountryType.MZ: return "Site_Country_MZ";
					case this.Site_CountryType.NA: return "Site_Country_NA";
					case this.Site_CountryType.NC: return "Site_Country_NC";
					case this.Site_CountryType.NE: return "Site_Country_NE";
					case this.Site_CountryType.NF: return "Site_Country_NF";
					case this.Site_CountryType.NG: return "Site_Country_NG";
					case this.Site_CountryType.NI: return "Site_Country_NI";
					case this.Site_CountryType.NL: return "Site_Country_NL";
					case this.Site_CountryType.NO: return "Site_Country_NO";
					case this.Site_CountryType.NP: return "Site_Country_NP";
					case this.Site_CountryType.NR: return "Site_Country_NR";
					case this.Site_CountryType.NU: return "Site_Country_NU";
					case this.Site_CountryType.NZ: return "Site_Country_NZ";
					case this.Site_CountryType.OM: return "Site_Country_OM";
					case this.Site_CountryType.PA: return "Site_Country_PA";
					case this.Site_CountryType.PE: return "Site_Country_PE";
					case this.Site_CountryType.PF: return "Site_Country_PF";
					case this.Site_CountryType.PG: return "Site_Country_PG";
					case this.Site_CountryType.PH: return "Site_Country_PH";
					case this.Site_CountryType.PK: return "Site_Country_PK";
					case this.Site_CountryType.PL: return "Site_Country_PL";
					case this.Site_CountryType.PM: return "Site_Country_PM";
					case this.Site_CountryType.PN: return "Site_Country_PN";
					case this.Site_CountryType.PR: return "Site_Country_PR";
					case this.Site_CountryType.PS: return "Site_Country_PS";
					case this.Site_CountryType.PT: return "Site_Country_PT";
					case this.Site_CountryType.PW: return "Site_Country_PW";
					case this.Site_CountryType.PY: return "Site_Country_PY";
					case this.Site_CountryType.QA: return "Site_Country_QA";
					case this.Site_CountryType.RE: return "Site_Country_RE";
					case this.Site_CountryType.RO: return "Site_Country_RO";
					case this.Site_CountryType.RS: return "Site_Country_RS";
					case this.Site_CountryType.RU: return "Site_Country_RU";
					case this.Site_CountryType.RW: return "Site_Country_RW";
					case this.Site_CountryType.SA: return "Site_Country_SA";
					case this.Site_CountryType.SB: return "Site_Country_SB";
					case this.Site_CountryType.SC: return "Site_Country_SC";
					case this.Site_CountryType.SD: return "Site_Country_SD";
					case this.Site_CountryType.SE: return "Site_Country_SE";
					case this.Site_CountryType.SG: return "Site_Country_SG";
					case this.Site_CountryType.SH: return "Site_Country_SH";
					case this.Site_CountryType.SI: return "Site_Country_SI";
					case this.Site_CountryType.SJ: return "Site_Country_SJ";
					case this.Site_CountryType.SK: return "Site_Country_SK";
					case this.Site_CountryType.SL: return "Site_Country_SL";
					case this.Site_CountryType.SM: return "Site_Country_SM";
					case this.Site_CountryType.SN: return "Site_Country_SN";
					case this.Site_CountryType.SO: return "Site_Country_SO";
					case this.Site_CountryType.SR: return "Site_Country_SR";
					case this.Site_CountryType.ST: return "Site_Country_ST";
					case this.Site_CountryType.SV: return "Site_Country_SV";
					case this.Site_CountryType.SY: return "Site_Country_SY";
					case this.Site_CountryType.SZ: return "Site_Country_SZ";
					case this.Site_CountryType.TC: return "Site_Country_TC";
					case this.Site_CountryType.TD: return "Site_Country_TD";
					case this.Site_CountryType.TF: return "Site_Country_TF";
					case this.Site_CountryType.TG: return "Site_Country_TG";
					case this.Site_CountryType.TH: return "Site_Country_TH";
					case this.Site_CountryType.TJ: return "Site_Country_TJ";
					case this.Site_CountryType.TK: return "Site_Country_TK";
					case this.Site_CountryType.TL: return "Site_Country_TL";
					case this.Site_CountryType.TM: return "Site_Country_TM";
					case this.Site_CountryType.TN: return "Site_Country_TN";
					case this.Site_CountryType.TO: return "Site_Country_TO";
					case this.Site_CountryType.TR: return "Site_Country_TR";
					case this.Site_CountryType.TT: return "Site_Country_TT";
					case this.Site_CountryType.TV: return "Site_Country_TV";
					case this.Site_CountryType.TW: return "Site_Country_TW";
					case this.Site_CountryType.TZ: return "Site_Country_TZ";
					case this.Site_CountryType.UA: return "Site_Country_UA";
					case this.Site_CountryType.UG: return "Site_Country_UG";
					case this.Site_CountryType.UM: return "Site_Country_UM";
					case this.Site_CountryType.US: return "Site_Country_US";
					case this.Site_CountryType.UY: return "Site_Country_UY";
					case this.Site_CountryType.UZ: return "Site_Country_UZ";
					case this.Site_CountryType.VA: return "Site_Country_VA";
					case this.Site_CountryType.VC: return "Site_Country_VC";
					case this.Site_CountryType.VE: return "Site_Country_VE";
					case this.Site_CountryType.VG: return "Site_Country_VG";
					case this.Site_CountryType.VI: return "Site_Country_VI";
					case this.Site_CountryType.VN: return "Site_Country_VN";
					case this.Site_CountryType.VU: return "Site_Country_VU";
					case this.Site_CountryType.WF: return "Site_Country_WF";
					case this.Site_CountryType.WS: return "Site_Country_WS";
					case this.Site_CountryType.XK: return "Site_Country_XK";
					case this.Site_CountryType.YE: return "Site_Country_YE";
					case this.Site_CountryType.YT: return "Site_Country_YT";
					case this.Site_CountryType.ZA: return "Site_Country_ZA";
					case this.Site_CountryType.ZM: return "Site_Country_ZM";
					case this.Site_CountryType.ZW: return "Site_Country_ZW";
				}
				return null;
			case 65:
				switch (this.Mktg_Email_Opt_In) {
					case this.Mktg_Email_Opt_InType.Yes: return "Mktg_Email_Opt_In_Yes";
					case this.Mktg_Email_Opt_InType.No: return "Mktg_Email_Opt_In_No";
				}
				return null;
		}
	},
	
	__getCurPropValue : function() {
		switch(this.__curProp) {
			case 0: return this.SourceId;
			case 1: return this.ResultKey;
			case 2: return this.MergeKey;
			case 3: return this.ResultDateTime;
			case 4: return (this.AlwaysAdd ? "1" : "0");
			case 5: return (this.Salutation == this.ENUM_UNSPEC_VALUE ? null : "1");
			case 6: return this.FirstName;
			case 7: return this.LastName;
			case 8: return this.Company;
			case 9: return this.Title;
			case 10: return this.Email;
			case 11: return this.Street;
			case 12: return this.City;
			case 13: return this.State;
			case 14: return this.PostalCode;
			case 15: return this.Phone;
			case 16: return (this.LeadRank == this.ENUM_UNSPEC_VALUE ? null : "1");
			case 17: return (this.Facility_Type == this.ENUM_UNSPEC_VALUE ? null : "1");
			case 18: return (this.Purchasing_Role == this.ENUM_UNSPEC_VALUE ? null : "1");
			case 19: return (this.Product_Interest == this.ENUM_UNSPEC_VALUE ? null : "1");
			case 20: return (this.CARE_Medical_Imaging_IT_Product_Interest.CADChest ? "1" : null);
			case 21: return (this.CARE_Medical_Imaging_IT_Product_Interest.CADMammo ? "1" : null);
			case 22: return (this.CARE_Medical_Imaging_IT_Product_Interest.ComputedRadiography ? "1" : null);
			case 23: return (this.CARE_Medical_Imaging_IT_Product_Interest.ComputerAidedDetectionCAD ? "1" : null);
			case 24: return (this.CARE_Medical_Imaging_IT_Product_Interest.CR ? "1" : null);
			case 25: return (this.CARE_Medical_Imaging_IT_Product_Interest.CRMammo ? "1" : null);
			case 26: return (this.CARE_Medical_Imaging_IT_Product_Interest.CROnco ? "1" : null);
			case 27: return (this.CARE_Medical_Imaging_IT_Product_Interest.Dental ? "1" : null);
			case 28: return (this.CARE_Medical_Imaging_IT_Product_Interest.DigitalRadiography ? "1" : null);
			case 29: return (this.CARE_Medical_Imaging_IT_Product_Interest.DR ? "1" : null);
			case 30: return (this.CARE_Medical_Imaging_IT_Product_Interest.EquipmentService ? "1" : null);
			case 31: return (this.CARE_Medical_Imaging_IT_Product_Interest.FilmMammo ? "1" : null);
			case 32: return (this.CARE_Medical_Imaging_IT_Product_Interest.FilmOnco ? "1" : null);
			case 33: return (this.CARE_Medical_Imaging_IT_Product_Interest.FilmImagingegxrayfilm ? "1" : null);
			case 34: return (this.CARE_Medical_Imaging_IT_Product_Interest.FilmSystemsGenRad ? "1" : null);
			case 35: return (this.CARE_Medical_Imaging_IT_Product_Interest.FilmSystemsMammo ? "1" : null);
			case 36: return (this.CARE_Medical_Imaging_IT_Product_Interest.FilmSystemsOnco ? "1" : null);
			case 37: return (this.CARE_Medical_Imaging_IT_Product_Interest.HealthcareITegPACSRIS ? "1" : null);
			case 38: return (this.CARE_Medical_Imaging_IT_Product_Interest.Mammography ? "1" : null);
			case 39: return (this.CARE_Medical_Imaging_IT_Product_Interest.MedicalPrintSystemseglaserprint ? "1" : null);
			case 40: return (this.CARE_Medical_Imaging_IT_Product_Interest.MolecularImaging ? "1" : null);
			case 41: return (this.CARE_Medical_Imaging_IT_Product_Interest.Oncology ? "1" : null);
			case 42: return (this.CARE_Medical_Imaging_IT_Product_Interest.Orthopedics ? "1" : null);
			case 43: return (this.CARE_Medical_Imaging_IT_Product_Interest.Other ? "1" : null);
			case 44: return (this.CARE_Medical_Imaging_IT_Product_Interest.PACS ? "1" : null);
			case 45: return (this.CARE_Medical_Imaging_IT_Product_Interest.PACSCardio ? "1" : null);
			case 46: return (this.CARE_Medical_Imaging_IT_Product_Interest.PACSMammo ? "1" : null);
			case 47: return (this.CARE_Medical_Imaging_IT_Product_Interest.Printers ? "1" : null);
			case 48: return (this.CARE_Medical_Imaging_IT_Product_Interest.ProfessionalServices ? "1" : null);
			case 49: return (this.CARE_Medical_Imaging_IT_Product_Interest.RIS ? "1" : null);
			case 50: return (this.CARE_Medical_Imaging_IT_Product_Interest.StorageArchive ? "1" : null);
			case 51: return this.Description;
			case 52: return (this.CARE_Molecular_Imaging_Product_Interest.PET_SPECT_CT ? "1" : null);
			case 53: return (this.CARE_Molecular_Imaging_Product_Interest.InVivoSystems ? "1" : null);
			case 54: return (this.CARE_Molecular_Imaging_Product_Interest.ImageStationSystems ? "1" : null);
			case 55: return (this.CARE_Molecular_Imaging_Product_Interest.GelLogicSystems ? "1" : null);
			case 56: return (this.CARE_Molecular_Imaging_Product_Interest.SpecimenRadiography ? "1" : null);
			case 57: return (this.CARE_Molecular_Imaging_Product_Interest.AnalysisSoftware ? "1" : null);
			case 58: return (this.CARE_Molecular_Imaging_Product_Interest.InVivoDXSPRO ? "1" : null);
			case 59: return (this.CARE_Molecular_Imaging_Product_Interest.FilmImaging ? "1" : null);
			case 60: return (this.CARE_NDT_Product_Interest.CRDigitalSolutions ? "1" : null);
			case 61: return (this.CARE_NDT_Product_Interest.FilmSolutions ? "1" : null);
			case 62: return (this.CARE_NDT_Product_Interest.FilmBadgeDosimetry ? "1" : null);
			case 63: return this.Potential_Purchase_Date;
			case 64: return (this.Site_Country == this.ENUM_UNSPEC_VALUE ? null : "1");
			case 65: return (this.Mktg_Email_Opt_In == this.ENUM_UNSPEC_VALUE ? null : "1");
		}
	},
	
	__getCurPropType : function() {
		switch(this.__curProp) {
			case 5:
			case 16:
			case 17:
			case 18:
			case 19:
			case 64:
			case 65:
				return 0;
			case 20:
			case 21:
			case 22:
			case 23:
			case 24:
			case 25:
			case 26:
			case 27:
			case 28:
			case 29:
			case 30:
			case 31:
			case 32:
			case 33:
			case 34:
			case 35:
			case 36:
			case 37:
			case 38:
			case 39:
			case 40:
			case 41:
			case 42:
			case 43:
			case 44:
			case 45:
			case 46:
			case 47:
			case 48:
			case 49:
			case 50:
			case 52:
			case 53:
			case 54:
			case 55:
			case 56:
			case 57:
			case 58:
			case 59:
			case 60:
			case 61:
			case 62:
				return 1;
			case 0:
			case 1:
			case 2:
			case 3:
			case 4:
			case 6:
			case 7:
			case 8:
			case 9:
			case 10:
			case 11:
			case 12:
			case 13:
			case 14:
			case 15:
			case 51:
			case 63:
				return 2;
		}
	},
	
	__setTextLenMessage : function (member) {
		this._SubmitMessage = "The member " + member + " exceeds the maximum length of " + this.TEXT_MAX_LEN + " characters.";
	},
	
	__validate : function() {
		
		// Check length of member SourceId
		if ((this.SourceId != null) && (this.SourceId.length > this.TEXT_MAX_LEN))
		{
			this.__setTextLenMessage("SourceId");
			return false;
		}
		
		// Check length of member ResultKey
		if ((this.ResultKey != null) && (this.ResultKey.length > this.TEXT_MAX_LEN))
		{
			this.__setTextLenMessage("ResultKey");
			return false;
		}
		
		// Check length of member MergeKey
		if ((this.MergeKey != null) && (this.MergeKey.length > this.TEXT_MAX_LEN))
		{
			this.__setTextLenMessage("MergeKey");
			return false;
		}
		
		// Check length of member FirstName
		if ((this.FirstName != null) && (this.FirstName.length > this.TEXT_MAX_LEN))
		{
			this.__setTextLenMessage("FirstName");
			return false;
		}
		
		// Check length of member LastName
		if ((this.LastName != null) && (this.LastName.length > this.TEXT_MAX_LEN))
		{
			this.__setTextLenMessage("LastName");
			return false;
		}
		
		// Check length of member Company
		if ((this.Company != null) && (this.Company.length > this.TEXT_MAX_LEN))
		{
			this.__setTextLenMessage("Company");
			return false;
		}
		
		// Check length of member Title
		if ((this.Title != null) && (this.Title.length > this.TEXT_MAX_LEN))
		{
			this.__setTextLenMessage("Title");
			return false;
		}
		
		// Check length of member Email
		if ((this.Email != null) && (this.Email.length > this.TEXT_MAX_LEN))
		{
			this.__setTextLenMessage("Email");
			return false;
		}
		
		// Check length of member Street
		if ((this.Street != null) && (this.Street.length > this.TEXT_MAX_LEN))
		{
			this.__setTextLenMessage("Street");
			return false;
		}
		
		// Check length of member City
		if ((this.City != null) && (this.City.length > this.TEXT_MAX_LEN))
		{
			this.__setTextLenMessage("City");
			return false;
		}
		
		// Check length of member State
		if ((this.State != null) && (this.State.length > this.TEXT_MAX_LEN))
		{
			this.__setTextLenMessage("State");
			return false;
		}
		
		// Check length of member PostalCode
		if ((this.PostalCode != null) && (this.PostalCode.length > this.TEXT_MAX_LEN))
		{
			this.__setTextLenMessage("PostalCode");
			return false;
		}
		
		// Check length of member Phone
		if ((this.Phone != null) && (this.Phone.length > this.TEXT_MAX_LEN))
		{
			this.__setTextLenMessage("Phone");
			return false;
		}
		
		// Check length of member Description
		if ((this.Description != null) && (this.Description.length > this.TEXT_MAX_LEN))
		{
			this.__setTextLenMessage("Description");
			return false;
		}
		
		// Check length of member Potential_Purchase_Date
		if ((this.Potential_Purchase_Date != null) && (this.Potential_Purchase_Date.length > this.TEXT_MAX_LEN))
		{
			this.__setTextLenMessage("Potential_Purchase_Date");
			return false;
		}
		
		return true;
	},
	
	__cleanScriptElt : function() {
		if (this.__scriptElt != null) {
			document.getElementsByTagName("head")[0].removeChild(this.__scriptElt);
			this.__scriptElt = null;
		}
	},
	
	__cleanTimer : function() {
		if (this.__timer != null) clearTimeout(this.__timer);
		this.__timer = null;
	},
	
	__submitTimeout : function() {
		this.__cleanScriptElt();
		this.__cleanTimer();
		if (this.__onTimeCb != null) this.__onTimeCb();
	},
	
	__submitComplete : function(res, msg) {
		this.__cleanScriptElt();
		this.__cleanTimer();
		this._SubmitResult = res;
		this._SubmitMessage = msg;
		if (this.__onCompCb != null) this.__onCompCb();
	},
	
	__encodeValue : function(s) {
		if (s) {
			s = s.replace(/\%/g, '%25');
			s = s.replace(/\&/g, '%26');
			s = s.replace(/\</g, '%3C');
			s = s.replace(/\>/g, '%3E');
		}
		return s;
	},
	
	__doSubmit : function() {
		// Start query string with identifiers
		var q = this.__getIdPairs();
		
		var anyData = false;
		// Loop appending property pairs until we reach max query string length of 2048
		while (this.__curProp < this.__maxProp) {
			var val = this.__encodeValue(this.__getCurPropValue());
			if (val != null) {
				anyData = true;
				var type = this.__getCurPropType();
				var key = this.__getCurPropKey();
				if (key == null) throw "Failed to get the key for property " + this.__curProp + ".";
				var procVal;
				if ((type == 2) && (this.__curOffset > 0)) procVal = val.substr(this.__curOffset);
				else procVal = val;
				var enc = escape(procVal);
				var len = q.length + key.length + enc.length + 2; // Include & and =
				if (len > 2048) {
					if (type != 2) break; // If po or pm, done
					else {
						var rem = (2048 - q.length - key.length - 2); // Get available room
						if (rem < 133) break; // Skip append if not much room
						var bloat = enc.length/procVal.length;
						var chkLen = Math.floor(rem/bloat); // Best guess at available pre-encoded count
						var newVal = val.substr(this.__curOffset, chkLen); // Get chunk
						var newEnc = escape(newVal);
						while (newEnc.length > rem) {
							chkLen = Math.floor(chkLen * (2/3)); // Exponential reduction in chunk size, assume nominal bloat
							newVal = val.substr(this.__curOffset, chkLen);
							newEnc = escape(newVal);
						}
						q += "&" + key + "=" + newEnc;
						this.__curOffset += chkLen;
						if (this.__curOffset >= val.length) {
							this.__curOffset = 0;
							this.__curProp++;
						}
						break;
					}
				} else {
					q += "&" + key + "=" + enc;
					this.__curProp++;
				}
			} else {
				this.__curProp++;
			}
		}
		
		if (anyData) {
			if (this.__curProp == this.__maxProp) {
				if (q.length <= 2043) q += "&_C=1"; // We're done, tell server
			}
			
			this.__scriptElt = document.createElement("script");
			this.__scriptElt.type = "text/javascript";
			this.__scriptElt.src = "https://anysource.validar.com/WebServices/V2/Core/JSONSubmitResult.aspx?" + q;
			
			if (this.__onTimeCb != null) {
				this.__timer = window.setTimeout("CSHContactUsv2.__submitTimeout()", this._Timeout);
			}
			
			document.getElementsByTagName("head")[0].appendChild(this.__scriptElt);
		} else {
			this._SubmitResult = true;
			this._SubmitMessage = "There was no data to submit";
			if (this.__onCompCb != null) this.__onCompCb();
		}
	},
	
	__submitCallback : function(sk, cnt) {
		this.__subKey = sk;
		this.__cleanScriptElt();
		this.__cleanTimer();
		this.__doSubmit();
	}
}
//
// END JSON CODE
//


//
// BEGIN GLUE CODE
//
function DisplayProductInterest(sel)
{
    var med = document.getElementById("MedicalImagingITDiv");
    var mol = document.getElementById("MolecularImagingDiv");
    var tst = document.getElementById("NonDestructiveTestingDiv");
  
    var seld = sel + "Div";
    switch (seld) {
        case "MedicalImagingITDiv":
            med.style.display = "block";
            mol.style.display = "none";
            tst.style.display = "none";
            break;
        case "MolecularImagingDiv":
            med.style.display = "none";
            mol.style.display = "block";
            tst.style.display = "none";
            break;
        case "NonDestructiveTestingDiv":
            med.style.display = "none";
            mol.style.display = "none";
            tst.style.display = "block";
            break;
    }
}

function CSHContactMePage_Callback()
{
    window.location = "http://carestreamhealth.com/contact-thankyou.html";
}

function CSHContactMePage_PostLead()
{
    CSHContactUsv2._Reset();
    
    var Salutation = document.getElementById("Salutation");
    switch (Salutation.selectedIndex)
    {
        default:
            CSHContactUsv2.Salutation = CSHContactUsv2.SalutationType.Dr;
            break;
        case 1:
            CSHContactUsv2.Salutation = CSHContactUsv2.SalutationType.Mr;
            break;
        case 2:
            CSHContactUsv2.Salutation = CSHContactUsv2.SalutationType.Mrs;
            break;
        case 3:
            CSHContactUsv2.Salutation = CSHContactUsv2.SalutationType.Miss;
            break;
        case 4:
            CSHContactUsv2.Salutation = CSHContactUsv2.SalutationType.Prof;
            break;
    }
    
    var FirstName = document.getElementById("FirstName");
    if (FirstName.value == "") {
        alert("First name is a required field.");
        return;
    }
    CSHContactUsv2.FirstName = FirstName.value;
    
    var LastName = document.getElementById("LastName");
    if (LastName.value == "") {
        alert("Last name is a required field.");
        return;
    }
    CSHContactUsv2.LastName = LastName.value;
    
    var Company = document.getElementById("Company");
    CSHContactUsv2.Company = Company.value;
    
    var Title = document.getElementById("Title");
    CSHContactUsv2.Title = Title.value;
    
    var Email = document.getElementById("Email");
    if (Email.value == "") {
        alert("Business email is a required field.");
        return;
    }
    CSHContactUsv2.Email = Email.value;
    
    var Street = document.getElementById("Street");
    CSHContactUsv2.Street = Street.value;
    
    var City = document.getElementById("City");
    CSHContactUsv2.City = City.value;
    
    var State = document.getElementById("State");
    CSHContactUsv2.State = State.value;
    
    var PostalCode = document.getElementById("PostalCode");
    CSHContactUsv2.PostalCode = PostalCode.value;
    
    var Country = document.getElementById("Country");
    if (Country.value == "") {
        alert("Country is a required field.");
        return;
    }
    var enumStr = "CSHContactUsv2.Site_CountryType." + Country.value;
    var code = "if (" + enumStr + ") CSHContactUsv2.Site_Country=" + enumStr;
    eval(code);
    
    var Phone = document.getElementById("Phone");
    CSHContactUsv2.Phone = Phone.value;
     
    var Purchasing_Role = document.getElementById("Purchasing_Role");
    switch (Purchasing_Role.selectedIndex)
    {
        case 1:
            CSHContactUsv2.Purchasing_Role = CSHContactUsv2.Purchasing_RoleType.DecisionMaker;
            break;
        case 2:
            CSHContactUsv2.Purchasing_Role = CSHContactUsv2.Purchasing_RoleType.EconomicBuyer;
            break;
        case 3:
            CSHContactUsv2.Purchasing_Role = CSHContactUsv2.Purchasing_RoleType.EvaluatorTechnical;
            break;
        case 4:
            CSHContactUsv2.Purchasing_Role = CSHContactUsv2.Purchasing_RoleType.ExecutiveSponsor;
            break;
        case 5:
            CSHContactUsv2.Purchasing_Role = CSHContactUsv2.Purchasing_RoleType.Purchaser;
            break;
        case 6:
            CSHContactUsv2.Purchasing_Role = CSHContactUsv2.Purchasing_RoleType.TechnicalBuyer;
            break;
        case 7:
            CSHContactUsv2.Purchasing_Role = CSHContactUsv2.Purchasing_RoleType.UserBuyer;
            break;
        case 8:
            CSHContactUsv2.Purchasing_Role = CSHContactUsv2.Purchasing_RoleType.Other;
            break;
    }
     
    var Facility_Type = document.getElementById("Facility_Type");
    switch (Facility_Type.selectedIndex)
    {
        case 1:
            CSHContactUsv2.Facility_Type = CSHContactUsv2.Facility_TypeType.Ambulatory;
            break;
        case 2:
            CSHContactUsv2.Facility_Type = CSHContactUsv2.Facility_TypeType.CancerCenter;
            break;
        case 3:
            CSHContactUsv2.Facility_Type = CSHContactUsv2.Facility_TypeType.CollegeTrainingInstitute;
            break;
        case 4:
            CSHContactUsv2.Facility_Type = CSHContactUsv2.Facility_TypeType.ConsultantPM;
            break;
        case 5:
            CSHContactUsv2.Facility_Type = CSHContactUsv2.Facility_TypeType.DiagnosticImagingCenter;
            break;
        case 6:
            CSHContactUsv2.Facility_Type = CSHContactUsv2.Facility_TypeType.DiagnosticImagingCenterMultiFacilityChain;
            break;
        case 7:
            CSHContactUsv2.Facility_Type = CSHContactUsv2.Facility_TypeType.DistributorOEMVAR;
            break;
        case 8:
            CSHContactUsv2.Facility_Type = CSHContactUsv2.Facility_TypeType.FreeStandingDataCenter;
            break;
        case 9:
            CSHContactUsv2.Facility_Type = CSHContactUsv2.Facility_TypeType.GPOGroupPurchasingOrganization;
            break;
        case 10:
            CSHContactUsv2.Facility_Type = CSHContactUsv2.Facility_TypeType.Hospital;
            break;
        case 11:
            CSHContactUsv2.Facility_Type = CSHContactUsv2.Facility_TypeType.IDSRHA;
            break;
        case 12:
            CSHContactUsv2.Facility_Type = CSHContactUsv2.Facility_TypeType.InHospitalDataCenter;
            break;
        case 13:
            CSHContactUsv2.Facility_Type = CSHContactUsv2.Facility_TypeType.MedicalGroupPractice;
            break;
        case 14:
            CSHContactUsv2.Facility_Type = CSHContactUsv2.Facility_TypeType.OrthopedicPractice;
            break;
        case 15:
            CSHContactUsv2.Facility_Type = CSHContactUsv2.Facility_TypeType.ResearchInstitute;
            break;
        case 16:
            CSHContactUsv2.Facility_Type = CSHContactUsv2.Facility_TypeType.SingleHospitalHealthSystem;
            break;
        case 17:
            CSHContactUsv2.Facility_Type = CSHContactUsv2.Facility_TypeType.SubAcute;
            break;
        case 18:
            CSHContactUsv2.Facility_Type = CSHContactUsv2.Facility_TypeType.WomensHealthCenter;
            break;
        case 19:
            CSHContactUsv2.Facility_Type = CSHContactUsv2.Facility_TypeType.Other;
            break;
    }
    
    var med = document.getElementById("MedicalImagingITDiv");
    var mol = document.getElementById("MolecularImagingDiv");
    var tst = document.getElementById("NonDestructiveTestingDiv");

    if (med.style.display == "block") {
        CSHContactUsv2.Product_Interest = CSHContactUsv2.Product_InterestType.Medical_Imaging;
        
        var Medical_Imaging = document.getElementById("Medical_Imaging_IT_Product_Interest");
        CSHContactUsv2.CARE_Medical_Imaging_IT_Product_Interest.CADChest = Medical_Imaging.options[0].selected;
        CSHContactUsv2.CARE_Medical_Imaging_IT_Product_Interest.CADMammo = Medical_Imaging.options[1].selected;
        CSHContactUsv2.CARE_Medical_Imaging_IT_Product_Interest.ComputedRadiography = Medical_Imaging.options[2].selected;
        CSHContactUsv2.CARE_Medical_Imaging_IT_Product_Interest.CRMammo = Medical_Imaging.options[3].selected;
        CSHContactUsv2.CARE_Medical_Imaging_IT_Product_Interest.CROnco = Medical_Imaging.options[4].selected;
        CSHContactUsv2.CARE_Medical_Imaging_IT_Product_Interest.Dental = Medical_Imaging.options[5].selected;
        CSHContactUsv2.CARE_Medical_Imaging_IT_Product_Interest.DigitalRadiography = Medical_Imaging.options[6].selected;
        CSHContactUsv2.CARE_Medical_Imaging_IT_Product_Interest.EquipmentService = Medical_Imaging.options[7].selected;
        CSHContactUsv2.CARE_Medical_Imaging_IT_Product_Interest.FilmSystemsGenRad = Medical_Imaging.options[8].selected;
        CSHContactUsv2.CARE_Medical_Imaging_IT_Product_Interest.FilmSystemsMammo = Medical_Imaging.options[9].selected;
        CSHContactUsv2.CARE_Medical_Imaging_IT_Product_Interest.FilmSystemsOnco = Medical_Imaging.options[10].selected;
        CSHContactUsv2.CARE_Medical_Imaging_IT_Product_Interest.Mammography = Medical_Imaging.options[11].selected;
        CSHContactUsv2.CARE_Medical_Imaging_IT_Product_Interest.Orthopedics = Medical_Imaging.options[12].selected;
        CSHContactUsv2.CARE_Medical_Imaging_IT_Product_Interest.PACS = Medical_Imaging.options[13].selected;
        CSHContactUsv2.CARE_Medical_Imaging_IT_Product_Interest.Printers = Medical_Imaging.options[14].selected;
        CSHContactUsv2.CARE_Medical_Imaging_IT_Product_Interest.ProfessionalServices = Medical_Imaging.options[15].selected;
        CSHContactUsv2.CARE_Medical_Imaging_IT_Product_Interest.RIS = Medical_Imaging.options[16].selected;
        CSHContactUsv2.CARE_Medical_Imaging_IT_Product_Interest.StorageArchive = Medical_Imaging.options[17].selected;
    }

    if (mol.style.display == "block") {
        CSHContactUsv2.Product_Interest = CSHContactUsv2.Product_InterestType.Molecular_Imaging;
        
        var Molecular_Imaging = document.getElementById("Molecular_Imaging_Product_Interest");        
        CSHContactUsv2.CARE_Molecular_Imaging_Product_Interest.PET_SPECT_CT = Molecular_Imaging.options[0].selected;
        CSHContactUsv2.CARE_Molecular_Imaging_Product_Interest.InVivoSystems = Molecular_Imaging.options[1].selected;
        CSHContactUsv2.CARE_Molecular_Imaging_Product_Interest.ImageStationSystems = Molecular_Imaging.options[2].selected;
        CSHContactUsv2.CARE_Molecular_Imaging_Product_Interest.GelLogicSystems = Molecular_Imaging.options[3].selected;
        CSHContactUsv2.CARE_Molecular_Imaging_Product_Interest.SpecimenRadiography = Molecular_Imaging.options[4].selected;
        CSHContactUsv2.CARE_Molecular_Imaging_Product_Interest.AnalysisSoftware = Molecular_Imaging.options[5].selected;
        CSHContactUsv2.CARE_Molecular_Imaging_Product_Interest.InVivoDXSPRO = Molecular_Imaging.options[6].selected;
        CSHContactUsv2.CARE_Molecular_Imaging_Product_Interest.FilmImaging = Molecular_Imaging.options[7].selected;        
    }
    
    if (tst.style.display == "block") {
        CSHContactUsv2.Product_Interest = CSHContactUsv2.Product_InterestType.NDT;
        
        var NDT_Product_Interest = document.getElementById("NDT_Product_Interest");
        CSHContactUsv2.CARE_NDT_Product_Interest.CRDigitalSolutions = NDT_Product_Interest.options[0].selected;
        CSHContactUsv2.CARE_NDT_Product_Interest.FilmSolutions = NDT_Product_Interest.options[1].selected;
        CSHContactUsv2.CARE_NDT_Product_Interest.FilmBadgeDosimetry = NDT_Product_Interest.options[2].selected;
    }
    
    var LeadRank = document.getElementById("LeadRank");
    switch (LeadRank.selectedIndex)
    {
        default:
            CSHContactUsv2.LeadRank = CSHContactUsv2.LeadRankType.A;
            break;
        case 1:
            CSHContactUsv2.LeadRank = CSHContactUsv2.LeadRankType.B;
            break;
    }
    
    var Potential_Purchase_Date = document.getElementById("Potential_Purchase_Date");
    CSHContactUsv2.Potential_Purchase_Date = Potential_Purchase_Date.value;
    
    var Mktg_Email_Opt_In = document.getElementById("Mktg_Email_Opt_In");
    if (Mktg_Email_Opt_In.checked) {
        CSHContactUsv2.Mktg_Email_Opt_In = CSHContactUsv2.Mktg_Email_Opt_InType.Yes;
    }
    else {
        CSHContactUsv2.Mktg_Email_Opt_In = CSHContactUsv2.Mktg_Email_Opt_InType.No;
    }
    
    var comments = document.getElementById("comments");
    CSHContactUsv2.Description = comments.value;
    
    CSHContactUsv2._SubmitLead(CSHContactMePage_Callback, null);
}
//
// END GLUE CODE
//
