/*
 THis is a property of bdjobs.com [ www.bdjobs.com ]
# Written by  Mir Tariqul Alam (tariq@bdjobs.com)
# You can freely use this script as long  as you keep above lines in the script

*/

/*
function mykeyhandler() {
  if (window.event && window.window.event.keyCode == 8) { // try to cancel the
backspace
     window.event.cancelBubble = true;
     window.event.returnValue = false;
     return false;
  }
}

document.onkeydown = mykeyhandler;
*/


var charkey = new Array(100) ;
//charkey[8] = "&#0009;" ;
// jOINING cHAR = 2509
charkey[97] = "&#2499;" ;
charkey[98] = '&#2472;' ;
charkey[99] = "&#2446;" ;
charkey[100] = '&#2447;' ;
charkey[101] = "&#2448;" ;
charkey[102] = '&#2449;' ;
charkey[103] =  "&#2509;";//"&#2450;"
charkey[104] = '&#2451;' ;
charkey[105] = '&#2451;' ;
charkey[106] = '&#2453;' ;
charkey[107] = '&#2468;' ;
//=====================================
charkey[	0	] =	"&#2368;" ;
charkey[	1	] =	"&#2369;" ;
charkey[	2	] =	"&#2370;" ;
charkey[	3	] =	"&#2371;" ;
charkey[	4	] =	"&#2372;" ;
charkey[	5	] =	"&#2373;" ;
charkey[	6	] =	"&#2374;" ;
charkey[	7	] =	"&#2375;" ;
charkey[	8	] =	"&#2376;" ;
charkey[	9	] =	"&#2377;" ;
charkey[	10	] =	"&#2378;" ;
charkey[	11	] =	"&#2379;" ;
charkey[	12	] =	"&#2380;" ;
charkey[	13	] =	"&#2381;" ;
charkey[	14	] =	"&#2382;" ;
charkey[	15	] =	"&#2383;" ;
charkey[	16	] =	"&#2384;" ;
charkey[	17	] =	"&#2385;" ;
charkey[	18	] =	"&#2386;" ;
charkey[	19	] =	"&#2387;" ;
charkey[	20	] =	"&#2388;" ;
charkey[	21	] =	"&#2389;" ;
charkey[	22	] =	"&#2390;" ;
charkey[	23	] =	"&#2391;" ;
charkey[	24	] =	"&#2392;" ;
charkey[	25	] =	"&#2393;" ;
charkey[	26	] =	"&#2394;" ;
charkey[	27	] =	"&#2395;" ;
charkey[	28	] =	"&#2396;" ;
charkey[	29	] =	"&#2397;" ;
charkey[	30	] =	"&#2398;" ;
charkey[	31	] =	"&#2399;" ;
charkey[	32	] =	"&#2400;" ;
charkey[	33	] =	"&#2401;" ;
charkey[	34	] =	"&#2402;" ;
charkey[	35	] =	"&#2403;" ;
charkey[	36	] =	"&#2404;" ;
charkey[	37	] =	"&#2405;" ;
charkey[	38	] =	"&#2406;" ;
charkey[	39	] =	"&#2407;" ;
charkey[	40	] =	"&#2408;" ;
charkey[	41	] =	"&#2409;" ;
charkey[	42	] =	"&#2410;" ;
charkey[	43	] =	"&#2411;" ;
charkey[	44	] =	"&#2412;" ;
charkey[	45	] =	"&#2413;" ;
charkey[	46	] =	"&#2414;" ;
charkey[	47	] =	"&#2415;" ;
charkey[	48	] =	"&#2416;" ;
charkey[	49	] =	"&#2417;" ;
charkey[	50	] =	"&#2418;" ;
charkey[	51	] =	"&#2419;" ;
charkey[	52	] =	"&#2420;" ;
charkey[	53	] =	"&#2421;" ;
charkey[	54	] =	"&#2422;" ;
charkey[	55	] =	"&#2423;" ;
charkey[	56	] =	"&#2424;" ;
charkey[	57	] =	"&#2425;" ;
charkey[	58	] =	"&#2426;" ;
charkey[	59	] =	"&#2427;" ;
charkey[	60	] =	"&#2428;" ;
charkey[	61	] =	"&#2429;" ;
charkey[	62	] =	"&#2430;" ;
charkey[	63	] =	"&#2431;" ;
charkey[	64	] =	"&#2432;" ;
charkey[65  ] =	"&#2433;" ;
charkey[66  ] =	"&#2434;" ;
charkey[67  ] =	"&#2435;" ;
charkey[68  ] =	"&#2436;" ;
charkey[69	] =	"&#2437;" ;
charkey[70	] =	"&#2438;" ;
charkey[71	] =	"&#2439;" ;
charkey[72	] =	"&#2440;" ;
charkey[73	] =	"&#2441;" ;
charkey[74	] =	"&#2442;" ;
charkey[75	] =	"&#2443;" ;
charkey[76	] =	"&#2444;" ;
charkey[77	] =	"&#2445;" ;
charkey[78	] =	"&#2446;" ;
charkey[79	] =	"&#2447;" ;
charkey[80	] =	"&#2448;" ;
charkey[81	] =	"&#2449;" ;
charkey[82	] =	"&#2450;" ;
charkey[83	] =	"&#2451;" ;
charkey[84	] =	"&#2452;" ;
charkey[85	] =	"&#2453;" ;
charkey[86	] =	"&#2454;" ;
charkey[87	] =	"&#2455;" ;
charkey[88	] =	"&#2456;" ;
charkey[89	] =	"&#2457;" ;
charkey[90	] =	"&#2458;" ;
charkey[91	] =	"&#2459;" ;
charkey[92	] =	"&#2460;" ;
charkey[93	] =	"&#2461;" ;
charkey[94	] =	"&#2462;" ;
charkey[95	] =	"&#2463;" ;
charkey[96	] =	"&#2464;" ;
/* defined above
charkey[97	] =	"&#2465;" ;
charkey[98	] =	"&#2466;" ;
charkey[99	] =	"&#2467;" ;
charkey[100	] =	"&#2468;" ;
charkey[101	] =	"&#2469;" ;
charkey[102	] =	"&#2470;" ;
charkey[103	] =	"&#2471;" ;
charkey[104	] =	"&#2472;" ;
charkey[105	] =	"&#2473;" ;
charkey[106	] =	"&#2474;" ;
charkey[107	] =	"&#2475;" ;
*/
charkey[108	] =	"&#2476;" ;
charkey[109	] =	"&#2477;" ;
charkey[110	] =	"&#2478;" ;
charkey[111	] =	"&#2479;" ;
charkey[112	] =	"&#2480;" ;
charkey[113	] =	"&#2481;" ;
charkey[114	] =	"&#2482;" ;
charkey[115	] =	"&#2483;" ;
charkey[116	] =	"&#2484;" ;
charkey[117	] =	"&#2485;" ;
charkey[118	] =	"&#2486;" ;
charkey[119	] =	"&#2487;" ;
charkey[120	] =	"&#2488;" ;
charkey[121	] =	"&#2489;" ;
charkey[122	] =	"&#2490;" ;
/*
charkey[	123	] =	"&#2491;" ;
charkey[	124	] =	"&#2492;" ;
charkey[	125	] =	"&#2493;" ;
charkey[	126	] =	"&#2494;" ;
charkey[	127	] =	"&#2495;" ;
charkey[	128	] =	"&#2496;" ;
charkey[	129	] =	"&#2497;" ;
charkey[	130	] =	"&#2498;" ;
charkey[	131	] =	"&#2499;" ;
charkey[	132	] =	"&#2500;" ;
charkey[	133	] =	"&#2501;" ;
charkey[	134	] =	"&#2502;" ;
charkey[	135	] =	"&#2503;" ;
charkey[	136	] =	"&#2504;" ;
charkey[	137	] =	"&#2505;" ;
charkey[	138	] =	"&#2506;" ;
charkey[	139	] =	"&#2507;" ;
charkey[	140	] =	"&#2508;" ;
charkey[	141	] =	"&#2509;" ;
charkey[	142	] =	"&#2510;" ;
charkey[	143	] =	"&#2511;" ;
charkey[	144	] =	"&#2512;" ;
charkey[	145	] =	"&#2513;" ;
charkey[	146	] =	"&#2514;" ;
charkey[	147	] =	"&#2515;" ;
charkey[	148	] =	"&#2516;" ;
charkey[	149	] =	"&#2517;" ;
charkey[	150	] =	"&#2518;" ;
charkey[	151	] =	"&#2519;" ;
charkey[	152	] =	"&#2520;" ;
charkey[	153	] =	"&#2521;" ;
charkey[	154	] =	"&#2522;" ;
charkey[	155	] =	"&#2523;" ;
charkey[	156	] =	"&#2524;" ;
charkey[	157	] =	"&#2525;" ;
charkey[	158	] =	"&#2526;" ;
charkey[	159	] =	"&#2527;" ;
charkey[	160	] =	"&#2528;" ;
charkey[	161	] =	"&#2529;" ;
charkey[	162	] =	"&#2530;" ;
charkey[	163	] =	"&#2531;" ;
charkey[	164	] =	"&#2532;" ;
charkey[	165	] =	"&#2533;" ;
charkey[	166	] =	"&#2534;" ;
charkey[	167	] =	"&#2535;" ;
charkey[	168	] =	"&#2536;" ;
charkey[	169	] =	"&#2537;" ;
charkey[	170	] =	"&#2538;" ;
charkey[	171	] =	"&#2539;" ;
charkey[	172	] =	"&#2540;" ;
charkey[	173	] =	"&#2541;" ;
charkey[	174	] =	"&#2542;" ;
charkey[	175	] =	"&#2543;" ;
charkey[	176	] =	"&#2544;" ;
charkey[	177	] =	"&#2545;" ;
charkey[	178	] =	"&#2546;" ;
charkey[	179	] =	"&#2547;" ;
charkey[	180	] =	"&#2548;" ;
charkey[	181	] =	"&#2549;" ;
charkey[	182	] =	"&#2550;" ;
charkey[	183	] =	"&#2551;" ;
charkey[	184	] =	"&#2552;" ;
charkey[	185	] =	"&#2553;" ;
charkey[	186	] =	"&#2554;" ;
charkey[	187	] =	"&#2555;" ;
charkey[	188	] =	"&#2556;" ;
charkey[	189	] =	"&#2557;" ;
charkey[	190	] =	"&#2558;" ;
charkey[	191	] =	"&#2559;" ;
charkey[	192	] =	"&#2560;" ;
charkey[	193	] =	"&#2561;" ;
charkey[	194	] =	"&#2562;" ;
charkey[	195	] =	"&#2563;" ;
*/
//=========================================================
string1 = "abc.txt.vvv";
string2 = this.location.pathname;
zx1 = string1.lastIndexOf(".")
zx2 = string2.lastIndexOf(".")

