/*
 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 test()//
{
  /*if (document.layers) getMouseLoc;     //NS
  else if (document.all) getMouseLoc(); //IE
 alert(mouseLocation.x+","+mouseLocation.y);
 */
  //                  window.status = event.clientX+ "," + event.clientY ;
  //document.getElementById("Layer2").style.top = event.clientY ;//40;
}

//__________________
var prsnttx = "";
function tk(t1)
{
 prsnttx = t1 ; 
//sdsd = String.fromCharCode("&#2453;&#2497;&#2527;&#2503;&#2468;&#2488;&#2509;&#2489;")
sdsd = String.fromCharCode(2453,2497,2527,2503,2468,2488,2509,2489);
alert(sdsd)
//sdsd = String.fromCharCode(245,97,27);
document.getElementById(prsnttx).value = sdsd;
}
//__________________
//----------------
var lastTextField = "";
var SecondlastTextField = "";
var locaX = 0 ;
var locaY = 0 ;
function getIDLAST(bb)
{
//bb != "textarea3q" ? document.getElementById('radiobutton').checked = 'false'  :  document.getElementById("radiobutton").checked = 'true';

SecondlastTextField = lastTextField ;
SecondlastTextField != "" ? document.getElementById(SecondlastTextField).style.backgroundColor = 'white' : "" ;
lastTextField = bb;
document.getElementById(lastTextField).style.backgroundColor ='wheat' ;//wheat Cornsilk
// an alert //lastTextField != SecondlastTextField ? alert("this field will get the next typed text") :"";
// locaX = event.clientX ;//LayerX ;offsetX ;
// locaY = event.clientY ;//LayerY ;offsetY ;
/* used in onlinesubform15 to move to near each text field

if(lastTextField != SecondlastTextField){
document.getElementById("Layer2").style.left = locaX +15;//40;+15
document.getElementById("Layer2").style.top =  locaY + 15 ;//40;+ 15
}

*/
//document.getElementById("textfield7").type = "textarea"  ;
   //alert(locaX +" , "+ locaY);
   //alert(document.getElementById("Layer2").style.left  +" , "+ document.getElementById("Layer2").style.top);
}

//----------------
var E_or_B = 'B'; //english or bangla
function fnt_ENG_BNG(form_nm, vv , inputField )
 { 
 E_or_B = vv ; //alert("a"+inputField+"b")
 if(inputField  != '' )
 { document.getElementById(inputField).focus(); }
 else {
    if(lastTextField == "") { alert("Please select a field to write") ; return false ; }   
	else { document.getElementById(lastTextField).focus(); }
        }
 }

 //-----------------------

 //-----------------------
