	eng=new Array(97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,87,82,84,83,67,74,90);
	geo=new Array(4304,4305,4330,4307,4308,4324,4306,4336,4312,4335,4313,4314,4315,4316,4317,4318,4325,4320,4321,4322,4323,4309,4332,4334,4327,4310,4333,4326,4311,4328,4329,4319,4331,91,93,59,39,44,46,96);

	function togeo() 
	{
		for (i=0; i<=geo.length; i++)
		{
			if (eng[i]==event.keyCode)
				event.keyCode=geo[i];
		}
	}
	
	/*function geo2eng(s)
	{
		for(i=0; i < geo.length; i++)
			replaceChars(s, geo[i], eng[i]);
		return s;
	}
	
	function replaceChars(entry, out, add) 
	{
		//out = "a"; // replace this
		//add = "z"; // with this
		temp = "" + entry;
		while (temp.indexOf(out)>-1) 
		{
			pos= temp.indexOf(out);
			temp = "" + (temp.substring(0, pos) + add + 
			temp.substring((pos + out.length), temp.length));
		}
	}
	
	function eng2geo(s)
	{		
		for(i=0; i < eng.length; i++)
			replaceChars(s, eng[i], geo[i]);
		return s;
	}*/
	
	
function str2num(s)
{
	var m = "";
	var t;
	
	for(i=0; i<s.length; i++)
	{
		t = 0 + s.charCodeAt(i);
		m += t + "-";
	}
	return m;
}

function num2str(s)
{
	var m = ""
	var temp
	while (s.indexOf("-")>-1) 
	{
		temp = s.substring(0, s.indexOf("-"))
		//alert(m);
		m += String.fromCharCode(temp);
		s = s.substring(s.indexOf("-") + 1)
	}	
	return m;
}

