info='';
oSent=parent.header.eval("oSent");
oMax=parent.header.eval("oMax");
oColours=parent.header.eval("oColours");
oNum=parent.header.eval("oNum");
mCurrentrate=parent.header.eval("mCurrentrate");
dCurrentsymbol=parent.header.eval("dCurrentsymbol");
mPnp=parent.header.eval("mPnp");
pName=parent.header.eval("userInfo.name");
pAd1=parent.header.eval("userInfo.ad1");
pAd2=parent.header.eval("userInfo.ad2");
pAd3=parent.header.eval("userInfo.ad3");
pPostcode=parent.header.eval("userInfo.postcode");
pRequired=" ";
pRequired=parent.header.eval("userInfo.required");
// if ((pRequired=="Date required") || (pRequired=="undefined")) { pRequired=" "; }
detailsError=false;
if (pName=="") {pName='<font color="red">You have not entered you name in My Details.</font>'; detailsError=true; }
if (pAd1=="Postal Address") {pAd1='<font color="red">You have not entered you address in My Details.</font>'; detailsError=true; }
if (detailsError) {pAd3='<a href="personal.htm"><img src="mydetails.gif" alt="My Details" border="0"></a>'; 
pAd2='<font color="red">Click below for the My Details section'; pPostcode=""; }
pMethod=parent.header.eval("userInfo.method");
pCorrect=parent.header.eval("userInfo.correct");
pExtra=parent.header.eval("userInfo.extra");
pEmail=parent.header.eval("userInfo.email");
if (pEmail=="Email Address") { pEmail=""; }
mPostMethod=parent.header.eval("mPostMethod");
if(mPostMethod=="local") { dPnp="Postage and Packaging within UK:"; }
if(mPostMethod=="int") { dPnp="International Postage and Packaging:"; }
dOrderLine='<table border="0" width="100%" cellspacing="0" cellpadding="0"><tr><td width="25%"><strong>I would like to order:</strong></td><td width="75%"><strong><p align="right">(To change these items visit <a href="cart.htm">My Shopping Basket</a>)</strong></td></tr></table>';
if (oNum<1) {dOrderLine='<font color="red">Your shopping cart is empty. Click below to visit the Catalogue. <br><a href="cat.htm"><img src="catalogue.gif" alt="Catalogue" border="0" ></a>'; }

dSterling=parent.header.eval("dSterling");
pLocal='<u><font face="Arial"><strong>Payment Instructions:</strong></font></u></p><p>In the UK send a cheque payable to <strong>Elaine Adamson Bridal</strong> for the total amount shown on your order form (above), to the address shown at the top of this page.</p><p>Once we recieve your cheque, we will complete your tiara and send it to you within 14 days. If you have supplied us with an email address we will send you confirmation on the recipt of your cheque and the dispatch of your Tiara. </p> <p>We recommend you save or print this page now and keep it for reference purposes. A copy of this page will be sent along with your order.</p>';
pInt='<u><font face="Arial"><strong>Payment Instructions:</strong></font></u></p><p>For overseas orders ask your bank to make an international payment in Sterling (GB Pounds) to our account, the details of which are shown below. We will make up orders as soon as payment is advised. We will despatch your order by air mail within two weeks of recieving your request.</p><p> If you have supplied us with an email address we will send you confirmation of the bank transfer and the dispatch of your Tiara.</p><p><u><strong>International Payment Details<br></strong></u>Your bank will ask you for the following information so that they can process your payment for you:</p> <div align="center"><center>  <table border="0" cellpadding="0" cellspacing="5" width="332" bgcolor="#D2CDFF">   <tr>     <td align="right" width="180" valign="top"><strong>Our Banks name: </strong></td><td width="144">Bank of Scotland</td>  </tr>  <tr>    <td align="right" width="180" valign="top"><strong>Our Banks address: </strong></td>    <td width="144">5 The Square,<br>    Ellon Aberdeenshire,<br>    Scotland<br>    AB41 9JB</td>  </tr>  <tr>    <td align="right" width="180" valign="top"><strong>Our Banks clearing code: </strong></td>    <td width="144">80-06-71</td>  </tr>  <tr>    <td align="right" width="180" valign="top"><strong>Our account name: </strong></td>    <td width="144">Elaine Adamson Bridal</td>  </tr>  <tr>    <td align="right" width="180" valign="top"><strong>Our address: </strong></td>    <td width="144">1 Riverview Place<br>    Ellon, Aberdeenshire,<br>    Scotland<br>    AB41 9NW</td>  </tr>  <tr>    <td align="right" width="180" valign="top"><strong>Our account number: </strong></td>    <td width="144">111500</td> </tr></table></center></div><p>We recomend you print this page now and keep it for reference purposes. A copy of this order form will be sent along with your order.';
if ((mPostMethod=="local") && (dCurrentsymbol==dSterling)) { dInstructions=pLocal; } else dInstructions=pInt;



dDate=new Date();
mSubTotal=0;
dQuantityTotal=0;
Order =new OrderSheet;
load();
writeToForm();