var bcbMoz = new Array(1)
/*
bcbMoz[0] =2368 ;
bcbMoz[1] =2369 ;
bcbMoz[2] =2370 ;
bcbMoz[3] =2371 ;
bcbMoz[4] =2372 ;
bcbMoz[5] =2373 ;
bcbMoz[6] =2374 ;
bcbMoz[7] =2375 ;
bcbMoz[8] =2376 ;
bcbMoz[9] =2377 ;
bcbMoz[10] =2378 ;
bcbMoz[11] =2379 ;
bcbMoz[12] =2380 ;
bcbMoz[13] =2381 ;
bcbMoz[14] =2382 ;
bcbMoz[15] =2383 ;
bcbMoz[16] =2384 ;
bcbMoz[17] =2385 ;
bcbMoz[18] =2386 ;
bcbMoz[19] =2387 ;
bcbMoz[20] =2388 ;
bcbMoz[21] =2389 ;
bcbMoz[22] =2390 ;
bcbMoz[23] =2391 ;
bcbMoz[24] =2392 ;
bcbMoz[25] =2393 ;
bcbMoz[26] =2394 ;
bcbMoz[27] =2395 ;
bcbMoz[28] =2396 ;
bcbMoz[29] =2397 ;
bcbMoz[30] =2398 ;
bcbMoz[31] =2399 ;
*/
/*
bcbMoz[32] =32 ;//space //2400 previous
bcbMoz[33] =33 ;
bcbMoz[34] =2402 ;
bcbMoz[35] =2403 ;
*/
bcbMoz[36] =2547 ; // $ = taka
/*
bcbMoz[37] =2405 ;
*/
bcbMoz[38] =2433 ;
/*
bcbMoz[39] =2407 ;
bcbMoz[40] =2408 ;
bcbMoz[41] =2409 ;
bcbMoz[42] =2410 ;
bcbMoz[43] =2411 ;
bcbMoz[44] =2412 ;
bcbMoz[45] =2413 ;
bcbMoz[46] =2414 ;
bcbMoz[47] =2415 ;
*/
bcbMoz[48] =2534 ;
bcbMoz[49] =2535 ;
bcbMoz[50] =2536 ;
bcbMoz[51] =2537 ;
bcbMoz[52] =2538 ;
bcbMoz[53] =2539 ;
bcbMoz[54] =2540 ;
bcbMoz[55] =2541 ;
bcbMoz[56] =2542 ;
bcbMoz[57] =2543 ;
/*
bcbMoz[58] =2426 ;
bcbMoz[59] =2427 ;
bcbMoz[60] =2428 ;
bcbMoz[61] =2429 ;
bcbMoz[62] =2430 ;
bcbMoz[63] =2431 ;
bcbMoz[64] =2432 ;
*/

