// JavaScript Document


	function checkfrm(frm) {
		if (frm.address.value == '' || frm.zip.value.length != 5 ) {
			alert("Please input value as the examples for each field");
			return false;
		}
		return true;
	}

	function checkEmailfrm(frm) {
		if (!isEmail(frm.emailto.value) || !isEmail(frm.emailfrom.value)) {
			alert("Please input valid email address");
			return false;
		}
		return true;
	}

	function isEmail(email)
	{
	  var result = false
	  var theStr = new String(email)
	  var index = theStr.indexOf("@");
	  if (index > 0)
	  {
		var pindex = theStr.indexOf(".",index);
		if ((pindex > index+1) && (theStr.length > pindex+1))
		result = true;
	  }
	  return result;
	}
