/**
 * @author ramkumar
 */

var Investor = Array();
var Admin = Array();

/*************************Investor Error Messages******************************/ 
Investor['NAME_CHARACTER_CHECK'] = "You name can only contain alphabets, an apostrophe or a hyphen. ";
Investor['NAME_CHARACTER_CHECK_ALPHA'] = "Only letters, spaces, hyphens, and apostrophes are allowed in ";
Investor['FIELD_BLANK'] = "Please enter a value for ";
Investor['PASSWORD_VALID'] = "Invalid password. Your password is case-sensitive and should be  6-15 characters long, have no spaces and contain at least one digit.";
Investor['PASSWORD_BLANK'] = "Password cannot be blank";
Investor['EMAILID_CONFIRM_CONFLICT'] = "The email addresses you entered do not match. Please check them again.";
Investor['EMAILID_VALID'] = "The email address seems to be invalid. ";
Investor['SECRET_ANSWER_BLANK'] = "Secret Answer cannot be blank";
Investor['TERMS_CONDITIONS_CHECK'] = "Please accept the Terms & Conditions and Privacy  Policy.";
Investor['GURANTEE_FUND_VALID'] = "The guarantee amount should be a number.";
Investor['GURANTEE_FUND_VALID_NUMBER'] = "The guarantee amount should be a number greater than zero.";
Investor['GUARANTEE_AMOUNT_GREATER'] = "The guarantee amount should be greater than zero.";
Investor['DONATION_FUND_VALID'] = "The donation amount should be a number.";
Investor['DONATION_FUND_VALID_NUMBER'] = "The donation amount should be a number greater than zero.";
Investor['FROM_ADDRESS_VALID'] = "Please enter a valid 'From email address'.";
Investor['TO_ADDRESS_VALID'] = "Please enter valid 'To Email Address', the following are invalid :";
Investor['EMAIL_MESSAGE_BLANK'] = "You need to write a brief email message.";
Investor['EMAIL_MESSAGE_LENGTH'] = "Email length should be less than 500 characters";
Investor['INVESTMENT_DONATION_FUND_VALID'] = "Enter a guarantee or a donation amount or both.";
Investor['INVESTMENT_FUND_VALID'] = "The guarantee amount should be a number.";
Investor['INVESTMENT_FUND_GREATER'] = "The amount should be greater than zero.";
Investor['PAYPAL_AMOUNT_LIMIT'] = "PayPal supports transactions upto $9999.99. <br> Please see the Help section for making large grants or write to us at grants@unitedprosperity.org.";
Investor['REGISTER_FIRST_NAME_BLANK'] = "You have not entered your first name.";
Investor['REGISTER_LAST_NAME_BLANK'] = "You have not entered your last name.";
Investor['FIRST_NAME_BLANK'] = "You have not entered your first name. We need it for your donation receipt.";
Investor['LAST_NAME_BLANK'] = "You have not entered your last name. We need it for your donation receipt.";
Investor['EMAIL_PASSWORD_VALID'] = "The email address or password seems to be invalid. ";
Investor['EMAIL_BLANK'] = "Email address cannot be blank";
Investor['OPENID_BLANK'] = "OpenID cannot be blank";
Investor['PASSWORD_BLANK'] = "Password cannot be blank";
Investor['SECRET_ANSWER_VALID'] = "Secret Answer entered is Invalid";
Investor['GUARANTEE_AMOUNT_BLANK'] = 'The guarantee amount cannot be blank.';
Investor['GUARANTEE_AMOUNT_VALID'] = 'The guarantee amount should be a number.';
Investor['GUARANTEE_AMOUNT_GREATER_INVALID'] = "The guarantee amount cannot be greater than the guarantee needed. ($ ";
Investor['GUARANTEE_AMOUNT_DECIMAL_PLACES'] = "The guarantee amount can have only upto two decimal places.";
Investor['NEW_EMAILID_CONFIRM_CONFLICT'] = "The email addresses you entered  are not identical. Please check them again.";
Investor['OLD_PASSWORD_BLANK'] = "Please enter your old password.";
Investor['NEW_PASSWORD_CONFIRM_CONFLICT'] = "The passwords you entered are not identical. Please check them again.";
Investor['PHOTO_UPLOAD_INVALID'] = "The image file is invalid."
Investor['PHOTO_UPLOAD_SIZE_VALID'] = "Invalid photo file size, size should be less than";
Investor['PAYPAL_FAILURE'] = "PayPal payment failed. Kindly retry checkout after some time.If problem persists, please write to us at support@unitedprosperity.org"
Investor['CREDIT_EXCEED'] = "Given credit amount should not exceed available credit";
Investor['CREDIT_AMOUNT_VALID'] = "The credit amount seems to be invalid";
Investor['CREDIT_AMOUNT_EXCEED'] = "Given credit amount should not exceed available credit";
Investor['PAYPAL_AMOUNT_VALID'] = "The PayPal amount seems to be invalid";
Investor['CREDIT_AMOUNT_DECIMAL_PLACES'] = "The credit amount can have only upto two decimal places.";
Investor['PAYPAL_AMOUNT_DECIMAL_PLACES'] = "The payPal amount can have only upto two decimal places.";
Investor['DONATION_AMOUNT_DECIMAL_PLACES'] = "The donation amount can have only upto two decimal places.";
Investor['DONATION_FUND_DECIMAL_PLACES'] = "The donation amount can have only upto two decimal places";
Investor['GURANTEE_FUND_DECIMAL_PLACES'] = "The guarantee amount can have only upto two decimal places";
Investor['INVESTMENT_FUND_DECIMAL_PLACES'] = "Prosperity Credits can have only upto two decimal places";
Investor['PAYPAL_AMOUNT_LIMIT_SUPPORT'] = "PayPal supports transactions upto $9999.99. <br> Please see the Help section for making large grants or write to us at grants@unitedprosperity.org.";
Investor['PASSWORD_LENGTH_VALID'] = "The password entered is invalid.It should be 6 to 15 characters with 1 digit and no spaces.";
Investor['EMAILID_EXISTS'] = "The email id you entered already exists in our system. <br> If you have registered previously then login with your email id or register with another email id.";
Investor['EMAILID_OPENID_EXISTS'] = "The email id you entered already exists in our system. Please provide a different email id.";
Investor['PASSWORD_VALID'] = "Invalid password. Your password is case-sensitive and should be  6-15 characters long, have no spaces and contain at least one digit.";
Investor['EMAILID_EXISTS_DONATE'] = "Please Login and Donate. You are a Registered User.";
Investor['EMAILID_EXISTS_QUICKSIGNUP'] = "Please Login. You are a Registered User.";
Investor['WITHDRAW_BALANCE_VALID'] = "You do not have enough Prosperity Credits to withdraw.";
Investor['WITHDRAW_PAYPAL_FAILURE'] = "We are unable to perform the withdrawal process, kindly try after sometime.If problem persists, please write to us at support@unitedprosperity.org.";
Investor['TO_EMAIL_ADDRESS_MAXLENGTH'] = "You have exceeded 100 email addresses. Please remove a few email addresses.";
Investor['CITY_VALID'] = "City can contain alphabets, a space, an apostrophe or a hyphen.";
Investor['STATE_VALID'] = "State can contain alphabets, a space, an apostrophe or a hyphen.";
Investor['ZIPCODE_VALID'] = "The zip code accepts numbers, alphabets and hyphens only.";
Investor['COUNTRY_SELECT'] = "Please select Country from drop down"
Investor['SECRET_QUESTION_SELECT'] = "Please select Secret Question from drop down";
Investor['USERNAME_VALID'] = "Please enter valid User Name";
Investor['DONATION_AMOUNT_INVALID'] = "Donation Amount seems to be invalid";
Investor['EMAIL_INVALID'] = "Email entered is Invalid";
Investor['EMAIL_NOTEXIST'] = "The e-mail id entered does not exist in our records";
Investor['EMAIL_VALID'] = "The email address seems to be invalid.";
Investor['OPENID_VALID'] = "The openid entered seems to be invalid.";
Investor['SECRET_ANSWER'] = "Please enter Secret Answer";
Investor['IMAGE_INVALID'] = "Invalid Image file uploaded.";
Investor['WITHDRAW_PROCESS_FAILED1'] = "We are unable to complete withdrawal process, only $";
Investor['WITHDRAW_PROCESS_FAILED2'] = "was withdrawn. Kindly try after sometime.If problem persists, please write to us at support@unitedprosperity.org.";
Investor['WEBSITE_INVALID'] = "Website address seems to be invalid, Sample website address - http://sample.com";
Investor['TRANSACTION_DATETIME_VALID'] = "'Start Date and Time' should be less than 'End Date and Time'";
Investor['OPENID_INVALID'] = "The OpenID entered was invalid";
Investor['OPENID_LOGIN_FAILED'] = "OpenID Login Failed";
Investor['EMAIL_THIRD_PARTY_SIGNUP'] = "You have signed up with a third party account. Please try signing on with a third party account";


