i am a newbie in JAVASCRIPT and HTML with no idea. I have a project i am working on and am expected to finish it in 4 weeks time. I really really do need your help please? Here is my specification,
The aim of the project is to develop a web-based program to calculate energy savings, chemical savings and payback periods for swimming pool covers. The user needs to be prompted for information about the pool. Standard values for quantities such as energy costs will be provided if the customer does not know.
A typical user session would be like this:-
Questions
Select a currency (Lists of currencies for 4 countries; drop-down menu)
Select a product type?(list of 3 types of products from drop-down menu)
Select (radio button) Out-door pool or Indoor Pool.
What is pool size? Length and breath (text fields that only takes numbers)
Cost of electricity for heating pool? (text fields that only takes numbers)
Cost of Chemical usage for pool? (text fields that only takes numbers)
Water costs? (If applicable)
Calculations
Calculate cost of material required.
(Noting different products have different costs by thickness and UV stabilizer quantity.)
Divide cost of electricity by 75%.
Divide chemical costs by 50%.
Divide water costs by 98%.
From this information the program will display the payback period.
here is something i have done but i don’t know if i’m doing the right thing:
[code=html]
<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01//EN” “http://www.w3.org/TR/html4/strict.dtd”>
<HTML>
<HEAD>
<TITLE>Energy Saver Calculator</TITLE>
</HEAD>
<BODY bgcolor=”white”>
<body background = “”>
<h1><a>Energy Saver Calculator</a></h1>
<FORM method=post action=”cgi-bin/script.pl”>
Pool Information
<TABLE BORDER= “1”>
<TR>
<TR>
<TD>Select Currency</TD>
<TD>
<SELECT currency=”Currency”>
<OPTION VALUE=”Select Currency”></OPTION>
<OPTION VALUE=”British Pound”>British Pound</OPTION>
<OPTION VALUE=”European Euro”>European Euro</OPTION>
<OPTION VALUE=”New Zealand & Australian Dollar”>New Zealand & Australian Dollar<OPTION>
<OPTION VALUE=”South African Rand”>South African Rand</OPTION>
</SELECT>
</TD>
</TR>
<TR>
<TD>Select Product</TD>
<TD>
<SELECT products=”types”>
<OPTION VALUE=”Select a Product”></OPTION>
<OPTION VALUE=”Product1″>CoolGuard</OPTION>
<OPTION VALUE=”Product2″>EnergyGuard</OPTION>
<OPTION VALUE=”Product3″>Sol+Guard</OPTION>
</SELECT>
</TD>
</TR>
<TR>
<TD>Pool Location?</TD>
<TD>
Out-door Pool: <INPUT type=radio name=”outDoor” value=”O”>
<br>In-door Pool: <INPUT type=radio name=”inDoor” value=”I”>
</TD>
</TR>
<TD>Pool Length</TD>
<TD>
<INPUT type=number name= “length” size =”28″>
</TD>
</TR>
<TR>
<TD>Pool Breath</TD>
<TD>
<INPUT type=number name=”breath” size =”28″>
</TD>
</TR>
<TR>
<TD>Comments</TD>
<TD>
<TEXTAREA rows=”3″ name=”comments”>
Type your comments here</TEXTAREA>
</TD>
</TR>
<TR>
<TD COLSPAN=2>
<INPUT type=”submit” value=”Send”>
</TD>
</TR>
</TABLE>
</FORM>
<SCRIPT language=”JavaScript”>
<!–
document.write(“”)
//–>
</SCRIPT>
</BODY>
</HTML>