﻿ 
function english(txt)
{
txt = txt.replace(/a/g, "a");
return txt; 
}
 
function romanised(txt)
{
 
txt = txt.replace(/a/g, "அ");
 
txt = txt.replace(/A/g, "அஅ");
txt = txt.replace(/அஅ/g, "ஆ");
 
txt = txt.replace(/i/g, "இ");
txt = txt.replace(/I/g, "இஇ");
txt = txt.replace(/இஇ/g, "ஈ");
 
txt = txt.replace(/u/g, "உ");
txt = txt.replace(/U/g, "உஉ");
txt = txt.replace(/உஉ/g, "ஊ");
 
txt = txt.replace(/e/g, "எ");
txt = txt.replace(/E/g, "எஎ");
txt = txt.replace(/எஎ/g, "ஏ");
 
txt = txt.replace(/o/g, "ஒ");
txt = txt.replace(/O/g, "ஒஒ");
txt = txt.replace(/ஒஒ/g, "ஓ"); 
 
txt = txt.replace(/k/g, "க்");
txt = txt.replace(/க்அ/g, "க");
txt = txt.replace(/கஅ/g, "கா");
txt = txt.replace(/க்ஆ/g, "கா");
txt = txt.replace(/க்இ/g, "கி");
txt = txt.replace(/கிஇ/g, "கீ");
txt = txt.replace(/க்ஈ/g, "கீ");
txt = txt.replace(/க்உ/g, "கு");
txt = txt.replace(/குஉ/g, "கூ");
txt = txt.replace(/க்ஊ/g, "கூ");
txt = txt.replace(/க்எ/g, "கெ");
txt = txt.replace(/கெஎ/g, "கே");
txt = txt.replace(/க்ஏ/g, "கே");
txt = txt.replace(/க்ஒ/g, "கொ");
txt = txt.replace(/கொஒ/g, "கோ");
txt = txt.replace(/க்ஓ/g, "கோ");
txt = txt.replace(/கஉ/g, "கெள");
txt = txt.replace(/கஇ/g, "கை");
 
txt = txt.replace(/g/g, "க்");
txt = txt.replace(/க்அ/g, "க");
txt = txt.replace(/கஅ/g, "கா");
txt = txt.replace(/க்ஆ/g, "கா");
txt = txt.replace(/க்இ/g, "கி");
txt = txt.replace(/கிஇ/g, "கீ");
txt = txt.replace(/க்ஈ/g, "கீ");
txt = txt.replace(/க்உ/g, "கு");
txt = txt.replace(/குஉ/g, "கூ");
txt = txt.replace(/க்ஊ/g, "கூ");
txt = txt.replace(/க்எ/g, "கெ");
txt = txt.replace(/கெஎ/g, "கே");
txt = txt.replace(/க்ஏ/g, "கே");
txt = txt.replace(/க்ஒ/g, "கொ");
txt = txt.replace(/கொஒ/g, "கோ");
txt = txt.replace(/க்ஓ/g, "கோ");
txt = txt.replace(/கஉ/g, "கெள");
txt = txt.replace(/கஇ/g, "கை");
 
txt = txt.replace(/ழ்h/g, "ழ்");
txt = txt.replace(/ழ்அ/g, "ழ");
txt = txt.replace(/ழஅ/g, "ழா");
txt = txt.replace(/ழ்ஆ/g, "ழா");
txt = txt.replace(/ழ்இ/g, "ழி");
txt = txt.replace(/ழிஇ/g, "ழீ");
txt = txt.replace(/ழ்ஈ/g, "ழீ");
txt = txt.replace(/ழ்உ/g, "ழு");
txt = txt.replace(/ழுஉ/g, "ழூ");
txt = txt.replace(/ழ்ஊ/g, "ழூ");
txt = txt.replace(/ழ்எ/g, "ழெ");
txt = txt.replace(/ழெஎ/g, "ழே");
txt = txt.replace(/ழ்ஏ/g, "ழே");
txt = txt.replace(/ழ்ஒ/g, "ழொ");
txt = txt.replace(/ழொஒ/g, "ழோ");
txt = txt.replace(/ழ்ஓ/g, "ழோ");
txt = txt.replace(/ழஉ/g, "ழெள");
txt = txt.replace(/ழஇ/g, "ழை"); 
 
txt = txt.replace(/h/g, "க்");
txt = txt.replace(/க்அ/g, "க");
txt = txt.replace(/கஅ/g, "கா");
txt = txt.replace(/க்ஆ/g, "கா");
txt = txt.replace(/க்இ/g, "கி");
txt = txt.replace(/கிஇ/g, "கீ");
txt = txt.replace(/க்ஈ/g, "கீ");
txt = txt.replace(/க்உ/g, "கு");
txt = txt.replace(/குஉ/g, "கூ");
txt = txt.replace(/க்ஊ/g, "கூ");
txt = txt.replace(/க்எ/g, "கெ");
txt = txt.replace(/கெஎ/g, "கே");
txt = txt.replace(/க்ஏ/g, "கே");
txt = txt.replace(/க்ஒ/g, "கொ");
txt = txt.replace(/கொஒ/g, "கோ");
txt = txt.replace(/க்ஓ/g, "கோ");
txt = txt.replace(/கஉ/g, "கெள");
txt = txt.replace(/கஇ/g, "கை"); 
 
txt = txt.replace(/ன்ஜ்/g, "ஞ்");
txt = txt.replace(/ஞ்அ/g, "ஞ");
txt = txt.replace(/ஞஅ/g, "ஞா");
txt = txt.replace(/ஞ்ஆ/g, "ஞா");
txt = txt.replace(/ஞ்இ/g, "ஞி");
txt = txt.replace(/ஞிஇ/g, "ஞீ");
txt = txt.replace(/ஞ்ஈ/g, "ஞீ");
txt = txt.replace(/ஞ்உ/g, "ஞு");
txt = txt.replace(/ஞுஉ/g, "ஞூ");
txt = txt.replace(/ஞ்ஊ/g, "ஞூ");
txt = txt.replace(/ஞ்எ/g, "ஞெ");
txt = txt.replace(/ஞெஎ/g, "ஞே");
txt = txt.replace(/ஞ்ஏ/g, "ஞே");
txt = txt.replace(/ஞ்ஒ/g, "ஞொ");
txt = txt.replace(/ஞொஒ/g, "ஞோ");
txt = txt.replace(/ஞ்ஓ/g, "ஞோ");
txt = txt.replace(/ஞஉ/g, "ஞெள");
 
txt = txt.replace(/ஞஇ/g, "ஞை");
 
txt = txt.replace(/ன்க்/g, "ங்");
txt = txt.replace(/ங்அ/g, "ங");
txt = txt.replace(/ஙஅ/g, "ஙா");
txt = txt.replace(/ங்ஆ/g, "ஙா");
txt = txt.replace(/ங்இ/g, "ஙி");
txt = txt.replace(/ஙிஇ/g, "ஙீ");
txt = txt.replace(/ங்ஈ/g, "ஙீ");
txt = txt.replace(/ங்உ/g, "ஙு");
txt = txt.replace(/ஙுஉ/g, "ஙூ");
txt = txt.replace(/ங்ஊ/g, "ஙூ");
txt = txt.replace(/ங்எ/g, "ஙெ");
txt = txt.replace(/ஙெஎ/g, "ஙே");
txt = txt.replace(/ங்ஏ/g, "ஙே");
txt = txt.replace(/ங்ஒ/g, "ஙொ");
txt = txt.replace(/ஙொஒ/g, "ஙோ");
txt = txt.replace(/ங்ஓ/g, "ஙோ");
txt = txt.replace(/ஙஉ/g, "ஙெள");
txt = txt.replace(/ஙஇ/g, "ஙை"); 
 
txt = txt.replace(/ n/g, "ந்");
txt = txt.replace(/ந்அ/g, "ந");
txt = txt.replace(/நஅ/g, "நா");
txt = txt.replace(/ந்ஆ/g, "நா");
txt = txt.replace(/ந்இ/g, "நி");
txt = txt.replace(/நிஇ/g, "நீ");
txt = txt.replace(/ந்ஈ/g, "நீ");
txt = txt.replace(/ந்உ/g, "நு");
txt = txt.replace(/நுஉ/g, "நூ");
txt = txt.replace(/ந்ஊ/g, "நூ");
txt = txt.replace(/ந்எ/g, "நெ");
txt = txt.replace(/நெஎ/g, "நே");
txt = txt.replace(/ந்ஏ/g, "நே");
txt = txt.replace(/ந்ஒ/g, "நொ");
txt = txt.replace(/நொஒ/g, "நோ");
txt = txt.replace(/ந்ஓ/g, "நோ");
txt = txt.replace(/நஉ/g, "நெள");
txt = txt.replace(/நஇ/g, "நை");
 
txt = txt.replace(/w/g, "ந்");
txt = txt.replace(/ந்அ/g, "ந");
txt = txt.replace(/நஅ/g, "நா");
txt = txt.replace(/ந்ஆ/g, "நா");
txt = txt.replace(/ந்இ/g, "நி");
txt = txt.replace(/நிஇ/g, "நீ");
txt = txt.replace(/ந்ஈ/g, "நீ");
txt = txt.replace(/ந்உ/g, "நு");
txt = txt.replace(/நுஉ/g, "நூ");
txt = txt.replace(/ந்ஊ/g, "நூ");
txt = txt.replace(/ந்எ/g, "நெ");
txt = txt.replace(/நெஎ/g, "நே");
txt = txt.replace(/ந்ஏ/g, "நே");
txt = txt.replace(/ந்ஒ/g, "நொ");
txt = txt.replace(/நொஒ/g, "நோ");
txt = txt.replace(/ந்ஓ/g, "நோ");
txt = txt.replace(/நஉ/g, "நெள");
txt = txt.replace(/நஇ/g, "நை"); 
 
txt = txt.replace(/ன்-/g, "ந்");
txt = txt.replace(/ந்அ/g, "ந");
txt = txt.replace(/நஅ/g, "நா");
txt = txt.replace(/ந்ஆ/g, "நா");
txt = txt.replace(/ந்இ/g, "நி");
txt = txt.replace(/நிஇ/g, "நீ");
txt = txt.replace(/ந்ஈ/g, "நீ");
txt = txt.replace(/ந்உ/g, "நு");
txt = txt.replace(/நுஉ/g, "நூ");
txt = txt.replace(/ந்ஊ/g, "நூ");
txt = txt.replace(/ந்எ/g, "நெ");
txt = txt.replace(/நெஎ/g, "நே");
txt = txt.replace(/ந்ஏ/g, "நே");
txt = txt.replace(/ந்ஒ/g, "நொ");
txt = txt.replace(/நொஒ/g, "நோ");
txt = txt.replace(/ந்ஓ/g, "நோ");
txt = txt.replace(/நஉ/g, "நெள");
txt = txt.replace(/நஇ/g, "நை");
 
txt = txt.replace(/dக்/g, "த்");
txt = txt.replace(/த்அ/g, "த");
txt = txt.replace(/தஅ/g, "தா");
txt = txt.replace(/த்ஆ/g, "தா");
txt = txt.replace(/த்இ/g, "தி");
txt = txt.replace(/திஇ/g, "தீ");
txt = txt.replace(/த்ஈ/g, "தீ");
txt = txt.replace(/த்உ/g, "து");
txt = txt.replace(/துஉ/g, "தூ");
txt = txt.replace(/த்ஊ/g, "தூ");
txt = txt.replace(/த்எ/g, "தெ");
txt = txt.replace(/தெஎ/g, "தே");
txt = txt.replace(/த்ஏ/g, "தே");
txt = txt.replace(/த்ஒ/g, "தொ");
txt = txt.replace(/தொஒ/g, "தோ");
txt = txt.replace(/த்ஓ/g, "தோ"); 
 
txt = txt.replace(/தஉ/g, "தெள");
txt = txt.replace(/தஇ/g, "தை");
txt = txt.replace(/ட்க்/g, "த்");
txt = txt.replace(/த்அ/g, "த");
txt = txt.replace(/தஅ/g, "தா");
txt = txt.replace(/த்ஆ/g, "தா");
txt = txt.replace(/த்இ/g, "தி");
txt = txt.replace(/திஇ/g, "தீ");
txt = txt.replace(/த்ஈ/g, "தீ");
txt = txt.replace(/த்உ/g, "து");
txt = txt.replace(/துஉ/g, "தூ");
txt = txt.replace(/த்ஊ/g, "தூ");
txt = txt.replace(/த்எ/g, "தெ");
txt = txt.replace(/தெஎ/g, "தே");
txt = txt.replace(/த்ஏ/g, "தே");
txt = txt.replace(/த்ஒ/g, "தொ");
txt = txt.replace(/தொஒ/g, "தோ");
txt = txt.replace(/த்ஓ/g, "தோ");
txt = txt.replace(/தஉ/g, "தெள");
txt = txt.replace(/தஇ/g, "தை");
 
txt = txt.replace(/c/g, "ச்");
txt = txt.replace(/ச்அ/g, "ச");
txt = txt.replace(/சஅ/g, "சா");
txt = txt.replace(/ச்ஆ/g, "சா");
txt = txt.replace(/ச்இ/g, "சி");
txt = txt.replace(/சிஇ/g, "சீ");
txt = txt.replace(/ச்ஈ/g, "சீ");
txt = txt.replace(/ச்உ/g, "சு");
txt = txt.replace(/சுஉ/g, "சூ");
txt = txt.replace(/ச்ஊ/g, "சூ");
txt = txt.replace(/ச்எ/g, "செ");
txt = txt.replace(/செஎ/g, "சே");
txt = txt.replace(/ச்ஏ/g, "சே");
txt = txt.replace(/ச்ஒ/g, "சொ");
txt = txt.replace(/சொஒ/g, "சோ");
txt = txt.replace(/ச்ஓ/g, "சோ");
txt = txt.replace(/சஉ/g, "செள");
txt = txt.replace(/சஇ/g, "சை");
 
txt = txt.replace(/s/g, "ச்");
txt = txt.replace(/ச்அ/g, "ச");
txt = txt.replace(/சஅ/g, "சா");
txt = txt.replace(/ச்ஆ/g, "சா");
txt = txt.replace(/ச்இ/g, "சி");
txt = txt.replace(/சிஇ/g, "சீ");
txt = txt.replace(/ச்ஈ/g, "சீ");
txt = txt.replace(/ச்உ/g, "சு");
txt = txt.replace(/சுஉ/g, "சூ");
txt = txt.replace(/ச்ஊ/g, "சூ");
txt = txt.replace(/ச்எ/g, "செ");
txt = txt.replace(/செஎ/g, "சே");
txt = txt.replace(/ச்ஏ/g, "சே");
txt = txt.replace(/ச்ஒ/g, "சொ");
txt = txt.replace(/சொஒ/g, "சோ");
txt = txt.replace(/ச்ஓ/g, "சோ");
txt = txt.replace(/சஉ/g, "செள");
txt = txt.replace(/சஇ/g, "சை");
 
txt = txt.replace(/sh/g, "ச்க்");
txt = txt.replace(/ச்க்/g, "ஷ்");
txt = txt.replace(/ஷ்அ/g, "ஷ");
txt = txt.replace(/ஷஅ/g, "ஷா");
txt = txt.replace(/ஷ்ஆ/g, "ஷா");
txt = txt.replace(/ஷ்இ/g, "ஷி");
txt = txt.replace(/ஷிஇ/g, "ஷீ");
txt = txt.replace(/ஷ்ஈ/g, "ஷீ");
txt = txt.replace(/ஷ்உ/g, "ஷு");
txt = txt.replace(/ஷுஉ/g, "ஷூ");
txt = txt.replace(/ஷ்ஊ/g, "ஷூ");
txt = txt.replace(/ஷ்எ/g, "ஷெ");
txt = txt.replace(/ஷெஎ/g, "ஷே");
txt = txt.replace(/ஷ்ஏ/g, "ஷே");
txt = txt.replace(/ஷ்ஒ/g, "ஷொ");
txt = txt.replace(/ஷொஒ/g, "ஷோ");
txt = txt.replace(/ஷ்ஓ/g, "ஷோ");
txt = txt.replace(/ஷஉ/g, "ஷெள");
txt = txt.replace(/ஷஇ/g, "ஷை"); 
 
txt = txt.replace(/z/g, "ழ்");
txt = txt.replace(/ழ்அ/g, "ழ");
txt = txt.replace(/ழஅ/g, "ழா");
txt = txt.replace(/ழ்ஆ/g, "ழா");
txt = txt.replace(/ழ்இ/g, "ழி");
txt = txt.replace(/ழிஇ/g, "ழீ");
txt = txt.replace(/ழ்ஈ/g, "ழீ");
txt = txt.replace(/ழ்உ/g, "ழு");
txt = txt.replace(/ழுஉ/g, "ழூ");
txt = txt.replace(/ழ்ஊ/g, "ழூ");
txt = txt.replace(/ழ்எ/g, "ழெ");
txt = txt.replace(/ழெஎ/g, "ழே");
txt = txt.replace(/ழ்ஏ/g, "ழே");
txt = txt.replace(/ழ்ஒ/g, "ழொ");
txt = txt.replace(/ழொஒ/g, "ழோ");
txt = txt.replace(/ழ்ஓ/g, "ழோ");
txt = txt.replace(/ழஉ/g, "ழெள");
txt = txt.replace(/ழஇ/g, "ழை"); 
 
txt = txt.replace(/j/g, "ஜ்");
txt = txt.replace(/ஜ்அ/g, "ஜ");
txt = txt.replace(/ஜஅ/g, "ஜா");
txt = txt.replace(/ஜ்ஆ/g, "ஜா");
txt = txt.replace(/ஜ்இ/g, "ஜி");
txt = txt.replace(/ஜிஇ/g, "ஜீ");
txt = txt.replace(/ஜ்ஈ/g, "ஜீ");
txt = txt.replace(/ஜ்உ/g, "ஜு");
txt = txt.replace(/ஜுஉ/g, "ஜூ");
txt = txt.replace(/ஜ்ஊ/g, "ஜூ");
txt = txt.replace(/ஜ்எ/g, "ஜெ");
txt = txt.replace(/ஜெஎ/g, "ஜே");
txt = txt.replace(/ஜ்ஏ/g, "ஜே");
txt = txt.replace(/ஜ்ஒ/g, "ஜொ");
txt = txt.replace(/ஜொஒ/g, "ஜோ");
txt = txt.replace(/ஜ்ஓ/g, "ஜோ");
txt = txt.replace(/ஜஉ/g, "ஜெள");
txt = txt.replace(/ஜஇ/g, "ஜை");
 
txt = txt.replace(/-க்/g, "ஹ்");
txt = txt.replace(/ஹ்அ/g, "ஹ");
txt = txt.replace(/ஹஅ/g, "ஹா");
txt = txt.replace(/ஹ்ஆ/g, "ஹா");
txt = txt.replace(/ஹ்இ/g, "ஹி");
txt = txt.replace(/ஹிஇ/g, "ஹீ");
txt = txt.replace(/ஹ்ஈ/g, "ஹீ");
txt = txt.replace(/ஹ்உ/g, "ஹு");
txt = txt.replace(/ஹுஉ/g, "ஹூ");
txt = txt.replace(/ஹ்ஊ/g, "ஹூ");
txt = txt.replace(/ஹ்எ/g, "ஹெ");
txt = txt.replace(/ஹெஎ/g, "ஹே");
txt = txt.replace(/ஹ்ஏ/g, "ஹே");
txt = txt.replace(/ஹ்ஒ/g, "ஹொ");
txt = txt.replace(/ஹொஒ/g, "ஹோ");
txt = txt.replace(/ஹ்ஓ/g, "ஹோ");
txt = txt.replace(/ஹஉ/g, "ஹெள");
txt = txt.replace(/ஹஇ/g, "ஹை");
 
txt = txt.replace(/-ச்/g, "ஸ்");
txt = txt.replace(/ஸ்அ/g, "ஸ");
txt = txt.replace(/ஸஅ/g, "ஸா");
txt = txt.replace(/ஸ்ஆ/g, "ஸா");
txt = txt.replace(/ஸ்இ/g, "ஸி");
txt = txt.replace(/ஸிஇ/g, "ஸீ");
txt = txt.replace(/ஸ்ஈ/g, "ஸீ");
txt = txt.replace(/ஸ்உ/g, "ஸு");
txt = txt.replace(/ஸுஉ/g, "ஸூ");
txt = txt.replace(/ஸ்ஊ/g, "ஸூ");
txt = txt.replace(/ஸ்எ/g, "ஸெ");
txt = txt.replace(/ஸெஎ/g, "ஸே");
txt = txt.replace(/ஸ்ஏ/g, "ஸே");
txt = txt.replace(/ஸ்ஒ/g, "ஸொ");
txt = txt.replace(/ஸொஒ/g, "ஸோ");
txt = txt.replace(/ஸ்ஓ/g, "ஸோ");
txt = txt.replace(/ஸஉ/g, "ஸெள");
txt = txt.replace(/ஸஇ/g, "ஸை");
 
txt = txt.replace(/S/g, "ஸ்");
txt = txt.replace(/ஸ்அ/g, "ஸ");
txt = txt.replace(/ஸஅ/g, "ஸா");
txt = txt.replace(/ஸ்ஆ/g, "ஸா");
txt = txt.replace(/ஸ்இ/g, "ஸி");
txt = txt.replace(/ஸிஇ/g, "ஸீ");
txt = txt.replace(/ஸ்ஈ/g, "ஸீ");
txt = txt.replace(/ஸ்உ/g, "ஸு");
txt = txt.replace(/ஸுஉ/g, "ஸூ");
txt = txt.replace(/ஸ்ஊ/g, "ஸூ");
txt = txt.replace(/ஸ்எ/g, "ஸெ");
txt = txt.replace(/ஸெஎ/g, "ஸே");
txt = txt.replace(/ஸ்ஏ/g, "ஸே");
txt = txt.replace(/ஸ்ஒ/g, "ஸொ");
txt = txt.replace(/ஸொஒ/g, "ஸோ");
txt = txt.replace(/ஸ்ஓ/g, "ஸோ");
txt = txt.replace(/ஸஉ/g, "ஸெள");
txt = txt.replace(/ஸஇ/g, "ஸை");
 
txt = txt.replace(/r/g, "ர்");
txt = txt.replace(/ர்அ/g, "ர");
txt = txt.replace(/ரஅ/g, "ரா");
txt = txt.replace(/ர்ஆ/g, "ரா");
txt = txt.replace(/ர்இ/g, "ரி");
txt = txt.replace(/ரிஇ/g, "ரீ");
txt = txt.replace(/ர்ஈ/g, "ரீ");
txt = txt.replace(/ர்உ/g, "ரு");
txt = txt.replace(/ருஉ/g, "ரூ");
txt = txt.replace(/ர்ஊ/g, "ரூ");
txt = txt.replace(/ர்எ/g, "ரெ");
txt = txt.replace(/ரெஎ/g, "ரே");
txt = txt.replace(/ர்ஏ/g, "ரே");
txt = txt.replace(/ர்ஒ/g, "ரொ");
txt = txt.replace(/ரொஒ/g, "ரோ");
txt = txt.replace(/ர்ஓ/g, "ரோ");
txt = txt.replace(/ரஉ/g, "ரெள");
txt = txt.replace(/ரஇ/g, "ரை");
txt = txt.replace(/R/g, "ற்");
txt = txt.replace(/ற்அ/g, "ற");
txt = txt.replace(/றஅ/g, "றா");
txt = txt.replace(/ற்ஆ/g, "றா");
txt = txt.replace(/ற்இ/g, "றி");
txt = txt.replace(/றிஇ/g, "றீ");
txt = txt.replace(/ற்ஈ/g, "றீ");
txt = txt.replace(/ற்உ/g, "று");
txt = txt.replace(/றுஉ/g, "றூ");
txt = txt.replace(/ற்ஊ/g, "றூ");
txt = txt.replace(/ற்எ/g, "றெ");
txt = txt.replace(/றெஎ/g, "றே");
txt = txt.replace(/ற்ஏ/g, "றே");
txt = txt.replace(/ற்ஒ/g, "றொ");
txt = txt.replace(/றொஒ/g, "றோ");
txt = txt.replace(/ற்ஓ/g, "றோ");
txt = txt.replace(/றஉ/g, "றெள");
txt = txt.replace(/றஇ/g, "றை");
 
txt = txt.replace(/t/g, "ட்");
txt = txt.replace(/ட்அ/g, "ட");
txt = txt.replace(/டஅ/g, "டா");
txt = txt.replace(/ட்ஆ/g, "டா");
txt = txt.replace(/ட்இ/g, "டி");
txt = txt.replace(/டிஇ/g, "டீ");
txt = txt.replace(/ட்ஈ/g, "டீ");
txt = txt.replace(/ட்உ/g, "டு");
txt = txt.replace(/டுஉ/g, "டூ");
txt = txt.replace(/ட்ஊ/g, "டூ");
txt = txt.replace(/ட்எ/g, "டெ");
txt = txt.replace(/டெஎ/g, "டே");
txt = txt.replace(/ட்ஏ/g, "டே");
txt = txt.replace(/ட்ஒ/g, "டொ");
txt = txt.replace(/டொஒ/g, "டோ");
txt = txt.replace(/ட்ஓ/g, "டோ");
txt = txt.replace(/டஉ/g, "டெள");
txt = txt.replace(/டஇ/g, "டை"); 
 
txt = txt.replace(/d/g, "ட்");
txt = txt.replace(/ட்அ/g, "ட");
txt = txt.replace(/டஅ/g, "டா");
txt = txt.replace(/ட்ஆ/g, "டா");
txt = txt.replace(/ட்இ/g, "டி");
txt = txt.replace(/டிஇ/g, "டீ");
txt = txt.replace(/ட்ஈ/g, "டீ");
txt = txt.replace(/ட்உ/g, "டு");
txt = txt.replace(/டுஉ/g, "டூ");
txt = txt.replace(/ட்ஊ/g, "டூ");
txt = txt.replace(/ட்எ/g, "டெ");
txt = txt.replace(/டெஎ/g, "டே");
txt = txt.replace(/ட்ஏ/g, "டே");
txt = txt.replace(/ட்ஒ/g, "டொ");
txt = txt.replace(/டொஒ/g, "டோ");
txt = txt.replace(/ட்ஓ/g, "டோ");
txt = txt.replace(/டஉ/g, "டெள");
txt = txt.replace(/டஇ/g, "டை"); 
 
txt = txt.replace(/p/g, "ப்");
txt = txt.replace(/ப்அ/g, "ப");
txt = txt.replace(/பஅ/g, "பா");
txt = txt.replace(/ப்ஆ/g, "பா");
txt = txt.replace(/ப்இ/g, "பி");
txt = txt.replace(/பிஇ/g, "பீ");
txt = txt.replace(/ப்ஈ/g, "பீ");
txt = txt.replace(/ப்உ/g, "பு");
txt = txt.replace(/புஉ/g, "பூ");
txt = txt.replace(/ப்ஊ/g, "பூ");
txt = txt.replace(/ப்எ/g, "பெ");
txt = txt.replace(/பெஎ/g, "பே");
txt = txt.replace(/ப்ஏ/g, "பே");
txt = txt.replace(/ப்ஒ/g, "பொ");
txt = txt.replace(/பொஒ/g, "போ");
txt = txt.replace(/ப்ஓ/g, "போ");
txt = txt.replace(/பஉ/g, "பெள");
txt = txt.replace(/பஇ/g, "பை");
txt = txt.replace(/b/g, "ப்");
txt = txt.replace(/ப்அ/g, "ப");
txt = txt.replace(/பஅ/g, "பா");
txt = txt.replace(/ப்ஆ/g, "பா");
txt = txt.replace(/ப்இ/g, "பி");
txt = txt.replace(/பிஇ/g, "பீ");
txt = txt.replace(/ப்ஈ/g, "பீ");
txt = txt.replace(/ப்உ/g, "பு");
txt = txt.replace(/புஉ/g, "பூ");
txt = txt.replace(/ப்ஊ/g, "பூ");
txt = txt.replace(/ப்எ/g, "பெ");
txt = txt.replace(/பெஎ/g, "பே");
txt = txt.replace(/ப்ஏ/g, "பே");
txt = txt.replace(/ப்ஒ/g, "பொ");
txt = txt.replace(/பொஒ/g, "போ");
txt = txt.replace(/ப்ஓ/g, "போ");
txt = txt.replace(/பஉ/g, "பெள");
txt = txt.replace(/பஇ/g, "பை");
 
txt = txt.replace(/m/g, "ம்");
txt = txt.replace(/ம்அ/g, "ம");
txt = txt.replace(/மஅ/g, "மா");
txt = txt.replace(/ம்ஆ/g, "மா");
txt = txt.replace(/ம்இ/g, "மி");
txt = txt.replace(/மிஇ/g, "மீ");
txt = txt.replace(/ம்ஈ/g, "மீ");
txt = txt.replace(/ம்உ/g, "மு");
txt = txt.replace(/முஉ/g, "மூ");
txt = txt.replace(/ம்ஊ/g, "மூ");
txt = txt.replace(/ம்எ/g, "மெ");
txt = txt.replace(/மெஎ/g, "மே");
txt = txt.replace(/ம்ஏ/g, "மே");
txt = txt.replace(/ம்ஒ/g, "மொ");
txt = txt.replace(/மொஒ/g, "மோ");
txt = txt.replace(/ம்ஓ/g, "மோ");
txt = txt.replace(/மஉ/g, "மெள");
txt = txt.replace(/மஇ/g, "மை");
 
txt = txt.replace(/y/g, "ய்");
txt = txt.replace(/ய்அ/g, "ய");
txt = txt.replace(/யஅ/g, "யா");
txt = txt.replace(/ய்ஆ/g, "யா");
txt = txt.replace(/ய்இ/g, "யி");
txt = txt.replace(/யிஇ/g, "யீ");
txt = txt.replace(/ய்ஈ/g, "யீ");
txt = txt.replace(/ய்உ/g, "யு");
txt = txt.replace(/யுஉ/g, "யூ");
txt = txt.replace(/ய்ஊ/g, "யூ");
txt = txt.replace(/ய்எ/g, "யெ");
txt = txt.replace(/யெஎ/g, "யே");
txt = txt.replace(/ய்ஏ/g, "யே");
txt = txt.replace(/ய்ஒ/g, "யொ");
txt = txt.replace(/யொஒ/g, "யோ");
txt = txt.replace(/ய்ஓ/g, "யோ");
txt = txt.replace(/யஉ/g, "யெள");
txt = txt.replace(/யஇ/g, "யை"); 
 
txt = txt.replace(/n/g, "ன்");
txt = txt.replace(/ன்அ/g, "ன");
txt = txt.replace(/னஅ/g, "னா");
txt = txt.replace(/ன்ஆ/g, "னா");
txt = txt.replace(/ன்இ/g, "னி");
txt = txt.replace(/னிஇ/g, "னீ");
txt = txt.replace(/ன்ஈ/g, "னீ");
txt = txt.replace(/ன்உ/g, "னு");
txt = txt.replace(/னுஉ/g, "னூ");
txt = txt.replace(/ன்ஊ/g, "னூ");
txt = txt.replace(/ன்எ/g, "னெ");
txt = txt.replace(/னெஎ/g, "னே");
txt = txt.replace(/ன்ஏ/g, "னே");
txt = txt.replace(/ன்ஒ/g, "னொ");
txt = txt.replace(/னொஒ/g, "னோ");
txt = txt.replace(/ன்ஓ/g, "னோ");
txt = txt.replace(/னஉ/g, "னெள");
txt = txt.replace(/னஇ/g, "னை");
 
txt = txt.replace(/N/g, "ண்");
txt = txt.replace(/ண்அ/g, "ண");
txt = txt.replace(/ணஅ/g, "ணா");
txt = txt.replace(/ண்ஆ/g, "ணா");
txt = txt.replace(/ண்இ/g, "ணி");
txt = txt.replace(/ணிஇ/g, "ணீ");
txt = txt.replace(/ண்ஈ/g, "ணீ");
txt = txt.replace(/ண்உ/g, "ணு");
txt = txt.replace(/ணுஉ/g, "ணூ");
txt = txt.replace(/ண்ஊ/g, "ணூ");
txt = txt.replace(/ண்எ/g, "ணெ");
txt = txt.replace(/ணெஎ/g, "ணே");
txt = txt.replace(/ண்ஏ/g, "ணே");
txt = txt.replace(/ண்ஒ/g, "ணொ");
txt = txt.replace(/ணொஒ/g, "ணோ");
txt = txt.replace(/ண்ஓ/g, "ணோ");
txt = txt.replace(/ணஉ/g, "ணெள");
txt = txt.replace(/ணஇ/g, "ணை");
 
txt = txt.replace(/l/g, "ல்");
txt = txt.replace(/ல்அ/g, "ல");
txt = txt.replace(/லஅ/g, "லா");
txt = txt.replace(/ல்ஆ/g, "லா");
txt = txt.replace(/ல்இ/g, "லி");
txt = txt.replace(/லிஇ/g, "லீ");
txt = txt.replace(/ல்ஈ/g, "லீ");
txt = txt.replace(/ல்உ/g, "லு");
txt = txt.replace(/லுஉ/g, "லூ");
txt = txt.replace(/ல்ஊ/g, "லூ");
txt = txt.replace(/ல்எ/g, "லெ");
txt = txt.replace(/லெஎ/g, "லே");
txt = txt.replace(/ல்ஏ/g, "லே");
txt = txt.replace(/ல்ஒ/g, "லொ");
txt = txt.replace(/லொஒ/g, "லோ");
txt = txt.replace(/ல்ஓ/g, "லோ");
txt = txt.replace(/லஉ/g, "லெள");
txt = txt.replace(/லஇ/g, "லை");
 
txt = txt.replace(/L/g, "ள்");
txt = txt.replace(/ள்அ/g, "ள");
txt = txt.replace(/ளஅ/g, "ளா");
txt = txt.replace(/ள்ஆ/g, "ளா");
txt = txt.replace(/ள்இ/g, "ளி");
txt = txt.replace(/ளிஇ/g, "ளீ");
txt = txt.replace(/ள்ஈ/g, "ளீ");
txt = txt.replace(/ள்உ/g, "ளு");
txt = txt.replace(/ளுஉ/g, "ளூ");
txt = txt.replace(/ள்ஊ/g, "ளூ");
txt = txt.replace(/ள்எ/g, "ளெ");
txt = txt.replace(/ளெஎ/g, "ளே");
txt = txt.replace(/ள்ஏ/g, "ளே");
txt = txt.replace(/ள்ஒ/g, "ளொ");
txt = txt.replace(/ளொஒ/g, "ளோ");
txt = txt.replace(/ள்ஓ/g, "ளோ");
txt = txt.replace(/ளஉ/g, "ளெள");
txt = txt.replace(/ளஇ/g, "ளை");
txt = txt.replace(/v/g, "வ்");
txt = txt.replace(/வ்அ/g, "வ");
txt = txt.replace(/வஅ/g, "வா");
txt = txt.replace(/வ்ஆ/g, "வா");
txt = txt.replace(/வ்இ/g, "வி");
txt = txt.replace(/விஇ/g, "வீ");
txt = txt.replace(/வ்ஈ/g, "வீ");
txt = txt.replace(/வ்உ/g, "வு");
txt = txt.replace(/வுஉ/g, "வூ");
txt = txt.replace(/வ்ஊ/g, "வூ");
txt = txt.replace(/வ்எ/g, "வெ");
txt = txt.replace(/வெஎ/g, "வே");
txt = txt.replace(/வ்ஏ/g, "வே");
txt = txt.replace(/வ்ஒ/g, "வொ");
txt = txt.replace(/வொஒ/g, "வோ");
txt = txt.replace(/வ்ஓ/g, "வோ");
txt = txt.replace(/வஉ/g, "வெவ");
txt = txt.replace(/வஇ/g, "வை");
txt = txt.replace(/q/g, "ஃ");
 
txt = txt.replace(/ன்த்/g, "ந்த்");
txt = txt.replace(/ந்த்அ/g, "ந்த");
txt = txt.replace(/ந்தஅ/g, "ந்தா");
txt = txt.replace(/ந்த்ஆ/g, "ந்தா");
txt = txt.replace(/ந்த்இ/g, "ந்தி");
txt = txt.replace(/ந்திஇ/g, "ந்தீ");
txt = txt.replace(/ந்த்ஈ/g, "ந்தீ");
txt = txt.replace(/ந்த்உ/g, "ந்து");
txt = txt.replace(/ந்துஉ/g, "ந்தூ");
txt = txt.replace(/ந்த்ஊ/g, "ந்தூ");
txt = txt.replace(/ந்த்எ/g, "ந்தெ");
txt = txt.replace(/ந்தெஎ/g, "ந்தே");
txt = txt.replace(/ந்த்ஏ/g, "ந்தே");
txt = txt.replace(/ந்த்ஒ/g, "ந்தொ");
txt = txt.replace(/ந்தொஒ/g, "ந்தோ");
txt = txt.replace(/ந்த்ஓ/g, "ந்தோ");
txt = txt.replace(/ந்தஉ/g, "ந்தெந்த");
txt = txt.replace(/ந்தஇ/g, "ந்தை");
txt = txt.replace(/அஇ/g, "ஐ");
txt = txt.replace(/அஉ/g, "ஒள");
return txt;
}

function txteditor(o) {
 
var txt = o.form.name.value;
 
 
if (o.form.lang[0].checked == true){
 
txt = english(txt);
 
}
 
 

if (o.form.lang[1].checked == true){
// function romanised
txt = romanised(txt);
 
}
 
o.form.name.value = txt;
}

function disableSelection(target){
if (typeof target.onselectstart!="undefined")
	target.onselectstart=function(){return false}
else if (typeof target.style.MozUserSelect!="undefined") 
	target.style.MozUserSelect="none"
else 
	target.onmousedown=function(){return false}
target.style.cursor = "default"
}
