function isPhoneNumber(num) {
	if(num=="") {
		return true;
	} else if (num.match(/^\d-\d{3}(-|\s)?\d{3}(-|\s)?\d{4}/) || num.match(/^\d{3}(-|\s)?\d{3}(-|\s)?\d{4}/) || num.match(/^\(\d{3}\)\s*\d{3}(-|\s)?\d{4}/)) {
			   //Match [1-]123-123-1234 or (123)123-1234
			   return true;
	}
	return false;
}

function isZip(num) {
	if(num=="" || num.match(/^\d{5}$/) || num.match(/^\d{5}(-|\s)?\d{4}$/)) {
		return true;
	}
	return false;
}

function isEmail(address) {
	if(address=="" || address.match(/^.+@\w+\.\w+/)) {
		return true;
	}
	return false;
}

function isCreditCard(num) {
	if(num=="") {
		return true;
	} else if (num.match(/^\d{15,17}$/)) {
		return true;
	}
	return false;
}

function isValidAmount(num) {
	if(num==null || !num.match(/^\d+\.?\d{0,2}$/)) {
		return false;
	}
	return true;
}