// JavaScript Document
function validateEmail(e) {
	var reg1 = /(@.*@)|(\.\.)|(^\.)|(^@)|(@$)|(\.$)|(@\.)/;
	var reg2 = /^[a-zA-Z0-9\_\-\.]+\@(\[?)[a-zA-Z0-9\_\-\.]+\.([a-zA-Z]{2,3}|[0-9]{1,3})(\]?)$/;

	if (e.match(reg1) || !e.match(reg2)) {
		return false;
	}
	
	return true;
}
	

function numbersonly(e){
	var unicode=e.charCode? e.charCode : e.keyCode
	if (unicode!=8)
	{ //if the key isn't the backspace key (which we should allow)
		if ((unicode>=48) && (unicode<=57)) return true;
		if ((unicode>=96) && (unicode<=105)) return true;
		return false;
	}
	else
	{
		return true;
	}
	
}