bcbMoz[65] = '-' ; // blank for ref //2433 ;//chandra bindu//'-';//2433 ; //A
bcbMoz[66] =2467 ;
bcbMoz[67] =2504 ;
bcbMoz[68] =2496 ;
bcbMoz[69] =2466 ;
bcbMoz[70] =2437 ;
bcbMoz[71] =2551 ;//DARI '-'//2439 ; //G
bcbMoz[72] =2477 ;
bcbMoz[73] =2462 ;
bcbMoz[74] =2454 ;
bcbMoz[75] =2469 ;
bcbMoz[76] =2471 ;
bcbMoz[77] =2486 ;
bcbMoz[78] =2487 ;
bcbMoz[79] =2456 ;
bcbMoz[80] =2525 ;
bcbMoz[81] =2434 ;
bcbMoz[82] =2475 ;
bcbMoz[83] =2498 ;
bcbMoz[84] =2464 ;
bcbMoz[85] =2461 ;
bcbMoz[86] =2482 ;
bcbMoz[87] =2527 ;
bcbMoz[88] =2519 ;
bcbMoz[89] =2459 ;
//bcbMoz[90] =2435 ;//'-'//2458 ;//Z
bcbMoz[90] =2479 ;//ja for ja fola//'-'//2458 ;//Z
bcbMoz[91] ='';//2459 ;
bcbMoz[92] =2435 ;//bishorgo //'';//2460 ;
bcbMoz[93] ='';//2461 ;
bcbMoz[94] ='';//2462 ;
bcbMoz[95] ='';//2463 ;
bcbMoz[96] ='';//2464 ;
bcbMoz[97] = 2499 ; //a
bcbMoz[98] = 2472 ;
bcbMoz[99] = 2503 ;
bcbMoz[100] =2495 ;
bcbMoz[101] =2465 ;
bcbMoz[102] =2494 ;
bcbMoz[103] =2509 ;  //sonjog (for JUKTAKKHOR) //2471 ;
bcbMoz[104] =2476 ;
bcbMoz[105] =2489 ;
bcbMoz[106] =2453 ;
bcbMoz[107] =2468 ;
bcbMoz[108] =2470 ;
bcbMoz[109] =2478 ;
bcbMoz[110] =2488 ;
bcbMoz[111] =2455 ;
bcbMoz[112] =2524 ;
bcbMoz[113] =2457 ;
bcbMoz[114] =2474 ;
bcbMoz[115] =2497 ;
bcbMoz[116] =2463 ;
bcbMoz[117] =2460 ;
bcbMoz[118] =2480 ;
bcbMoz[119] =2479 ;// untosto jo
bcbMoz[120] =2451 ;
bcbMoz[121] =2458 ;
bcbMoz[122] =2480 ; //ro for rofola //'-' ;//2438;// shor-e-a //2490 ;
bcbMoz[123] = '' ; //2491 ;
bcbMoz[124] =2468 ; //to for khanda To //'' ; //2492 ;
bcbMoz[125] = '' ; //2493 ;
bcbMoz[126] ='' ;//2494
bcbMoz[127] =2495 ;
bcbMoz[128] =2496 ;
bcbMoz[129] =2497 ;
bcbMoz[130] =2498 ;
bcbMoz[131] =2499 ;
bcbMoz[132] =2500 ;
bcbMoz[133] =2501 ;
bcbMoz[134] =2502 ;
bcbMoz[135] =2503 ;
bcbMoz[136] =2504 ;
bcbMoz[137] =2505 ;
bcbMoz[138] =2506 ;
bcbMoz[139] =2507 ;
bcbMoz[140] =2508 ;
bcbMoz[141] ='';//2509 ;
bcbMoz[142] =2510 ;
bcbMoz[143] =2511 ;
bcbMoz[144] =2512 ;
bcbMoz[145] =2513 ;
bcbMoz[146] =2514 ;
bcbMoz[147] =2515 ;
bcbMoz[148] =2516 ;
bcbMoz[149] =2517 ;
bcbMoz[150] =2518 ;
bcbMoz[151] =2519 ;
bcbMoz[152] =2520 ;
bcbMoz[153] =2521 ;
bcbMoz[154] =2522 ;
bcbMoz[155] =2523 ;
bcbMoz[156] =2524 ;
bcbMoz[157] =2525 ;
bcbMoz[158] =2526 ;
bcbMoz[159] =2527 ;
bcbMoz[160] =2528 ;
bcbMoz[161] =2529 ;
bcbMoz[162] =2530 ;
bcbMoz[163] =2531 ;
bcbMoz[164] =2532 ;
bcbMoz[165] =2533 ;
bcbMoz[166] =2534 ;
bcbMoz[167] =2535 ;
bcbMoz[168] =2536 ;
bcbMoz[169] =2537 ;
bcbMoz[170] =2538 ;
bcbMoz[171] =2539 ;
bcbMoz[172] =2540 ;
bcbMoz[173] =2541 ;
bcbMoz[174] =2542 ;
bcbMoz[175] =2543 ;
bcbMoz[176] =2544 ;
bcbMoz[177] =2545 ;
bcbMoz[178] =2546 ;
bcbMoz[179] =2547 ;
bcbMoz[180] =2548 ;
bcbMoz[181] =2549 ;
bcbMoz[182] =2550 ;
bcbMoz[183] =2551 ;
bcbMoz[184] =2552 ;
bcbMoz[185] =2553 ;
bcbMoz[186] =2554 ;
bcbMoz[187] =2555 ;
bcbMoz[188] =2556 ;
bcbMoz[189] =2557 ;
bcbMoz[190] =2558 ;
bcbMoz[191] =2559 ;
bcbMoz[192] =2560 ;
bcbMoz[193] =2561 ;
bcbMoz[194] =2562 ;
bcbMoz[195] =2563 ;

cCString = "";
//function getCode(getEle,ev) //with event.keycode
 mssg = "" ;
