Sorry, an error occurred while loading the content.

## Re: [JavaScript] Help with adding 2 boxes together

Expand Messages
• Okay, I used the script that Jonas provided (thanks Jonas!). It shows that one of the boxes is not coming up as a number (surprise, surprise). Then I went
Message 1 of 11 , Feb 2, 2006
• 0 Attachment
Okay, I used the script that Jonas provided (thanks Jonas!). It shows
that one of the boxes is not coming up as a number (surprise,
surprise). Then I went through the code that calculates the box. The
original author has the value converting to a currency. I need to
know how to make it NOT do that. (The form is not working in real
world currency. I do not need decimals or "\$".)

Here is the original code:

<SCRIPT LANGUAGE="JavaScript">

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Original: Paul DeBrino -->
<!-- Web Site: http://infinity-rd.com -->
<!-- Begin
function CheckChoice(whichbox)
{
with (whichbox.form)
{
//Handle differently, depending on type of
input box.
if (whichbox.type == "radio")
{
//First, back out the prior radio
selection's price from the total:
hiddentotal.value = eval
//Then, save the current radio
selection's price:
(whichbox.price);
//Now, apply the current radio
selection's price to the total:
hiddentotal.value = eval
(hiddentotal.value) + eval(whichbox.price);
}
else
{
//If box was checked, accumulate the
checkbox value as the form total,
//Otherwise, reduce the form total by
the checkbox value:
if (whichbox.checked == false)
{ hiddentotal.value = eval
(hiddentotal.value) - eval(whichbox.value); }
else { hiddentotal.value = eval
(hiddentotal.value) + eval(whichbox.value); }
}

//Ensure the total never goes negative (some
browsers allow radiobutton to be deselected):
if (hiddentotal.value < 0)
{
InitForm();
}

//Now, return with formatted total:
return(formatCurrency(hiddentotal.value));
}
}

//Define function to format a value as currency:
function formatCurrency(num)
{
// Courtesy of http://www7.brinkster.com/cyanide7/
num = num.toString().replace(/\\$|\,/g,'');
if(isNaN(num))
num = "0";
sign = (num == (num = Math.abs(num)));
num = Math.floor(num*100+0.50000000001);
cents = num%100;
num = Math.floor(num/100).toString();
if(cents<10)
cents = "0" + cents;
for (var i = 0; i < Math.floor((num.length-(1+i))/3);
i++)
num = num.substring(0,num.length-(4*i+3))+','+
num.substring(num.length-(4*i+3));
return (((sign)?'':'-') + '\$' + num + '.' + cents);
}

This Bottom section formatCurrency is what I need to replace. Don't
need this to be currency, just a straight number.

Thanks!
Cory
• I created this script to multiply some fields together in a form. I m not a coder in any respect but got this to work with some help from various JavaScript
Message 2 of 11 , Feb 2, 2006
• 0 Attachment
I created this script to multiply some fields together in a form. I'm not a coder in any respect but got this to work with some help from various JavaScript recources!

Hope this helps, it's pretty simple to understand and I think it's all you need.

All the fields are type text.

<script language="JavaScript">
<!--
function update() {
var X = document.form.X_Size.value;
var Y = document.form.Y_Size.value;

document.form.Quantity.value = X * Y;

var Q = document.form.Quantity.value;
var P = document.form.P_Price.value;
document.form.Price.value = "£" + Q * P + ".00";

}
// -->
</script>

Cheers, Gareth.

Cory <technomage@...> wrote:
Okay, I used the script that Jonas provided (thanks Jonas!). It shows
that one of the boxes is not coming up as a number (surprise,
surprise). Then I went through the code that calculates the box. The
original author has the value converting to a currency. I need to
know how to make it NOT do that. (The form is not working in real
world currency. I do not need decimals or "\$".)

Here is the original code:

<SCRIPT LANGUAGE="JavaScript">

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Original: Paul DeBrino -->
<!-- Web Site: http://infinity-rd.com -->
<!-- Begin
function CheckChoice(whichbox)
{
with (whichbox.form)
{
//Handle differently, depending on type of
input box.
if (whichbox.type == "radio")
{
//First, back out the prior radio
selection's price from the total:
hiddentotal.value = eval
//Then, save the current radio
selection's price:
(whichbox.price);
//Now, apply the current radio
selection's price to the total:
hiddentotal.value = eval
(hiddentotal.value) + eval(whichbox.price);
}
else
{
//If box was checked, accumulate the
checkbox value as the form total,
//Otherwise, reduce the form total by
the checkbox value:
if (whichbox.checked == false)
{ hiddentotal.value = eval
(hiddentotal.value) - eval(whichbox.value); }
else { hiddentotal.value = eval
(hiddentotal.value) + eval(whichbox.value); }
}

//Ensure the total never goes negative (some
browsers allow radiobutton to be deselected):
if (hiddentotal.value < 0)
{
InitForm();
}

//Now, return with formatted total:
return(formatCurrency(hiddentotal.value));
}
}

//Define function to format a value as currency:
function formatCurrency(num)
{
// Courtesy of http://www7.brinkster.com/cyanide7/
num = num.toString().replace(/\\$|\,/g,'');
if(isNaN(num))
num = "0";
sign = (num == (num = Math.abs(num)));
num = Math.floor(num*100+0.50000000001);
cents = num%100;
num = Math.floor(num/100).toString();
if(cents<10)
cents = "0" + cents;
for (var i = 0; i < Math.floor((num.length-(1+i))/3);
i++)
num = num.substring(0,num.length-(4*i+3))+','+
num.substring(num.length-(4*i+3));
return (((sign)?'':'-') + '\$' + num + '.' + cents);
}

This Bottom section formatCurrency is what I need to replace. Don't
need this to be currency, just a straight number.

Thanks!
Cory

C programming language Computer programming languages Java programming language The c programming language C programming language Concept of programming language

---------------------------------

Visit your group "JavaScript_Official" on the web.

To unsubscribe from this group, send an email to:
JavaScript_Official-unsubscribe@yahoogroups.com

---------------------------------

