function validateCellphone(cellphone) {
	var allowedCodes = '0512,0513';
	var codePattern  = '^('+allowedCodes.replace(',','|')+')'+'[0-9]{8}$';
	var valid = false;
	if (cellphone.match(/^1(3[0-9]|50|51|52|53|56|58|59|89)[0-9]{8}$/) || cellphone.match(codePattern)) {
		valid = true;
	}
	return valid;
}

function validatePhone(cellphone) {
	var allowedCodes = '0512,0513';
	var codePattern  = '^('+allowedCodes.replace(',','|')+')'+'[0-9]{8}$';
	var valid = false;
	if (cellphone.match(codePattern)) {
		valid = true;
	}
	return valid;
}

function isEmail(str){
	if(str.match(/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/)){
		return true;
	}
	return false;
}

function notEmpty(str){
	if(str.replace(/\s|　/gi,"").length == 0){
		return false
	}
	return true;
}
