var tailJS = new Array();

tailJS["enterQueryString"] 			= "יש להזין מילת חיפוש";
tailJS["typeTheCode"] 				= "נא לרשום את התווים המופיעים במסגרת";
tailJS["typeTheCodeError"] 			= "שגיאה בהקלדת התווים. נא להקלידם שוב";
tailJS["productAddedToCart"] 		= "המוצר הוסף לסל";
tailJS["productAddedToCartClose"] 	= "סגור";
tailJS["notCopy"] 					= "אין להעתיק.";
tailJS["forumAddNewMsgForm1"] 		= "יש להזין כותרת להודעה";
tailJS["forumAddNewMsgForm2"] 		= "כדי לקבל הודעה על תגובות יש להזין כתובת דוא\"ל";
tailJS["forumAddNewMsgForm3"] 		= "יש להמתין לסיום טעינת הקבצים";
tailJS["blog_showComments"]			= "הצגת תגובות";
tailJS["blog_hideComments"]			= "הסתרת תגובות";
tailJS["blog_enterName"]			= "יש להזין שם";
tailJS["blog_enterEmail"]			= "יש להזין דואר אלקטרוני";
tailJS["blog_enterValidEmail"]		= "יש להזין דואר אלקטרוני חוקי";
tailJS["blog_enterTitle"]			= "יש להזין כותרת לתגובה";
tailJS["blog_enterContent"]			= "יש להזין תוכן לתגובה";
tailJS["blog_enterYourName"]		= "יש להזין את שמך";
tailJS["blog_enterYourEmail"]		= "יש להזין דואר אלקטרוני שלך";
tailJS["blog_enterFName"]			= "יש להזין את שם החבר";
tailJS["blog_enterFEmail"]			= "יש להזין דואר אלקטרוני של החבר";
tailJS["blog_enterBlogName"]		= "ש להזין את שם הבלוג";
tailJS["blog_enterPostTitle"]		= "יש להזין כותרת לרשומה";
tailJS["blog_enterPostText"]		= "יש להזין תוכן לרשומה";
tailJS["blog_confirmDeletePost"]	= "יש ללחוץ OK למחיקת הרשומה מהבלוג";
tailJS["blog_confirmDeleteComment"]	= "יש ללחוץ OK למחיקת התגובה";
tailJS["questionnaire_mandatoryText"]	= "יש להזין תשובה לשאלה מספר ";
tailJS["questionnaire_mandatoryText2"]	= "יש להזין תשובה לשאלה המסומנת";
tailJS["questionnaire_mandatoryRadio"]	= "יש לבחור את אחת התשובות עבור שאלה מספר ";
tailJS["questionnaire_mandatoryRadio2"]	= "יש לבחור את אחת התשובות עבור השאלה המסומנת";


/* ---------------------------------------------------------------- */
/* commonEncode														*/
/* ---------------------------------------------------------------- */
function commonEncode (text)
{
	text = text.replace (/@/g, "@!");
	text = text.replace (/&/g, "#amp#");
	text = text.replace (/א/g, "@t");
	text = text.replace (/ב/g, "@c");
	text = text.replace (/ג/g, "@d");
	text = text.replace (/ד/g, "@s");
	text = text.replace (/ה/g, "@v");
	text = text.replace (/ו/g, "@u");
	text = text.replace (/ז/g, "@z");
	text = text.replace (/ח/g, "@j");
	text = text.replace (/ט/g, "@y");
	text = text.replace (/י/g, "@h");
	text = text.replace (/ך/g, "@l");
	text = text.replace (/כ/g, "@f");
	text = text.replace (/ל/g, "@k");
	text = text.replace (/ם/g, "@o");
	text = text.replace (/מ/g, "@n");
	text = text.replace (/ן/g, "@i");
	text = text.replace (/נ/g, "@b");
	text = text.replace (/ס/g, "@x");
	text = text.replace (/ע/g, "@g");
	text = text.replace (/ף/g, "@;");
	text = text.replace (/פ/g, "@p");
	text = text.replace (/ץ/g, "@.");
	text = text.replace (/צ/g, "@m");
	text = text.replace (/ק/g, "@e");
	text = text.replace (/ר/g, "@r");
	text = text.replace (/ש/g, "@a");
	text = text.replace (/ת/g, "@,");
//	text = text.replace (/CDATA/g, "@DATA");

	return text;
}

/* ---------------------------------------------------------------- */
/* commonDecode														*/
/* ---------------------------------------------------------------- */
function commonDecode (text)
{
	text = text.replace (/@t/g, "א");
	text = text.replace (/@c/g, "ב");
	text = text.replace (/@d/g, "ג");
	text = text.replace (/@s/g, "ד");
	text = text.replace (/@v/g, "ה");
	text = text.replace (/@u/g, "ו");
	text = text.replace (/@z/g, "ז");
	text = text.replace (/@j/g, "ח");
	text = text.replace (/@y/g, "ט");
	text = text.replace (/@h/g, "י");
	text = text.replace (/@l/g, "ך");
	text = text.replace (/@f/g, "כ");
	text = text.replace (/@k/g, "ל");
	text = text.replace (/@o/g, "ם");
	text = text.replace (/@n/g, "מ");
	text = text.replace (/@i/g, "ן");
	text = text.replace (/@b/g, "נ");
	text = text.replace (/@x/g, "ס");
	text = text.replace (/@g/g, "ע");
	text = text.replace (/@;/g, "ף");
	text = text.replace (/@p/g, "פ");
	text = text.replace (/@\./g, "ץ");
	text = text.replace (/@m/g, "צ");
	text = text.replace (/@e/g, "ק");
	text = text.replace (/@r/g, "ר");
	text = text.replace (/@a/g, "ש");
	text = text.replace (/@,/g, "ת");
	text = text.replace (/@!/g, "@");

	return text;
}

