/*
  Client Email Assembler.  Copyright Joe McCormack.  All Rights Reserved.  http://www.geocities.com/code_stratos/
  Obtain permission before using this script.
*/
function assemble() {
var content = "";
/* Gather Data */
sendto = form.SendTo.value;
subj = form.Subject.value;
name = form.CustomerName.value;
phone = form.CustomerPhone.value;
email = form.CustomerEmail.value;
addr = form.CustomerAddress.value;
p1 = form.aProductID.value;
pq1 = form.aQuantityDesired.value;
p2 = form.bProductID.value;
pq2 = form.bQuantityDesired.value;
p3 = form.cProductID.value;
pq3 = form.cQuantityDesired.value;
p4 = form.dProductID.value;
pq4 = form.dQuantityDesired.value;
p5 = form.eProductID.value;
pq5 = form.eQuantityDesired.value;
p6 = form.fProductID.value;
pq6 = form.fQuantityDesired.value;
p7 = form.gProductID.value;
pq7 = form.gQuantityDesired.value;
p8 = form.hProductID.value;
pq8 = form.hQuantityDesired.value;
p9 = form.iProductID.value;
pq9 = form.iQuantityDesired.value;
comm = form.Comments.value;
/* Present In User Email Client */
content = "Customer Name: " + name + "\n%0A%0DCustomer Phone: " + phone + "\n%0A%0DCustomer Email: " + email + "\n%0A%0DCustomer Address: " + addr + "\n%0A%0D\n%0A%0D" + "Product(s) Inquiring About:\n%0A%0D" + "Product 1: " + p1 + " -- " + "Quantity: " + pq1 + "\n%0A%0D" + "Product 2: " + p2 + " -- " + "Quantity: " + pq2 + "\n%0A%0D" + "Product 3: " + p3 + " -- " + "Quantity: " + pq3 + "\n%0A%0D" + "Product 4: " + p4 + " -- " + "Quantity: " + pq4 + "\n%0A%0D" + "Product 5: " + p5 + " -- " + "Quantity: " + pq5 + "\n%0A%0D" + "Product 6: " + p6 + " -- " + "Quantity: " + pq6 + "\n%0A%0D" + "Product 7: " + p7 + " -- " + "Quantity: " + pq7 + "\n%0A%0D" + "Product 8: " + p8 + " -- " + "Quantity: " + pq8 + "\n%0A%0D" + "Product 9: " + p9 + " -- " + "Quantity: " + pq9 + "\n%0A%0D\n%0A%0D" + "Customer Comments:\n%0A%0D" + comm + " ";
window.location = "mailto:"+sendto+"?subject="+subj+"&body="+content+"";
}