function OrderForm() {
  who = document.order.name.value
  street = document.order.street.value
  city = document.order.city.value
  province = document.order.province.value
  postal = document.order.postal.value
  country = document.order.country.value
  options = "toolbar=0,status=0,menubar=1,resizable=1,scrollbars=1";
  newwindow = window.open("", "newwindow", options);
  newwindow.document.write('<link rel="stylesheet" type="text/css" href="sewing2.css">');
  newwindow.document.write("<body bgcolor=\"#ffffff\" text=\"#000000\" link=\"#ff0000\" vlink=\"#ff0000\" background=\"background.gif\"  marginheight=0 marginwidth=5 topmargin=0 rightmargin=5 leftmargin=5>");
  newwindow.document.write('<center><font size=5>Lingerie Secrets: Canadian Order Form</font><br><small>Print this form & mail it to the address below.</small>');
  newwindow.document.write('</center>');
  newwindow.document.write('<table cellpadding=10><tr><td valign=top><b>Order for:</b></td>');
  newwindow.document.write("\n<td>" + who + "<br>" + street + "<br>" + city + ", " + province + "<br>" + postal + "<br>" + country + "<br>Phone: (____) ____-_______</td></tr>\n");
  newwindow.document.write('<tr><td valign=top><b>Payment:</b></td><td><form><input type="radio" name="pay"> Cheque<br><input type="radio" name="pay"> Money Order<br><input type="radio" name="pay"> Visa <br> &nbsp; &nbsp; #______________ Exp. Date: __/__<br> &nbsp; &nbsp; Visa Authorizing Signature<big>___________________</big><br><input type="radio" name="pay"> Mastercard <br> &nbsp; &nbsp; #______________ Exp. Date: __/__<br> &nbsp; &nbsp; Mastercard Authorizing Signature<big>___________________</big></td></tr>');
  newwindow.document.write('<tr><td valign=top><b>Mail to:</b></td><td>Excellence in Sewing<br>Box 23003<br>Winnipeg, Manitoba R3T 5S3<br>CANADA<br><b>OR</b> call: 204-453-2462 to order</td></tr></table>');
  newwindow.document.write('<hr><table cellpadding=5 cellspacing=0 border=1><tr><td><b>TYPE</b></td><td><b>TITLE</b></td><td><b>NUMBER</b></td><td><b>TOTAL PRICE</b></td></tr>');
  total = 0
//  number = document.order.lingeriesecrets.value
//  price = number * 30
//  if (price > 0) {
//    newwindow.document.write('<tr><td>Book</td><td>Lingerie Secrets</td><td>'+number+'</td><td> $'+price+'</td></tr>');
//    total = total + price
//  }

  number = document.order.lingeriesecretsbook.value
  price = number * 10
  if (price > 0) {
    newwindow.document.write('<tr><td>Book</td><td>Lingerie Secrets Book</td><td>'+number+'</td><td> $'+price+'</td></tr>');
    total = total + price
  }

  number = document.order.dressform.value
  price = number * 10
  if (price > 0) {
    newwindow.document.write('<tr><td>Book</td><td>The Dress Form Book</td><td>'+number+'</td><td> $'+price+'</td></tr>');
    total = total + price
  }

  number = document.order.elastic1.value
  price = number * 5
  if (price > 0) {
    newwindow.document.write('<tr><td>Elastic</td><td>2 four yard bundles of 1" width</td><td>'+number+'</td><td> $'+price+'</td></tr>');
    total = total + price
  }

  number = document.order.elastic2.value
  price = number * 5
  if (price > 0) {
    newwindow.document.write('<tr><td>Elastic</td><td>2 four yard bundles of 3/4" width</td><td>'+number+'</td><td> $'+price+'</td></tr>');
    total = total + price
  }

  number = document.order.elastic3.value
  price = number * 3
  if (price > 0) {
    newwindow.document.write('<tr><td>Elastic</td><td>2 four yard bundles of 3/8" width</td><td>'+number+'</td><td> $'+price+'</td></tr>');
    total = total + price
  }

//  number = document.order.elastic4.value
//  price = number * 8
//  if (price > 0) {
//    newwindow.document.write('<tr><td>Elastic</td><td>2 four yard bundles of 3/4" width - Plush Back Elastic</td><td>'+number+'</td><td> $'+price+'</td></tr>');
//    total = total + price
//  }

  number = document.order.hook1.value
  price = number * 2
  if (price > 0) {
    newwindow.document.write('<tr><td>Hook and Eyelet Tape</td><td>BLACK</td><td>'+number+'</td><td> $'+price+'</td></tr>');
    total = total + price
  }

  number = document.order.hook2.value
  price = number * 2
  if (price > 0) {
    newwindow.document.write('<tr><td>Hook and Eyelet Tape</td><td>WHITE</td><td>'+number+'</td><td> $'+price+'</td></tr>');
    total = total + price
  }

  number = document.order.perfectpockets.value
  price = number * 10
  if (price > 0) {
    newwindow.document.write('<tr><td>Book</td><td>Perfect Pockets Book</td><td>'+number+'</td><td> $'+price+'</td></tr>');
    total = total + price
  }

  number = document.order.pantiesvideo.value
  price = number * 18
  if (price > 0) {
    newwindow.document.write('<tr><td>DVD</td><td>"Lingerie Secrets": Panties</td><td>'+number+'</td><td> $'+price+'</td></tr>');
    total = total + price
  }

  number = document.order.camisolesvideo.value
  price = number * 18
  if (price > 0) {
    newwindow.document.write('<tr><td>DVD</td><td>"Lingerie Secrets": Camisoles & Nighties</td><td>'+number+'</td><td> $'+price+'</td></tr>');
    total = total + price
  }

  number = document.order.classicpantie.value
  price = number * 12
  if (price > 0) {
    newwindow.document.write('<tr><td>Pattern</td><td>Classic Pantie</td><td>'+number+'</td><td> $'+price+'</td></tr>');
    total = total + price
  }

  number = document.order.highcutpantie.value
  price = number * 12
  if (price > 0) {
    newwindow.document.write('<tr><td>Pattern</td><td>High Cut Pantie</td><td>'+number+'</td><td> $'+price+'</td></tr>');
    total = total + price
  }

  number = document.order.smoothiepantie.value
  price = number * 12
  if (price > 0) {
    newwindow.document.write('<tr><td>Pattern</td><td>The Smoothie Pantie</td><td>'+number+'</td><td> $'+price+'</td></tr>');
    total = total + price
  }

  number = document.order.lowrisepantie.value
  price = number * 12
  if (price > 0) {
    newwindow.document.write('<tr><td>Pattern</td><td>Low Rise Pantie</td><td>'+number+'</td><td> $'+price+'</td></tr>');
    total = total + price
  }

  number = document.order.thongpantie.value
  price = number * 12
  if (price > 0) {
    newwindow.document.write('<tr><td>Pattern</td><td>Thong Pantie</td><td>'+number+'</td><td> $'+price+'</td></tr>');
    total = total + price
  }

  number = document.order.tappantie.value
  price = number * 12
  if (price > 0) {
    newwindow.document.write('<tr><td>Pattern</td><td>Tap Pantie</td><td>'+number+'</td><td> $'+price+'</td></tr>');
    total = total + price
  }

  number = document.order.boxer.value
  price = number * 12
  if (price > 0) {
    newwindow.document.write('<tr><td>Pattern</td><td>The Boxer</td><td>'+number+'</td><td> $'+price+'</td></tr>');
    total = total + price
  }

  number = document.order.baggybum.value
  price = number * 12
  if (price > 0) {
    newwindow.document.write('<tr><td>Pattern</td><td>The Baggy Bum Boxer</td><td>'+number+'</td><td> $'+price+'</td></tr>');
    total = total + price
  }

  number = document.order.camisolenightieknits.value
  price = number * 12
  if (price > 0) {
    newwindow.document.write('<tr><td>Pattern</td><td>Camisole & Nightie for Knits</td><td>'+number+'</td><td> $'+price+'</td></tr>');
    total = total + price
  }

  number = document.order.pjgown.value
  price = number * 12
  if (price > 0) {
    newwindow.document.write('<tr><td>Pattern</td><td>Ladies PJ Gown</td><td>'+number+'</td><td> $'+price+'</td></tr>');
    total = total + price
  }

  number = document.order.camisolenightiewoven.value
  price = number * 12
  if (price > 0) {
    newwindow.document.write('<tr><td>Pattern</td><td>Camisole & Nightie for Woven Fabric</td><td>'+number+'</td><td> $'+price+'</td></tr>');
    total = total + price
  }

  number = document.order.nightshirt.value
  price = number * 12
  if (price > 0) {
    newwindow.document.write('<tr><td>Pattern</td><td>Night Shirt</td><td>'+number+'</td><td> $'+price+'</td></tr>');
    total = total + price
  }

  number = document.order.sixpanel.value
  price = number * 12
  if (price > 0) {
    newwindow.document.write('<tr><td>Pattern</td><td>6 Panel Slip with godets</td><td>'+number+'</td><td> $'+price+'</td></tr>');
    total = total + price
  }

  number = document.order.wrap.value
  price = number * 12
  if (price > 0) {
    newwindow.document.write('<tr><td>Pattern</td><td>The Wrap</td><td>'+number+'</td><td> $'+price+'</td></tr>');
    total = total + price
  }

  number = document.order.ladiespetitpants.value
  price = number * 12
  if (price > 0) {
    newwindow.document.write('<tr><td>Pattern</td><td>The Ladies Petite Pant</td><td>'+number+'</td><td> $'+price+'</td></tr>');
    total = total + price
  }

  number = document.order.boxerchildren.value
  price = number * 12
  if (price > 0) {
    newwindow.document.write('<tr><td>Pattern</td><td>Boxer for Children</td><td>'+number+'</td><td> $'+price+'</td></tr>');
    total = total + price
  }

  number = document.order.pantiegirls.value
  price = number * 12
  if (price > 0) {
    newwindow.document.write('<tr><td>Pattern</td><td>Pantie for Girls</td><td>'+number+'</td><td> $'+price+'</td></tr>');
    total = total + price
  }

  number = document.order.kimono.value
  price = number * 12
  if (price > 0) {
    newwindow.document.write('<tr><td>Pattern</td><td>The Kimono</td><td>'+number+'</td><td> $'+price+'</td></tr>');
    total = total + price
  }

  number = document.order.shortielegging.value
  price = number * 12
  if (price > 0) {
    newwindow.document.write('<tr><td>Pattern</td><td>Shortie Legging</td><td>'+number+'</td><td> $'+price+'</td></tr>');
    total = total + price
  }

  number = document.order.brief.value
  price = number * 12
  if (price > 0) {
    newwindow.document.write('<tr><td>Pattern</td><td>The Brief</td><td>'+number+'</td><td> $'+price+'</td></tr>');
    total = total + price
  }

  number = document.order.sportbra.value
  price = number * 12
  if (price > 0) {
    newwindow.document.write('<tr><td>Pattern</td><td>"T" Sport Bra</td><td>'+number+'</td><td> $'+price+'</td></tr>');
    total = total + price
  }

  number = document.order.crossover.value
  price = number * 12
  if (price > 0) {
    newwindow.document.write('<tr><td>Pattern</td><td>Crossover Sport Bra</td><td>'+number+'</td><td> $'+price+'</td></tr>');
    total = total + price
  }

  number = document.order.frontclosing.value
  price = number * 12
  if (price > 0) {
    newwindow.document.write('<tr><td>Pattern</td><td>Front Closing Sport Bra</td><td>'+number+'</td><td> $'+price+'</td></tr>');
    total = total + price
  }

  number = document.order.shelfbra.value
  price = number * 12
  if (price > 0) {
    newwindow.document.write('<tr><td>Pattern</td><td>Shelf Bra Camisole</td><td>'+number+'</td><td> $'+price+'</td></tr>');
    total = total + price
  }

  number = document.order.longundies.value
  price = number * 12
  if (price > 0) {
    newwindow.document.write('<tr><td>Pattern</td><td>Long Undies</td><td>'+number+'</td><td> $'+price+'</td></tr>');
    total = total + price
  }

  number = document.order.undiestop.value
  price = number * 12
  if (price > 0) {
    newwindow.document.write('<tr><td>Pattern</td><td>Undies Top...& more</td><td>'+number+'</td><td> $'+price+'</td></tr>');
    total = total + price
  }

  number = document.order.pjyoga.value
  price = number * 12
  if (price > 0) {
    newwindow.document.write('<tr><td>Pattern</td><td>Ladies PJ/Yoga Pant</td><td>'+number+'</td><td> $'+price+'</td></tr>');
    total = total + price
  }

  number = document.order.nicenightie.value
  price = number * 12
  if (price > 0) {
    newwindow.document.write('<tr><td>Pattern</td><td>The Nice Nightie</td><td>'+number+'</td><td> $'+price+'</td></tr>');
    total = total + price
  }

  number = document.order.empirecamisole.value
  price = number * 12
  if (price > 0) {
    newwindow.document.write('<tr><td>Pattern</td><td>Empire Camisole & Nightie</td><td>'+number+'</td><td> $'+price+'</td></tr>');
    total = total + price
  }

  number = document.order.mensboxer.value
  price = number * 12
  if (price > 0) {
    newwindow.document.write('<tr><td>Pattern</td><td>Mens Boxer Brief</td><td>'+number+'</td><td> $'+price+'</td></tr>');
    total = total + price
  }

  newwindow.document.write('<tr><td colspan=3 align=right><b>SubTotal:</b></td><td> $'+total+'</td></tr>');
  if (total > 0 & total < 31)
   { sh = 6 }
  else
   { sh=0 }
  if (total > 30 & total < 61) { sh = 8 }
  if (total > 60 & total < 91) { sh = 11 }
  if (total > 90 & total < 110) { sh = 13 }
  if (total > 110) { sh = 0 }
  total = total + sh
  newwindow.document.write('<tr><td colspan=3 align=right><b>Shipping & Handling:</b></td><td> $'+sh+'</td></tr>');
  newwindow.document.write('<tr><td colspan=3 align=right><b>TOTAL:</b></td><td> $'+total+'</td></tr>');


  newwindow.document.write('</table>');
  newwindow.document.write('');
  newwindow.document.write('<p><center><a href="" onClick="window.close()">Click to close this window</a></center>');
  newwindow.document.close();
}