[Non-text portions of this message have been removed]
• ... Input values are strings. You can t multiply strings, only numbers. This is how I usually perform the conversion (assuming the name of your form is
Message 3 of 11 , Feb 2, 2006
• 0 Attachment
> Date: Thu, 2 Feb 2006 22:26:07 +0000 (GMT)
> From: Gareth Smith <gareth_smith@...>
> Subject: Re: Help with adding 2 boxes together
>
> I created this script to multiply some fields together in a form. I'm not a coder in any respect but got this to work with some help from various JavaScript recources!
>
> Hope this helps, it's pretty simple to understand and I think it's all you need.
>
> All the fields are type text.
>
> <script language="JavaScript">
> <!--
> function update() {
> var X = document.form.X_Size.value;
> var Y = document.form.Y_Size.value;
>
> document.form.Quantity.value = X * Y;

Input values are strings. You can't multiply strings, only numbers.

This is how I usually perform the conversion (assuming the name of your
form is "form"):

var x = document.form.X_Size.value - 0;
var y = document.form.Y_Size.value - 0;

document.form.Quantity.value = x * y;

>
> var Q = document.form.Quantity.value;
> var P = document.form.P_Price.value;
> document.form.Price.value = "£" + Q * P + ".00";
>
> }
> // -->
> </script>
>
> Cheers, Gareth.
• ... ... Then just remove the call to formatCurrency(), by changing return(formatCurrency(hiddentotal.value)); to return(hiddentotal.value); After that,
Message 4 of 11 , Feb 2, 2006
• 0 Attachment
> Date: Thu, 02 Feb 2006 21:26:37 -0000
> From: "Cory" <technomage@...>
> Subject: Re: Help with adding 2 boxes together
>
> Okay, I used the script that Jonas provided (thanks Jonas!). It shows
> that one of the boxes is not coming up as a number (surprise,
> surprise). Then I went through the code that calculates the box. The
> original author has the value converting to a currency. I need to
> know how to make it NOT do that. (The form is not working in real
> world currency. I do not need decimals or "\$".)
>
> Here is the original code:
>

<snip/>

>
>
> //Now, return with formatted total:
> return(formatCurrency(hiddentotal.value));
> }
> }
>
> //Define function to format a value as currency:
> function formatCurrency(num)
> {
> // Courtesy of http://www7.brinkster.com/cyanide7/
> num = num.toString().replace(/\\$|\,/g,'');
> if(isNaN(num))
> num = "0";
> sign = (num == (num = Math.abs(num)));
> num = Math.floor(num*100+0.50000000001);
> cents = num%100;
> num = Math.floor(num/100).toString();
> if(cents<10)
> cents = "0" + cents;
> for (var i = 0; i < Math.floor((num.length-(1+i))/3);
> i++)
> num = num.substring(0,num.length-(4*i+3))+','+
> num.substring(num.length-(4*i+3));
> return (((sign)?'':'-') + '\$' + num + '.' + cents);
> }
>
> This Bottom section formatCurrency is what I need to replace. Don't
> need this to be currency, just a straight number.

Then just remove the call to formatCurrency(), by changing

return(formatCurrency(hiddentotal.value));

to

return(hiddentotal.value);

After that, you can get rid of formatCurrency() altogether unless you
need to use it elsewhere.

>
>
> Thanks!
> Cory
• That was the fix I needed. Now they are both returning numbers. Thanks! Cory ... shows ... The ... Don t ... you
Message 5 of 11 , Feb 3, 2006
• 0 Attachment
That was the fix I needed. Now they are both returning numbers.

Thanks!

Cory

--- In JavaScript_Official@yahoogroups.com, Jon Stephens <jon@...>
wrote:
>
>
>
>
> > Date: Thu, 02 Feb 2006 21:26:37 -0000
> > From: "Cory" <technomage@...>
> > Subject: Re: Help with adding 2 boxes together
> >
> > Okay, I used the script that Jonas provided (thanks Jonas!). It
shows
> > that one of the boxes is not coming up as a number (surprise,
> > surprise). Then I went through the code that calculates the box.
The
> > original author has the value converting to a currency. I need to
> > know how to make it NOT do that. (The form is not working in real
> > world currency. I do not need decimals or "\$".)
> >
> > Here is the original code:
> >
>
> <snip/>
>
> >
> >
> > //Now, return with formatted total:
> > return(formatCurrency(hiddentotal.value));
> > }
> > }
> >
> > //Define function to format a value as currency:
> > function formatCurrency(num)
> > {
> > // Courtesy of http://www7.brinkster.com/cyanide7/
> > num = num.toString().replace(/\\$|\,/g,'');
> > if(isNaN(num))
> > num = "0";
> > sign = (num == (num = Math.abs(num)));
> > num = Math.floor(num*100+0.50000000001);
> > cents = num%100;
> > num = Math.floor(num/100).toString();
> > if(cents<10)
> > cents = "0" + cents;
> > for (var i = 0; i < Math.floor((num.length-(1+i))/3);
> > i++)
> > num = num.substring(0,num.length-(4*i+3))+','+
> > num.substring(num.length-(4*i+3));
> > return (((sign)?'':'-') + '\$' + num + '.' + cents);
> > }
> >
> > This Bottom section formatCurrency is what I need to replace.
Don't
> > need this to be currency, just a straight number.
>
> Then just remove the call to formatCurrency(), by changing
>
> return(formatCurrency(hiddentotal.value));
>
> to
>
> return(hiddentotal.value);
>
> After that, you can get rid of formatCurrency() altogether unless
you
> need to use it elsewhere.
>
> >
> >
> > Thanks!
> > Cory
>
• Message 6 of 11 , Feb 7, 2006
• 0 Attachment
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0045)http://piratesoftheplains.ca/ZKK/zkk_home.htm -->
<HTML><HEAD><TITLE>Zeif Town Project Purchase</TITLE>
<SCRIPT language=JavaScript type="text/javascript">
/*
<!--
// Copyright information must stay intact
// FormCheck v1.10
// Creative Solutions for JavaScript navigation menus, scrollers and web
widgets
// Affordable Services in JavaScript consulting, customization and
trouble-shooting
// Visit NavSurf.com at http://navsurf.com

function formCheck(formobj){
// name of mandatory fields
var fieldRequired = Array("LastName", "FirstName", "CharacterName",
"RPGA#", "email");
// field description to appear in the dialog box
var fieldDescription = Array("Last Name", "First Name", "Character Name",
"RPGA#", "email");
// dialog message
var alertMsg = "Please complete the following fields:\n";

var l_Msg = alertMsg.length;

for (var i = 0; i < fieldRequired.length; i++){
var obj = formobj.elements[fieldRequired[i]];
if (obj){
if (obj.type == null){
var blnchecked = false;
for (var j = 0; j < obj.length; j++){
if (obj[j].checked){
blnchecked = true;
}
}
if (!blnchecked){
alertMsg += " - " + fieldDescription[i] + "\n";
}
continue;
}

switch(obj.type){
case "select-one":
if (obj.selectedIndex == -1 || obj.options[obj.selectedIndex].text ==
""){
alertMsg += " - " + fieldDescription[i] + "\n";
}
break;
case "select-multiple":
if (obj.selectedIndex == -1){
alertMsg += " - " + fieldDescription[i] + "\n";
}
break;
case "text":
case "textarea":
if (obj.value == "" || obj.value == null){
alertMsg += " - " + fieldDescription[i] + "\n";
}
break;
default:
}
}
}

if (alertMsg.length == l_Msg){
return true;
}else{
return false;
}
}
// -->

*/
</SCRIPT>

<SCRIPT language=JavaScript>
<!-- Original: Wayne Nolting (wayne@...) -->

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
function toForm() {
document.form.field1.focus();
// Replace field1 in the script with the field name of which you want to
place the focus.
}
// End -->
</SCRIPT>

