home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magazyn WWW 1999 July
/
www_07_1999.iso
/
prez
/
amiga
/
KidHTML1_25.lha
/
KidHTML1.25
/
Script
/
roomsise.js
< prev
next >
Wrap
Text File
|
1998-08-25
|
2KB
|
76 lines
<!-- TWO STEPS TO INSTALL ROOM SIZE CALCULATOR:
1. Paste the specified coding into the HEAD of your HTML document
2. Put the last code into the BODY of your HTML document -->
<!-- STEP ONE: Copy this code into the HEAD your HTML document -->
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- Original: Motivational Marketing Associates
<!-- This script and many more are available online from -->
<!-- The JavaScript Source!! http://javascriptsource.com -->
<!-- Begin
function ClearInput(form) {
form.attendance.value="";
form.banquet60.value="";
form.banquet72.value="";
form.theater.value="";
form.school18.value="";
form.school30.value="";
form.reception.value="";
form.trade8.value="";
form.trade10.value="";
return true;
}
function help(helponwhat) {
if (helponwhat == "attendance")
alert("Enter the number of people who will be attending your event.")
}
function SizeCalc(form) {
var banquet60 = 0;
var banquet72 = 0;
var theater = 0;
var school18 = 0;
var school30 = 0;
var reception = 0;
var trade8 = 0;
var trade10 = 0;
if (form.attendance.value==null||form.attendance.value.length==0){
alert("Please enter the number of people attending.");
return false;
}
else
attendance = form.attendance.value
form.banquet60.value = attendance * 12;
form.banquet72.value = attendance * 12.05;
form.theater.value = attendance * 9;
form.school18.value = attendance * 14.5;
form.school30.value = attendance * 17.5;
form.reception.value = attendance * 9.5;
form.trade8.value = attendance * 160;
form.trade10.value = attendance * 200;
return true;
}
// End -->
</SCRIPT>
<!-- STEP TWO: Copy this code into the BODY of your HTML document -->
<BODY>
<CENTER>
<FORM NAME="room" METHOD="post">
<TABLE BORDER>
<TR>
<TD COLSPAN=8 ALIGN=CENTER>
<B>Number of people or exhibition booths</B> <INPUT TYPE="text" name="attendance" SIZE=8></TD>
</TR>
<TR><TD COLSPAN=8 ALIGN=CENTER>
<INPUT TYPE="button" valu