function IsEmpty(str) {
	if ((str == null) || (str.length == 0)) {
		return true;
	} else {
		return false;
	}
}	

function IsValidEmail(str) {
	return (!IsEmpty(str) && (str.indexOf(".") > 0) && (str.indexOf("@") > 0));
}
