
function ValidateRegister(form) {

//----------------------------------------------------
// The ValidateInput function is called when the user 
// clicks the Submit button. Before the values are 
// submitted, this function makes sure that 
// entries have been made in all boxes except Address2.
//----------------------------------------------------

	var LB = "\n"; // my notation for Line Break
	var msghdr = "Please fill out your:" + LB + LB;
	var msg = "";
      var CBcount = 0;
      var ckdob = "";
	
	if (!form.NAME1.value) msg += "Name" + LB;
	if (!form.STREET1.value) msg += "Address" + LB;
      if (!form.CITYETC1.value) msg += "City" + LB;
      //if (!form.Phone4.value) msg += "Phone" + LB;

      //if (!form.email.value) msg += "Email" + LB;

	// Display an alert if any of the input is missing:
	if (msg.length > 0){
		alert(msghdr + msg);
		return false;
	}
	else return true;

}
// ------------------------------
// ---- Validate cd1 form --
function ValidateCDorder(form) {

//----------------------------------------------------
// The ValidateInput function is called when the user 
// clicks the Submit button. Before the values are 
// submitted, this function makes sure that 
// entries have been made in all boxes except Address2.
//----------------------------------------------------

	var LB = "\n"; // my notation for Line Break
	var msghdr = "Please fill out your:" + LB + LB;
	var msg = "";
      var CBcount = 0;
      var ckdob = "";
	
	if (!form.NAME.value) msg += "Name" + LB;
	if (!form.ADDRESS.value) msg += "Address" + LB;
      if (!form.CITYETC.value) msg += "City" + LB;
      //if (!form.Phone4.value) msg += "Phone" + LB;

      if (!form.EMAIL.value) msg += "Email" + LB;

	// Display an alert if any of the input is missing:
	if (msg.length > 0){
		alert(msghdr + msg);
		return false;
	}
	else return true;

}