function writeToForm() {            // write page to form for send


info+='<body bgcolor="#F0EEFF" background="images/celtic.jpg" bgproperties="fixed">';
info+='<form name="f" onsubmit="return finalsend();" action="http://www.elaineadamsonbridal.co.uk/cgi-bin/FormMail.pl" method="POST">';
info+='<input type="hidden" name="recipient" value="RobAdamson@elaineadamsonbridal.co.uk">';
info+='<input type="hidden" name="info">';
info+='<div align="center"><center>';

info+='<table  bgcolor="#F0EEFF" border="1" width="620" bordercolorlight="#F6F5FF" bordercolordark="#D2CDFF">';
info+='<tr><td width="100%"><table border="0" width="100%" cellspacing="0" cellpadding="0">';
info+='<tr><td width="50%"><big><big><strong>Order Form</strong></big></big></td><td width="50%"><p align="right">Date: ';
info+=dDate+'</td></tr></table><table border="0" width="100%" cellspacing="1" cellpadding="0">';

info+='<tr><td width="100%"><table border="0" width="620"><tr><td width="472"><strong>From:<br><big>';
info+=pName+'</big></strong><br>';
info+=pAd1+'<br>';
info+=pAd2+'<br>';
info+=pAd3+'<br>';
info+=pPostcode+'</big><br><font color="Black">Required for: '+pRequired+'<br>Email: '+pEmail+'</td><td width="256"><strong>To:<br><big>&nbsp; Elaine Adamson Bridal<br></strong>';
info+='&nbsp;&nbsp;&nbsp; Riverview House<br>';
info+='&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1 Riverview Place<br>';
info+='&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Ellon, Aberdeenshire<br>';
info+='&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Scotland<br>';
info+='&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AB41 9NW</big></td>';
info+='</tr></table><hr></td></tr><tr><td width="100%"><strong>'+dOrderLine+'</strong><table border="0" width="100%" cellspacing="1" cellpadding="0">';
for (i=0; i<oNum; i++) {
info+='<tr><td width="457">';
info+=Order.quantity[i]+' '+Order.name[i]+' in '+Order.goldsilver[i]+" -- "+Order.description[i]+'</td><td width="74"><p align="right">';
info+=CurrencyRound(Order.unitprice[i])+'</td><td width="74" align="right"><p align="right">';
info+=CurrencyRound((Order.quantity[i]*Order.unitprice[i]))+'</td></tr>';
}
info+='<tr><td width="457"></td><td colspan="2"><hr></td></tr><tr><td colspan="2" width="534"><p align="right">';
info+='Sub Total:</td><td width="74" align="right">';
info+=CurrencyRound(mSubTotal)+'</td></tr><tr><td colspan="2" width="534"><p align="right">';
info+=dPnp+'</td><td width="74" align="right">';
info+=CurrencyRound(mPnp)+'</td></tr><tr><td width="457"></td><td colspan="2"><hr></td></tr><tr><td colspan="2" width="534" bgcolor="#F0EEFF">';
info+='<p align="right"><strong>(You pay this amount) &nbsp;&nbsp; Total:</strong></td>';
info+='<td width="74" align="right" bgcolor="#F0EEFF"><big><strong>';
info+=CurrencyRound((mSubTotal+mPnp))+'</strong></big></td></tr></table><hr></td></tr>';
info+='<table>Other Information:'+pExtra+'<br><br>'+dInstructions+'</td></tr></table></center></div>';
info+='<p align="right"><input type="submit" value="Send Order Now"></form></body>';
document.write(info);
document.f.info.value='<html>'+info+'</html>';
}
//                                                                                           ORDER SHEET

function OrderSheet() {
this.quantity       =new Array(oMax);
this.name          =new Array(oMax);
this.goldsilver    =new Array(oMax);
this.description   =new Array(oMax);
this.unitprice     =new Array(oMax);
this.unittotal     =new Array(oMax);
this.colour        =new Array(oMax);  
this.colour[1]     =new Array(oColours);
this.colour[2]     =new Array(oColours);
this.colour[3]     =new Array(oColours);
this.colour[4]     =new Array(oColours);
}

//                                                                                           LOAD

function load() {
for (i=0; i<oNum; i++) {
Order.quantity[i]    = parent.header.eval("CurrentOrder.quantity["   +(i+1)+"]"); 
Order.name[i]        = parent.header.eval("CurrentOrder.name["       +(i+1)+"]"); 
Order.goldsilver[i]  = parent.header.eval("CurrentOrder.goldsilver[" +(i+1)+"]"); 
Order.description[i] = parent.header.eval("CurrentOrder.description["+(i+1)+"]"); 
Order.unitprice[i]   = parent.header.eval("CurrentOrder.unitprice["  +(i+1)+"]"); 
mSubTotal=mSubTotal+(Order.quantity[i]*Order.unitprice[i]);
dQuantityTotal=dQuantityTotal+parseInt(Order.quantity[i]);
}
mTotal=mSubTotal+mPnp;
}

//                                                                                           CURRENCY ROUND
// Round any number to 2 dps
function CurrencyRound(CurrencyValue) {
RoundedValue=(CurrencyValue*100*mCurrentrate);
RoundedValue=Math.round(RoundedValue);
RoundedValue=(RoundedValue/100);
Round10=(RoundedValue*10);

//add 0s to end of number if missing
extraDP=""
if(parseInt(Round10) ==Round10)  { extraDP="0";  } 
if(parseInt(RoundedValue)==RoundedValue) { extraDP=".00"; }
RoundedValue=dCurrentsymbol+RoundedValue+extraDP;

return RoundedValue;
}

//                                                                               SUBMIT
function finalsend() {
if (detailsError) { alert('There are still omissions in My Details.\nPlease visit the My Details section.'); return false; }
if (oNum<1)    { alert('Your shopping cart is empty.\nPlease visit the Catalogue section.'); return false; }
if (oSent) { if (confirm('You have already sent this order. Are you sure you wish to send it again?')) { oSent=false; } }
//send

if (!oSent) {
oSent=true; //update local
parent.header.eval('oSent=true;');  // update global
return true;} else return false;
}

document.write('<a href="http://member.bcentral.com/cgi-bin/fc/fastcounter-login?F1551137" target="_top"><img src="http://fastcounter.bcentral.com/fastcounter?F1551137+3482735" border="0" width="90" height="16"></a>');