Serving the South Shore & Greater Boston area

Call to schedule your appointment 1-781-934-1599

Request to Schedule A Consultation

[js]
function FrontPage_Form1_Validator(theForm)
{

if (theForm.Name.value == “”)
{
alert(“Please enter a value for the “First Name” field.”);
theForm.Name.focus();
return (false);
}

if (theForm.Name.value == “First Name: *”)
{
alert(“Please enter a value for the “First Name” field.”);
theForm.Name.focus();
return (false);
}

if (theForm.Name.value.length > 50)
{
alert(“Please enter at most 50 characters in the “First Name” field.”);
theForm.Name.focus();
return (false);
}

if (theForm.namelast.value == “”)
{
alert(“Please enter a value for the “Last Name” field.”);
theForm.namelast.focus();
return (false);
}

if (theForm.namelast.value == “Last Name: *”)
{
alert(“Please enter a value for the “Last Name” field.”);
theForm.namelast.focus();
return (false);
}

if (theForm.namelast.value.length > 50)
{
alert(“Please enter at most 50 characters in the “Last Name” field.”);
theForm.namelast.focus();
return (false);
}

if (theForm.Phone.value == “Phone Number: *”)
{
alert(“Please enter a value for the “Phone Number” field.”);
theForm.Phone.focus();
return (false);
}

if (theForm.Phone.value.length < 10) { alert("Please enter at least 10 characters in the "Phone Number" field."); theForm.Phone.focus(); return (false); } if (theForm.Phone.value.length > 16)
{
alert(“Please enter at most 16 characters in the “Phone Number” field.”);
theForm.Phone.focus();
return (false);
}

if (theForm.EmailAddress.value == “”)
{
alert(“Please enter a value for the “Email Address” field.”);
theForm.EmailAddress.focus();
return (false);
}

if (theForm.EmailAddress.value == “Email Address: *”)
{
alert(“Please enter a value for the “Email Address” field.”);
theForm.EmailAddress.focus();
return (false);
}

if (theForm.EmailAddress.value.length > 50)
{
alert(“Please enter at most 50 characters in the “Email Address” field.”);
theForm.EmailAddress.focus();
return (false);
}

if (theForm.Procedure.selectedIndex < 0) { alert("Please select one of the "Procedure" options."); theForm.Procedure.focus(); return (false); } if (theForm.Procedure.selectedIndex == 0) { alert("The first "Procedure" option is not a valid selection. Please choose one of the other options."); theForm.Procedure.focus(); return (false); } return (true); } //-->
[/js]

(* required information)

Security Check: “Cat” begins with?*

   

 

Dr. Stephen Delia