
function replace(str,ch1,ch2) {
  if (str == "") return "";
  do{
    pos = str.indexOf(ch1);
    if (pos == -1) return str;
    str = str.replace(ch1,ch2);
  }  while (true);
}

function GetYan2(str){
  str = replace(str,"ma'may","\uFFFD");
  str = replace(str,"i'","\u0131");str = replace(str,"I'","\uFFFF");
  str = replace(str,"I","\u0130"); str = replace(str,"\uFFFF","I");
  str = replace(str,"a'","\u04D9");str = replace(str,"A'","\u04D8");
  str = replace(str,"o'","\u04E9");str = replace(str,"O'","\u04E8");
  str = replace(str,"u'","\u00FC");str = replace(str,"U'","\u00DC");
  str = replace(str,"ch","\u00E7");str = replace(str,"Ch","\u00C7"); str = replace(str,"CH","\u00E7");
  str = replace(str,"gh","\u011F");str = replace(str,"Gh","\u011E"); str = replace(str,"GH","\u011E");
  str = replace(str,"sh","\u015F");str = replace(str,"Sh","\u015E"); str = replace(str,"SH","\u015E");
  str = replace(str,"n'","\u014B");str = replace(str,"N'","\u014A");
  str = replace(str,"àü","\u04D9");str = replace(str,"Àü","\u04D8");str = replace(str,"ÀÜ","\u04D8");
  str = replace(str,"îü","\u04E9");str = replace(str,"Îü","\u04E8");str = replace(str,"ÎÜ","\u04E8");
  str = replace(str,"óü","\u04AF");str = replace(str,"Óü","\u04AE");str = replace(str,"ÓÜ","\u04AE");
  str = replace(str,"õú","\u04BB");str = replace(str,"Õú","\u04BA");str = replace(str,"ÕÚ","\u04BA");
  str = replace(str,"æú","\u0497");str = replace(str,"Æú","\u0496");str = replace(str,"ÆÚ","\u0496");
  str = replace(str,"íú","\u04A3");str = replace(str,"Íú","\u04A2");str = replace(str,"ÍÚ","\u04A2");
  str = replace(str,"ê\"","\u049B");str = replace(str,"Ê\"","\u049A");
  str = replace(str,"ã\"","\u0491");str = replace(str,"Ã\"","\u0490");
  str = replace(str,"â\"","w");str = replace(str,"Â\"","W");
  str = replace(str,"\n","<br>");
  str = replace(str,"\uFFFD","ma'may");
  return str+'&nbsp;';
}