function getCode(getEle)
{

// if(newWin){alert(1);}


cCString = "";
//df = "98,95,93" 
//alert(getEle+ev)
// df  = ev ; ////with event.keycode
//document.getElementById(getEle).value = String.fromCharCode(bcbMoz[df])
getEle_val = document.getElementById(getEle).value;
getEle_val_count = getEle_val.length
for(kk = 0; kk < getEle_val_count; kk++)
{
cCat = getEle_val.charCodeAt(kk); mssg += "<br>\ncCat "+ cCat ;

//ja fola Z = 90 //ra fola z = 122
cJoRofola = E_or_B == 'B' & ( cCat == 90 || cCat == 122 ) ? String.fromCharCode(2509) : "" ;
cCString += cJoRofola ;
//ja fola Z = 90 end




getkeycode =   retKeyCode(cCat);
mssg += "<br>\ngetkeycode "+getkeycode ;//alert("getkeycode "+getkeycode)//return
newVal = getkeycode != "" ? (getkeycode != "-" ? parseInt(getkeycode) :  "" ): cCat ;

mssg += "<br>\nnewVal "+newVal ;
mssg += "<br>\ncCString"+ cCString ;

//========================================== shore Aa
 ////Shor e Aa = shift f (ao) + f  
		if(cCat == 102 & cCString.charCodeAt(cCString.length - 1  ) == 2437 ) // f & F
		{ newVal = "" ; cCString = cCString.substring(0, cCString.length - 1 ) + String.fromCharCode(2438);  }
 ////Shor e Aa = shift f (ao) + f    end ========================


// using G for shoroborno new //alert(newVal + "v"+ 2503+"v"+ 2509) //&#2439;&#2440;&#2441;&#2442;&#2443;&#2447;&#2448;&#2451;&#2452;
cCString = (newVal == 2438 || newVal == 2439 ||  newVal == 2440 ||  newVal == 2441 ||  newVal == 2442 ||  newVal == 2443 ||  newVal == 2447 ||  newVal == 2448 ||  newVal == 2451 ||  newVal == 2452  ) & cCString.charCodeAt(kk-1) == 2509 ? cCString.substring(0, cCString.length - 1 ) : cCString ;
//alert("newVal "+newVal+cCString.charCodeAt(kk-1))
mssg += "<br>\ncCString"+ cCString ;
// using G for shoroborno end 

cCString0 = newVal != "" ? String.fromCharCode(newVal) : "" ;
cCString = cCString + cCString0;//alert("cCString "+cCString)

//khanda ta = | = 124 
ckhandaTa =  E_or_B == 'B' & cCat == 124 ? String.fromCharCode(2509) : "" ;
cCString += ckhandaTa ;
//khanda ta = | = 124  end

// ref = A = 65
cRef =  E_or_B == 'B' & cCat == 65 ? String.fromCharCode( 2480 , 2509 ) : "" ;
cCString = cCString.substring(0, cCString.length - 1 ) + cRef + cCString.substring(cCString.length - 1 );
// ref = A = 65 end

//cCString = cCString + String.fromCharCode(bcbMoz[cCat]);//alert(cCString)
}//for

// using G for shoroborno new2 

/*
newVal0Char = cCString.substr( cCString.length - 1 ) ; 
newVal0 = cCString.charCodeAt( cCString.length - 1 ) ; 
//alert(cCString.charCodeAt(cCString.length - 2))

cCString = (newVal0 == 2438 || newVal0 == 2439 ||  newVal0 == 2440 ||  newVal0 == 2441 ||  newVal0 == 2442 ||  newVal0 == 2443 ||  newVal0 == 2447 ||  newVal0 == 2448 ||  newVal0 == 2451 ||  newVal0 == 2452  ) & cCString.charCodeAt(cCString.length - 2) == 2509 ? cCString.substring(0, cCString.length - 2 )+ newVal0Char : cCString ;

*/

// cCString = cCString.replace(/&#2509;&#2503;/gi , "&#2447;");
// xcs = String.fromCharCode(2509,2503); alert(xcs)
// cCString = cCString.replace(xcs , String.fromCharCode(2447));


 //checking for last text field & confirming while pasting data
 
// lastTextField == "" ? alert("Please click on the field  where you like to paste the text")  : confirm("Are you sure to paste in red labeled field ?") ?  document.getElementById(lastTextField).value =  cCString  : alert("you refused !");

 
 if(lastTextField == "")
 {
	 alert("Please click on the field  where you like to paste the text"); 
	// return false;

 }
 else 
 { 
   document.getElementById(lastTextField).value =  cCString ; 
  /* replacing ra jo fola with &#2545;+jo fola
  myString = document.getElementById(lastTextField).value.replace(/&#2480;&#2509;&#2479;/gi, "&#2545;&#2509;&#2479;")
   document.getElementById(lastTextField).value = myString
   */

  /*  
  if(confirm("Are you sure to paste in wheat colored  field ?") )
   {
   	document.getElementById(lastTextField).value =  cCString ;  
   }
 else    {   	alert("you refused !");   }
 */ 
 
 }
 
  
 //document.getElementById(getEle).value +
 //newWin  = window.open();
//newWin.document.write(mssg);
return false;

}



