// JavaScript Document


function validateEmail(e, msg) {
	var l=e.length;
	var arobase=e.search(/@/);
	
	if (l>6 && arobase>0) {
		return true;
	} else {
		if (msg) {
			alert(msg);
		}
		return false;
	}
}
function $(id) {
	return document.getElementById(id);
}