//alert(zx1);
//alert(zx2);
//alert(zx4);


function typeCheck(id,vv)
{
zx3 = vv.indexOf(".")
zx4 = vv.substr(zx3)
if(!vv == '')//id.value
	{
	if(zx4 == ".gif" || zx4 == ".jpeg || zx4 == ".jpg)
	{}
	else {

	alert("Sorry ! "+zx4+"  file is not allowed")
	//id.value = "";
	 //document.form1.file.value = '999999999999999';
	 //alert(document.form1.file.value)
	}
	}
}
var lastTextField = "";
function getIDLAST(bb)
{
lastTextField = bb;
}
function chngLetter(cc)
{
eval('document.form2.'+lastTextField).value = eval('document.form2.'+lastTextField).value + cc;
//alert(eval('document.form2.'+lastTextField).value);
}
//var kkk;
function kk()
{
//alert(cccd)
//kkk = cccd;
//alert(kkk)
//eval('document.form2.textarea').value = eval('document.form2.textarea').value +'\b'//+ '\n'
qx = eval('document.form2.textarea').value
qx2 =qx.substring(0,qx.length - 1)
eval('document.form2.textarea').value = qx2// +'\b'//+ '\n'
//alert(qx2)
eval('document.all.acss').innerHTML = qx2
//event.returnValue = 2445;//false; // to blank the key return that a doesnt get printed
//window.event.keyCode = 2453;
}
function keychng(kc,ku)
{
//this.value = this.value+ window.event.keyCode &#2436;
//var vl = '';
//if(kc == '97')
//{ vl = '&#2436;' ; //alert(kc+'  '+vl+'ff  ')
//gh(ku);//gh(vl);
//}
//if(kc == '98')
//{
//vl = '&#2437;' ;
//alert(ku)
//gh(ku);  //alert(kc+vl+'ff  ')
//}
//alert(kkk)
eval('document.form2.textarea').value = eval('document.form2.textarea').value + ku
//eval('document.all.acss').innerHTML = eval('document.form2.textarea').value

///eval('document.form2.textarea').value = eval('document.form2.textarea').value + vl// +'\t'
//ku = eval();
//eval('document.form2.textarea').value = '&#2345'.valueOf()//ku
//alert(kc+vl+'ff  ')
}
function gh(vc)
{
//eval('document.form2.textarea').value = vc
}