<SCRIPT language=JavaScript>
function CheckChoice(whichbox){
with (whichbox.form){
//Handle differently, depending on type of input box.
if (whichbox.type == "radio"){
//First, back out the prior radio selection's price from the total:
hiddentotal.value = eval(hiddentotal.value) - eval(
//Then, save the current radio selection's price:
//Now, apply the current radio selection's price to the total:
hiddentotal.value = eval(hiddentotal.value) + eval(whichbox.price);
}else{
//If box was checked, accumulate the checkbox value as the form total,
//Otherwise, reduce the form total by the checkbox value:
if (whichbox.checked == false){
hiddentotal.value = eval(hiddentotal.value) - eval(whichbox.value);
}else{
hiddentotal.value = eval(hiddentotal.value) + eval(whichbox.value);
}
}
//Ensure the total never goes negative (some browsers allow radiobutton to
be deselected):
if (hiddentotal.value < 0){
InitForm();
}
//Now, return with formatted total:
return(hiddentotal.value);
}
}
//Define function to init the form on reload:
function InitForm(){
//Reset the displayed total on form:
document.myform.total.value='\$0';
document.myform.hiddentotal.value=0;
document.myform.total.value='\$0';
document.myform.hiddentotal.value=0;
//Set all checkboxes and radio buttons on form-1 to unchecked:
for (xx=0; xx < document.myform.elements.length; xx++) {
if (document.myform.elements[xx].type == 'checkbox' |
document.myform.elements[xx].checked = false;
}
}
//Set all checkboxes and radio buttons on form-2 to unchecked:
for (xx=0; xx < document.myform.elements.length; xx++){
if (document.myform.elements[xx].type == 'checkbox' |
document.myform.elements[xx].checked = false;
}
}
}
</SCRIPT>

<SCRIPT type="text/javascript">
/*
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Created by: www.jdstiles.com -->
<!-- Begin
function startCalc(){
interval = setInterval("calc()",1);
}
function calc(){
one = document.myform.firstBox.value;
two = document.myform.secondBox.value;
three = document.myform.thirdBox.value;
four = document.myform.fourthBox.value;
five = document.myform.fifthBox.value;
six = document.myform.sixthBox.value;
seven = document.myform.seventhBox.value;
eight = document.myform.eigthBox.value;
document.myform.ninthBox.value = (one * 1) + (two * 1) + (three * 1) +
(four *1) + (five * 1) + (six * 1) + (seven * 1) + (eight * 1);
}
function stopCalc(){
clearInterval(interval);
}
// End -->

*/</SCRIPT>

<SCRIPT type="text/javascript">
/*
<!--

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Created by: www.jdstiles.com -->
<!-- Begin
function startCalc2(){
interval = setInterval("calc2()",1);
}
function calc2(){
one = document.myform.total.value;
two = document.myform.ninthBox.value;
document.myform.grandTotal.value = (one * 1) + (two * 1);
}
function stopCalc2(){
clearInterval(interval);
}
// End -->

function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->

*/</SCRIPT>

<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1106" name=GENERATOR></HEAD>
<BODY text=#000000 background="Zeif Town Project
Purchase_files/sandstone2.jpg"
<FORM name=myform onsubmit="return formCheck(this);"
action=/cgi-bin/fmail.pl
method=post><INPUT type=hidden value=technomage@... name=recipient>
<INPUT
type=hidden value="Home Sweet Home" name=subject> <INPUT type=hidden
value="http://www.piratesoftheplains.ca/ZKK/thanks.htm" name=thankurl>
<P><FONT face="Arial, Helvetica, sans-serif">Welcome to the Zeif Town
Project
Form!</FONT></P>
<P><FONT face="Arial, Helvetica, sans-serif">Below you will find all you
need to
Build a home or a Business in your town. Once you submit the form your
Administrator will create the certificate of ownership. You will receive
this
form by email. We ask that you print this pdf in Full Color. You will then
have
to pay for it and expend and Time Units. Have your next Dungeon Master sign
off
on the Certificate and away you go! Please select from the
following:</FONT></P>
<P><FONT face="Arial, Helvetica, sans-serif">What are you planning to
build?</FONT></P>
<P><FONT face="Arial, Helvetica, sans-serif">HOME </FONT></P>
<P><FONT face="Arial, Helvetica, sans-serif"><A
</A></FONT></P>
<P><FONT face="Arial, Helvetica, sans-serif"><A
href="http://piratesoftheplains.ca/ZKK/zkk_other.htm">OTHER</A> </FONT></P>
<P><FONT face="Arial, Helvetica, sans-serif"><INPUT id=LastName
name=LastName>
Last Name <INPUT id=FirstName name=FirstName> First Name</FONT></P>
<P><FONT face="Arial, Helvetica, sans-serif"><INPUT id=CharacterName
name=CharacterName> Character Name (Full name. First and Last
<P><FONT face="Arial, Helvetica, sans-serif"><INPUT id=RPGA# name=RPGA#>
RPGA
#</FONT></P>
<P><FONT face="Arial, Helvetica, sans-serif"><INPUT id=email name=email>
email
email)</FONT></P>
<P><FONT face="Arial, Helvetica, sans-serif"><SELECT id=Town size=1
name=Town>
<OPTION selected></OPTION> <OPTION>Calgary</OPTION>
<OPTION>Edmonton</OPTION>
<OPTION>Medicine Hat</OPTION> <OPTION>Prince George</OPTION>
<OPTION>Vancouver</OPTION></SELECT> Town Project you are
joining</FONT></P>
<P><FONT face="Arial, Helvetica, sans-serif"><STRONG>All Above Information
is
required. </STRONG></FONT></P>
<HR>

<P><STRONG><FONT face="Arial, Helvetica,
sans-serif">Home:</FONT></STRONG></P>
<UL>
<LI><FONT face="Arial, Helvetica, sans-serif">A Kulube has a maximum of 2
rooms and 800gp (this cannot be exceeded)</FONT>
<LI><FONT face="Arial, Helvetica, sans-serif">A Kamara has 2-4 rooms and a

