function valPhone (field, name) {
	var checkOK = "0123456789+() -";
	var checkStr = field.value;
	var allValid = true;
	if(checkStr.length < 6){
		alert(name);
		field.focus();
		return false;	
	}

	for (i = 0;  i < checkStr.length;  i++)
	{
		ch = checkStr.charAt(i);
		for (j = 0;  j < checkOK.length;  j++)
			if (ch == checkOK.charAt(j))
				break;
		if (j == checkOK.length)
		{
			allValid = false;
			break;
		}
	}
	if (allValid==false) {
		alert(name);
		field.focus();
		return false;
	}
}

function valContactUs() {
	var f = window.document.contactus;

	if (NotSubmit) {
		ret = validate(f.vr_name, 'string', alert_name)
			&& validate(f.vr_mail, 'email', alert_email)
			&& valPhone(f.vr_phone, alert_phone)
			&& validate(f.security_code, 'captcha', alert_verification_word)
		;

		return ret;
	}
	return NotSubmit;
}
