function prepareAndSend(form)
{
//if ((form.email.value == "" || form.email.value.indexOf ('@',0)==-1))
//{
// alert ("Please enter a valid email address.");
//         return;
//     }  

//      if (form.smessage1.value == ""){

//         alert ("Please enter your name.");

//         return; 

 //    }
var stext="\n\n";
stext = stext+"............................................................"+"\n";
stext = stext+"                          SOLD TO:                          "+"\n";
stext = stext+"............................................................"+"\n\n";

stext = stext+"Company Name:"		+"\t\t\t"  +document.pensafe_form.p1_Company_Name.value+"\n";
stext = stext+"Address:"		+"\t\t\t"  +document.pensafe_form.p1_Address.value+"\n";
stext = stext+"City:"			+"\t\t\t\t"+document.pensafe_form.p1_City.value+"\n";
stext = stext+"Province or State:"	+"\t\t"    +document.pensafe_form.p1_Province.value+"\n";
stext = stext+"Country:"		+"\t\t\t"  +document.pensafe_form.p1_Country.value+"\n";
stext = stext+"Postal Code or ZIP Code:"+"\t"      +document.pensafe_form.p1_Postal.value+"\n";
stext = stext+"Contact Name:"		+"\t\t\t"  +document.pensafe_form.p1_Name.value+"\n";
stext = stext+"Contact Phone:"		+"\t\t\t"  +document.pensafe_form.p1_Phone.value+"\n";
stext = stext+"Contact Email:"		+"\t\t\t"  +document.pensafe_form.p1_Email.value+"\n";
stext = stext+"Contact Fax:"		+"\t\t\t"  +document.pensafe_form.p1_Fax.value+"\n";
stext = stext+"PO Number:"		+"\t\t\t"  +document.pensafe_form.p1_Number.value+"\n";

stext = stext+"\n"+"............................................................"+"\n\n\n";

stext = stext+"............................................................"+"\n";
stext = stext+"                          SHIP TO:                          "+"\n";
stext = stext+"............................................................"+"\n\n";

stext = stext+"Company Name:"		+"\t\t\t"  +document.pensafe_form.p2_Company_Name.value+"\n";
stext = stext+"Address:"		+"\t\t\t"  +document.pensafe_form.p2_Address.value+"\n";
stext = stext+"City:"			+"\t\t\t\t"+document.pensafe_form.p2_City.value+"\n";
stext = stext+"Province or State:"	+"\t\t"    +document.pensafe_form.p2_Province.value+"\n";
stext = stext+"Country:"		+"\t\t\t"  +document.pensafe_form.p2_Country.value+"\n";
stext = stext+"Postal Code or ZIP Code:"+"\t"      +document.pensafe_form.p2_Postal.value+"\n";
stext = stext+"Contact Name:"		+"\t\t\t"  +document.pensafe_form.p2_Name.value+"\n";
stext = stext+"Contact Phone:"		+"\t\t\t"  +document.pensafe_form.p2_Phone.value+"\n";
stext = stext+"Contact Email:"		+"\t\t\t"  +document.pensafe_form.p2_Email.value+"\n";
stext = stext+"Contact Fax:"		+"\t\t\t"  +document.pensafe_form.p2_Fax.value+"\n";

stext = stext+"\n"+"............................................................"+"\n\n\n";


stext = stext+"............................................................"+"\n";
stext = stext+"               BROKER INFORMATION:                          "+"\n";
stext = stext+"............................................................"+"\n\n";

stext = stext+"Company Name:"		+"\t\t\t"  +document.pensafe_form.Broker_Information_Company_Name.value+"\n";
stext = stext+"Address:"		+"\t\t\t"  +document.pensafe_form.Broker_Information_Address.value+"\n";
stext = stext+"City:"			+"\t\t\t\t"+document.pensafe_form.Broker_Information_City.value+"\n";
stext = stext+"Province or State:"	+"\t\t"    +document.pensafe_form.Broker_Information_Province.value+"\n";
stext = stext+"Country:"		+"\t\t\t"  +document.pensafe_form.Broker_Information_Country.value+"\n";
stext = stext+"Postal Code or ZIP Code:"+"\t"      +document.pensafe_form.Broker_Information_Postal.value+"\n";
stext = stext+"Contact Name:"		+"\t\t\t"  +document.pensafe_form.Broker_Information_Name.value+"\n";
stext = stext+"Contact Phone:"		+"\t\t\t"  +document.pensafe_form.Broker_Information_Phone.value+"\n";
stext = stext+"Contact Email:"		+"\t\t\t"  +document.pensafe_form.Broker_Information_Email.value+"\n";
stext = stext+"Contact Fax:"		+"\t\t\t"  +document.pensafe_form.Broker_Information_Fax.value+"\n";

stext = stext+"\n"+"............................................................"+"\n\n\n";



stext = stext+"............................................................"+"\n";
stext = stext+"                          ORDER:                          "+"\n";
stext = stext+"............................................................"+"\n\n";

stext = stext+" 1:"+"\t"+document.pensafe_form.P11.value +"\t" +document.pensafe_form.P12.value  +"\t"+"\n";
stext = stext+" 2:"+"\t"+document.pensafe_form.P21.value +"\t" +document.pensafe_form.P22.value  +"\t"+"\n";
stext = stext+" 3:"+"\t"+document.pensafe_form.P31.value +"\t" +document.pensafe_form.P32.value  +"\t"+"\n";
stext = stext+" 4:"+"\t"+document.pensafe_form.P41.value +"\t" +document.pensafe_form.P42.value  +"\t"+"\n";
stext = stext+" 5:"+"\t"+document.pensafe_form.P51.value +"\t" +document.pensafe_form.P52.value  +"\t"+"\n";
stext = stext+" 6:"+"\t"+document.pensafe_form.P61.value +"\t" +document.pensafe_form.P62.value  +"\t"+"\n";
stext = stext+" 7:"+"\t"+document.pensafe_form.P71.value +"\t" +document.pensafe_form.P72.value  +"\t"+"\n";
stext = stext+" 8:"+"\t"+document.pensafe_form.P81.value +"\t" +document.pensafe_form.P82.value  +"\t"+"\n";
stext = stext+" 9:"+"\t"+document.pensafe_form.P91.value +"\t" +document.pensafe_form.P92.value  +"\t"+"\n";
stext = stext+"10:"+"\t"+document.pensafe_form.P01.value+"\t"  +document.pensafe_form.P02.value  +"\t"+"\n";
stext = stext+".................................."+"\n\n\n";


stext = stext+"Federal Tax ID Number (US Only):"	+"\t\t\t"  +document.pensafe_form.Tax_ID.value+"\n";

stext = stext+"Vendors Permit Number (Canada Only):"	+"\t\t\t"  +document.pensafe_form.VPN.value+"\n";
stext = stext+"VAT Number (Overseas Only):"		+"\t\t\t"  +document.pensafe_form.VAT.value+"\n";

stext = stext+"Delivery Date:"				+"\t\t\t"  +document.pensafe_form.Delivery_Date.value+"\n";
if (document.pensafe_form.Delivery_via1[0].checked)
{
document.pensafe_form.Delivery_via.value="Ground";}
if (document.pensafe_form.Delivery_via1[1].checked)
{
document.pensafe_form.Delivery_via.value="Air";}
if (document.pensafe_form.Delivery_via1[2].checked)
{
document.pensafe_form.Delivery_via.value="Ocean";}
stext = stext+"Delivery via:"			+"\t\t\t"  +document.pensafe_form.Delivery_via.value+"\n";

stext = stext+"Customer Carrier/Courier:"	+"\t\t\t"  +document.pensafe_form.Courier.value+"\n";
stext = stext+"Customer Carrier/Courier Account Number:"	+"\t\t\t"  +document.pensafe_form.Account_Number.value+"\n";


document.pensafe_form.p_message.value=stext;
document.pensafe_form.p_email.value=document.pensafe_form.p1_Email.value;
//alert(stext);
document.pensafe_form.submit();

} 