﻿// JScript File
 
  /*Function to replace the encodedchars to actual polish chars*/
  /*
HTML result         Ą         Ć          Ę          Ł           Ń          Ó          Ś          Ź          Ż 
HTML dec. code &#260; &#262; &#280; &#321; &#323; &#211; &#346; &#377; &#379; 
HTML result         ą          ć          ę          ł            ń           ó          ś           ź          ż 
HTML dec. code &#261; &#263; &#281; &#322; &#324; &#243; &#347; &#378; &#380; 
  */
  
  function polishify(txt)
  { 
    txt = txt.replace("&#260;", "Ą");
    txt = txt.replace("&#261;", "ą"); 
    txt = txt.replace("&#262;", "Ć");
    txt = txt.replace("&#263;", "ć");
    txt = txt.replace("&#280;", "Ę");
    txt = txt.replace("&#281;", "ę");
    txt = txt.replace("&#323;", 'Ł');
    txt = txt.replace("&#322;", 'ł');
    txt = txt.replace("&#323;", "Ń");
    txt = txt.replace("&#324;", "ń");
    txt = txt.replace("&#211;", "Ó");
    txt = txt.replace("&#243;", "ó");
    txt = txt.replace("&#346;", "Ś");
    txt = txt.replace("&#347;", "ś");     
    txt = txt.replace("&#377;", "Ź");
    txt = txt.replace("&#378;", "ź");
    txt = txt.replace("&#379;", "Ż");
    txt = txt.replace("&#380;", "ż"); 
    return txt;
  }