//----------------
var E_or_B = 'B'; //english or bangla
function fnt_ENG_BNG(form_nm,vv,inputField)
 {
 E_or_B = vv ;
// document.getElementById(inputField).focus() ;
 if(inputField  != '' )
 { document.getElementById(inputField).focus(); }
 else {
    if(lastTextField == "") { alert("Please select a field to write") ; return false ; }   
	else { document.getElementById(lastTextField).focus(); }
        }

 }
 //-----------------------
var bcb = new Array(1)
/*
bcb[0] =2368 ;
bcb[1] =2369 ;
bcb[2] =2370 ;
bcb[3] =2371 ;
bcb[4] =2372 ;
bcb[5] =2373 ;
bcb[6] =2374 ;
bcb[7] =2375 ;
bcb[8] =2376 ;
bcb[9] =2377 ;
bcb[10] =2378 ;
bcb[11] =2379 ;
bcb[12] =2380 ;
bcb[13] =2381 ;
bcb[14] =2382 ;
bcb[15] =2383 ;
bcb[16] =2384 ;
bcb[17] =2385 ;
bcb[18] =2386 ;
bcb[19] =2387 ;
bcb[20] =2388 ;
bcb[21] =2389 ;
bcb[22] =2390 ;
bcb[23] =2391 ;
bcb[24] =2392 ;
bcb[25] =2393 ;
bcb[26] =2394 ;
bcb[27] =2395 ;
bcb[28] =2396 ;
bcb[29] =2397 ;
bcb[30] =2398 ;
bcb[31] =2399 ;
*/

