// Check for Email address: look for [@] and [.]

function isEmail(elm) {
	if (elm.value.indexOf("@") + "" !="-1" &&
	      elm.value.indexOf(".") + "" !="-1" &&
	      elm.value !="")
	return true;
	else return false;
}

// Check for null and for empty

function isFilled(elm) {
	if (elm.value == "" ||
	      elm.value == null)
	return false;
	else return true;
}

function isReady(form){

	// is fullname element filled?
	
	if (isFilled(form.fullname) == false) {
	alert("お名前を入力してください。");
	form.fullname.focus();
	return false;
	}
	
	// is zipcode element filled?
	
	if (isFilled(form.zipcode) == false) {
	alert("郵便番号を入力してください。");
	form.zipcode.focus();
	return false;
	}
	
	// is address element filled?
	
	if (isFilled(form.address) == false) {
	alert("住所を入力してください。");
	form.address.focus();
	return false;
	}
	
	
return true;
}

