Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
<html>
<head>
<title></title>
<script language="JavaScript">
<!--
function LoadDependent()
{
var nSelect = document.Appointment.Treatment.selectedIndex;
var nValue = document.Appointment.Treatment.options[nSelect].value;
if (nValue == "BLANK")
{
alert ("You have selected a general service\n Please select a specific service instead\n");
}
else
{
// load in a conditional for every possible
// value from parent drop down. I am usually pulling this from a database.
if (nValue == 1)
{
var myDynamicArray = new Array('this', 'that', 'those');
}
else
{
var myDynamicArray = new Array('GO', 'STOP', 'WAIT');
}
// clear exitsting values in dynamic drop down
// then load in new values
clearcombo();
for (var i = 0; i < 10; i++)
{
document.Appointment.Times.options[document.Appointment.Times.options.length] = new Option(myDynamicArray[i]);
}
}
}
function clearcombo()
{
for (var i=document.Appointment.Times.options.length-1; i>=0; i--)
{
document.Appointment.Times.options[i] = null;
}
document.Appointment.Times.selectedIndex = -1;
}
function fillcombo()
{
for (var i = 0; i < 10; i++)
{
document.Appointment.Times.options[document.Appointment.Times.options.length] = new Option("display string " + i, "value " + i);
}
}
function submitForm()
{
document.Appointment.action="test.html";
document.Appointment.submit();
}
// -->
</script>
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<form action="reserve_reservation_send.asp" method="POST" name="Appointment">
<br><br><br>
<table width="100%" border="0" cellspacing="0" cellpadding="2" align="center">
<tr>
<td>
<p><font face="Arial, Helvetica, sans-serif" size="2"><b>Treatment Requested</b></font>:
<select name="Treatment" onChange="LoadDependent();">
<option value="BLANK">Services
<option value="BLANK">Body Therapies
<option value="1"> - Ahhh-Peppermint Wrap
<option value="2"> - Aroma-fusion Body Polish
<option value="3"> - Herbal Detox Wrap
<option value="4"> - Shiatsu
<option value="5"> - The Balance Pack
</select>
</p>
</td>
</tr>
<tr>
<td><font face="Arial, Helvetica, sans-serif" size="2"><b>Please enter a time:</b></font>
<select name="Times">
<option value="">Please Choose a time</option>
<option value=""></option>
<option value=""></option>
<option value=""></option>
</select>
</td>
</tr>
</table>
<p align="center"><font face="Arial, Helvetica, sans-serif"> </font><font face="Arial, Helvetica, sans-serif"><b>
</b></font></p>
</td>
</tr>
</table>
</html>