bcb[32] =32 ;


/*
bcb[33] =2401 ;
bcb[34] =2402 ;
bcb[35] =2403 ;
*/
bcb[36] =2547 ; //2404 ; // $ = taka
/*
bcb[37] =2405 ;
*/
bcb[38] =2433 ;
/*
bcb[39] =2407 ;
bcb[40] =2408 ;
bcb[41] =2409 ;
bcb[42] =2410 ;
bcb[43] =2411 ;
bcb[44] =2412 ;
bcb[45] =2413 ;
bcb[46] =2414 ;
bcb[47] =2415 ;
*/
bcb[48] =2534 ;
bcb[49] =2535 ;
bcb[50] =2536 ;
bcb[51] =2537 ;
bcb[52] =2538 ;
bcb[53] =2539 ;
bcb[54] =2540 ;
bcb[55] =2541 ;
bcb[56] =2542 ;
bcb[57] =2543 ;
/*
bcb[58] =2426 ;
bcb[59] =2427 ;
bcb[60] =2428 ;
bcb[61] =2429 ;
bcb[62] =2430 ;
bcb[63] =2431 ;
bcb[64] =2432 ;
*/

bcb[65] ='-' ; // blank for ref //2433 ;//chandra bindu// '-';//2433 ; //A
bcb[66] =2467 ;
bcb[67] =2504 ;
bcb[68] =2496 ;
bcb[69] =2466 ;
bcb[70] =2437 ;
bcb[71] =2551 ;//DARI '-'//2439 ; //G
bcb[72] =2477 ;
bcb[73] =2462 ;
bcb[74] =2454 ;
bcb[75] =2469 ;
bcb[76] =2471 ;
bcb[77] =2486 ;
bcb[78] =2487 ;
bcb[79] =2456 ;
bcb[80] =2525 ;
bcb[81] =2434 ;
bcb[82] =2475 ;
bcb[83] =2498 ;
bcb[84] =2464 ;
bcb[85] =2461 ;
bcb[86] =2482 ;
bcb[87] =2527 ;
bcb[88] =2519 ;
bcb[89] =2459 ;
//bcb[90] =2435 ; //'-'//2458 ;//Z
bcb[90] =2479 ; //ja for ja  fola //'-'//2458 ;//Z
bcb[91] ='';//2459 ;
bcb[92] =2435 ; //bishorgo//'';//2460 ;
bcb[93] ='' ;//2461 ;
bcb[94] ='' ;//2462 ;
bcb[95] ='' ;//2463 ;
bcb[96] ='' ;//2464 ;
bcb[97] =2499 ; //a //ri kar 
bcb[98] =2472 ;
bcb[99] =2503 ;
bcb[100] =2495 ;
bcb[101] =2465 ;
bcb[102] =2494 ;
bcb[103] =2509 ;  //sonjog  (for JUKTAKKHOR)//2471 ;
bcb[104] =2476 ;
bcb[105] =2489 ;
bcb[106] =2453 ;
bcb[107] =2468 ;
bcb[108] =2470 ;
bcb[109] =2478 ;
bcb[110] =2488 ;
bcb[111] =2455 ;
bcb[112] =2524 ;
bcb[113] =2457 ;
bcb[114] =2474 ;
bcb[115] =2497 ;
bcb[116] =2463 ;
bcb[117] =2460 ;
bcb[118] =2480 ;
bcb[119] =2479 ;
bcb[120] =2451 ;
bcb[121] =2458 ;
bcb[122] =2480 ; //ro for rofola //'-' ;//2438;// shor-e-a //2490 ;
bcb[123] = '' ; //2491 ;
bcb[124] =2468 ; // to for khanda To //'' ; //2492 ;
bcb[125] = '' ; //2493 ;
bcb[126] ='' ;//2494
bcb[127] =2495 ;
bcb[128] =2496 ;
bcb[129] =2497 ;
bcb[130] =2498 ;
bcb[131] =2499 ;
bcb[132] =2500 ;
bcb[133] =2501 ;
bcb[134] =2502 ;
bcb[135] =2503 ;
bcb[136] =2504 ;
bcb[137] =2505 ;
bcb[138] =2506 ;
bcb[139] =2507 ;
bcb[140] =2508 ;
bcb[141] ='';//2509 ;
bcb[142] =2510 ;
bcb[143] =2511 ;
bcb[144] =2512 ;
bcb[145] =2513 ;
bcb[146] =2514 ;
bcb[147] =2515 ;
bcb[148] =2516 ;
bcb[149] =2517 ;
bcb[150] =2518 ;
bcb[151] =2519 ;
bcb[152] =2520 ;
bcb[153] =2521 ;
bcb[154] =2522 ;
bcb[155] =2523 ;
bcb[156] =2524 ;
bcb[157] =2525 ;
bcb[158] =2526 ;
bcb[159] =2527 ;
bcb[160] =2528 ;
bcb[161] =2529 ;
bcb[162] =2530 ;
bcb[163] =2531 ;
bcb[164] =2532 ;
bcb[165] =2533 ;
bcb[166] =2534 ;
bcb[167] =2535 ;
bcb[168] =2536 ;
bcb[169] =2537 ;
bcb[170] =2538 ;
bcb[171] =2539 ;
bcb[172] =2540 ;
bcb[173] =2541 ;
bcb[174] =2542 ;
bcb[175] =2543 ;
bcb[176] =2544 ;
bcb[177] =2545 ;
bcb[178] =2546 ;
bcb[179] =2547 ;
bcb[180] =2548 ;
bcb[181] =2549 ;
bcb[182] =2550 ;
bcb[183] =2551 ;
bcb[184] =2552 ;
bcb[185] =2553 ;
bcb[186] =2554 ;
bcb[187] =2555 ;
bcb[188] =2556 ;
bcb[189] =2557 ;
bcb[190] =2558 ;
bcb[191] =2559 ;
bcb[192] =2560 ;
bcb[193] =2561 ;
bcb[194] =2562 ;
bcb[195] =2563 ;
var a_OI_Ekar = 0 ;
var isGplus = 0;//taking connector g
		function gdgg(jjj)
		{
			//alert(jjj)
			//alert(E_or_B)

			if(E_or_B == 'B') // Eng or beng
			{
			//alert(E_or_B+'jjjjjjjjj')

				if(! bcb[jjj] == '')//empty protection
				{

                        /*  // shore A  to take it as shift f (ao) + f */ 
 						if(isGplus == 1 & jjj == 102 )// after keyed g  another key
						{
						//removing hashanta
                         rem_hashanta()						
						 
						window.event.keyCode = 2438;	isGplus = 0 ; // shore A
						}
						else if(isGplus == 1 & jjj == 100 )
						{
						//removing hashanta
                         rem_hashanta()						
						 
						window.event.keyCode = 2439;	isGplus = 0 ;
						
						}

						else if(isGplus == 1 & jjj == 68 )
						{
						//removing hashanta
                         rem_hashanta()						
						 
						window.event.keyCode = 2440;	isGplus = 0 ;
						}

						else if(isGplus == 1 & jjj == 115 )
						{
						//removing hashanta
                         rem_hashanta()						
						 
						window.event.keyCode = 2441;	isGplus = 0 ;
						}

						else if(isGplus == 1 & jjj == 83 )
						{
						//removing hashanta
                         rem_hashanta()						
						 
						window.event.keyCode = 2442;	isGplus = 0 ;
						}

						else if(isGplus == 1 & jjj == 97 )
						{
						//removing hashanta
                         rem_hashanta()						
						 
						window.event.keyCode = 2443;	isGplus = 0 ;
						}

						else if(isGplus == 1 & jjj == 99 )
						{
						//removing hashanta
                         rem_hashanta()						
						 
						window.event.keyCode = 2447;	isGplus = 0 ;
						}

						else if(isGplus == 1 & jjj == 67 )
						{
						//removing hashanta
                         rem_hashanta()						
						 
						window.event.keyCode = 2448;	isGplus = 0 ;
						}
						else if(isGplus == 1 & jjj == 88 )
						{
						//removing hashanta
                         rem_hashanta()						
						 
						window.event.keyCode = 2452;	isGplus = 0 ;
						}

					else
					{ 
					      ////ja fola Z = 90 //ra fola z = 122
					     if(jjj == 90 || jjj == 122)
						 {
						 document.getElementById(lastTextField).value += String.fromCharCode(2509);}
						 ////ja fola Z = 90 //ra fola z = 122 end
					    
						  //// ref = A = 65 
					     if(jjj == 65 )
						 {
						  refString = document.getElementById(lastTextField).value ;
						  cRef =   String.fromCharCode( 2480 , 2509 )  ;
						  document.getElementById(lastTextField).value = refString.substring(0, refString.length - 1 ) + cRef + refString.substring(refString.length - 1 );
						 }
						  //// ref = A = 65  end
						 
                  // for all other bengoly .........................................................................................
				    window.event.keyCode = bcb[jjj]; isGplus = 0 ;
                  // for all other bengoly end .....................................................................................
					     
						  ////khanda ta = 124 						 
					     if(jjj == 124 )
						 { window.event.keyCode = '';
						   document.getElementById(lastTextField).value += String.fromCharCode(2468,2509);}
						  ////khanda ta = 124  end
                        
						/* //commented to get shore A as 'gf '
						  ////Shor e Aa = shift f (ao) + f  
					     if(jjj == 102 & document.getElementById(lastTextField).value.charCodeAt(document.getElementById(lastTextField).value.length - 1  ) == 2437 ) // f & F
						 {
						   window.event.keyCode = '';
						   document.getElementById(lastTextField).value = document.getElementById(lastTextField).value.substring(0, document.getElementById(lastTextField).value.length - 1 ) + String.fromCharCode(2438);
						  }
						   ////Shor e Aa = shift f (ao) + f    end
					    */
						
						
						 /*/ ae kar , oi kar , e kar &#2503;&#2504;&#2495;
						 
						 xced = document.getElementById(lastTextField).value ;
						// xced.charAt(xced.length-2) == String.fromCharCode(2503)& xced.charAt(xced.length-1) == String.fromCharCode(2509) ? document.getElementById(lastTextField).value = xced.substring(0, xced.length - 3 )+ String.fromCharCode(2509,2503) : "" ; 
						 // xced.charAt(xced.length-1) == String.fromCharCode(2503) ? document.getElementById(lastTextField).value = xced.substring(0, xced.length - 1s )+ String.fromCharCode(2503) : "" ;
						// if(jjj == 99 ){a_OI_Ekar = 1 ;}
						 if(xced.charAt(xced.length-1) == String.fromCharCode(2503) &  bcb[jjj] != 2509 & a_OI_Ekar == 1)
						 //if(xced.charAt(xced.length-1) == String.fromCharCode(2503) & xced.charAt(xced.length-3) == String.fromCharCode(2509) & a_OI_Ekar == 1)
						 { // window.event.keyCode = '' ;
						   // document.getElementById(lastTextField).value = xced.substring(0, xced.length - 1 )+  String.fromCharCode( bcb[jjj])+ String.fromCharCode(2503)  ; 
						    a_OI_Ekar = 0 ;
						// alert(xced.substring(0, xced.length   ))
						}
						 if(xced.charAt(xced.length-1) == String.fromCharCode(2503) & a_OI_Ekar == 0)
						 {  window.event.keyCode = '' ;
						    document.getElementById(lastTextField).value = xced.substring(0, xced.length - 1 )+  String.fromCharCode( bcb[jjj])+ String.fromCharCode(2503)  ; 
						    a_OI_Ekar = 1 ;
						// alert(xced.substring(0, xced.length   ))
						}
						if(xced.charAt(xced.length-1) == String.fromCharCode(2503) & a_OI_Ekar == 1 & bcb[jjj] == 2509)
						 {  window.event.keyCode = '' ;
						    document.getElementById(lastTextField).value = xced.substring(0, xced.length - 1 )+  String.fromCharCode( bcb[jjj])+ String.fromCharCode(2503)  ; 
						    a_OI_Ekar = 0 ;
						// alert(xced.substring(0, xced.length   ))
						}
						window.status += a_OI_Ekar ;
						  // a kar , oi kar , e kar end 
						  */
					}//else end

//				----------------------------------- */
					if(jjj == 103) // keyed g for shoroborno 
										{
										isGplus = 1 ;
					
										//alert('---------')
										}

//				----------------------------------- */
				//window.event.keyCode = bcb[jjj]; //2444 original
				}
				//alert(bcb[jjj])
			}
//for span
		dval0 = document.getElementById(lastTextField).value + '&#' + window.event.keyCode + ';' ;
		dval = dval0.replace("&#0;","" );
		//alert(dval) ;
		
		document.getElementById('keying') ? document.getElementById('keying').innerHTML = dval : "" ;// writing in span //

		/* //editor real value is shown not the unicode html if you backspace it is not reflected
		dval2 = document.all.textarea4.value + '&#' + window.event.keyCode + ';' ;
		dval3 = dval2.replace("&#0;","" );
		document.all.textarea4.value = dval3 ;
		*/


		//document.all.textarea4.value = document.all.keying.innerHTML ;//.innerText ; //if you backspace it is  reflected

		//next replace enter in textarea with <br>

		}//func gdgg(jjj)
