function checkValidEmail(e) {
	e = e.toLowerCase();
	var eArray = new Array();
	
	//List of domains we want to remove
	eArray[0] = '@yahoo';
	eArray[1] = '@gmail';
	eArray[2] = '@msn';
	eArray[3] = '@hotmail';
	eArray[4] = '@126.com';
	eArray[5] = '@sina.com';
	eArray[6] = '@sbcglobal';
	eArray[7] = '@comcast';
	eArray[8] = '@aol';
	
	var r = 0;
	
	//Check for the domains in the email address
	for (var i = 0; i < eArray.length; i++) {
		if (0 < e.indexOf(eArray[i])) {
			r++;
			break;
		}
	}
	
	// Check for illegal characters
	var illegalChars= /[\(\)\<\>\,\;\:\\\/\"\[\]]/;
	if (e.match(illegalChars)) {
	   r++;
	}
		
	return r;
}

function checkValidPhone(sText) {
	//strip out acceptable non-numeric characters
	// Including the "Ext:" string because we are concatenating the phonenumber and ext. fields
	var stripped = sText.replace(/[\(\)\.\-Ext:+\ ]/g, '');
	var ValidChars = "0123456789.";
	var IsNumber=true;
	var Char;
	
	for (i = 0; i < stripped.length && IsNumber == true; i++) { 
		Char = stripped.charAt(i); 
		if (ValidChars.indexOf(Char) == -1) {
			IsNumber = false;
		}
	}
	return IsNumber;
}
