Utils.StringsObject = function() {
	this.strings = {};
};

Utils.StringsObject.prototype.getString = function(string, parameters) {
	if ("Object" != typeof parameters) {
		parameters = [];
	}
	if ("Number" != typeof parameters.length) {
		parameters = [];
	}
	var result = this.strings[string]?this.strings[string]:string;
	for (var idx = 0; idx < parameters.length; idx++) {
		var re = new RegExp('/\$\{'+(idx+1)+'\}/g');
		result = result.replace(re,parameters[idx]);
	}
	return result;
};

Utils.StringsObject.prototype.addString = function(key, val) {
	this.strings[key] = val;
};

Utils.Strings = new Utils.StringsObject();

Utils.Strings.addString('lang',"");

Utils.Strings.addString('jsex: ${1}','us_JavaScript_Error: ${1}');
Utils.Strings.addString('cannot_get_contacts',"us_cannot_get_contacts");

Utils.Strings.addString('form_no_friends',"Please enter email address(es) of people to invite (to import from adressbook, click on the icon of your e-mail software)");
Utils.Strings.addString('form_no_message',"us_form_no_meassage");
Utils.Strings.addString('form_no_email',"email address invalid");
Utils.Strings.addString('form_no_terms',"Acceptance to the terms of service is mandatory");
Utils.Strings.addString('you_have',"Incorrect field(s)");
Utils.Strings.addString('incorrect_fields',"Warning: errors occured. ");
Utils.Strings.addString('please_correct',"Please check and correct your entries.");
Utils.Strings.addString('you have ${1} incorrect field(s)'," ")

Utils.Strings.addString('request_error',"Sorry, lost connection to the server. Please check internetconnection and try again.\nIf the problem persists, contact us at support@emailcharity.com including this error message.\n");
Utils.Strings.addString('sure_delete',"Are you sure?");
Utils.Strings.addString('no_ngo',"No organisation is available for this cause in this country yet.\nFor more information please contact us at support@emailcharity.com");
Utils.Strings.addString('no_sponsor',"No sponsor has choosen to support your cause in this country yet.\nFor more information please contact us at support@emailcharity.com");
Utils.Strings.addString('manage_sets',"Manage Bannersets");
Utils.Strings.addString('choose_cause',"choose your cause");
Utils.Strings.addString('choose_cause_sub'," ");

Utils.Strings.addString('form_no_cname',"Company name missing");
Utils.Strings.addString('form_no_ccause',"Please select a cause");
Utils.Strings.addString('form_no_ccontact',"Please provide a contact");
Utils.Strings.addString('form_no_feedback_messsage',"us_form_no_feedback_messsage");
Utils.Strings.addString('form_no_username',"us_form_no_username");
Utils.Strings.addString('form_accept_terms',"us_form_accept_terms");

Utils.Strings.addString('loading_applet',"Please wait, installer is loading...<br>In the next step, click trust certificate and later install.");

Utils.Strings.addString('enter_both_dates',"us_enter_both_dates");
Utils.Strings.addString('enter_correct_dates',"us_enter_correct_dates");
Utils.Strings.addString('enter_correct_dates',"us_from_date_greater");
Utils.Strings.addString('forgot_pass_email_sent',"Your password has been sent to the email specified.");
Utils.Strings.addString('form_no_or_wrong_email',"This address could not be found.");
Utils.Strings.addString('manage_sets_sub',"On this page you can add, delete and customize your email charity banners.");

Utils.Strings.addString('user_exists',"This email is already in use. Please log and click '+ add' to create a new bannerset.");

Utils.Strings.addString('special_bannerset',"Sorry, this is not available at the moment! For more help, email us at support@emailcharity.com");
Utils.Strings.addString('one_ngo',"Please select at least one organisation!");
Utils.Strings.addString('one_sponsor',"We recommend to select at least one sponsor in order to generate funds for the organisations!");
Utils.Strings.addString('one_ngo_myorg',"Please select at least one organisation.");
Utils.Strings.addString('one_sponsor_myorg',"In order to generate funds, please select at least one sponsor.");

Utils.Strings.addString('press_ctrl_c',"Press Ctrl-C to copy the selected code.");
Utils.Strings.addString('thank-you',"us_thank-you");
Utils.Strings.addString('error-questions',"us_error-questions");

Utils.Strings.addString('sure-delete',"Are you sure youwant to delete your email charity account? This is permanent and can not be revoked.");
Utils.Strings.addString('account-deleted',"Your account has been deleted.");
Utils.Strings.addString('error-deleting-account',"Your account has been deleted.");
