<!--
function display_text()
{
	document.write(marathi.textArea.value);
	// = "" ;
	//return 0;
}
var lcharno = '' ;  // last character pressed on keyboard  (not in unicoe number) 



function InsertText(val)
{
	
	var temp;
	temp=marathi.textArea.value;
	var result=temp.concat(val);
	marathi.textArea.value=result;
	changeVal();
}

function Insert_Ri(var1)
{

	var temp;
	temp=marathi.textArea.value;
	var result=temp.concat(var1);
	marathi.textArea.value=result;
	marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 1) + String.fromCharCode(2400);
	
}

function Insert_Space(var1)
{
	var temp;
	temp=marathi.textArea.value;
	var result=temp.concat(var1);
	marathi.textArea.value=result;
	marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 1) + String.fromCharCode(Space);
	
}

function Insert_1(var1)
{

	var temp;
	temp=marathi.textArea.value;
	var result=temp.concat(var1);
	marathi.textArea.value=result;
	marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 1) + String.fromCharCode(2366);
	
}
function Insert_2(var1)
{

	var temp;
	temp=marathi.textArea.value;
	var result=temp.concat(var1);
	marathi.textArea.value=result;
	marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 2) + String.fromCharCode(2367);
	
}

function Insert_3(var1)
{

	var temp;
	temp=marathi.textArea.value;
	var result=temp.concat(var1);
	marathi.textArea.value=result;
	marathi.textArea.value = marathi.textArea2.value.substring(0,marathi.textArea2.value.length - 1)+ String.fromCharCode(2368);
	
}

function Insert_4(var1)
{

	var temp;
	temp=marathi.textArea.value;
	var result=temp.concat(var1);
	marathi.textArea.value=result;
	marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 2) + String.fromCharCode(2369);
	
}

function Insert_5(var1)
{

	var temp;
	temp=marathi.textArea.value;
	var result=temp.concat(var1);
	marathi.textArea.value=result;
	marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 2) + String.fromCharCode(2370);
	
}

function Insert_6(var1)
{

	var temp;
	temp=marathi.textArea.value;
	var result=temp.concat(var1);
	marathi.textArea.value=result;
	marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 2) + String.fromCharCode(2375);
	
}

function Insert_7(var1)
{

	var temp;
	temp=marathi.textArea.value;
	var result=temp.concat(var1);
	marathi.textArea.value=result;
	marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 2) + String.fromCharCode(2376);
	
}
function Insert_8(var1)
{

	var temp;
	temp=marathi.textArea.value;
	var result=temp.concat(var1);
	marathi.textArea.value=result;
	marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 2) + String.fromCharCode(2379);
	
}
 function Insert_9(var1)
{

	var temp;
	temp=marathi.textArea.value;
	var result=temp.concat(var1);
	marathi.textArea.value=result;
	marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 2) + String.fromCharCode(2380);
	
}
function Insert_coma(var1)
{
	var temp;
	temp=marathi.textArea.value;
	var result=temp.concat(var1);
	marathi.textArea.value=result;
	marathi.textArea.value=marathi.textArea.value.substring(0,marathi.textArea.value.length - 1) + String.fromCharCode(44);
}
function Insert_dot(var1)
{
	var temp;
	temp=marathi.textArea.value;
	var result=temp.concat(var1);
	marathi.textArea.value=result;
	marathi.textArea.value=marathi.textArea.value.substring(0,marathi.textArea.value.length - 1) + String.fromCharCode(46);
}


function change_aa(var1)
{

	var temp;
	temp=marathi.textArea.value;
	var result=temp.concat(var1);
	marathi.textArea.value=result;
	marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 2) + String.fromCharCode(2310);
	
}


function change_es(val)
{
	var temp;
	temp=marathi.textArea.value;
	var result=temp.concat(val);
	marathi.textArea.value=result;
	marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 1) + String.fromCharCode(2311) ;

}

function change_ta(val)
{
	var temp;
	temp=marathi.textArea.value;
	var result=temp.concat(val);
	marathi.textArea.value=result;
	marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 1) + String.fromCharCode(2335) ;
}

