function equalHeight(group) {
	var tallest = 0;
	group.each(function() {
		var thisHeight = $(this).height();
		if(thisHeight > tallest) {
			tallest = thisHeight;
		}
	});
	group.height(tallest);
}

function noCopyMouse(e) {
	var isRight = (e.button) ? (e.button == 2) : (e.which == 3);
	if(isRight) {
		alert('Sorry, for validation, please type the email address.');
		return false;
	}
	return true;
}

function noCopyKey(e) {
	var forbiddenKeys = new Array('c','x','v');
	var keyCode = (e.keyCode) ? e.keyCode : e.which;
	var isCtrl;

	if(window.event)
		isCtrl = e.ctrlKey
	else
		isCtrl = (window.Event) ? ((e.modifiers & Event.CTRL_MASK) == Event.CTRL_MASK) : false;

	if(isCtrl) {
		for(i = 0; i < forbiddenKeys.length; i++) {
			if(forbiddenKeys[i] == String.fromCharCode(keyCode).toLowerCase()) {
				alert('Sorry, for validation, please type the email address.');
				return false;
			}
		}
	}
	return true;
}