//=======================================================================================
			    var isGplus = 0 ;
           function retKeyCode(jjj)
			{
				var RetKey = "";
			  if(E_or_B == 'B') // Eng or beng
			 {
	
				if(!bcbMoz[jjj] == '')//empty protection
				{
///*				----------------------------------- 
						if(isGplus == 1 & jjj == 102 )// after keyed g  another key
						{ 
						//window.event.keyCode = 2438;	isGplus = 0 ;						
						RetKey = 2438;	isGplus = 0 ;						
						}
						else if(isGplus == 1 & jjj == 100 )
						{ 
						RetKey = 2439;	isGplus = 0 ;						
						}
					
						else if(isGplus == 1 & jjj == 68 )
						{ 
						RetKey = 2440;	isGplus = 0 ;						
						}
					
						else if(isGplus == 1 & jjj == 115 )
						{ 
						RetKey = 2441;	isGplus = 0 ;						
						}
					
						else if(isGplus == 1 & jjj == 83 )
						{ 
						RetKey = 2442;	isGplus = 0 ;						
						}
					
						else if(isGplus == 1 & jjj == 97 )
						{ 
						RetKey = 2443;	isGplus = 0 ;						
						}
					
						else if(isGplus == 1 & jjj == 99 )
						{ 
						RetKey = 2447;	isGplus = 0 ;						
						}
					
						else if(isGplus == 1 & jjj == 67 )
						{ 
						RetKey = 2448;	isGplus = 0 ;						
						}
						else if(isGplus == 1 & jjj == 88 )
						{ 
						RetKey = 2452;	isGplus = 0 ;						
						}
					
					else
					{
				    RetKey = bcbMoz[jjj];   isGplus = 0 ;
					//fmssg =  bcbMoz[jjj] == 32 ? " <br>\n isGplus" + isGplus : "" ;	alert(fmssg) ;
					//mssg +=  bcbMoz[jjj] == 32 ? " <br>\n isGplus" + isGplus : "" ;	
					}
//				----------------------------------- */

					///*				----------------------------------- //for srosho e
					//if(jjj == 122) // keyed z
					if(jjj == 103 || jjj == 2509 ) // keyed g or after converted 2509
					if(jjj == 103  ) // keyed g 
					{
					isGplus = 1 ;
										
					}

//				----------------------------------- */


				//window.event.keyCode = bcbMoz[jjj]; //2444 original
				}
			  }//if eng beng	
			return RetKey ;	

			}//           function retKeyCode(jjj)
//________________________________________________________________________________			
function ToASCII_HTMLcode(src_name,tf_name)
{
getElement_val = document.getElementById(src_name).value;
getElement_val_count = getElement_val.length
newString = "";
for(kkk = 0; kkk < getElement_val_count; kkk++)
{
nCat = getEle_val.charCodeAt(kkk);//alert("cCat "+cCat)
	/*getkeycode =   retKeyCode(cCat);//alert("getkeycode "+getkeycode)//return
	newVal = getkeycode != "" ? (getkeycode != "-" ? parseInt(getkeycode) :  "" ): cCat ; //alert("newVal "+newVal)
	cCString0 = newVal != "" ? String.fromCharCode(newVal) : "" ;
	cCString = cCString + cCString0;//alert("cCString "+cCString)
	*/
// VVV IMPORTANT newString0 = "&#" + String.fromCharCode(nCat) + ";";
newString0 = "&#" + nCat + ";";
newString  = newString + newString0;//alert(cCString)
}
document.getElementById(tf_name).value =  newString ;

}//function ToASCII_HTMLcode(src_name,tf_name)

