(function(){

GupShup.html.errorMessages = GupShup.html.errorMessages || {

incorrectLoginInfo : "Incorrect mobile phone or password. Please check your phone and password.",
blankPhone	  	   : "Mobile number is not valid. Please enter a valid mobile number.",
blankPassword      : "Password is blank. Please enter your current password.",
blankCaptcha       : "Letters do not match. Please enter all the letters you see in the image above.",
blankCaptchaAlert  : "Please enter security code as shown in image",
invalidPhone       : "Mobile number is not valid. Please enter a valid mobile number.",
invalidEmail       : "Please select a valid Gtalk IM. For e.g. rakesh@gmail.com (We do not support Yahoo/MSN IM).",
invalidEmailId      : "Please enter valid email address. For e.g. rakesh@gmail.com",
invalidVerifyCode  : "The verification code should be 4 characters long.",
invalidFileUpload  : "Please upload valid .xls or .csv or .zip file.",
userBlocked        : "User account blocked. Contact support@smsgupshup.com for more information.",
internalError      : "Something went wrong. It's probably a server error. Please try again.",
blankCurrentPass   : "Password is incorrect. Please enter your current password.",
blankNewPass       : "Password must be at least 5 characters in length.",
verifyPassMismatch : "Passwords do not match.",
passwordMismatch   : "Please enter your current password.",
currentPassLength  : "Password must be at least 5 characters in length.",
selectGender       : "Please select your gender.",
blankLocation	   : "Please enter a valid location.",
blankName          : "Name is not valid. Name must be less than 15 characters and must contain only letters, numbers and basic symbols (eg. , / ; &).",
blankNick	       : "Nickname must be less than 10 characters and contain only letters or numbers or _.",
invalidNick	       : "Nickname must be less than 10 characters and contain only letter or numbers or _.",
blockedNick        : "The Nick is not Allowed",
PinvalidDescription: "About me section must be less than 500 characters and only contain letters, number and basic symbols (e.g. , / ; &).",
GinvalidDescription: "Description is not valid. Description must be less than 200 characters and must only contain letters, numbers and basic symbols (e.g. , / ; &).",
invalidDOB         : "The date of birth is invalid.",
blankDOB           : "Date of birth is not valid. Please select your date, month and year of birth.",
nonAsciiChar       : "Some characters you entered are not permitted.",
invalidImage       : "Image must be in JPG or GIF format and smaller than 2MB.",
blockedGroupName   : "This group name is not allowed.",
groupNameLength	   : "Group name is invalid. Group name must be 5-15 characters and only contain letters, numbers or '_'.",
groupNameGivenLength : function (minLen, maxLen) { return "Group name is invalid. Group name must be " + minLen + "-" + maxLen + " characters and only contain letters, numbers or '_'."},
groupNameInUse     : "Group name is taken.",
invalidCharInGroup : "Please use letters, numbers and '_' only. No other special characters or spaces are allowed.",
invalidGroupName   : "Group name is invalid. Group name must be 5-15 characters and only contain letters, numbers or '_'.",
invalidGreetingMsg : "Greeting message not valid. Greeting message must be less than 100 characters and contain only letters or numbers.",
partnerInvalidGreetingMsg : "Greeting message not valid. Greeting message must be upto 724 characters and contain only letters or numbers.",
stopWordsInGreetingMsg	: 'Please do not use objectionable words in your greeting message.',
p2pReceiverLimitReached : 'You are not allowed to send a personal message to more than 15 mobile numbers at a time.',
p2pInvalidReceiver : 'One or more mobile numbers or group names are incorrectly entered. Please enter valid mobile numbers and group names.',
p2pDuplicate : 'One or more mobile numbers/group names are repated. Please remove duplicate numbers/group names.',
postInvalidPicErr	:'Please select picture to send to your friends.',
postEmptyMsgErr		:'Please enter message to send to your friends.',
getPostMsgLengthErr : function(len){ return "Message should be at most " + len + " characters long"; },
nonAsciiPostErr		: 'Unable to post the message. Only letters, numbers and basic symbols (e.g. , ; & /) are allowed.',
groupPostDeleteFailure : 'Error deleting the post. Please try again.',
groupAvailible     : 'Group name available',
invalidInvitePhone : 'Some mobile numbers are invalid. Please enter valid Indian mobile numbers separated by commas. We do not support non-Indian mobile numbers. <br/>For example:9876543210, 9889198891, 9977199771.',
invalidInviteEmail : 'Some email addresses are invalid. Please enter valid email addresses separated by comma. <br/> For example:<br/>rakesh@gmail.com, anita@yahoo.com.',
invalidInvite      : 'Please enter phone number or email addresses or both.',
shareInvalidPhones : 'Some mobile numbers are invalid. Please enter valid Indian mobile numbers separated by commas. We do not support non-Indian mobile numbers. <br/>For example:9876543210, 9889198891, 9977199771.',
shareInvalidEmail : 'Some email addresses are invalid. Please enter valid email addresses separated by comma. <br/> For example:rakesh@gmail.com, anita@yahoo.com.',
shareLimitReached : 'You are allowed to share the group with at most 15 users at a time.',
shareInvalidFromEmail : 'Email addresses are incorrectly entered, please enter valid email addresses in <b>From</b> field',
reportOffensiveSuccess : 'Thank you! The message has been flagged.',
invalidDomain      : 'Please select valid domain.',
invalidPassword    : 'Password is incorrect. Please enter your current password.',
importContactsFail : 'Error importing contacts from your account. Please try again.',
importAuthFail     : 'Error importing contacts from your account. Please provide correct login information.',
importSelectFreiend: 'Please select friend(s) to whom you want to invite.',
loginToGupShupMsg: 'To use all features of GupShup you first need to <a href="' + GupShup.conf.contextPath +'/login">Log in</a> to GupShup. Don\'t have an account? <a href="' + GupShup.conf.contextPath +'/signup">Join Now</a>.',
loginToForwardMsg: 'You need to <a href="' + GupShup.conf.contextPath +'/login">login</a> to forward this message. Not on GupShup? <a href="' + GupShup.conf.contextPath +'/signup">Join now</a>.',
loginToFlagMsg: 'You need to <a href="' + GupShup.conf.contextPath +'/login">login</a> to flag this message. Not on GupShup? <a href="' + GupShup.conf.contextPath +'/signup">Join now</a>.',
loginToJoinMsg: 'You need to <a href="' + GupShup.conf.contextPath +'/login">login</a> to join this group. Not on GupShup? <a href="' + GupShup.conf.contextPath +'/signup">Join now</a>.',
loginToJoinComMsg: 'You need to <a href="' + GupShup.conf.contextPath +'/login">login</a> to join this Community. Not on GupShup? <a href="' + GupShup.conf.contextPath +'/signup">Join now</a>.',
blankCategory      : 'Please select a category from the drop-down list that describes your group.',
mergeSubscriber    : 'The new mobile number is already registered on GupShup. This number will be linked to your current account and all groups subscribed to this number will be removed. You can login using the new mobile number to access all groups subscribed to this number.' ,
spamError		   : 'You must agree to the GupShup Community Guidelines',
noSubsriberSelected : 'Please select subscriber to delete',
pendingAjaxRequest : 'Your current request is being processed.. Please try again later.',
groupCreated	    : 'You have successfully created GupShup group.',
noFlagTypeSelected	    : 'Please select the flag type.',
noSubSelected	    : 'Please select subject.',
bigComment	    : 'Please restrict your comment to 200 characters.',
noComment	    : 'Please enter your comment (must be less than 200 characters).',
maxTagName			: 'Each tag name cannot be more than 20 characters long.',
blockedTagName	   : 'The Tag name is not allowed',
invalidCharInTag 	: "Please use letters, numbers and '_' only. No other special characters or spaces are allowed.",
stopWordsInComment	: 'Please do not use objectionable words in your comments.',
sessionExpired		: 'Your session has expired. Please <a href="' + GupShup.conf.contextPath + '/login">click here</a> to re-login.',
sessionExpiredNoLoginLink : 'Your session has expired. Please re-login.',
invalidSearchQuery	: 'Please enter a valid search query.',
premiumSubInactiveAlert : 'Subscriptions to one or more of your premium groups are inactive. Go to <a href="' + GupShup.conf.contextPath +'/manageSubscriptions">Manage</a> groups to pay & renew your subscriptions.',
premiumSubRenewAlert : 'Subscriptions for one or more of your premium groups are about to expire. Go to <a href="' + GupShup.conf.contextPath +'/manageSubscriptions">Manage</a> groups and pay the subscription fee to maintain uninterrupted access.',
paySysDownError : 'We are facing some difficulties right now and are unable to retrieve your Gupshup Account Details to process this action. Please try again later.',
invalidPollName : function(len){ return 'Poll name must be less than ' + len + ' characters and should contain letters or numbers only.';},
blockedPollName : 'The Poll name is not Allowed. Please try another one.',
duplicatePollName : 'The Poll name is already taken. Please try another one.',
validPollName : 'The Poll name is allowed.',
invalidPollOptions : 'Please enter valid options for your question. Options must be atmost of 12 characters and contain only letters, numbers, space, _ or \'',
duplicatePollOptions : 'You have entered duplicate options for your question. Please enter valid unique options for your question.',
invalidPollQ : 'Please enter valid question to start poll. Question must be less than 120 characters and must only contain letters, numbers and basic symbols (e.g. , / ; &).',
objectionablePoll : 'Please do not use objectionable words in your poll question.',
invalidPollDates : 'Please select valid start and end date for your poll. The maximum time a poll can run is 30 days from its start date.' ,
invitePhoneDuplicates : 'One or more mobile numbers are repated. Please remove duplicate numbers.',
getPollLimitReachedMsg : function(len){ return 'You are not allowed to invite more than ' + len + ' mobile numbers at a time.';},
pollInvitePhone: 'Please enter mobile numbers of friends to whom you want to invite.',
invalidQuantity:'Please enter a valid quantity required.',
blankAddress:'Please enter your address.',
blankCity:'Please enter your city name.',
blankState:'Please enter your state name.',
blankPinCode:'Please enter your pincode.',
invalidPinCode:'Please enter a valid pincode.',
blankFirstName: 'Please enter your first name as a single word.',
blankLastName: 'Please enter your last name as a single word.',
replyLengthOverFlow : 'Your reply was longer than the allowed limit (' + GupShup.conf.replyMessageLength + ' chars) and couldn\'t be sent. Please shorten your reply and try again',
invalidReply: 'Please enter valid reply text.',
nonAsciiReplyErr : 'Unable to send reply. Only letters, numbers and basic symbols (e.g. , ; & /) are allowed.',
getActivateMobileErr : function(code){ return 'We haven\'t received your message yet. It may take a couple of minutes to receive your message. Please try in a while';}
}
})();

