function IsEMail(strEmail)
{
	var filter=/^[A-Za-z0-9-_\.]+@+[A-Za-z0-9-_\.]+\.+[A-Za-z]{2,4}$/;
	return (filter.test(strEmail));
}

function IsPhone(strPhone) {
    var filter = /(.*\d{3}.*)(.*\d{3}.*)(.*\d{4}.*)/
    return (Trim(strPhone).length >= 10 && filter.test(strPhone));
}

function showMsg(msg) {
    alert("Sorry. You haven't provided enough information.\n\n The information you have requested is the same information that is provided to licensed realestate agents. We cannot provide it to you unless you provide valid contact information.\n\n" + msg);
}