function change_eb(val)
{
	var temp;
	temp=marathi.textArea.value;
	var result=temp.concat(val);
	marathi.textArea.value=result;
	marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 2) + String.fromCharCode(2312) ; 
}

function change_ub(val)
{
	var temp;
	temp=marathi.textArea.value;
	var result=temp.concat(val);
	marathi.textArea.value=result;
	marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 1) + String.fromCharCode(2370) ; 
}

function change_us(val)
{
	var temp;
	temp=marathi.textArea.value;
	var result=temp.concat(val);
	marathi.textArea.value=result;
	marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 1) + String.fromCharCode(2313) ;
}

function change_aae(val)
{
	var temp;
	temp=marathi.textArea.value;
	var result=temp.concat(val);
	marathi.textArea.value=result;
	marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 2) + String.fromCharCode(2324) ; 
}

function change_aao(val)
{
	var temp;
	temp=marathi.textArea.value;
	var result=temp.concat(val);
	marathi.textArea.value=result;
	marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 1) + String.fromCharCode(2380) ;
}

function change_ao(val)
{
	var temp;
	temp=marathi.textArea.value;
	var result=temp.concat(val);
	marathi.textArea.value=result;
	marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 1) + String.fromCharCode(2376) ;
}


function change_ae(val)
{
	var temp;
	temp=marathi.textArea.value;
	var result=temp.concat(val);
	marathi.textArea.value=result;
	marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 1) + String.fromCharCode(2320);
}

function change_aae(val)
{
	var temp;
	temp=marathi.textArea.value;
	var result=temp.concat(val);
	marathi.textArea.value=result;
	marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 1) + String.fromCharCode(2322) ;
}

function change_dh(val)
{
	var temp;
	temp=marathi.textArea.value;
	var result=temp.concat(val);
	marathi.textArea.value=result;
	marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 1) + String.fromCharCode(2342) ; 	
}

function change_Dhe(val)
{
	var temp;
	temp=marathi.textArea.value;
	var result=temp.concat(val);
	marathi.textArea.value=result;
    marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 1) + String.fromCharCode(2338) ; 	
}

function change_kh(val)
{
	var temp;
	temp=marathi.textArea.value;
	var result=temp.concat(val);
	marathi.textArea.value=result;
    marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 1) + String.fromCharCode(2326) ; 	
}

function change_ch(val)
{
	var temp;
	temp=marathi.textArea.value;
	var result=temp.concat(val);
	marathi.textArea.value=result;
    marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 1) + String.fromCharCode(2331) ; 
}

function change_ph(val)
{
	var temp;
	temp=marathi.textArea.value;
	var result=temp.concat(val);
	marathi.textArea.value=result;
    marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 1) + String.fromCharCode(2347) ; 
}

function change_bh(val)
{
	var temp;
	temp=marathi.textArea.value;
	var result=temp.concat(val);
	marathi.textArea.value=result;
    marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 1) + String.fromCharCode(2349) ; 
}

function change_Dh(val)
{
	var temp;
	temp=marathi.textArea.value;
	var result=temp.concat(val);
	marathi.textArea.value=result;
    marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 1) + String.fromCharCode(2343) ; 
}

function change_jh(val)
{
	var temp;
	temp=marathi.textArea.value;
	var result=temp.concat(val);
	marathi.textArea.value=result;
    marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 1) + String.fromCharCode(2333) ; 
}

function change_sh(val)
{
	var temp;
	temp=marathi.textArea.value;
	var result=temp.concat(val);
	marathi.textArea.value=result;
	marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 1) + String.fromCharCode(2359) ; 	
}

function change_Th(val)
{
	var temp;
	temp=marathi.textArea.value;
	var result=temp.concat(val);
	marathi.textArea.value=result;
	marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 1) + String.fromCharCode(2336) ; 	
}

function change_UU(val)
{
	var temp;
	temp=marathi.textArea.value;
	var result=temp.concat(val);
	marathi.textArea.value=result;
    marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 1) + String.fromCharCode(2314) ;
}