function ToHtmlUnicode(src_name,tf_name)
{
getElement_val = document.getElementById(src_name).value;
getElement_val_count = getElement_val.length
gcCString = "";
for(kkk = 0; kkk < getElement_val_count; kkk++)
{
nCat = getElement_val.charCodeAt(kkk);//alert("cCat "+cCat)
//	/*
	ggetkeycode =   retKeyCode(nCat);//alert("getkeycode "+getkeycode)//return
	gnewVal = ggetkeycode != "" ? (ggetkeycode != "-" ? parseInt(ggetkeycode) :  "" ): nCat ; //alert("newVal "+newVal)
	//gcCString0 = gnewVal != "" ? String.fromCharCode(gnewVal) : "" ;
	gcCString0 = gnewVal != "" ? toHtML_CODE(gnewVal) : "" ;
	gcCString = gcCString + gcCString0;//alert("gcCString "+gcCString)
//	*/
// VVV IMPORTANT newString0 = "&#" + String.fromCharCode(nCat) + ";";
////newString0 = "&#" + nCat + ";";
///newString  = newString + newString0;//alert(cCString)
}
//document.getElementById(tf_name).value =  newString ;
document.getElementById(tf_name).value =  gcCString ;

}//function ToHtmlUnicode()
function toHtML_CODE(ccvv)
{
vvvv = "&#" + ccvv + ";";
return vvvv ;
}
function toAScCode(src,destin) 
{
//bbfg = "&#2478;&#2458;&#2499;&#2474;&#2474;"

bbfg = document.getElementById(src).value ;

 // remove formating space and line start
var ncdz1 = bbfg ;
var y1z = "<br>" ;var regYz = new RegExp("", "g");regYz.compile( y1z , "g");
ncdz1 = ncdz1.replace( regYz ,"&#10;")
var y2z2 = "&nbsp;" ;var regY2z2 = new RegExp("", "g");regY2z2.compile( y2z2 , "g");
ncdz1 = ncdz1.replace( regY2z2 , "&#32;");
bbfg = ncdz1 ;
 //remove formating space and line  end



//alert("")
var myarr = new Array();
myarr = bbfg.split(';') ;
myarr_count = myarr.length ; 
    cx = "";
	dx = "";
	for(zx = 0; zx < myarr_count ; zx++)
	{
		//alert(myarr[zx])
		ax = myarr[zx];//alert(ax)
		bx  = zx != 0 ? ax.replace("&#",",") : ax.replace("&#","")  ;//alert(bx)
		bbx  = ax.replace("&#","") ;//alert(" bbx "+bbx)
		cx = cx + bx ;
		dx = dx + String.fromCharCode(bbx) ;
		//alert(bx)
	}
	//return cx;
	//document.getElementById(destin).value = cx ;
	document.getElementById(destin).value = dx ;
	//alert(dx)//eval(cx)
}

function finalCode(field_s)
{
var field_s = 'textfield2,textfield6' ;
ftt = field_s.split(",");
counn = ftt.length ; 
	for(fr = 0 ; fr < counn ; fr++)
	{
	alert(ftt[fr]);
	 LTF = ftt[fr];
	ToHtmlUnicode(LTF,LTF);
	
	}//for
}
//----------------
//lastTextField.onkeyDown = alert();
//javascript:document.getElementById(lastTextField).focus()

//----------------
function layerOn(layerId)
{ //alert(layerId)
	document.getElementById(layerId).style.visibility = 'visible';

}
//----------------
//----------------
function layerOff(layerId) 
{
	document.getElementById(layerId).style.visibility = 'hidden';
}
//----------------
//----------------
//alert(str_search( "JavaScript is good", "is", "m") );
function str_search(str,search_for, s_m) 
{ 
   position = s_m == 'm' ? str.match("is") : str.search(search_for)   ;
   return position ;
   
   	// myString = "JavaScript is good";   
   //myLocation = myString.search(/GOOD/i);
   //myLocation1 = myString.match(/GOOD/i);
   //alert(myLocation1);
}
//----------------

