
	function isPhone(tmpPhone){
		var okchars = "1234567890";
		var totalokchars = 0;
		var dashesok = 0;
		
		for (i=0; i < tmpPhone.length; i++){
			// move through each character and see if it's a digit
			if ((okchars.indexOf(tmpPhone.charAt(i))) != -1) {
				totalokchars++;
			}
		}
		
		if ((tmpPhone.charAt(3) == '-') && (tmpPhone.charAt(7) == '-')){
			dashesok = 1;
		}
		
		if ((totalokchars == 10) && (dashesok == 1)){
			return true;
		}else{
			return false;
		}
	}

	function isEmail (tmpEmail){
		var splitEmail = tmpEmail.split("@"); 

		if (splitEmail.length != 2){
			return false;
		}
		var splitDomain = splitEmail[1].split("."); 
		
		if ((splitDomain.length < 2) || (splitEmail[0].length < 1)){ 
			return false; 
		}else{
			for (i = 0; i < splitDomain.length; i++) {
				if (splitDomain[i].length < 1){
					return false;
				}
			}
			
			var tmpDomain = splitDomain[i-1].toLowerCase();
			if ((tmpDomain != "edu") && (tmpDomain != "com") && (tmpDomain != "net") && (tmpDomain != "org") && (tmpDomain != "gov") && (tmpDomain != "mil")) {
				return false;
			}
			
			return true;
		}
	}	