//--------------------------------------------------------------------
//    E-mailアドレスチェック
//--------------------------------------------------------------------
function checkEmail(checkString) {
	var newstr = "";
	var at = false;
	var dot = false;

	if(checkString.indexOf("@") != -1) {
		at = true;
	} else if (checkString.indexOf(".") != -1) {
		dot = true;
	}
	for(var i = 0; i < checkString.length; i++) {
		ch = checkString.substring(i, i + 1)
		if ((ch >= "A" && ch <= "Z") || (ch >= "a" && ch <= "z")
			|| (ch == "@") || (ch == ".") || (ch == "_") || (ch == "/")
			|| (ch == "-") || (ch >= "0" && ch <= "9")) {
			newstr += ch;
			if (ch == "@") {
				at=true;
			}
			if (ch == ".") {
				dot=true;
			}
		}
	}
	if ((at == true) && (dot == true)) {
		var tmp = checkString.match(/[0-9a-zA-Z\+\-\/\*\,\.\@\_ ]+/g);
		if (tmp == checkString) {
			return true;
		} else {
			return false;
		}
	} else {
		return false;
	}
}

//--------------------------------------------------------------------
//    電話番号チェック
//--------------------------------------------------------------------
function checkTel(checkString) {
	var find = true;

	for(var i = 0; i < checkString.length; i++) {
		ch = checkString.substring(i, i + 1)
		if ((ch >= "0" && ch <= "9") || (ch == "-")) {
		} else {
			find = false;
			break;
		}
	}
	if (find == true) {
		return true;
	} else {
		return false;
	}
}