function chngBng(str) 
{ 
getEle_valo = str;
getEle_val_count = getEle_valo.length
for(kkg = 0; kkg < getEle_val_count; kkg++)
{
cCato = getEle_valo.charCodeAt(kkg);//alert("cCat "+cCat)
getkeycode =   retKeyCode(cCato);//alert("getkeycode "+getkeycode)//return
newVal = getkeycode != "" ? (getkeycode != "-" ? parseInt(getkeycode) :  "" ): cCato ; //alert("newVal "+newVal)
cCString0 = newVal != "" ? String.fromCharCode(newVal) : "" ;
cCString = cCString + cCString0;//alert("cCString "+cCString)
//cCString = cCString + String.fromCharCode(bcbMoz[cCat]);//alert(cCString)
}

}
//----------------

function getBNGDate(str,htmltype)
	{
		/*ctlToPlaceValue.value = chngBng(abcs)  ;
		&#2534;&#13;&#10;&#2535;&#32;&#13;&#10;&#2536;&#13;&#10;&#2537;&#13;&#10;&#2538;&#13;&#10;
		&#2539;&#13;&#10;&#2540;&#13;&#10;&#2541;&#13;&#10;&#2542;&#13;&#10;
		&#2543;&#13;&#10;
		// [ 0-9 = 48-57] -./ = &#45; &#46; &#47;
		*/
		bngArr = new Array(10);
		/*
		
		bngArr[45] = "&#45;" ; // -
		bngArr[46] = "&#46;" ; // .
		bngArr[47] = "&#47;" ; // /
		bngArr[48] = "&#2534;" ; // 0
		bngArr[49] = "&#2535;" ;
		bngArr[50] = "&#2536;" ;
		bngArr[51] = "&#2537;" ;
		bngArr[52] = "&#2538;" ;
		bngArr[53] = "&#2539;" ;
		bngArr[54] = "&#2540;" ;
		bngArr[55] = "&#2541;" ;
		bngArr[56] = "&#2542;" ;
		bngArr[57] = "&#2543;" ; // 9
		*/
		bngArr[45] = "45" ; // -
		bngArr[46] = "46" ; // .
		bngArr[47] = "47" ; // /
		bngArr[48] = "2534" ; // 0
		bngArr[49] = "2535" ;
		bngArr[50] = "2536" ;
		bngArr[51] = "2537" ;
		bngArr[52] = "2538" ;
		bngArr[53] = "2539" ;
		bngArr[54] = "2540" ;
		bngArr[55] = "2541" ;
		bngArr[56] = "2542" ;
		bngArr[57] = "2543" ; // 9
		//alert('g') ;
		
		getEle_valo = str;
		getEle_val_count = getEle_valo.length
		var cCString = "" ;
		for(kkg = 0; kkg < getEle_val_count; kkg++)
		{
		cCato = getEle_valo.charCodeAt(kkg);//alert("cCat "+cCat)
		//getkeycode =   retKeyCode(cCato);//alert("getkeycode "+getkeycode)//return
		getkeycode =   bngArr[cCato];//alert("getkeycode "+getkeycode)//return
		 newVal = getkeycode != "" ? (getkeycode != "-" ? parseInt(getkeycode) :  "" ): cCato ; //alert("newVal "+newVal)
		 cCString0 = newVal != "" ? String.fromCharCode(newVal) : "" ;
		 cCString0 = htmltype == 'htmltype' ? "&#"+cCString0+";" : cCString0 ; // html or number
		//0newVal = getkeycode != "" ?  getkeycode  : cCato ; //alert("newVal "+newVal)
		//0cCString0 = newVal != "" ? newVal : "" ;
		cCString = cCString + cCString0;//alert("cCString "+cCString)
		
		//cCString = cCString + String.fromCharCode(bcbMoz[cCat]);//
		
        }//for
//alert(cCString)
     return cCString ;   

	}
	//_______________________________________________-

