
function decrypt(str, crypto) {

	//return str.length;
	var newstr = '';
	
	for (i = 0; i < str.length; i++) {
		if ((str.charAt(i) >= 'a') && (str.charAt(i) <= 'z')) {
			newstr = newstr + crypto.charAt(str.charCodeAt(i) - 0x61);
		}
		else {
			if ((str.charAt(i) >= 'A') && (str.charAt(i) <= 'Z')) {
				newstr = newstr + crypto.charAt(str.charCodeAt(i) - 0x41).toUpperCase();
			}
			else {
				newstr = newstr + str.charAt(i);
			}
		}
	}
	return newstr;
}