
function SpotzerJSI18N() {};

SpotzerJSI18N.ADAREA_NAME_PREFIX = "Ad Area ";
/* date format regular */
SpotzerJSI18N.dateFormatRegular = /(0[1-9]|1[0-2])\/(0[1-9]|[12][0-9]|3[01])\/(19|20\d{2})/;
SpotzerJSI18N.zipcodeRegelar = /^\d{5}(?:-\d{4})?$/;
SpotzerJSI18N.stateName = ['ALABAMA','AL','ALASKA','AK','AMERICAN SAMOA','AS','ARIZONA',
                'AZ','ARKANSAS','AR','CALIFORNIA','CA','COLORADO','CO',
                'CONNECTICUT','CT','DELAWARE','DE', 'DISTRICT OF COLUMBIA','DC',
                'FEDERATED STATES OF MICRONESIA','FM','FLORIDA','FL','GEORGIA','GA',
                'GUAM','GU','HAWAII','HI','IDAHO','ID','ILLINOIS','IL','INDIANA','IN',
                'IOWA','IA','KANSAS','KS','KENTUCKY','KY','LOUISIANA','LA','MAINE','ME',
                'MARSHALL ISLANDS','MH','MARYLAND','MD','MASSACHUSETTS','MA','MICHIGAN',
                'MI','MINNESOTA','MN','MISSISSIPPI','MS','MISSOURI','MO','MONTANA','MT',
                'NEBRASKA','NE','NEVADA','NV','NEW HAMPSHIRE','NH','NEW JERSEY','NJ','NEW MEXICO',
                'NM','NEW YORK','NY','NORTH CAROLINA','NC','NORTH DAKOTA','ND','NORTHERN MARIANA ISLANDS',
                'MP','OHIO','OH','OKLAHOMA','OK','OREGON','OR','PALAU','PW','PENNSYLVANIA','PA',
                'PUERTO RICO','PR','RHODE ISLAND','RI','SOUTH CAROLINA','SC','SOUTH DAKOTA','SD',
                'TENNESSEE','TN','TEXAS','TX','UTAH','UT','VERMONT','VT','VIRGIN ISLANDS','VI',
                'VIRGINIA','VA','WASHINGTON','WA','WEST VIRGINIA','WV','WISCONSIN','WI','WYOMING','WY']
	;

	    function SpotzerDate(date) {
		this._dateRegular =/(0?[1-9]|1[0-2])\/(0?[1-9]|[12][0-9]|3[01])\/(19|20\d{2})/;
		this._isDate = this._dateRegular.test(date);
		if(this._isDate) {
			this._day = RegExp.$2;
			this._month = RegExp.$1-1;
			this._year =  RegExp.$3;
		}
	};
	SpotzerDate.prototype = {
		isCurrectDateFormat:function() {
			return this._isDate;
		},
		
		getDay:function() {
			if(this._isDate)
				return this._day;
		},
		getMonth:function() {
			if(this._isDate)
				return this._month;
		},
		getYear:function() {
			if(this._isDate)
				return this._year;
		}
	};
    ;

/* message for TargetForAdarea.js */
SpotzerJSI18N.messageEnterNewNameTitle = "Please enter a new name for your Advertising Area:\n(letter, number, underscore, space and less than 20)";
SpotzerJSI18N.messageAtLeastOneSelected = "Please choose at least one Advertising Area.";
SpotzerJSI18N.messageOnlyOneSelected = "You have selected more than one Advertising Area. Only one Area may be renamed at a time.";
SpotzerJSI18N.messageInputRadius = "Please choose at least one Advertising Area.";
SpotzerJSI18N.messageAtLeastOneAdarea = "Please select one or more Advertising Area(s) to delete.";
SpotzerJSI18N.messageRemoveConfirm = "Do you want to remove all advertising areas?";
SpotzerJSI18N.messageAtLeastOneInList = "Please select one or more Advertising Area(s).";
SpotzerJSI18N.messageAddAdAreaToList = "Please define at least one Advertising Area and add it to the list before proceeding.";
SpotzerJSI18N.messageMapLocationFirst = "You should map a location first.";
SpotzerJSI18N.messageStartOverConfirm = "Are you sure you want Start Over and clear the Advertising Area your are currently creating? (This will not affect the Advertising Areas already in your list).";

SpotzerJSI18N.errorCoordinateInvalid = "Invalid coordinate angle.";
SpotzerJSI18N.errorNameInvalid = "Sorry, the name you have entered is invalid. Please check and try again.";
SpotzerJSI18N.errorNumericOnly = "Radius should be numeric value only";
SpotzerJSI18N.errorBigThanOneMile = "Radius should be at least 1 mile.";
SpotzerJSI18N.errorSmallThanOneThousandMiles = "Radius cannot exceed 1,000 miles.";
SpotzerJSI18N.errorBigThanOneKM = "Radius should be at least 1 kilometer.";
SpotzerJSI18N.errorSmallThanOneThousandKMs = "Radius cannot exceed 1,609 kilometers.";
SpotzerJSI18N.errorRadiusNotEmpty = "Radius cannot be empty.";

