I am using Frontpage 98. I have designed a form that gets submitted to an email address. I want ot put restrictions on the submit key such that it will not submit unless the name form has the person name filled in it. In others, when submit is pressed, it should respond "Cannot submit, you havenot entered in your name. Please enter your name and then press submit." Below is my page. How cna I do this. or if someone could jsut write hte code in, I'd appreciate it. I'm a beginer in HTML and Javascript.<html>
<head><a name="top">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>admin TEST</title>
<script>
// (C) 2000 // // Free for all users, but leave in this header
function printWindow(){
bV = parseInt(navigator.appVersion)
if (bV >= 4) window.print()
}
</script>
</head>
<body bgcolor="#97BCE6">
<script language="JAVASCRIPT">
function grading(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10){
var right = 0;
if (a1 == true){
right = (right + 1);
}
if (a2 == true){
right = (right + 1);
}
if (a3 == true){
right = (right + 1);
}
if (a4 == true){
right = (right + 1);
}
if (a5 == true){
right = (right + 1);
}
if (a6 == true){
right = (right + 1);
}
if (a7 == true){
right = (right + 1);
}
if (a8 == true){
right = (right + 1);
}
if (a9 == true){
right = (right + 1);
}
if (a10 == true){
right = (right + 1);
}
if (right >= 9){
alert("You Passed. Now you must press Submit to Sumit your Results to HHCR and then scroll below to print your certificate"
name_on_certificate.value = document.forms[0].test_taker.value;
}
if (right < 9){
alert("You Failed and You must retake this test. Hit 'OK' and 'Refresh'. Don't forget to re-enter your name"
}
}
</script>
<table border="0" width="100%">
<tr>
<td width="20%"> <img src="hhcrlogonoinc1.gif" width="135" height="64"
alt="Home HealthCare Resources"></td>
<td width="61%"><p align="center"><strong><big><big><big>CORPORATE COMPLIANCE PROGRAM TEST
FOR ADMINISTRATIVE PERSONNEL</big></big></big></strong></td>
<td width="24%"><img src="mcclogo.gif" width="114" height="63"
alt="Maternal Child Consortium" align="left"></td>
</tr>
</table>
<table border="0" width="269" height="770">
<tr>
<td width="600" height="96"></a><p align="left"><br>
<em>Directions:<br>
<br>
Answer True (T) or False (F) to the following statements. Use either the mouse or
space-bar to mark your answer. Afterwards, you must grade the exam. If you Passed,
submit your exam for validation and print your certificate for your records.<br>
<br>
</em></td>
</tr>
<tr>
<td width="1530" height="641"><form method="POST" name="Administration Test Results"
target="_blank" action="--WEBBOT-SELF--">
<!--webbot bot="SaveResults" startspan S-Email-Format="TEXT/PRE"
S-Email-Address="training@hhcr.com" B-Email-Label-Fields="TRUE"
B-Email-Subject-From-Field="FALSE" S-Email-Subject="Administration TEST RESULTS"
S-Builtin-Fields="Date Time REMOTE_USER" U-Confirmation-Url="results were submitted.htm" --><!--webbot
bot="SaveResults" endspan --><input type="hidden" name="Test Taken" value="Administration"><div
align="right"><table border="0" width="311" height="500" bgcolor="#97BCE6">
<tr>
<td width="614" height="32" colspan="3"><font face="Arial"><em><strong>ENTER YOUR NAME
HERE:</strong> </em><!--webbot bot="Validation" B-Value-Required="TRUE"
I-Minimum-Length="2" --><input type="text" name="test_taker" size="36"></font><br>
</td>
</tr>
<tr>
<td width="46" height="32"><div align="center"><center><p><u><strong><font face="Arial">TRUE</font></strong></u></td>
<td width="46" height="32" align="center"><div align="center"><center><p><u><font
face="Arial"><strong>FALSE</strong></font></u></td>
<td width="200" height="32" align="center"></td>
</tr>
<tr align="center">
<td width="46" height="32"><div align="center"><center><p><input type="radio" name="Q1"
value="CORRECT"></td>
<td width="46" height="32" align="center"><div align="center"><center><p><input
type="radio" name="Q1" value="INCORRECT"></td>
<td width="550" height="32" align="center" nowrap><div align="left"><p>1. Violations
or suspected violation of federal and state regulations must be reported
immediately. <br>
</td>
</tr>
<tr align="center">
<td width="46" height="78" align="center" nowrap><input type="radio" name="Q2"
value="CORRECT"></td>
<td width="46" height="78" align="center" nowrap><input type="radio" name="Q2"
value="INCORRECT"></td>
<td width="550" height="78" nowrap><div align="left"><p>2. Inspector General
Act of 1978, Healthcare Fraud Prevention of 1995, Health Insurance Portability &
Accountability Act of 1996 and Balanced Budget Act of 1997 are legislation passed by
Congress to address fraud and abuse.<br>
</td>
</tr>
<tr align="center">
<td width="46" height="46" align="center" nowrap> <input type="radio" name="Q3"
value="INCORRECT"></td>
<td width="44" height="46" align="center" nowrap><input type="radio" name="Q3"
value="CORRECT"></td>
<td width="550" height="46" nowrap><div align="left"><p>3. Fraud is an
unintentional deception or misrepresentation by a provider.<br>
</td>
</tr>
<tr align="center">
<td width="46" height="71" align="center" nowrap><input type="radio" name="Q4"
value="CORRECT"></td>
<td width="46" height="71" align="center" nowrap><input type="radio" name="Q4"
value="INCORRECT"></td>
<td width="550" height="71" nowrap><div align="left"><p>4. Abuses are
practices or services of providers that are inconsistent with sound medical practice
(Billing, Documentation errors).<br>
</td>
</tr>
<tr align="center">
<td width="46" height="65" align="center" nowrap><input type="radio" name="Q5"
value="INCORRECT"></td>
<td width="46" height="65" align="center" nowrap><input type="radio" name="Q5"
value="CORRECT"></td>
<td width="550" height="65" nowrap><div align="left"><p>5. Fraud/Abuse
prevention and compliance with all federal and state regulations is the responsibility of
the Compliance Officer only.<br>
</td>
</tr>
<tr align="center">
<td width="46" height="27" align="center" nowrap><input type="radio" name="Q6"
value="CORRECT"></td>
<td width="46" height="27" align="center" nowrap><input type="radio" name="Q6"
value="INCORRECT"></td>
<td width="550" height="27" nowrap><div align="left"><p>6. An effective
compliance program will detect and prevent fraud and abuse.<br>
</td>
</tr>
<tr align="center">
<td width="46" height="40" align="center" nowrap><input type="radio" name="Q7"
value="CORRECT"></td>
<td width="46" height="40" align="center" nowrap><input type="radio" name="Q7"
value="INCORRECT"></td>
<td width="550" height="40" nowrap><div align="left"><p>7. HHCR/MCC Compliance
Officer is Tom Galvin.<br>
</td>
</tr>
<tr align="center">
<td width="46" height="40" align="center" nowrap><input type="radio" name="Q8"
value="INCORRECT"></td>
<td width="46" height="40" align="center" nowrap><input type="radio" name="Q8"
value="CORRECT"></td>
<td width="550" height="40" nowrap><div align="left"><p>8. Corporate Counsel
and Compliance Officer are responsible for approving Corporate Standards at HHCR/MCC.<br>
</td>
</tr>
<tr align="center">
<td width="46" height="40" align="center" nowrap><input type="radio" name="Q9"
value="CORRECT"></td>
<td width="46" height="40" align="center" nowrap><input type="radio" name="Q9"
value="INCORRECT"></td>
<td width="550" height="40" align="left" nowrap><div align="left"><p>9. The
Administrator is responsible for reviewing data prior to cost reporting calculation.</td>
</tr>
<tr align="center">
<td width="46" height="21" align="center" nowrap><input type="radio" name="Q10"
value="CORRECT"></td>
<td width="46" height="21" align="center" nowrap><input type="radio" name="Q10"
value="INCORRECT"></td>
<td width="550" height="21" align="left" nowrap>10. Medical records must be retained
for a period of no less than six (6) years.</td>
</tr>
</table>
</div><div align="center"><center><p><input type="button"
value="Click this Button to Grade Your Exam" name="grader2"
onclick="grading(Q1[0].checked, Q2[0].checked, Q3[1].checked, Q4[0].checked, Q5[1].checked, Q6[0].checked, Q7[0].checked, Q8[1].checked, Q9[0].checked, Q10[0].checked)">
</p>
</center></div><div align="center"><center><p><input type="reset" value="Refresh"
name="reset_button"> <input type="submit" value="Submit" name="B1"></p>
</center></div><div align="center"><center><p><a href="javascriptrintWindow()">Click to
Print for your records.</a> </p>
</center></div>
</form>
</td>
</tr>
</table>
<p align="center"><font face="Arial Black" color="#FF0000">YOUR CERTIFICATE (KEEP FOR YOUR
RECORDS)</font></p>
<div align="center"><center>
<table border="1" width="61%" height="387">
<tr>
<td width="100%" background="CERTIFICATE_FRAME.jpg" height="381" valign="middle"><p
align="center"><br>
<font face="Arial Black" size="4">Congratulations</font><br>
<br>
<input type="text" name="name_on_certificate" size="20"></p>
<p align="center"><font face="Arial Black" size="3" color="#000000">You have completed the
HHCR/MCC<br>
Compliance Training Program</font></p>
<p align="center"><script Language="JavaScript">
function tickClock()
{
// this tells the browser to call the "tickClock()" function every 1 second
setTimeout("tickClock()", 1000);
thisTime = new Date()
hours = thisTime.getHours()
minutes = thisTime.getMinutes()
seconds = thisTime.getSeconds()
// convert the digit to string
// make sure there're at least 2 digits
if (hours>=12)
{
hours-=12
}
hourString="0"+hours+""
minuteString="0"+minutes+""
secondString="0"+seconds+""
// format the hour
hour1=parseInt(hourString.charAt(hourString.length-1))
hour2=parseInt(hourString.charAt(hourString.length-2))
// format the minute
minute1=parseInt(minuteString.charAt(minuteString.length-1))
minute2=parseInt(minuteString.charAt(minuteString.length-2))
// format the seconds
second1=parseInt(secondString.charAt(secondString.length-1))
second2=parseInt(secondString.charAt(secondString.length-2))
}
</script> <!-- --><!-- --> <script LANGUAGE="JavaScript">
<!--
var date=new Date();
document.write("<font size=-2 face='Arial, Helvetica, sans-serif' color=003399> "+ date);
//-->
</script>
</td>
</tr>
</table>
</center></div>
<p align="center"><br>
</p>
</body>
</html>
<head><a name="top">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>admin TEST</title>
<script>
// (C) 2000 // // Free for all users, but leave in this header
function printWindow(){
bV = parseInt(navigator.appVersion)
if (bV >= 4) window.print()
}
</script>
</head>
<body bgcolor="#97BCE6">
<script language="JAVASCRIPT">
function grading(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10){
var right = 0;
if (a1 == true){
right = (right + 1);
}
if (a2 == true){
right = (right + 1);
}
if (a3 == true){
right = (right + 1);
}
if (a4 == true){
right = (right + 1);
}
if (a5 == true){
right = (right + 1);
}
if (a6 == true){
right = (right + 1);
}
if (a7 == true){
right = (right + 1);
}
if (a8 == true){
right = (right + 1);
}
if (a9 == true){
right = (right + 1);
}
if (a10 == true){
right = (right + 1);
}
if (right >= 9){
alert("You Passed. Now you must press Submit to Sumit your Results to HHCR and then scroll below to print your certificate"
name_on_certificate.value = document.forms[0].test_taker.value;
}
if (right < 9){
alert("You Failed and You must retake this test. Hit 'OK' and 'Refresh'. Don't forget to re-enter your name"
}
}
</script>
<table border="0" width="100%">
<tr>
<td width="20%"> <img src="hhcrlogonoinc1.gif" width="135" height="64"
alt="Home HealthCare Resources"></td>
<td width="61%"><p align="center"><strong><big><big><big>CORPORATE COMPLIANCE PROGRAM TEST
FOR ADMINISTRATIVE PERSONNEL</big></big></big></strong></td>
<td width="24%"><img src="mcclogo.gif" width="114" height="63"
alt="Maternal Child Consortium" align="left"></td>
</tr>
</table>
<table border="0" width="269" height="770">
<tr>
<td width="600" height="96"></a><p align="left"><br>
<em>Directions:<br>
<br>
Answer True (T) or False (F) to the following statements. Use either the mouse or
space-bar to mark your answer. Afterwards, you must grade the exam. If you Passed,
submit your exam for validation and print your certificate for your records.<br>
<br>
</em></td>
</tr>
<tr>
<td width="1530" height="641"><form method="POST" name="Administration Test Results"
target="_blank" action="--WEBBOT-SELF--">
<!--webbot bot="SaveResults" startspan S-Email-Format="TEXT/PRE"
S-Email-Address="training@hhcr.com" B-Email-Label-Fields="TRUE"
B-Email-Subject-From-Field="FALSE" S-Email-Subject="Administration TEST RESULTS"
S-Builtin-Fields="Date Time REMOTE_USER" U-Confirmation-Url="results were submitted.htm" --><!--webbot
bot="SaveResults" endspan --><input type="hidden" name="Test Taken" value="Administration"><div
align="right"><table border="0" width="311" height="500" bgcolor="#97BCE6">
<tr>
<td width="614" height="32" colspan="3"><font face="Arial"><em><strong>ENTER YOUR NAME
HERE:</strong> </em><!--webbot bot="Validation" B-Value-Required="TRUE"
I-Minimum-Length="2" --><input type="text" name="test_taker" size="36"></font><br>
</td>
</tr>
<tr>
<td width="46" height="32"><div align="center"><center><p><u><strong><font face="Arial">TRUE</font></strong></u></td>
<td width="46" height="32" align="center"><div align="center"><center><p><u><font
face="Arial"><strong>FALSE</strong></font></u></td>
<td width="200" height="32" align="center"></td>
</tr>
<tr align="center">
<td width="46" height="32"><div align="center"><center><p><input type="radio" name="Q1"
value="CORRECT"></td>
<td width="46" height="32" align="center"><div align="center"><center><p><input
type="radio" name="Q1" value="INCORRECT"></td>
<td width="550" height="32" align="center" nowrap><div align="left"><p>1. Violations
or suspected violation of federal and state regulations must be reported
immediately. <br>
</td>
</tr>
<tr align="center">
<td width="46" height="78" align="center" nowrap><input type="radio" name="Q2"
value="CORRECT"></td>
<td width="46" height="78" align="center" nowrap><input type="radio" name="Q2"
value="INCORRECT"></td>
<td width="550" height="78" nowrap><div align="left"><p>2. Inspector General
Act of 1978, Healthcare Fraud Prevention of 1995, Health Insurance Portability &
Accountability Act of 1996 and Balanced Budget Act of 1997 are legislation passed by
Congress to address fraud and abuse.<br>
</td>
</tr>
<tr align="center">
<td width="46" height="46" align="center" nowrap> <input type="radio" name="Q3"
value="INCORRECT"></td>
<td width="44" height="46" align="center" nowrap><input type="radio" name="Q3"
value="CORRECT"></td>
<td width="550" height="46" nowrap><div align="left"><p>3. Fraud is an
unintentional deception or misrepresentation by a provider.<br>
</td>
</tr>
<tr align="center">
<td width="46" height="71" align="center" nowrap><input type="radio" name="Q4"
value="CORRECT"></td>
<td width="46" height="71" align="center" nowrap><input type="radio" name="Q4"
value="INCORRECT"></td>
<td width="550" height="71" nowrap><div align="left"><p>4. Abuses are
practices or services of providers that are inconsistent with sound medical practice
(Billing, Documentation errors).<br>
</td>
</tr>
<tr align="center">
<td width="46" height="65" align="center" nowrap><input type="radio" name="Q5"
value="INCORRECT"></td>
<td width="46" height="65" align="center" nowrap><input type="radio" name="Q5"
value="CORRECT"></td>
<td width="550" height="65" nowrap><div align="left"><p>5. Fraud/Abuse
prevention and compliance with all federal and state regulations is the responsibility of
the Compliance Officer only.<br>
</td>
</tr>
<tr align="center">
<td width="46" height="27" align="center" nowrap><input type="radio" name="Q6"
value="CORRECT"></td>
<td width="46" height="27" align="center" nowrap><input type="radio" name="Q6"
value="INCORRECT"></td>
<td width="550" height="27" nowrap><div align="left"><p>6. An effective
compliance program will detect and prevent fraud and abuse.<br>
</td>
</tr>
<tr align="center">
<td width="46" height="40" align="center" nowrap><input type="radio" name="Q7"
value="CORRECT"></td>
<td width="46" height="40" align="center" nowrap><input type="radio" name="Q7"
value="INCORRECT"></td>
<td width="550" height="40" nowrap><div align="left"><p>7. HHCR/MCC Compliance
Officer is Tom Galvin.<br>
</td>
</tr>
<tr align="center">
<td width="46" height="40" align="center" nowrap><input type="radio" name="Q8"
value="INCORRECT"></td>
<td width="46" height="40" align="center" nowrap><input type="radio" name="Q8"
value="CORRECT"></td>
<td width="550" height="40" nowrap><div align="left"><p>8. Corporate Counsel
and Compliance Officer are responsible for approving Corporate Standards at HHCR/MCC.<br>
</td>
</tr>
<tr align="center">
<td width="46" height="40" align="center" nowrap><input type="radio" name="Q9"
value="CORRECT"></td>
<td width="46" height="40" align="center" nowrap><input type="radio" name="Q9"
value="INCORRECT"></td>
<td width="550" height="40" align="left" nowrap><div align="left"><p>9. The
Administrator is responsible for reviewing data prior to cost reporting calculation.</td>
</tr>
<tr align="center">
<td width="46" height="21" align="center" nowrap><input type="radio" name="Q10"
value="CORRECT"></td>
<td width="46" height="21" align="center" nowrap><input type="radio" name="Q10"
value="INCORRECT"></td>
<td width="550" height="21" align="left" nowrap>10. Medical records must be retained
for a period of no less than six (6) years.</td>
</tr>
</table>
</div><div align="center"><center><p><input type="button"
value="Click this Button to Grade Your Exam" name="grader2"
onclick="grading(Q1[0].checked, Q2[0].checked, Q3[1].checked, Q4[0].checked, Q5[1].checked, Q6[0].checked, Q7[0].checked, Q8[1].checked, Q9[0].checked, Q10[0].checked)">
</p>
</center></div><div align="center"><center><p><input type="reset" value="Refresh"
name="reset_button"> <input type="submit" value="Submit" name="B1"></p>
</center></div><div align="center"><center><p><a href="javascriptrintWindow()">Click to
Print for your records.</a> </p>
</center></div>
</form>
</td>
</tr>
</table>
<p align="center"><font face="Arial Black" color="#FF0000">YOUR CERTIFICATE (KEEP FOR YOUR
RECORDS)</font></p>
<div align="center"><center>
<table border="1" width="61%" height="387">
<tr>
<td width="100%" background="CERTIFICATE_FRAME.jpg" height="381" valign="middle"><p
align="center"><br>
<font face="Arial Black" size="4">Congratulations</font><br>
<br>
<input type="text" name="name_on_certificate" size="20"></p>
<p align="center"><font face="Arial Black" size="3" color="#000000">You have completed the
HHCR/MCC<br>
Compliance Training Program</font></p>
<p align="center"><script Language="JavaScript">
function tickClock()
{
// this tells the browser to call the "tickClock()" function every 1 second
setTimeout("tickClock()", 1000);
thisTime = new Date()
hours = thisTime.getHours()
minutes = thisTime.getMinutes()
seconds = thisTime.getSeconds()
// convert the digit to string
// make sure there're at least 2 digits
if (hours>=12)
{
hours-=12
}
hourString="0"+hours+""
minuteString="0"+minutes+""
secondString="0"+seconds+""
// format the hour
hour1=parseInt(hourString.charAt(hourString.length-1))
hour2=parseInt(hourString.charAt(hourString.length-2))
// format the minute
minute1=parseInt(minuteString.charAt(minuteString.length-1))
minute2=parseInt(minuteString.charAt(minuteString.length-2))
// format the seconds
second1=parseInt(secondString.charAt(secondString.length-1))
second2=parseInt(secondString.charAt(secondString.length-2))
}
</script> <!-- --><!-- --> <script LANGUAGE="JavaScript">
<!--
var date=new Date();
document.write("<font size=-2 face='Arial, Helvetica, sans-serif' color=003399> "+ date);
//-->
</script>
</td>
</tr>
</table>
</center></div>
<p align="center"><br>
</p>
</body>
</html>