/*************************Admin Error Messages********************************/ 

Admin['SEARCH_VALID_CRITERIA'] = "Please enter search criteria";
Admin['DEAL_ID_VALID'] = "Please enter valid Deal id";
Admin['INVESTOR_ID_VALID'] = "Please enter valid Deal id";
Admin['INVESTMENT_PROFILE_STATUS'] = "Please select Investment profile status";
Admin['INVESTMENT_PROFILE'] = "Please select Investment profile";
Admin['PARTY_NAME'] = "Please enter Party name";
Admin['PARTY_TYPE'] = "Please select Party Type";
Admin['ADDRESS'] = "Please enter Address";
Admin['CITY'] = "Please enter City";
Admin['CITY_VALID'] = "Please enter valid City";
Admin['STATE'] = "Please enter State";
Admin['STATE_VALID'] = "Please enter Valid State";
Admin['COUNTRY'] = "Please select Country";
Admin['ZIP'] = "Please enter Zip";
Admin['ZIP_VALID'] = "Please enter valid Zip code";
Admin['REGION'] = "Please select Region";
Admin['CONTACT_PERSON'] = "Please enter Contact person";
Admin['CONTACT_PERSON_VALID'] = "Please enter valid input for contact person - <i>only alphabets,spaces,'-' and '_' are accepted</i> ";
Admin['TELEPHONE'] = "Please enter Telephone";
Admin['TELEPHONE_VALID'] = "Please enter a valid Telephone";
Admin['EMAIL_VALID'] = "Please enter a valid email address";
Admin['INCEPTION_YEAR_VALID'] = "Please enter valid Inception year";
Admin['PARTNER_YEAR_VALID'] = "Please enter valid Partner Since year";
Admin['DELINQUENCY_RATE_VALID'] = "Please enter valid Reported Delinquency Rate";
Admin['DEFAULT_RATE_VALID'] = "Please enter valid Reported Default Rate";
Admin['INTEREST_RATE_VALID'] = "Please enter valid Average Interest Rate";

/*********************************Functions*********************************/

function getInvestorErrorMessage(s){
	if(Investor[s])
		return Investor[s];
	else
		return s;
}

function getAdminErrorMessage(s){
	if(Admin[s])
		return Admin[s];
	else
		return s;
}

