var tailJS = new Array();

tailJS["enterQueryString"] = "יש להזין מילת חיפוש";
tailJS["typeTheCode"] = "נא לרשום את התווים המופיעים במסגרת";
tailJS["typeTheCodeError"] = "שגיאה בהקלדת התווים. נא להקלידם שוב";
tailJS["productAddedToCart"] = "המוצר הוסף לסל";
tailJS["notCopy"] = "אין להעתיק.";

/* ---------------------------------------------------------------- */
/* 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;
}

