var constMIN_ASC_Common, constMAX_ASC_Common, constNUM_ASC_Common;
constMIN_ASC_Common = 32; // Space
constMAX_ASC_Common = 126; // ' ~.
constNUM_ASC_Common = constMAX_ASC_Common - constMIN_ASC_Common + 1;
	
function Encrypt(objTxt)
{
	var ch, encryptedStr;
	var str = objTxt.value;
	encryptedStr = "";
	for(index = 0; index < str.length; index++)
	{        
		ch = str.charCodeAt(index);
		if (ch >= constMIN_ASC_Common && ch <= constMAX_ASC_Common)
		{
			ch = ch + parseInt(constNUM_ASC_Common * rn);
			if (ch > constMAX_ASC_Common)
				ch = ch - constNUM_ASC_Common;
			encryptedStr = encryptedStr + String.fromCharCode(ch);
		}
	}
	objTxt.value = encryptedStr;
	return false;
}