minimum value of 1500gp (you may go over this if you wish. You may not
select
"Fancy or "Luxury" Components)</FONT>
<LI><FONT face="Arial, Helvetica, sans-serif">A Ulu Kamara is a multiple
unit
home with a minimum value of 5000gp (again you may go over this if you
wish)</FONT>
<LI><FONT face="Arial, Helvetica, sans-serif">All homes MUST have a
Bedroom
Component</FONT>
<LI><FONT face="Arial, Helvetica, sans-serif">A Business Basic Unit is
1000gp
and includes A Common Area, Basic, Storage Basic and Office, Basic</FONT>
</LI></UL>
<TABLE cellSpacing=2 cellPadding=2 width="98%" border=0>
<TBODY>
<TR>
<TD width="3%" height=26><FONT face=Arial, size=2>
<INPUT id="Alchemical Laboratory, Basic"
onclick="this.myform.total.value=CheckChoice(this)" type=checkbox
value=700
name="Alchemical Laboratory, Basic"> </FONT></TD>
<TD width="25%"><FONT face="Arial, Helvetica, sans-serif">Alchemical
Laboratory, Basic</FONT></TD>
<TD width="14%"><FONT face="Arial, Helvetica, sans-serif">700
gp</FONT></TD>
<TD width="3%">
<DIV align=right><FONT face=Arial, size=2 ><INPUT
id="Magical Laboratory, Basic"
onclick=this.form.total.value=CheckChoice(this); type=checkbox
value=500
name="Magical Laboratory, Basic"> </FONT></DIV></TD>
<TD width="30%"><FONT face="Arial, Helvetica, sans-serif">Magical
Laboratory, Basic</FONT></TD>
<TD width="25%"><FONT face="Arial, Helvetica, sans-serif">500
gp</FONT></TD></TR>
<TR>
<TD><FONT face=Arial, size=2 ><INPUT
id="Alchemical Laboratory, Fancy "
onclick=this.form.total.value=CheckChoice(this); type=checkbox
value=3000
name="Alchemical Laboratory, Fancy "> </FONT></TD>
<TD width="25%"><FONT face="Arial, Helvetica, sans-serif">Alchemical
Laboratory, Fancy </FONT></TD>
<TD width="14%"><FONT face="Arial, Helvetica, sans-serif">3,000
gp</FONT></TD>
<TD>
<DIV align=right><FONT face=Arial, size=2 ><INPUT
id="Magical Laboratory, Fancy0"
onclick=this.form.total.value=CheckChoice(this); type=checkbox
value=3000
name="Magical Laboratory, Fancy0"> </FONT></DIV></TD>
<TD><FONT face="Arial, Helvetica, sans-serif">Magical Laboratory,
Fancy</FONT></TD>
<TD><FONT face="Arial, Helvetica, sans-serif">3,000 gp </FONT></TD></TR>
<TR>
<TD><FONT face=Arial, size=2 ><INPUT
id="Auditorium, Fancy" onclick=this.form.total.value=CheckChoice(this);

type=checkbox value=2000 name="Auditorium, Fancy"> </FONT></TD>
<TD width="25%"><FONT face="Arial, Helvetica, sans-serif">Auditorium,
Fancy</FONT></TD>
<TD width="14%"><FONT face="Arial, Helvetica, sans-serif">2,000
gp</FONT></TD>
<TD>
<DIV align=right><FONT face=Arial, size=2 ><INPUT
id="Servants' Quarters" onclick=this.form.total.value=CheckChoice(this);

type=checkbox value=400 name="Servants' Quarters"> </FONT></DIV></TD>
<TD><FONT face="Arial, Helvetica, sans-serif">Servants'
Quarters</FONT></TD>
<TD><FONT face="Arial, Helvetica, sans-serif">400 gp</FONT></TD></TR>
<TR>
<TD height=21><FONT face=Arial, size=2><INPUT
id="Bath, Basic" onclick= this.form.total.value=CheckChoice(this)
type=checkbox value=400 name="Bath, Basic"> </FONT></TD>
<TD width="25%"><FONT face="Arial, Helvetica, sans-serif">Bath,
Basic</FONT></TD>
<TD width="14%"><FONT face="Arial, Helvetica, sans-serif">400
gp</FONT></TD>
<TD>
<DIV align=right><FONT face=Arial, size=2 ><INPUT
id="Smithy, Fancy2" onclick="this.form.total.value=CheckChoice(this)"

type=checkbox value=2000 name="Smithy, Fancy2"> </FONT></DIV></TD>
<TD><FONT face="Arial, Helvetica, sans-serif">Smithy, Fancy</FONT></TD>
<TD><FONT face="Arial, Helvetica, sans-serif">2,000 gp</FONT></TD></TR>
<TR>
<TD><FONT face=Arial, size=2 ><INPUT id="Bath, Fancy"
onclick=this.form.total.value=CheckChoice(this); type=checkbox
value=2000
name="Bath, Fancy"> </FONT></TD>
<TD width="25%"><FONT face="Arial, Helvetica, sans-serif">Bath,
Fancy</FONT></TD>
<TD width="14%"><FONT face="Arial, Helvetica, sans-serif">2,000
gp</FONT></TD>
<TD>
<DIV align=right><FONT face=Arial, size=2 ><INPUT
id="Storage, Basic" onclick=this.form.total.value=CheckChoice(this);
type=checkbox value=200 name="Storage, Basic"> </FONT></DIV></TD>
<TD><FONT face="Arial, Helvetica, sans-serif">Storage, Basic</FONT></TD>
<TD><FONT face="Arial, Helvetica, sans-serif">200 gp</FONT></TD></TR>
<TR>
<TD><FONT face=Arial, size=2 ><INPUT
id="Bedroom Suite, Basic"
onclick=this.form.total.value=CheckChoice(this);

type=checkbox value=800 name="Bedroom Suite, Basic"> </FONT></TD>
<TD width="25%"><FONT face="Arial, Helvetica, sans-serif">Bedroom Suite,

Basic</FONT></TD>
<TD width="14%"><FONT face="Arial, Helvetica, sans-serif">800
gp</FONT></TD>
<TD>
<DIV align=right><FONT face=Arial, size=2 ><INPUT
id="Storage, Fancy" onclick=this.form.total.value=CheckChoice(this);
type=checkbox value=1000 name="Storage, Fancy"> </FONT></DIV></TD>
<TD><FONT face="Arial, Helvetica, sans-serif">Storage, Fancy</FONT></TD>
<TD><FONT face="Arial, Helvetica, sans-serif">1,000 gp</FONT></TD></TR>
<TR>
<TD><FONT face=Arial, size=2 ><INPUT
id="Bedroom Suite, Fancy"
onclick=this.form.total.value=CheckChoice(this);

type=checkbox value=5000 name="Bedroom Suite, Fancy"> </FONT></TD>
<TD width="25%"><FONT face="Arial, Helvetica, sans-serif">Bedroom Suite,

Fancy</FONT></TD>
<TD width="14%"><FONT face="Arial, Helvetica, sans-serif">5,000
gp</FONT></TD>
<TD>
<DIV align=right><FONT face=Arial, size=2 ><INPUT
id="Stables, Basic" onclick=this.form.total.value=CheckChoice(this);
type=checkbox value=1000 name="Stables, Basic"> </FONT></DIV></TD>
<TD><FONT face="Arial, Helvetica, sans-serif">Stables, Basic</FONT></TD>
<TD><FONT face="Arial, Helvetica, sans-serif">1,000 gp</FONT></TD></TR>
<TR>
<TD><FONT face=Arial, size=2 ><INPUT
id="Bedrooms, Basic" onclick=this.form.total.value=CheckChoice(this);
type=checkbox value=700 name="Bedrooms, Basic"> </FONT></TD>
<TD width="25%"><FONT face="Arial, Helvetica, sans-serif">Bedrooms,
Basic</FONT></TD>
<TD width="14%"><FONT face="Arial, Helvetica, sans-serif">700
gp</FONT></TD>
<TD>
<DIV align=right><FONT face=Arial, size=2 ><INPUT
id="Stables, Fancy" onclick=this.form.total.value=CheckChoice(this);
type=checkbox value=3000 name="Stables, Fancy"> </FONT></DIV></TD>
<TD><FONT face="Arial, Helvetica, sans-serif">Stables, Fancy</FONT></TD>
<TD><FONT face="Arial, Helvetica, sans-serif">3,000 gp</FONT></TD></TR>
<TR>
<TD><FONT face=Arial, size=2 ><INPUT
id="Bedrooms, Fancy" onclick=this.form.total.value=CheckChoice(this);
type=checkbox value=4000 name="Bedrooms, Fancy"> </FONT></TD>
<TD width="25%"><FONT face="Arial, Helvetica, sans-serif">Bedrooms,
Fancy</FONT></TD>
<TD width="14%"><FONT face="Arial, Helvetica, sans-serif">4,000
gp</FONT></TD>
<TD>
<DIV align=right><FONT face=Arial, size=2 ><INPUT
id="Study/Office, Basic" onclick=this.form.total.value=CheckChoice(this);

type=checkbox value=200 name="Study/Office, Basic"> </FONT></DIV></TD>
<TD><FONT face="Arial, Helvetica, sans-serif">Study/Office,
Basic</FONT></TD>
<TD><FONT face="Arial, Helvetica, sans-serif">200 gp</FONT></TD></TR>
<TR>
<TD><FONT face=Arial, size=2 ><INPUT
id="Chapel, Basic" onclick=this.form.total.value=CheckChoice(this);
type=checkbox value=1000 name="Chapel, Basic"> </FONT></TD>
<TD width="25%"><FONT face="Arial, Helvetica, sans-serif">Chapel,
Basic</FONT></TD>
<TD width="14%"><FONT face="Arial, Helvetica, sans-serif">1,000
gp</FONT></TD>
<TD>
<DIV align=right><FONT face=Arial, size=2 ><INPUT
id="Study/Office, Fancy" onclick=this.form.total.value=CheckChoice(this);

type=checkbox value=2500 name="Study/Office, Fancy">
</FONT></DIV></TD>
<TD><FONT face="Arial, Helvetica, sans-serif">Study/Office,
Fancy</FONT></TD>
<TD><FONT face="Arial, Helvetica, sans-serif">2,500 gp</FONT></TD></TR>
<TR>
<TD><FONT face=Arial, size=2 ><INPUT
id="Chapel, Fancy" onclick=this.form.total.value=CheckChoice(this);
type=checkbox value=6000 name="Chapel, Fancy"> </FONT></TD>
<TD width="25%"><FONT face="Arial, Helvetica, sans-serif">Chapel,
Fancy</FONT></TD>
<TD width="14%"><FONT face="Arial, Helvetica, sans-serif">6,000
gp</FONT></TD>
<TD>
<DIV align=right><FONT face=Arial, size=2 ><INPUT
id="Training Area9" onclick=this.form.total.value=CheckChoice(this);
type=checkbox value=1500 name="Training Area9"> </FONT></DIV></TD>
<TD><FONT face="Arial, Helvetica, sans-serif">Training Area</FONT></TD>
<TD><FONT face="Arial, Helvetica, sans-serif">1,500 gp</FONT></TD></TR>
<TR>
<TD><FONT face=Arial, size=2 ><INPUT
id="Chapel, Luxury" onclick=this.form.total.value=CheckChoice(this);
type=checkbox value=25000 name="Chapel, Luxury"> </FONT></TD>
<TD width="25%"><FONT face="Arial, Helvetica, sans-serif">Chapel,
Luxury</FONT></TD>
<TD width="14%"><FONT face="Arial, Helvetica, sans-serif">25,000
gp</FONT></TD>
<TD>
<DIV align=right><FONT face=Arial, size=2 ><INPUT
id="Trophy Hall, Basic" onclick=this.form.total.value=CheckChoice(this);

type=checkbox value=1000 name="Trophy Hall, Basic"> </FONT></DIV></TD>
<TD><FONT face="Arial, Helvetica, sans-serif">Trophy Hall,
Basic</FONT></TD>
<TD><FONT face="Arial, Helvetica, sans-serif">1,000 gp</FONT></TD></TR>
<TR>
<TD><FONT face=Arial, size=2 ><INPUT
id="Common Area, Basic" onclick=this.form.total.value=CheckChoice(this);

type=checkbox value=500 name="Common Area, Basic"> </FONT></TD>
<TD width="25%"><FONT face="Arial, Helvetica, sans-serif">Common Area,
Basic</FONT></TD>
<TD width="14%"><FONT face="Arial, Helvetica, sans-serif">500
gp</FONT></TD>
<TD>
<DIV align=right><FONT face=Arial, size=2 ><INPUT
id="Workplace, Basic" onclick=this.form.total.value=CheckChoice(this);

type=checkbox value=500 name="Workplace, Basic"> </FONT></DIV></TD>
<TD><FONT face="Arial, Helvetica, sans-serif">Workplace,
Basic</FONT></TD>
<TD><FONT face="Arial, Helvetica, sans-serif">500 gp</FONT></TD></TR>
<TR>
<TD><FONT face=Arial, size=2 ><INPUT
id="Common Area, Fancy" onclick=this.form.total.value=CheckChoice(this);

type=checkbox value=3000 name="Common Area, Fancy"> </FONT></TD>
<TD width="25%"><FONT face="Arial, Helvetica, sans-serif">Common Area,
Fancy</FONT></TD>
<TD width="14%"><FONT face="Arial, Helvetica, sans-serif">3,000
gp</FONT></TD>
<TD>
<DIV align=right><FONT face=Arial, size=2 ><INPUT
id="Workplace, Fancy" onclick=this.form.total.value=CheckChoice(this);

type=checkbox value=2000 name="Workplace, Fancy"> </FONT></DIV></TD>
<TD><FONT face="Arial, Helvetica, sans-serif">Workplace,
Fancy</FONT></TD>
<TD><FONT face="Arial, Helvetica, sans-serif">2,000 gp</FONT></TD></TR>
<TR>
<TD><FONT face=Arial, size=2 ><INPUT
id="Courtyard, Basic" onclick=this.form.total.value=CheckChoice(this);

type=checkbox value=500 name="Courtyard, Basic"> </FONT></TD>
<TD width="25%"><FONT face="Arial, Helvetica, sans-serif">Courtyard,
Basic</FONT></TD>
<TD width="14%"><FONT face="Arial, Helvetica, sans-serif">500
gp</FONT></TD>
<TD>
<DIV align=center><FONT face="Arial, Helvetica, sans-serif"><STRONG><A

onmouseover="MM_openBrWindow('message.htm','tips','resizable=yes,width=325,height=225')"

href="http://piratesoftheplains.ca/ZKK/zkk_home.htm#">?</A></STRONG>
</FONT></DIV></TD>
<TD><FONT face="Arial, Helvetica, sans-serif"><INPUT id="Option Name1"
name="Option Name1"> Extra Unit</FONT></TD>
<TD><FONT face=Arial, size=2 >  </FONT><FONT
face="Arial, Helvetica, sans-serif"><INPUT size=3 name=textfield> QTY
</FONT><FONT face=Arial, size=2 ><INPUT
onblur=stopCalc(); onfocus=startCalc(); size=6 name=firstBox>
</FONT><FONT
face="Arial, Helvetica, sans-serif">Total Cost </FONT></TD></TR>
<TR>
<TD><FONT face=Arial, size=2 ><INPUT
id="Courtyard, Fancy" onclick=this.form.total.value=CheckChoice(this);

type=checkbox value=3000 name="Courtyard, Fancy"> </FONT></TD>
<TD width="25%"><FONT face="Arial, Helvetica, sans-serif">Courtyard,
Fancy</FONT></TD>
<TD width="14%"><FONT face="Arial, Helvetica, sans-serif">3,000
gp</FONT></TD>
<TD>
<DIV align=right><FONT face="Arial, Helvetica, sans-serif">
</FONT></DIV></TD>
<TD><FONT face="Arial, Helvetica, sans-serif"><INPUT id="Option Name2"
name="Option Name2"> Extra Unit</FONT></TD>
<TD><FONT face=Arial, size=2 >  </FONT><FONT
face="Arial, Helvetica, sans-serif"><INPUT size=3 name=textfield2>
QTY</FONT><FONT face=Arial, size=2 > <INPUT
onblur=stopCalc(); onfocus=startCalc(); size=6 name=secondBox>
</FONT><FONT face="Arial, Helvetica, sans-serif">Total
Cost</FONT></TD></TR>
<TR>
<TD><FONT face=Arial, size=2 ><INPUT
id="Dining Hall, Basic" onclick=this.form.total.value=CheckChoice(this);

type=checkbox value=2000 name="Dining Hall, Basic"> </FONT></TD>
<TD width="25%"><FONT face="Arial, Helvetica, sans-serif">Dining Hall,
Basic</FONT></TD>
<TD width="14%"><FONT face="Arial, Helvetica, sans-serif">2,000
gp</FONT></TD>
<TD>
<DIV align=right><FONT face="Arial, Helvetica, sans-serif">
</FONT></DIV></TD>
<TD><FONT face="Arial, Helvetica, sans-serif"><INPUT id="Option Name3"
name="Option Name3"> Extra Unit</FONT></TD>
<TD><FONT face=Arial, size=2 >  </FONT><FONT
face="Arial, Helvetica, sans-serif"><INPUT size=3 name=textfield3>
QTY</FONT><FONT face=Arial, size=2 > <INPUT
onblur=stopCalc(); onfocus=startCalc(); size=6 name=thirdBox>
</FONT><FONT
face="Arial, Helvetica, sans-serif">Total Cost</FONT></TD></TR>
<TR>
<TD><FONT face=Arial, size=2 ><INPUT
id="Dining Hall, Fancy" onclick=this.form.total.value=CheckChoice(this);

type=checkbox value=12000 name="Dining Hall, Fancy"> </FONT></TD>
<TD width="25%"><FONT face="Arial, Helvetica, sans-serif">Dining Hall,
Fancy</FONT></TD>
<TD width="14%"><FONT face="Arial, Helvetica, sans-serif">12,000
gp</FONT></TD>
<TD>
<DIV align=right><FONT face="Arial, Helvetica, sans-serif">
</FONT></DIV></TD>
<TD><FONT face="Arial, Helvetica, sans-serif"><INPUT id="Option Name4"
name="Option Name4"> Extra Unit</FONT></TD>
<TD><FONT face=Arial, size=2 >  </FONT><FONT
face="Arial, Helvetica, sans-serif"><INPUT size=3 name=textfield4>
QTY</FONT><FONT face=Arial, size=2 > <INPUT
onblur=stopCalc(); onfocus=startCalc(); size=6 name=fourthBox>
</FONT><FONT face="Arial, Helvetica, sans-serif">Total
Cost</FONT></TD></TR>
<TR>
<TD height=24><FONT face=Arial, size=2 ><INPUT
id="Kitchen, Basic" onclick=this.form.total.value=CheckChoice(this);
type=checkbox value=2000 name="Kitchen, Basic"> </FONT></TD>
<TD width="25%"><FONT face="Arial, Helvetica, sans-serif">Kitchen,
Basic</FONT></TD>
<TD width="14%"><FONT face="Arial, Helvetica, sans-serif">2,000
gp</FONT></TD>
<TD>
<DIV align=right><FONT face="Arial, Helvetica, sans-serif">
</FONT></DIV></TD>
<TD><FONT face="Arial, Helvetica, sans-serif"><INPUT id="Option Name5"
name="Option Name5"> Extra Unit</FONT></TD>
<TD><FONT face=Arial, size=2 >  </FONT><FONT
face="Arial, Helvetica, sans-serif"><INPUT size=3 name=textfield5>
QTY</FONT><FONT face=Arial, size=2 > <INPUT
onblur=stopCalc(); onfocus=startCalc(); size=6 name=fifthBox>
</FONT><FONT
face="Arial, Helvetica, sans-serif">Total Cost</FONT></TD></TR>
<TR>
<TD><FONT face=Arial, size=2 ><INPUT
id="Kitchen, Fancy" onclick=this.form.total.value=CheckChoice(this);
type=checkbox value=12000 name="Kitchen, Fancy"> </FONT></TD>
<TD width="25%"><FONT face="Arial, Helvetica, sans-serif">Kitchen,
Fancy</FONT></TD>
<TD width="14%"><FONT face="Arial, Helvetica, sans-serif">12,000
gp</FONT></TD>
<TD>
<DIV align=right><FONT face="Arial, Helvetica, sans-serif">
</FONT></DIV></TD>
<TD><FONT face="Arial, Helvetica, sans-serif"><INPUT id="Option Name6"
name="Option Name6"> Extra Unit</FONT></TD>
<TD><FONT face=Arial, size=2 >  </FONT><FONT
face="Arial, Helvetica, sans-serif"><INPUT size=3 name=textfield6>
QTY</FONT><FONT face=Arial, size=2 > <INPUT
onblur=stopCalc(); onfocus=startCalc(); size=6 name=sixthBox>
</FONT><FONT
face="Arial, Helvetica, sans-serif">Total Cost</FONT></TD></TR>
<TR>
<TD><FONT face=Arial, size=2 ><INPUT
id="Library, Basic" onclick=this.form.total.value=CheckChoice(this);
type=checkbox value=500 name="Library, Basic"> </FONT></TD>
<TD width="25%"><FONT face="Arial, Helvetica, sans-serif">Library,
Basic</FONT></TD>
<TD width="14%"><FONT face="Arial, Helvetica, sans-serif">500
gp</FONT></TD>
<TD>
<DIV align=right><FONT face="Arial, Helvetica, sans-serif">
</FONT></DIV></TD>
<TD><FONT face="Arial, Helvetica, sans-serif"><INPUT id="Option Name7"
name="Option Name7"> Extra Unit</FONT></TD>
<TD><FONT face=Arial, size=2 >  </FONT><FONT
face="Arial, Helvetica, sans-serif"><INPUT size=3 name=textfield7>
QTY</FONT><FONT face=Arial, size=2 > <INPUT
onblur=stopCalc(); onfocus=startCalc(); size=6 name=seventhBox>
</FONT><FONT face="Arial, Helvetica, sans-serif">Total
Cost</FONT></TD></TR>
<TR>
<TD><FONT face=Arial, size=2 ><INPUT
id="Library, Fancy" onclick=this.form.total.value=CheckChoice(this);
type=checkbox value=3000 name="Library, Fancy"> </FONT></TD>
<TD width="25%"><FONT face="Arial, Helvetica, sans-serif">Library,
Fancy</FONT></TD>
<TD width="14%"><FONT face="Arial, Helvetica, sans-serif">3,000
gp</FONT></TD>
<TD>
<DIV align=right><FONT face="Arial, Helvetica, sans-serif"><STRONG><A

onmouseover="MM_openBrWindow('/ZKK/walls.htm','walls','resizable=yes,width=375,height=275')"

href="
http://piratesoftheplains.ca/ZKK/zkk_home.htm#">?</A></STRONG>
</FONT></DIV></TD>
<TD><FONT face="Arial, Helvetica, sans-serif"><SELECT id="Wall Type"
name="Wall Type"> <OPTION selected>Nothing Special</OPTION>
<OPTION>Masonary x1.5</OPTION> <OPTION>Limestone x2</OPTION>
<OPTION>Granite x5 (Ulu Karama Only)</OPTION></SELECT> Wall
Type</FONT></TD>
<TD><FONT face=Arial, size=2 >  </FONT><FONT
face="Arial, Helvetica, sans-serif"><INPUT size=3 name=textfield8>
QTY</FONT><FONT face=Arial, size=2 > <INPUT
onblur=stopCalc(); onfocus=startCalc(); size=6 name=eigthBox>
</FONT><FONT
face="Arial, Helvetica, sans-serif">Total
Cost</FONT></TD></TR></TBODY></TABLE>
<TABLE width="80%" border=1>
<TBODY>
<TR>
<TD width="24%"><STRONG><FONT face="Arial, Helvetica, sans-serif">Table
9:
Extras</FONT></STRONG></TD>
<TD width="15%"><STRONG><FONT
face="Arial, Helvetica, sans-serif">Price</FONT></STRONG></TD>
<TD width="61%"><STRONG><FONT
face="Arial, Helvetica,
sans-serif">Prerequisite</FONT></STRONG></TD></TR>
<TR borderColor=#000000>
<TD><FONT face="Arial, Helvetica, sans-serif">Up to 10ft up (2 stories)
</FONT></TD>
<TD><FONT face="Arial, Helvetica, sans-serif">None</FONT></TD>
<TD><FONT face="Arial, Helvetica, sans-serif"> </FONT></TD></TR>
<TR borderColor=#000000 bgColor=#cccccc>
<TD><FONT face="Arial, Helvetica, sans-serif">20 feet up (3 stories)
</FONT></TD>
<TD><FONT face="Arial, Helvetica, sans-serif">400gp per
space</FONT></TD>
<TD><FONT face="Arial, Helvetica, sans-serif">First 2 stories must be
stone or better</FONT></TD></TR>
<TR borderColor=#000000>
<TD><FONT face="Arial, Helvetica, sans-serif">30 feet up (4th story)
</FONT></TD>
<TD><FONT face="Arial, Helvetica, sans-serif">1000 gp per
space</FONT></TD>
<TD><FONT face="Arial, Helvetica, sans-serif">First 3 stories must be
stone or better, must have Triad approval or given on an
AR</FONT></TD></TR>
<TR borderColor=#000000 bgColor=#cccccc>
<TD><FONT face="Arial, Helvetica, sans-serif">40 feet up (5th
story)</FONT></TD>
<TD><FONT face="Arial, Helvetica, sans-serif">2000 gp per
space</FONT></TD>
<TD><FONT face="Arial, Helvetica, sans-serif">First 4 stories must be
stone or better, must have Triad approval or given on an
AR</FONT></TD></TR>
<TR borderColor=#000000>
<TD><FONT face="Arial, Helvetica, sans-serif">Door, Simple
Wooden</FONT></TD>
<TD><FONT face="Arial, Helvetica, sans-serif">10 gp</FONT></TD>
<TD><FONT face="Arial, Helvetica, sans-serif">All buildings have this
type
of door</FONT></TD></TR>
<TR borderColor=#000000 bgColor=#cccccc>
<TD><FONT face="Arial, Helvetica, sans-serif">Door, Good
Wooden</FONT></TD>
<TD><FONT face="Arial, Helvetica, sans-serif">20 gp</FONT></TD>
<TD><FONT face="Arial, Helvetica, sans-serif">Ulu Kamara, Any
<TR borderColor=#000000>
<TD><FONT face="Arial, Helvetica, sans-serif">Door, Strong
Wooden</FONT></TD>
<TD><FONT face="Arial, Helvetica, sans-serif">40 gp</FONT></TD>
<TD><FONT face="Arial, Helvetica, sans-serif">Ulu Kamara, Medium
<TR borderColor=#000000 bgColor=#cccccc>
<TD><FONT face="Arial, Helvetica, sans-serif">Door, Stone</FONT></TD>
<TD><FONT face="Arial, Helvetica, sans-serif">300 gp</FONT></TD>
<TD><FONT face="Arial, Helvetica, sans-serif">Ulu Kamara, masonry or
better construction</FONT></TD></TR>
<TR borderColor=#000000>
<TD><FONT face="Arial, Helvetica, sans-serif">Door, Iron</FONT></TD>
<TD><FONT face="Arial, Helvetica, sans-serif">500 gp</FONT></TD>
<TD><FONT face="Arial, Helvetica, sans-serif">Ulu Kamara, masonry or
better construction</FONT></TD></TR>
<TR borderColor=#000000 bgColor=#cccccc>
<TD><FONT face="Arial, Helvetica, sans-serif">Door, Secret (Search DC
20)
</FONT></TD>
<TD><FONT face="Arial, Helvetica, sans-serif">+100 gp</FONT></TD>
<TD><FONT face="Arial, Helvetica, sans-serif">Must have a business in
the
town that can make traps. Add cost to base door price</FONT></TD></TR>
<TR borderColor=#000000>
<TD><FONT face="Arial, Helvetica, sans-serif">Door, Secret (Search DC
25)</FONT></TD>
<TD><FONT face="Arial, Helvetica, sans-serif">+150 gp</FONT></TD>
<TD><FONT face="Arial, Helvetica, sans-serif"><BR>Must have a business
in
the town that can make traps. Add cost to base door
price</FONT></TD></TR>
<TR borderColor=#000000 bgColor=#cccccc>
<TD><FONT face="Arial, Helvetica, sans-serif">Door, Secret (Search DC
30)</FONT></TD>
<TD><FONT face="Arial, Helvetica, sans-serif">+200 gp</FONT></TD>
<TD><FONT face="Arial, Helvetica, sans-serif"><BR>Must have a business
in
the town that can make traps. Add cost to base door
price</FONT></TD></TR>
<TR borderColor=#000000>
<TD><FONT face="Arial, Helvetica, sans-serif">Door, Secret (Search DC
35)</FONT></TD>
<TD><FONT face="Arial, Helvetica, sans-serif">+300gp</FONT></TD>
<TD><FONT face="Arial, Helvetica, sans-serif"><BR>Must have a business
in
the town that can make traps. Add cost to base door
price</FONT></TD></TR>
<TR borderColor=#000000 bgColor=#cccccc>
<TD><FONT face="Arial, Helvetica, sans-serif">Window, Shutters,
Simple</FONT></TD>
<TD><FONT face="Arial, Helvetica, sans-serif">5 gp </FONT></TD>
<TD><FONT face="Arial, Helvetica, sans-serif"> </FONT></TD></TR>
<TR borderColor=#000000>
<TD><FONT face="Arial, Helvetica, sans-serif">Window, Shutters, Good
</FONT></TD>
<TD><FONT face="Arial, Helvetica, sans-serif">15 gp</FONT></TD>
<TD><FONT face="Arial, Helvetica, sans-serif"> </FONT></TD></TR>
<TR borderColor=#000000 bgColor=#cccccc>
<TD><FONT face="Arial, Helvetica, sans-serif">Windows, Iron
Bars</FONT></TD>
<TD><FONT face="Arial, Helvetica, sans-serif">60 gp</FONT></TD>
<TD><FONT face="Arial, Helvetica, sans-serif">Ulu Kamara, Large
<TR borderColor=#000000>
<TD><FONT face="Arial, Helvetica, sans-serif">Windows, Glass</FONT></TD>
<TD><FONT face="Arial, Helvetica, sans-serif">10 gp</FONT></TD>
<TD><FONT face="Arial, Helvetica, sans-serif">Ulu Kamara, Medium
<TR borderColor=#000000 bgColor=#cccccc>
<TD><FONT face="Arial, Helvetica, sans-serif">Windows, Arrow Slit
</FONT></TD>
<TD><FONT face="Arial, Helvetica, sans-serif">30 gp</FONT></TD>
<TD><FONT face="Arial, Helvetica, sans-serif">Stone walls
only</FONT></TD></TR>
<TR borderColor=#000000>
<TD><FONT face="Arial, Helvetica, sans-serif">Windows, Stained glass
Fancy</FONT></TD>
<TD><FONT face="Arial, Helvetica, sans-serif">600 gp</FONT></TD>
<TD><FONT face="Arial, Helvetica, sans-serif">Ulu Kamara or Kilise or
Büyük kilise</FONT></TD></TR>
<TR borderColor=#000000 bgColor=#cccccc>
<TD><FONT face="Arial, Helvetica, sans-serif">Windows, Stained glass
Deluxe</FONT></TD>
<TD><FONT face="Arial, Helvetica, sans-serif">3000 gp</FONT></TD>
<TD><FONT face="Arial, Helvetica, sans-serif">Ulu Kamara or Büyük
kilise</FONT></TD></TR>
<TR borderColor=#000000>
<TD><FONT face="Arial, Helvetica, sans-serif">Lock, Very
Simple</FONT></TD>
<TD><FONT face="Arial, Helvetica, sans-serif">20 gp</FONT></TD>
<TD><FONT face="Arial, Helvetica, sans-serif">All Exterior doors have
this
type of lock</FONT></TD></TR>
<TR borderColor=#000000 bgColor=#cccccc>
<TD><FONT face="Arial, Helvetica, sans-serif">Lock, Average</FONT></TD>
<TD><FONT face="Arial, Helvetica, sans-serif">40 gp</FONT></TD>
<TD><FONT face="Arial, Helvetica, sans-serif"> </FONT></TD></TR>
<TR borderColor=#000000>
<TD><FONT face="Arial, Helvetica, sans-serif">Lock, Good</FONT></TD>
<TD><FONT face="Arial, Helvetica, sans-serif">80 gp</FONT></TD>
<TD><FONT face="Arial, Helvetica, sans-serif"> </FONT></TD></TR>
<TR borderColor=#000000 bgColor=#cccccc>
<TD><FONT face="Arial, Helvetica, sans-serif">Lock, Amazing</FONT></TD>
<TD><FONT face="Arial, Helvetica, sans-serif">150 gp</FONT></TD>
<TD><FONT
face="Arial, Helvetica, sans-serif"> </FONT></TD></TR></TBODY></TABLE>
face="Monotype Corsiva, Comic Sans MS, Arial">If you have received any
favors or
discounts add them here. Include your AR#s)</FONT>: </FONT></P>
</FONT></P>
<P><FONT face=Arial, size=2 ><BR><INPUT type=hidden value=0
name=hiddentotal> <INPUT type=hidden value=0 name=hiddenpriorradio> <FONT
size=+1>Your total is: (Components) </FONT><FONT face=Arial, size=2
sans-serif
Helvetica,><FONT size=+1>
name=total> </FONT></FONT><FONT size=+1>+ (Options)
</FONT><FONT face=Arial, size=2 ></FONT><FONT face=Arial,
size=2 ><FONT size=+1><INPUT
name=ninthBox>
</FONT></FONT><FONT face=Arial size=2></FONT><FONT
face="Monotype Corsiva, Comic Sans MS, Arial" size=3>(this does not include
any
discounts you may have received)</FONT></FONT><FONT face=Arial, size=2
sans-serif Helvetica,> <STRONG><FONT size=+1>= <INPUT onblur=stopCalc2();
onfocus=startCalc2(); readOnly name=grandTotal> </FONT></STRONG><FONT
face="Monotype Corsiva, Comic Sans MS, Arial">(click to see your
total)</FONT><BR>(Note: Total can not be changed by the visitor.)
</FONT></P>
<P><FONT face=Arial, size=2><INPUT type=submit value="Submit this to the
ZKKA" name=Submit> <INPUT id=Reset type=reset value="Reset Entire Form"
name=Reset>
</FONT></P></FORM></TD></FORM>
<P>
<CENTER><FONT face="Arial, Helvetica, sans-serif" size?-2?>Free JavaScripts
provided<BR>by <A href="http://javascriptsource.com/">The JavaScript
Source</A></FONT> </CENTER>
<P></P></BODY></HTML>

On 2/3/06, Cory <technomage@...> wrote:
>
> That was the fix I needed. Now they are both returning numbers.
>
> Thanks!
>
> Cory
>
>
> --- In JavaScript_Official@yahoogroups.com, Jon Stephens <jon@...>
> wrote:
> >
> >
> >
> >
> > > Date: Thu, 02 Feb 2006 21:26:37 -0000
> > > From: "Cory" <technomage@...>
> > > Subject: Re: Help with adding 2 boxes together
> > >
> > > Okay, I used the script that Jonas provided (thanks Jonas!). It
> shows
> > > that one of the boxes is not coming up as a number (surprise,
> > > surprise). Then I went through the code that calculates the box.
> The
> > > original author has the value converting to a currency. I need to
> > > know how to make it NOT do that. (The form is not working in real
> > > world currency. I do not need decimals or "\$".)
> > >
> > > Here is the original code:
> > >
> >
> > <snip/>
> >
> > >
> > >
> > > //Now, return with formatted total:
> > > return(formatCurrency(hiddentotal.value));
> > > }
> > > }
> > >
> > > //Define function to format a value as currency:
> > > function formatCurrency(num)
> > > {
> > > // Courtesy of http://www7.brinkster.com/cyanide7/
> > > num = num.toString().replace(/\\$|\,/g,'');
> > > if(isNaN(num))
> > > num = "0";
> > > sign = (num == (num = Math.abs(num)));
> > > num = Math.floor(num*100+0.50000000001);
> > > cents = num%100;
> > > num = Math.floor(num/100).toString();
> > > if(cents<10)
> > > cents = "0" + cents;
> > > for (var i = 0; i < Math.floor((num.length-(1+i))/3);
> > > i++)
> > > num = num.substring(0,num.length-(4*i+3))+','+
> > > num.substring(num.length-(4*i+3));
> > > return (((sign)?'':'-') + '\$' + num + '.' + cents);
> > > }
> > >
> > > This Bottom section formatCurrency is what I need to replace.
> Don't
> > > need this to be currency, just a straight number.
> >
> > Then just remove the call to formatCurrency(), by changing
> >
> > return(formatCurrency(hiddentotal.value));
> >
> > to
> >
> > return(hiddentotal.value);
> >
> > After that, you can get rid of formatCurrency() altogether unless
> you
> > need to use it elsewhere.
> >
> > >
> > >
> > > Thanks!
> > > Cory
> >
>
>
>
>
>
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
>

[Non-text portions of this message have been removed]
Your message has been successfully submitted and would be delivered to recipients shortly.