View the step-by-step solution to:

DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>Clearwater Traders</title>...

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<title>Clearwater Traders</title>
<meta name="GENERATOR" content="Microsoft Visual Studio.NET 7.0">
<script language="javascript">
//form validation function
function validateInputs() {
var pmtMethod;
var pmtChecked = false;
var selectedCustomer = document.frmCustOrders.lstCustomer.selectedIndex;
var selectedSource = document.frmCustOrders.lstOrderSourceID.selectedIndex;
for (var i=0; i < document.frmCustOrders.optPmtMethod.length; i++) {
if (document.frmCustOrders.optPmtMethod[i].checked) {
pmtChecked = true;
pmtMethod = document.frmCustOrders.optPmtMethod[i].value;
var idValue = parseFloat(document.frmCustOrders.txtOrderID.value);
var dateValue =
if (isNaN(idValue) == true) {
alert("Please enter a five-digit number for Order ID.");;
<table><tr><td><img src="clearlogo.jpg" height="128" width="190"></td>

<td><h1 align="center">&nbsp; Customer Orders</h1></td></tr>
<form name="frmCustOrders" action="action marker" onsubmit="return validateInputs();">
<table width="80%">
<!-- first row to add Order ID and Customer ID inputs -->
<tr><td>Order ID:&nbsp;&nbsp;&nbsp;
<input type="text" name="txtOrderID" size="20"></td>

<td>Customer ID:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<select name="lstCustomer" size="2">
<option>107 Paula Harris</option>
<option>232 Mitch Edwards</option>
<!-- second row to add Order Date and Order Source ID inputs -->

<td>Order Date: <input type="text" size="20" name="txtOrderDate"></td>
<td>Order Source ID:
<select name="lstOrderSourceID" size="2">
<option>1 Spring 2009</option>
<option>2 Summer 2009</option>

<!-- third row to add Payment Method label and blank cell -->
<td align="center">Payment Method:</td>
<!--blank cell in third row, second column -->
<!-- fourth row to add Check radio button and Submit button -->

<input type="radio" name="optPmtMethod" VALUE="CHECK">&nbsp; Check
<td align="center"><input type="submit"
value="Submit" name="cmdSubmit"></td>
<!-- fifth row to add Credit Card radio button and Reset button -->

<input type="radio" name="optPmtMethod" value="CC">
&nbsp; Credit Card
<td align="center"><input type="reset"
value="Reset" name="cmdReset"></td>


Recently Asked Questions

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors and customizable flashcards—available anywhere, anytime.


Educational Resources
  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question
  • -


    Browse existing sets or create your own using our digital flashcard system. A simple yet effective studying tool to help you earn the grade that you want!

    Browse Flashcards