/* message for TargetForConfigLicense.js */
SpotzerJSI18N.errorNotEmpty = "Start Date cannot be blank.";
SpotzerJSI18N.errorDateDuration = "Start Date should be in the future, within 5 years of today's date.";
SpotzerJSI18N.errorDateType = "There is a problem with the Start Date you selected.  Please check the date and try again.";
SpotzerJSI18N.errorLicenseRegionRequired = "A License Region is required for determining Ad Exclusivity.  Please select at least one License Region.";
SpotzerJSI18N.messageSelectAtLeastOneLicense = "Please select one or more License Region(s) to delete."; 
SpotzerJSI18N.messageLicenseListIsEmpty = "Please select at least one License Region.";
SpotzerJSI18N.WebServiceBusyMessage = "The Spotzer website seems to have trouble reaching the server, please try again!";

/* message for Validate.js */
SpotzerJSI18N.messageNotEmpty = "Required field cannot be left blank";
SpotzerJSI18N.errorStateStyle = "Please use a valid two-letter code for a U.S. State.";
SpotzerJSI18N.errorPostalStyle = "Postal/Zip Code should be in the format 12345 or 12345-6789.";
SpotzerJSI18N.errorAddressCanNotDecoded  = "Sorry, we can't locate that address.  You may have entered an invalid address.  Please check and try again.";

/* message for Media/Timing.aspx */
SpotzerJSI18N.messageDurationRequired = "Please specify the number of weeks for your Ad Campaign.";
SpotzerJSI18N.errorDurationType = "Duration is invalid.";
SpotzerJSI18N.messageDateRequired = "Start Date cannot be blank";
SpotzerJSI18N.errorStartDate = "Start Date should be between 2 weeks from today's date and within 5 years of today's date.";

SpotzerJSI18N.expired  = "The result has been removed or expired.";
SpotzerJSI18N.arrive1st  = "Already arrive at the first page";

SpotzerJSI18N.arriveEnd  = "You have reached the end of the page.";
SpotzerJSI18N.Currency_Symbol = "$";
SpotzerJSI18N.Currency_Group_Separator = ",";
SpotzerJSI18N.arriveEnd  = "You have reached the end of the page.";

SpotzerJSI18N.AddHelp_BP  = "Basic personalization includes completing a single version of the selected Ad for the required inputs and media formats.";
SpotzerJSI18N.AddHelp_AP = "Additional versions of the Ad due to multiple location requirements or business information differences, based on your Advertising Plan are not included in the base as price.";
SpotzerJSI18N.AddHelp_MO  = "Additional handling fees apply if you do not purchase media through Spotzer but require us to deliver your Ad to media outlets.";
SpotzerJSI18N.AddHelp_Website  = "Showing your Ad on your own website requires additional Ad serving costs that are determined on a CPM basis.";

SpotzerJSI18N.MediaBPFilterHelp_Goals  = "Your goal will require a unique Media Schedule that answers such questions as: Who needs to be reached? How often? In what time period do they need to be reached? In what day parts? What channels? And so on.";
SpotzerJSI18N.MediaBPFilterHelp_Mix  = "Each medium has its own unique characteristics. Television is emotional, convincing and builds trust. Online can easily drive people to your website, while narrow casting can be used in a highly relevant environment and can directly influence potential customers at the point of sale.";
SpotzerJSI18N.MediaBPFilterHelp_Budget  = "Depending on your budget, a broader and heavier Media Schedule can be realized";

SpotzerJSI18N.AdDetail_LP  = "The fee for your License will vary depending on the number of Regions and the Term you select.";
SpotzerJSI18N.AdDetail_Exclusivity  = "This sets forth the Degree of Exclusivity offered with this Ad.  \"Exclusive\" means your rights to use the Ad and all of its \"Core Elements\" will be exclusive within the Region and the Period specified in your License Agreement.  \"Core Elements\" of an Ad include video, animation, music, concepts or slogans that Spotzer, in its sole discretion, deem to be material to creating the unique look, feel and message of the Ad. \"Qualified Exclusive\" means that Spotzer will not grant to others the right to use your Ad, or any of its \"Core Elements\" within the Region and during the Period specified in your License Agreement. However, a third party (such as a photographer, composer, illustrator, etc.) may retain rights in the Core Elements of the Ad and will have the right to use the Core Elements in the Region and during the Period specified in your license Agreement. \"Non-exclusive\" means your rights to use the Ad and its Core Elements are non-exclusive. See  our \"General Terms and Conditions\" for more complete definitions.";

SpotzerJSI18N.Ad_Summary  = "Media commissions paid to Spotzer for planning and buying your Media Schedule, along with all basic personalization, media delivery, and handling fees are included in this price.";

SpotzerJSI18N.Goal = "Goal";
SpotzerJSI18N.MediaMix = "Media Mix";
SpotzerJSI18N.Budget = "Budget";
SpotzerJSI18N.YourChoicesHaveHidden = "Oops, your choices have hidden all items. Please Adjust the lefthand control";
SpotzerJSI18N.Media_Prev = "Prev";
SpotzerJSI18N.Media_Next = "Next";
SpotzerJSI18N.Data_Expired = "The data you are trying to view has expired";

SpotzerJSI18N.DEFAULT_LAT = 41*1;
SpotzerJSI18N.DEFAULT_LNG = -102*1;
SpotzerJSI18N.DEFAULT_ZOOM = 3*1;