function change_II(val)
{
	var temp;
	temp=marathi.textArea.value;
	var result=temp.concat(val);
	marathi.textArea.value=result;
    marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 1) + String.fromCharCode(2312) ;
}

function change_gh(val)
{
	var temp;
	temp=marathi.textArea.value;
	var result=temp.concat(val);
	marathi.textArea.value=result;
    marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 2) + String.fromCharCode(2328) ;
}

function changeVal() 
{
	//ta= marathi.textArea;
	var llchar = marathi.textArea.value.charCodeAt(marathi.textArea.value.length - 3);   // last to last character// 
	var lchar = marathi.textArea.value.charCodeAt(marathi.textArea.value.length - 2);   // last character
	var cchar = marathi.textArea.value.charAt(marathi.textArea.value.length - 1); // current char pressed on ketboard
//	alert (lchar);
	//document.write (lastchar);
	
	if (cchar == '~')  /// this will cause half characters.
	{
			marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 1) + String.fromCharCode(2381) ;
		lcharno = cchar;  // /save currents as last;
		return; 	
	}
	
	if (cchar == '*')  /// this will cause vovel of upper dot '.' characters.
	{
			marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 1) + String.fromCharCode(2306) ;
		lcharno = cchar;  // /save currents as last;
		return; 	
	}
	if (cchar == '$')  /// this will cause vovel of upper dot '.' characters.
	{
			marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 1) + String.fromCharCode(2365) ;
		lcharno = cchar;  // /save currents as last;
		return; 	
	}
	if (cchar == '^')  /// this will cause vovel of upper chandrama characters.
	{
			marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 1) + String.fromCharCode(2305) ;
		lcharno = cchar;  // /save currents as last;
		return; 	
	}
	if (cchar == ':')  /// this will cause vovel of middle double dots ':' characters.
	{
			marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 1) + String.fromCharCode(2307) ;
		lcharno = cchar;  // /save currents as last;
		return; 	
	} 
	if (cchar == '`')  /// this will cause vovel of lower dot '.' characters.
	{
			marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 1) + String.fromCharCode(2364) ;
		lcharno = cchar;  // /save currents as last;
		return; 	
	}
	if (cchar == '&')  /// this will convert middle of vovel 'rishi' characters.
	{
			marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 1) + String.fromCharCode(2315) ;
		lcharno = cchar;  // /save currents as last;
		return; 	
	}
	if (cchar == '%')  /// this will convert to 'Om' characters.
	{
			marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 1) + String.fromCharCode(2384) ;
		lcharno = cchar;  // /save currents as last;
		return; 	
	}
	if (cchar == 'A') 
	{	if ( lchar == 2309)
				marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 2) + String.fromCharCode(2310) ; 
		else 
				marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 1) + String.fromCharCode(2309) ;
		lcharno = cchar;  // /save currents as last;
		return;
	}
	if (cchar == 'a') 
	{		if (isNaN(lchar) || lchar == 32 || lchar == 10   )  marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 1) + String.fromCharCode(2309) ; // 
		else if ((isNaN(llchar) || llchar == 32 ) && lchar == 2309)		 marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 2) + String.fromCharCode(2310) ; // 
			else if (lcharno == 'a')   // if last char  pressed was 'a' and and current is 'a'  convert it to vowel 'aa'
		{		marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 1) + String.fromCharCode(2366) ;
			lcharno = '';	
		} else
		{
			marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 1);  // remove this single 'a' from the end of latter
			lcharno= 'a';
		}
		lcharno = cchar;  // /save currents as last;
		return;
	}
	if (cchar == 'I') 
	{	if ( lchar == 2311)
				marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 2) + String.fromCharCode(2312) ; 
		else 
				marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 1) + String.fromCharCode(2311) ;
		lcharno = cchar;  // /save currents as last;
		return;
	}
	if (cchar == 'i') 
	{		if (isNaN(lchar) || lchar == 32 || lchar == 10 )
				{  marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 1) + String.fromCharCode(2311) ; 
			}
			else if ((isNaN(llchar) || llchar == 32 ) && lchar == 2311)
			{		 marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 2) + String.fromCharCode(2312) ; 
			}
				else if (lcharno == 'a')   // if last char  pressed was 'a' and and current is 'i'  convert it to vowel 'ai'
			{		marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 1) + String.fromCharCode(2376) ;
				lcharno = '';	
			} 
				else if (lcharno == 'i')   // if last char  pressed was 'i' and and current is 'i'  convert it to vowel 'ii' big 'i'
			{		marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 2) + String.fromCharCode(2368) ;
				lcharno = '';	
			} else
			{		marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 1) + String.fromCharCode(2367); 
				lcharno = 'i';
			}
		lcharno = cchar;  // /save currents as last;
		return;
	}
	if (cchar == 'O') 
	{	if ( lchar == 2323)
				marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 2) + String.fromCharCode(2324) ; 
		else 
				marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 1) + String.fromCharCode(2323) ;
		lcharno = cchar;  // /save currents as last;
		return;
	}
	if (cchar == 'o') 
	{		if (isNaN(lchar) || lchar == 32 || lchar == 10 )
				{  marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 1) + String.fromCharCode(2323) ; 
			}
			else if ((isNaN(llchar) || llchar == 32 ) && lchar == 2311)
			{		 marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 2) + String.fromCharCode(2324) ; 
			}
			else if (lchar == 2379)
			{		 marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 2) + String.fromCharCode(2370) ; 
			} else
			{		marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 1) + String.fromCharCode(2379); 
				//lcharno = 'u'; 
			}
		lcharno = cchar;  // /save currents as last;
		return;
	}
	if (cchar == 'E') 
	{	if ( lchar == 2319)
				marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 2) + String.fromCharCode(2320) ; 
		else 
				marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 1) + String.fromCharCode(2319) ;
		lcharno = cchar;  // /save currents as last;
		return;
	}
	if (cchar == 'e') 
	{		if (isNaN(lchar) || lchar == 32 || lchar == 10 )
				{  marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 1) + String.fromCharCode(2319) ; 
			}
			else if ((isNaN(llchar) || llchar == 32 ) && lchar == 2311)
			{		 marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 2) + String.fromCharCode(2320) ; 
			}
			else if (lchar == 2319)
			{		 marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 2) + String.fromCharCode(2368) ; 
			} else
			{		marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 1) + String.fromCharCode(2375); 
				//lcharno = 'u'; 
			}
		lcharno = cchar;  // /save currents as last;
		return;

	}
	if (cchar == 'U') 
	{	if ( lchar == 2313)
				marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 2) + String.fromCharCode(2314) ; 
		else 
				marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 1) + String.fromCharCode(2313) ;
		return;		
	}
	if (cchar == 'u') 
	{		if (isNaN(lchar) || lchar == 32 || lchar == 10 )
				{  marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 1) + String.fromCharCode(2313) ; 
			}
			else if ( lchar == 2369 )
				{  marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 2) + String.fromCharCode(2370) ; 
			}
			else if (lcharno == 'a')
			{		 marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 1) + String.fromCharCode(2380) ; 
				lcharno = ''; 
			} else  // place a vowel 'u'
			{		marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 1) + String.fromCharCode(2369); 
				lcharno = 'u'; 
			}
		return;
	}