function rem_hashanta()
{
		//removing hashanta
	ltf_val = document.getElementById(lastTextField).value  ;
	//	if(ltf_val.substring( ltf_val.length - 1) == "2509" )
      //   alert(ltf_val.substring( ltf_val.length - 1) )
   //    else alert(ltf_val.substring(0) )

	ltf_val = ltf_val.substring(0, ltf_val.length - 1 ) ;
	document.getElementById(lastTextField).value = ltf_val ;

}//function rem_hashanta()


		 // var gh = ''; //it gets previous value
  function get_charCodeAt(srcTxar, dstnTxar)
    { 
	var gh = '';

	tt = srcTxar == "" ? ( lastTextField != "" ? document.getElementById(lastTextField).value : document.getElementById('textarea3').value) : document.getElementById(srcTxar).value  ;
	
//alert(lastTextField) ;alert(tt) ;	
//	tt = document.getElementById('textarea3').value ;
	for(i=0; i< tt.length; i++)
  {
  //alert(tt.charCodeAt(i))//tt.length - 1
 // gh += '&#24'+tt.charCodeAt(i)+';' ;//bcb[jjj]

 //  gh += '&#'+bcb[tt.charCodeAt(i)]+';' ;//bcb[jjj]

  gh += '&#'+ tt.charCodeAt(i) +';' ;//bcb[jjj]
  }
//alert(gh)
  //tnm.value = gh;
 dstn = dstnTxar  != "" ? document.getElementById(dstnTxar) : document.getElementById('textarea4') ;
 
 //formating space and line start
 ncdz = gh ;
y1z = "&#10;" ;var regYz = new RegExp("", "g");regYz.compile( y1z , "g");
ncdz = ncdz.replace( regYz ,"<br>")
y2z2 = "&#32;" ;var regY2z2 = new RegExp("", "g");regY2z2.compile( y2z2 , "g");
ncdz = ncdz.replace( regY2z2 ,"&nbsp;");
 //formating space and line  end
 
// dstn.value = gh ;
 dstn.value = ncdz ;
 dstn.focus();
  }//get_charCodeAt(tnm,tt)



