 |
OFFICIAL
KRAMER FOR MAYOR MERCHANDISE
To
order, use form below
The
Official Kramer for Mayor T-Shirt:
- Sizes
M, XL, and XXL
- Ash
Colored
- <FONT color="#000000">Limited
Edition
- Personally
signed by the candidate
- Fabulous
collector's item!
ONLY
$23.60 (includes shipping and handling, sent US Second Day priority mail
| |
The
Official Kramer for Mayor Button:
- Three-inch
button
- Signed
by the candidate
TWO
FOR $5.00
| |
The
Official Kramer for Mayor Bumper Sticker:
- Full
Color
- Signed
by the candidate
TWO
FOR $3.00
| |
|
<TR>
<a NAME="orderForm"></a><!-- Begining of Form --><form
action="https://secure.authorize.net/gateway/transact.dll" method="post"
name="form1" onsubmit="makex_Description()"><script
language="JavaScript">
<!--
var SalesTaxRate = 0.0825 //Set to sales tax rate in decimal. e.g.
0.0775 is 7.75%
var TaxableState = "NY" //Set to name of state you charge
sales tax in
function createArray(size) {
for (var i=0; i < size; i++) {
this[i] = null
}
this.length = size;
return this
}
function Product(descrip, money) {
this.x_description = descrip;
this.price = money;
}
var names = new Object();
var items = new Object();
items[1] = new Product("sticker",1.00);
names[1] = ("sticker");
items[2] = new Product("coffeemug", 5.00);
names[2] = ("coffee mug");
items[3] = new Product("tshirt",10.00);
names[3] = ("t-shirt");
items[4] = new Product("depechemodeCD",20.00);
names[4] = ("Depeche Mode CD");
items[5] = new Product("watch",35.00);
names[5] = ("watch");
items[6] = new Product("portcdplayer",50.35);
names[6] = ("portable cd player");
items[7] = new Product("doctor martens", 100.00);
names[7] = ("1 pair of 10 eye doctor martens");
items[8] = new Product("recordplayer", 225.70);
names[8] = ("DJ quality turntable");
items[9] = new Product("mini", 5000.00);
names[9] = ("austin mini");
// ***** NO NEED TO CHANGE ANY CODE AFTER THIS COMMENT ***
function SetLengths() {
var k=1;
while(items[k] != null) k++;
items.length = k;
}
SetLengths();
function writeTableRow(i) {
document.write('<tr><td><input type=hidden name="'
+ items[i].x_description
+ '" value="checked">' + names[i]
+ ' - $' + fix(items[i].price) + ' </td>'
+ '<td><input type="text" name="quantity' + i
+ '" Size="3" value="0" onChange="update('
+ i + ')"></td>'
+ '<td valign=bottom><input type="text" value="0.00"
name="price' + i + '" '
+ 'size=12 maxlength=12 onFocus="document.form1.price' + i + '.blur()">'
+ '</td></tr>');
}
function writeTable() {
document.write('<table cellspacing=8 cellpadding=0 border=0>'
+ '<tr><td><B>items</B></TD><TD><B>quantity</B></TD><td><b>amount</B></td></TR>');
for (i=1; i<items.length; i++)
writeTableRow(i);
document.write('<tr><TD></TD><td align=right>SUBTOTAL:
</td><td><input type="text" '
+ 'name="SUBTOTAL" size=12 maxlength=12 value="0.00"></td></tr>');
document.write('<tr><TD></TD><td align=right>SHIPPING:
</td><td><input type="text" '
+ 'name="SHIPPING" size=12 maxlength=12 value="0.00"></td></tr>');
document.write('<tr><TD></TD><td align=right><input
type="checkbox" name="ADDTAX" value="true"
onClick="update(1)">' + TaxableState + ' SALES TAX: ('
+ SalesTaxRate*100 +'%)</td><td><input type="text"
'
+ 'name="TAX" size=12 maxlength=12 value="0.00"></td></tr>');
document.write('<tr><TD></TD><td align=right>GRAND
TOTAL: </td><td><input type="text" '
+ 'name="x_AMOUNT" size=12 maxlength=12 value="0.00"
onFocus="document.form1.x_AMOUNT.blur()"></td></tr></table>');
}
function update(num) {
eval('quant = document.form1.quantity' + num + '.value;');
if (eval('document.form1.' + items[num].x_description + '.value')
== 'checked')
cost = fix(items[num].price * quant);
else
cost = fix(0);
eval('document.form1.price' + num + '.value = cost;');
var total = 0;
var SUBTOTAL = 0;
var SHIPPING = 0;
var tax = 0;
var grand_total = 0;
for (i=1; i<items.length; i++)
eval('total += parseFloat(document.form1.price' + i + '.value);');
document.form1.SUBTOTAL.value = fix(total);
if( document.form1.ADDTAX.checked)
tax = total * SalesTaxRate;
if (total <= 99.00) {
SHIPPING = 3.00;
}
else if ((total >=100.00) & (total <=199.00))
{
SHIPPING = 5.00;
}
else if (total >=200.00 ) {
SHIPPING = 10.00;
}
document.form1.SHIPPING.value = fix(SHIPPING);
document.form1.TAX.value = fix(tax);
grand_total = total + tax + SHIPPING;
document.form1.x_AMOUNT.value = fix(grand_total);
}
function fix(num) {
string = "" + num;
if (string.indexOf('.') == -1)
return string + '.00';
seperation = string.length - string.indexOf('.');
if (seperation > 3)
return string.substring(0,string.length-seperation+3);
else if (seperation == 2)
return string + '0';
return string;
}
function makex_Description() {
x_descriptionHolder = "";
for( i = 1; i < items.length; i++ ) {
if ( eval( 'document.form1.price' + i + '.value') != '0.00' ) {
eval('quant = document.form1.quantity' + i + '.value;');
x_descriptionHolder += quant;
x_descriptionHolder += ( '-' + items[i].x_description + '<br>\n'
);
}
}
if ( document.form1.ADDTAX.checked)
x_descriptionHolder += SalesTaxRate*100 + '% ' + TaxableState
+ ' sales tax<br>\n';
document.form1.x_DESCRIPTION.value = x_descriptionHolder;
}
// -->
</script>
<center>
<p><b><font face="Arial,Helvetica,Geneva"><font
size=+1>pre secure online order form
</font></font></b></center>
<p>
<TABLE cellspacing=8 cellpadding=0 border=0>
<TR><TD><B>items</B></TD><TD><B>quantity</B></TD><TD><B>amount</B></TD></TR>
<TR><TD><INPUT type=hidden name="tshirt" value="checked">T-shirt
- $23.60ÊÊÊÊÊ</TD><TD><INPUT
type="text" name="quantity1" Size="3" value="0"
onChange="update(1)"></TD><TD valign=bottom><INPUT
type="text" value="0.00" name="price1" size=12
maxlength=12 onFocus="document.form1.price1.blur()"></TD></TR>
<TR><TD><INPUT type=hidden name="button" value="checked">Two
Buttons - $5.00ÊÊÊÊÊ</TD><TD><INPUT
type="text" name="quantity2" Size="3" value="0"
onChange="update(2)"></TD><TD valign=bottom><INPUT
type="text" value="0.00" name="price2" size=12
maxlength=12 onFocus="document.form1.price2.blur()"></TD></TR>
<TR><TD><INPUT type=hidden name="tshirt" value="checked">Two
Bumper Stickers- $3.00ÊÊÊÊÊ</TD><TD><INPUT
type="text" name="quantity3" Size="3" value="0"
onChange="update(3)"></TD><TD valign=bottom><INPUT
type="text" value="0.00" name="price3" size=12
maxlength=12 onFocus="document.form1.price3.blur()"></TD></TR>
<TR><TD></TD><TD align=right>SUBTOTAL: </TD><TD><INPUT
type="text" name="SUBTOTAL" size=12 maxlength=12 value="0.00"></TD></TR><TR><TD></TD><TD
align=right>SHIPPING: </TD><TD><INPUT type="text"
name="SHIPPING" size=12 maxlength=12 value="0.00"></TD></TR><TR><TD></TD><TD
align=right><INPUT type="checkbox" name="ADDTAX"
value="true" onClick="update(1)">NY SALES TAX: (8.25%)</TD><TD><INPUT
type="text" name="TAX" size=12 maxlength=12 value="0.00"></TD></TR><TR><TD></TD><TD
align=right>GRAND TOTAL: </TD><TD><INPUT type="text"
name="x_AMOUNT" size=12 maxlength=12 value="0.00" onFocus="document.form1.x_AMOUNT.blur()"></TD></TR></TABLE><BR><TABLE
cellspacing=0 cellpadding=5>
<INPUT type="hidden" name="x_Show_Form" value="PAYMENT_FORM"><INPUT
type="hidden" name="x_Version" value="3.0"><INPUT
type="hidden" name="x_TEST_REQUEST" value="false"><INPUT
type="hidden" name="x_DESCRIPTION"><INPUT type="hidden"
name="x_Cust_ID" value="Online Purchase"><INPUT
type="hidden" name="x_Receipt_Link_Method" value="link"><INPUT
type="hidden" name="x_Receipt_Link_Text" value="Click
Here to Continue">
</TABLE>
<CENTER>
<IMG SRC="calculate.jpg"ALT="calculate" BORDER=1
height=21 width=82>
</CENTER>
<BR>Ê
<BR>Ê
<CENTER>
<INPUT type="HIDDEN" name="x_LOGIN" value="kennyk">
<P><INPUT type="submit" name="submit" value="Click
for Secure Payment Form"><BR><INPUT type="reset"
value="Clear Form"></CENTER>
<P></FORM>
<BR>Ê
<P>
</TR>
|