// (I-N-D-I-A) Intellenge N Determination In marathi  
	if (cchar == ' ') //
	{	if ( lcharno == 'a' && lchar != 2366 )  // if space pressed and last characrer was 'a' the convert it to vowel 'aa'
				marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 1)  + String.fromCharCode(2366)  + " "; 
				lcharno == ''
		return;		
	}
	if (cchar == 'K') //
	{		marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 1)  + String.fromCharCode(2325,2381,2359); 
				lcharno == ''
		return;		
	}
	if (cchar == 'G') //
	{		marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 1)  + String.fromCharCode(2332,2381,2334); 
				lcharno == ''
		return;		
	}
	if (cchar == 'q') //
	{		marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 1)  + String.fromCharCode(2334); 
				lcharno == ''
		return;		
	}
	
	if (cchar == 'L') //
	{		marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 1)  + String.fromCharCode(2355); 
		lcharno == ''
		return;		
	}
//// the following is to display characters. k and kh ,d and dh ,etc;
	if (cchar == 'k') 
	{	marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 1) + String.fromCharCode(2325) ; 	
	}	else if (cchar == 'g') 
	{	marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 1) + String.fromCharCode(2327) ; 
	}	else if (cchar == 'c') 
	{	marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 1) + String.fromCharCode(2330) ; 
	}	else if (cchar == 'j') 
	{	marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 1) + String.fromCharCode(2332) ; 	
	}	else if (cchar == 'T') 
	{	marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 1) + String.fromCharCode(2340) ; 	
	}	else if (cchar == 't') 
	{	marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 1) + String.fromCharCode(2341) ; 	
	}	else if (cchar == 'N') 
	{	marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 1) + String.fromCharCode(2339) ; 
	}	else if (cchar == 'd') 
	{	marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 1) + String.fromCharCode(2342) ; 	
	}	else if (cchar == 'D') 
	{	marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 1) + String.fromCharCode(2337) ; 	
	}	else if (cchar == 'n') 
	{	marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 1) + String.fromCharCode(2344) ; 	
	}	else if (cchar == 'p') 
	{	marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 1) + String.fromCharCode(2346) ; 	
	}	else if (cchar == 'b') 
	{	marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 1) + String.fromCharCode(2348) ; 
	}	else if (cchar == 'm') 
	{	marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 1) + String.fromCharCode(2350) ; 	
	}	else if (cchar == 'y') 
	{	marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 1) + String.fromCharCode(2351) ; 	
	}	else if (cchar == 'r') 
	{	marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 1) + String.fromCharCode(2352) ; 	
	}	else if (cchar == 'l') 
	{	marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 1) + String.fromCharCode(2354) ; 	
	}	else if (cchar == 's') 
	{	marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 1) + String.fromCharCode(2360) ; 	
	}	else if (cchar == 'S') 
	{	marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 1) + String.fromCharCode(2358) ; 	
	}	else if (cchar == 'v') 
	{	marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 1) + String.fromCharCode(2357) ; 	
	}	else if (cchar == 'h') 
	{
// if 'h' pressed after 'k' then changei it to 'kh'
		if (lcharno =='a') 
		{	marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 1) + String.fromCharCode(2361) ; 	
			lcharno = cchar;  // /save currents as last;
			return;
		}
		if (lchar == 2325) 
		{	marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 2) + String.fromCharCode(2326) ; 	
		}	else if (lchar == 2327) 
		{	marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 2) + String.fromCharCode(2328) ; 
		}	else if (lchar == 2330) // 'ch'
		{	marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 2) + String.fromCharCode(2331) ; 	
		}	else if (lchar == 2332) // 'j'
		{	marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 2) + String.fromCharCode(2333) ; 	
		}	else if (lchar == 2335)  //'T'
		{	marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 2) + String.fromCharCode(2336) ; 	
		}	else if (lchar == 2340) // 't'
		{	marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 2) + String.fromCharCode(2341) ; 	
		}	else if (lchar == 2342) //'d'
		{	marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 2) + String.fromCharCode(2343) ; 	
		}	else if (lchar == 2337) //'D'
		{	marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 2) + String.fromCharCode(2338) ; 	
		}	else if (lchar == 2346) // 'p'
		{	marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 2) + String.fromCharCode(2347) ; 	
		}	else if (lchar == 2348) //'b'
		{	marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 2) + String.fromCharCode(2349) ; 
		}	else if (lchar == 2360) //'s'
		{	marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 2) + String.fromCharCode(2359) ; 	
		}	else /// if nothing matches then it is 'h' itself
		{	marathi.textArea.value = marathi.textArea.value.substring(0,marathi.textArea.value.length - 1) + String.fromCharCode(2361) ; 	
		}
	}

	lcharno = cchar;  // /save currents as last;
}
//-->