function Calculate() {
  total = 0
//  number = document.order.lingeriesecrets.value
//  price = number * 30
//  if (price > 0) {
//    document.order.lingeriesecrets_price.value = '$'+price
//    total = total + price
//  }
//  else {
//    document.order.lingeriesecrets_price.value = ''
//  }

  number = document.order.lingeriesecretsbook.value
  price = number * 10
  if (price > 0) {
    document.order.lingeriesecretsbook_price.value = '$'+price
    total = total + price
  }
  else {
    document.order.lingeriesecretsbook_price.value = ''
  }

  number = document.order.dressform.value
  price = number * 10
  if (price > 0) {
    document.order.dressform_price.value = '$'+price
    total = total + price
  }
  else {
    document.order.dressform_price.value = ''
  }

  number = document.order.perfectpockets.value
  price = number * 10
  if (price > 0) {
    document.order.perfectpockets_price.value = '$'+price
    total = total + price
  }
  else {
    document.order.perfectpockets_price.value = ''
  }

  number = document.order.pantiesvideo.value
  price = number * 18
  if (price > 0) {
    document.order.pantiesvideo_price.value = '$'+price
    total = total + price
  }
  else {
    document.order.pantiesvideo_price.value = ''
  }

  number = document.order.camisolesvideo.value
  price = number * 18
  if (price > 0) {
    document.order.camisolesvideo_price.value = '$'+price
    total = total + price
  }
  else {
    document.order.camisolesvideo_price.value = ''
  }

  number = document.order.elastic1.value
  price = number * 5
  if (price > 0) {
    document.order.elastic1_price.value = '$'+price
    total = total + price
  }
  else {
    document.order.elastic1_price.value = ''
  }

  number = document.order.elastic2.value
  price = number * 5
  if (price > 0) {
    document.order.elastic2_price.value = '$'+price
    total = total + price
  }
  else {
    document.order.elastic2_price.value = ''
  }

  number = document.order.elastic3.value
  price = number * 3
  if (price > 0) {
    document.order.elastic3_price.value = '$'+price
    total = total + price
  }
  else {
    document.order.elastic3_price.value = ''
  }

//  number = document.order.elastic4.value
//  price = number * 8
//  if (price > 0) {
//    document.order.elastic4_price.value = '$'+price
//    total = total + price
//  }
//  else {
//    document.order.elastic4_price.value = ''
//  }

  number = document.order.hook1.value
  price = number * 2
  if (price > 0) {
    document.order.hook1_price.value = '$'+price
    total = total + price
  }
  else {
    document.order.hook1_price.value = ''
  }

  number = document.order.hook2.value
  price = number * 2
  if (price > 0) {
    document.order.hook2_price.value = '$'+price
    total = total + price
  }
  else {
    document.order.hook2_price.value = ''
  }

  number = document.order.classicpantie.value
  price = number * 12
  if (price > 0) {
    document.order.classicpantie_price.value = '$'+price
    total = total + price
  }
  else {
    document.order.classicpantie_price.value = ''
  }

  number = document.order.highcutpantie.value
  price = number * 12
  if (price > 0) {
    document.order.highcutpantie_price.value = '$'+price
    total = total + price
  }
  else {
    document.order.highcutpantie_price.value = ''
  }

  number = document.order.smoothiepantie.value
  price = number * 12
  if (price > 0) {
    document.order.smoothiepantie_price.value = '$'+price
    total = total + price
  }
  else {
    document.order.smoothiepantie_price.value = ''
  }

  number = document.order.lowrisepantie.value
  price = number * 12
  if (price > 0) {
    document.order.lowrisepantie_price.value = '$'+price
    total = total + price
  }
  else {
    document.order.lowrisepantie_price.value = ''
  }

  number = document.order.thongpantie.value
  price = number * 12
  if (price > 0) {
    document.order.thongpantie_price.value = '$'+price
    total = total + price
  }
  else {
    document.order.thongpantie_price.value = ''
  }

  number = document.order.tappantie.value
  price = number * 12
  if (price > 0) {
    document.order.tappantie_price.value = '$'+price
    total = total + price
  }
  else {
    document.order.tappantie_price.value = ''
  }

  number = document.order.boxer.value
  price = number * 12
  if (price > 0) {
    document.order.boxer_price.value = '$'+price
    total = total + price
  }
  else {
    document.order.boxer_price.value = ''
  }

  number = document.order.baggybum.value
  price = number * 12
  if (price > 0) {
    document.order.baggybum_price.value = '$'+price
    total = total + price
  }
  else {
    document.order.baggybum_price.value = ''
  }

  number = document.order.camisolenightieknits.value
  price = number * 12
  if (price > 0) {
    document.order.camisolenightieknits_price.value = '$'+price
    total = total + price
  }
  else {
    document.order.camisolenightieknits_price.value = ''
  }

  number = document.order.camisolenightiewoven.value
  price = number * 12
  if (price > 0) {
    document.order.camisolenightiewoven_price.value = '$'+price
    total = total + price
  }
  else {
    document.order.camisolenightiewoven_price.value = ''
  }

  number = document.order.pjgown.value
  price = number * 12
  if (price > 0) {
    document.order.pjgown_price.value = '$'+price
    total = total + price
  }
  else {
    document.order.pjgown_price.value = ''
  }

  number = document.order.nightshirt.value
  price = number * 12
  if (price > 0) {
    document.order.nightshirt_price.value = '$'+price
    total = total + price
  }
  else {
    document.order.nightshirt_price.value = ''
  }

  number = document.order.sixpanel.value
  price = number * 12
  if (price > 0) {
    document.order.sixpanel_price.value = '$'+price
    total = total + price
  }
  else {
    document.order.sixpanel_price.value = ''
  }

  number = document.order.wrap.value
  price = number * 12
  if (price > 0) {
    document.order.wrap_price.value = '$'+price
    total = total + price
  }
  else {
    document.order.wrap_price.value = ''
  }

  number = document.order.ladiespetitpants.value
  price = number * 12
  if (price > 0) {
    document.order.ladiespetitpants_price.value = '$'+price
    total = total + price
  }
  else {
    document.order.ladiespetitpants_price.value = ''
  }

  number = document.order.boxerchildren.value
  price = number * 12
  if (price > 0) {
    document.order.boxerchildren_price.value = '$'+price
    total = total + price
  }
  else {
    document.order.boxerchildren_price.value = ''
  }

  number = document.order.pantiegirls.value
  price = number * 12
  if (price > 0) {
    document.order.pantiegirls_price.value = '$'+price
    total = total + price
  }
  else {
    document.order.pantiegirls_price.value = ''
  }

  number = document.order.kimono.value
  price = number * 12
  if (price > 0) {
    document.order.kimono_price.value = '$'+price
    total = total + price
  }
  else {
    document.order.kimono_price.value = ''
  }

  number = document.order.shortielegging.value
  price = number * 12
  if (price > 0) {
    document.order.shortielegging_price.value = '$'+price
    total = total + price
  }
  else {
    document.order.shortielegging_price.value = ''
  }

  number = document.order.brief.value
  price = number * 12
  if (price > 0) {
    document.order.brief_price.value = '$'+price
    total = total + price
  }
  else {
    document.order.brief_price.value = ''
  }

  number = document.order.sportbra.value
  price = number * 12
  if (price > 0) {
    document.order.sportbra_price.value = '$'+price
    total = total + price
  }
  else {
    document.order.sportbra_price.value = ''
  }

  number = document.order.crossover.value
  price = number * 12
  if (price > 0) {
    document.order.crossover_price.value = '$'+price
    total = total + price
  }
  else {
    document.order.crossover_price.value = ''
  }

  number = document.order.frontclosing.value
  price = number * 12
  if (price > 0) {
    document.order.frontclosing_price.value = '$'+price
    total = total + price
  }
  else {
    document.order.frontclosing_price.value = ''
  }

  number = document.order.shelfbra.value
  price = number * 12
  if (price > 0) {
    document.order.shelfbra_price.value = '$'+price
    total = total + price
  }
  else {
    document.order.shelfbra_price.value = ''
  }

  number = document.order.longundies.value
  price = number * 12
  if (price > 0) {
    document.order.longundies_price.value = '$'+price
    total = total + price
  }
  else {
    document.order.longundies_price.value = ''
  }

  number = document.order.undiestop.value
  price = number * 12
  if (price > 0) {
    document.order.undiestop_price.value = '$'+price
    total = total + price
  }
  else {
    document.order.undiestop_price.value = ''
  }

  number = document.order.pjyoga.value
  price = number * 12
  if (price > 0) {
    document.order.pjyoga_price.value = '$'+price
    total = total + price
  }
  else {
    document.order.pjyoga_price.value = ''
  }

  number = document.order.nicenightie.value
  price = number * 12
  if (price > 0) {
    document.order.nicenightie_price.value = '$'+price
    total = total + price
  }
  else {
    document.order.nicenightie_price.value = ''
  }

  number = document.order.empirecamisole.value
  price = number * 12
  if (price > 0) {
    document.order.empirecamisole_price.value = '$'+price
    total = total + price
  }
  else {
    document.order.empirecamisole_price.value = ''
  }

  number = document.order.mensboxer.value
  price = number * 12
  if (price > 0) {
    document.order.mensboxer_price.value = '$'+price
    total = total + price
  }
  else {
    document.order.mensboxer_price.value = ''
  }

  document.order.subtotal.value = '$'+total
  if (total > 0 & total < 31)
   { sh = 6 }
  else
   { sh=0 }
  if (total > 30 & total < 61) { sh = 8 }
  if (total > 60 & total < 91) { sh = 11 }
  if (total > 90 & total < 110) { sh = 13 }
  if (total > 110) { sh = 0 }
  document.order.sh.value = '$'+sh
  total = total + sh
  document.order.total_price.value = '$'+total
}