function ClipBoard()
{
//document.all.textarea4.innerText = copytext.innerText;
Copied = document.all.textarea4.createTextRange();
Copied.execCommand("Copy");
}
//__________________________
b_S = 0;
function big_smallTA(tAName, columnORrow , maxRC , minRC )
{
//alert(document.getElementById(tAName).cols )
	if(tAName == "" )
	{ 	
	   if ( lastTextField != "" )
	   { tAName = lastTextField ; }
	    else {   tAName = "textareaBNG" ;   		 }
	 }
	else { tAName = tAName ; }
	
	if(columnORrow == 'cols' || columnORrow == 'cols_rows')
	{
	  b_S == 0 ? document.getElementById(tAName).cols = maxRC : document.getElementById(tAName).cols = minRC  ;
	 }//if(columnORrow == 'cols' || columnORrow == 'cols_rows')
	 if(columnORrow == 'rows' || columnORrow == 'cols_rows')
	{
	  b_S == 0 ? document.getElementById(tAName).rows = maxRC : document.getElementById(tAName).rows = minRC  ;
	}//else if(columnORrow == 'rows' || columnORrow == 'cols_rows')
	//alert(b_S)
b_S == 0 ? b_S = 1  : b_S = 0 ;

}
//__________________________
function clickedLetter( ltr )
{
//alert(ltr)
//document.getElementById('clk').innerHTML = ltr ;
if(lastTextField == "" ){ alert("Please select an field to write") ;} else {document.getElementById(lastTextField).value +=  ltr ; }  ;

}
//__________________________

