Contact Us
Need More Information about the Gastric Balloon Pill ?
function CheckMultiple12(frm, name) {
for (var i=0; i < frm.length; i++)
{
fldObj = frm.elements[i];
fldId = fldObj.id;
if (fldId) {
var fieldnamecheck=fldObj.id.indexOf(name);
if (fieldnamecheck != -1) {
if (fldObj.checked) {
return true;
}
}
}
}
return false;
}
function CheckForm12(f) {
if (f.email.value == "") {
alert("Please enter your email address.");
f.email.focus();
return false;
}
var fname = "CustomFields_3_12";
var fld = document.getElementById(fname);
if (fld.value == "") {
alert("Please enter a value for field First Name");
fld.focus();
return false;
}
var fname = "CustomFields_4_12";
var fld = document.getElementById(fname);
if (fld.value == "") {
alert("Please enter a value for field Last Name");
fld.focus();
return false;
}
var fname = "CustomFields_7_12";
var fld = document.getElementById(fname);
if (fld.value == "") {
alert("Please enter a value for field Telephone");
fld.focus();
return false;
}
CheckNum = parseInt(fld.value);
if(fld.value != "" && isNaN(CheckNum)) {
alert("Please enter a numeric value for field Telephone");
fld.select();
fld.focus();
return false;
}
var fname = "CustomFields_9_12";
var fld = document.getElementById(fname);
if (fld.selectedIndex == -1 || fld.selectedIndex == 0) {
alert("Please choose an option for field Type of Surgery");
fld.focus();
return false;
}
var fldcheck = CheckMultiple12(f, "CustomFields[21_12]");
if (!fldcheck) {
alert("Please choose an option for field Consent to Process Data Regulations 2018");
return false;
}
return true;
};