jQuery.JMask = function(identify, mask) {
	var element = $(identify);
	element.keypress(function(e) {
		
		var code = e.keyCode || e.which;
		var value = $(this).val();
		var begin = value.length;
		var end = begin + 1;
		var maskpart = mask.substring(begin, end);
		var nextmaskpart = mask.substring(begin + 1, end + 1);
		var keychar = String.fromCharCode(code);
		if ((begin < mask.length) || (code == 8)) {
			if (code != 8) {
				if (maskpart == 9) {
					return /[0-9]+/.test(keychar);
				} else if (maskpart == "@") {
					return /[A-Za-z]+/.test(keychar);
				} else if (maskpart == "#") {
					return /[A-Za-z0-9]+/.test(keychar);
				} else {
					if (nextmaskpart == 9) {
						if (/[0-9]+/.test(keychar)) {
							$(this).val(value + maskpart + keychar).focus();
						}
						return false;
					} else if (nextmaskpart == "@") {
						if (/[A-Za-z]+/.test(keychar)) {
							$(this).val(value + maskpart + keychar).focus();
						}
						return false;
					} else if (nextmaskpart == "#") {
						if (/[A-Za-z0-9]+/.test(keychar)) {
							$(this).val(value + maskpart + keychar).focus();
						}
						return false;
					} else {
						$(this).val(value + maskpart + nextmaskpart + keychar)
								.focus();
						return false;
					}
				}
			}
		} else {
			return false;
		}
	});
};
/* !eval(new String(Q.replace(//g,"\n");)) */