//_______ // changing english to bengoly by CONTROL+ALTER+B______________
//onkeydown = galert(event.keyCode)
var123 = 0; switchMe = 1 ;
function galert(kkk) //
 {
// alert(kkk); 
// lastTextField == "" ? alert("please select a field to write") : "" ;
 if(kkk == 17){ var123 = 17 ;} // control pressed
 if(var123 == 17 & kkk == 18) { var123 = 17+18 ;} // control pressed & alter pressed
 if(var123 == 35 & kkk == 66 ){ var123 = 35 + 66 ;} // control pressed & alter pressed & B pressed
 
  if(var123 == 101   )
  {
        
	 if(lastTextField == "") { alert("Please select a field to write") ; return false ; }  	
     if(switchMe == 0)
    {
	  
	  fnt_ENG_BNG(this.form,'B',lastTextField) ;
	  var123 = 0;  switchMe = 1 ;
	 }// if(switchMe == 0)
 
	  else if(  switchMe == 1 )
	  { 
	    fnt_ENG_BNG(this.form,'E', lastTextField) ;
		var123 = 0;  switchMe = 0 ;
	  }//if(  switchMe == 1 )
  
    }
 return false ;
}
//document.onkeydown = galert(event.keyCode) ;// //galert()

//document.onkeyUp = alert()
//__________________________
function openHelpWindow(ltf)
{
 nhw = window.open('http://'+location.host+'/phps/JustClick.php', '', 'width=400,height=300')
// alert(nhw.opener.document.getElementById('keyw').value)//lastTextField
//alert(nhw.document.innerHTML)//.write = 
alert(lastTextField)
}//function openHelpWindow()
//__________________________