(function(){

GupShup.html.toolTips = GupShup.html.toolTips || {

enterPhone  	    : "Enter the phone number you use to log on to GupShup",
enterPassword       : "Enter your password",
forgotPasswordPhone : "Please enter the phone number you registered with SMS GupShup - a new password will be sent to the phone.",
forgotPasswordEmail : "Enter your email address given at the time of registration",
enterReceivers		: "Enter your friends phone number",
enterMessage		: "Enter your message here",
nickTip				: "Entering your full name will help your friends in recognizing you when you invite them",
freeMsgTip:'Free messages are ' + GupShup.conf.grpMessageLength + ' characters in length.',
getPaidMsgTip: function(len){
	
	var eg = "";
	for(var k = 1; k < Math.ceil(GupShup.conf.paidGroupTextMessageLength/GupShup.conf.paidSingleTextMessageLength); k ++)
	{
		if(k > 2)
			break;
		var length = k * GupShup.conf.paidSingleTextMessageLength;
		var cost = (k * GupShup.conf.paidMessageCost);
		cost = Math.round(cost * 100)/100;
		if(eg.length > 0)
			eg += " ";
		eg += length + " chars(Rs. " + cost + "),";
		
	}
	var msg =  'Paid messages are upto ' + GupShup.conf.paidGroupTextMessageLength + ' chars in length, ads-free & have faster delivery. Cost of a paid message depends on the message length: ' + eg + '.....,' + GupShup.conf.paidGroupTextMessageLength + ' chars(Rs. ' + GupShup.conf.paidMessageMaxCost + ').';
	return msg;
}

}
})();
