// PDB (2010 modifications) - From 09 version to work with PayPal, WorldPay, Protx, Cardstream and Impress/WP variant
//Now collects & records order information from PayPal, WorldPay & Cardstream after order accepted (not easily possible for Sagepay)
// var basketLive = TRUE/FALSE acts as orders on/off switch to stop ordering for a charity when they or entire site is officially closed; Changed (APRIL 2010) from var cccs_testmode in 2009
//All variables "true/false to "TRUE/FALSE" (XL defaults)
//NB blank values of Payment provider variables are needed for the inactive providers
//Processes will not work in absence of variables
//Enable newsletter check box: TRUE / FALSE

//WorldPay

//var worldpayStatus = live / test; Changed (APRIL 2010) from worldpay_testmode = TRUE/FALSE in 2009
//If test the WP test server is used;  if live, the live server is used, once charity Oks with WP, they check installation, and agree live OK
//var worldpay_impress = TRUE/FALSE - This must always be defined, even if not a WP charity
//Email address for newsletter notification -  applies to Worldpay / Impress only
// PDB (FEB 2010)
// new variables to accommodate the sending of WP orders to multiple addresses
// if using WorldPay impress the charity doesn't receive any notification 
// so if customer opts in to newsletter we need an email address to send the notification to - hence newsletter_email1
//If charity does not want to offer newsletter code hides the newsletter opt in tick box

//Sagepay

//var sagepay_VendorName="";
//var sagepay_EncryptionPassword="";
//var sagepayStatus="test";
//dev/live/test/showpost
// PDB (APRIL 2010) Names changed from protx_EncryptionPassword etc
//Encryption password - assigned to charity by SP; testmode: values test/live/dev  ---- charities must successfully receive transaction in 'test' environment - SPwill then grant access to 'live'; dev = developing environment for us; order info sent to card enquiries email address

//Cardstream

//Cardstream variables: cardstream_ID; cardstream_Password; These two identify charity to CS; cardstream_email - the address to which order info is sent

<!--

var cardName = new Array();
var catNo = new Array();
var cardPrice = new Array();
var packSize = new Array();
var cardDimCms = new Array();
var cardDimIns = new Array();
var cardGreeting = new Array();
var sustain = new Array();
var cardNote = new Array();
var imageFile = new Array();
var thumbNailFile = new Array();
var foil = new Array();
var delCard = new Array();
var cdIndex = new Array();

//var basketLive="TRUE";
//var basketLive="FALSE";

//PayPal variables

var paypal_email1 = "";
var paypal_email2 = "";
var paypal_charityLogo = "";

//WorldPay variables

var worldpay_accId="PANCREATICCA";
var worldpay_instId="235923";
var returns="There are several circumstances in which we will happily refund or exchange your purchase. These are:<br />a) ...if you change your mind.<br />The unwanted product must be returned in an ‘as new’ condition with all packaging and accessories, within 14 days of purchase.<br />If  you are returning an item because you`ve simply changed your mind then the cost is entirely your responsibility. We recommend that you make  use of a parcel delivery company which will insure you for the value of  the goods that you are returning.<br />b) ...if the product is faulty or is damaged in transit.<br />We will either refund you or issue you with a credit note to the same value as your purchase as quickly as we can.<br />";
var wpEM1 = "maggieblanks";
var wpEM2 = "pcrf.org.uk";
var contactTel = "020 8360 1119";
var worldpayStatus="live";
var notify_a_email1 = "maggieblanks";
var notify_a_email2 = "pcrf.org.uk";
var notify_b_email1 = "mjbetts";
var notify_b_email2 = "onetel.com";
var notify_c_email1 = "";
var notify_c_email2 = "";

//WorldPay Impress variables. First must be defined, even if not a WP charity.

var worldpay_impress="FALSE";
var newsletter_email1 = "";
var newsletter_email2 = "";

//Sagepay; status: dev/live/test/showpost

var sagepay_VendorName="";
var sagepay_EncryptionPassword="";
var sagepayStatus="";

//Cardstream variables

var cardstream_ID="";
var cardstream_Password="";
var cardstream_email1 = "";
var cardstream_email2 = "";

var basketLive="TRUE";
var folder ="Pancreatic";
var charityName = "Pancreatic Cancer Research Fund";
var charityNumber = "1103253";
var charityWebSite = "www.pcrf.org.uk";
var tradingCompanyName = "";
var tradingCompanyNumber = "";
var charityAdd1 = "51 Cheyne Walk";
var charityAdd2 = "Winchmore Hill";
var charityAdd3 = "London";
var charityAdd4 = "";
var charityAdd5 = "";
var charityAdd6 = "N21 1DB";
var enquiriesTel = "020 8360 1119";
var lastDate = "13-Dec-10";
var overprinting = "no";
var lastOverDate = "";
var overprintNote = "";
var newsletter="TRUE";
var genNote = "";
var genEnquiriesTel = "020 8360 1119";
var charityTextpara1 = "<br><br>Pancreatic cancer has a 3% survival rate and is the fifth most common cause of cancer death in the UK. Despite this, there has been little research attention given to it in the past.";
var charityTextpara2 = "Pancreatic Cancer Research Fund is committed to changing this, and is the only charity exclusively supporting pancreatic cancer research throughout the UK. By bringing new money and focus to the field, we can fund innovative research with the potential to advance pancreatic cancer diagnosis and treatment and bring hope to patients.";
var charityTextpara3 = "";
var charityLogo = "aLogoPancreatic.jpg";
var orient = "H";
var enqEM1 = "maggieblanks";
var enqEM2 = "pcrf.org.uk";
var genEM1 = "maggieblanks";
var genEM2 = "pcrf.org.uk";
var lstMn = "11";
var lstDay = "13";
var lstYear = "2010";
cardName[1]="Christmas Westie";
delCard[1]="";
catNo[1]="";
foil[1]="";
cardPrice[1]="3.30";
packSize[1]="10";
cardDimCms[1]="12.8 x 12.8 cm";
cardDimIns[1]="5.0 x 5.0 in";
cardGreeting[1]="With best wishes for Christmas and the New Year";
sustain[1]="Produced from trees from sustainable forests";
cardNote[1]="Border for this display only";
imageFile[1]="zChristmasWestie.jpg";
thumbNailFile[1]="zChristmasWestie2.jpg";
cdIndex[1]="1";
cardName[2]="Holy Child";
delCard[2]="";
catNo[2]="";
foil[2]="";
cardPrice[2]="3.20";
packSize[2]="10";
cardDimCms[2]="12.8 x 12.8 cm";
cardDimIns[2]="5.0 x 5.0 in";
cardGreeting[2]="With best wishes for Christmas and the New Year";
sustain[2]="Produced from trees from sustainable forests";
cardNote[2]="Border for this display only";
imageFile[2]="zHolyChild.jpg";
thumbNailFile[2]="zHolyChild2.jpg";
cdIndex[2]="2";
cardName[3]="Reflection";
delCard[3]="";
catNo[3]="";
foil[3]="";
cardPrice[3]="4.00";
packSize[3]="10";
cardDimCms[3]="19.5 x 13.7 cm";
cardDimIns[3]="7.7 x 5.4 in";
cardGreeting[3]="Season's Greetings";
sustain[3]="Produced from trees from sustainable forests";
cardNote[3]="Border for this display only";
imageFile[3]="zReflection.jpg";
thumbNailFile[3]="zReflection2.jpg";
cdIndex[3]="3";
cardName[4]="Festive Candles";
delCard[4]="";
catNo[4]="";
foil[4]="";
cardPrice[4]="3.85";
packSize[4]="10";
cardDimCms[4]="15 x 15 cm";
cardDimIns[4]="5.9 x 5.9 in";
cardGreeting[4]="With best wishes for Christmas and the New Year";
sustain[4]="Produced from trees from sustainable forests";
cardNote[4]="";
imageFile[4]="zFestiveCandles.jpg";
thumbNailFile[4]="zFestiveCandles2.jpg";
cdIndex[4]="4";
cardName[5]="Robin in a Letterbox";
delCard[5]="";
catNo[5]="";
foil[5]="";
cardPrice[5]="3.50";
packSize[5]="10";
cardDimCms[5]="12.7 x 12.7 cm";
cardDimIns[5]="5.0 x 5.0 in";
cardGreeting[5]="With best wishes for Christmas and the New Year";
sustain[5]="Produced from trees from sustainable forests";
cardNote[5]="";
imageFile[5]="zRobinInALetterbox.jpg";
thumbNailFile[5]="zRobinInALetterbox2.jpg";
cdIndex[5]="5";
cardName[6]="Shepherds at Bethlehem";
delCard[6]="";
catNo[6]="";
foil[6]="";
cardPrice[6]="3.50";
packSize[6]="10";
cardDimCms[6]="10.3 x 15.1 cm";
cardDimIns[6]="4.1 x 5.9 in";
cardGreeting[6]="With best wishes for Christmas and the New Year";
sustain[6]="Produced from trees from sustainable forests";
cardNote[6]="";
imageFile[6]="zShepherdsAtBethlehem.jpg";
thumbNailFile[6]="zShepherdsAtBethlehem2.jpg";
cdIndex[6]="6";
cardName[7]="The Village Snowman";
delCard[7]="";
catNo[7]="";
foil[7]="";
cardPrice[7]="3.00";
packSize[7]="10";
cardDimCms[7]="11.7 x 11.7 cm";
cardDimIns[7]="4.6 x 4.6 in";
cardGreeting[7]="With best wishes for Christmas and the New Year";
sustain[7]="Produced from trees from sustainable forests";
cardNote[7]="Border for this display only";
imageFile[7]="zTheVillageSnowman.jpg";
thumbNailFile[7]="zTheVillageSnowman2.jpg";
cdIndex[7]="7";
cardName[8]="Crisp and Clear";
delCard[8]="";
catNo[8]="";
foil[8]="";
cardPrice[8]="3.70";
packSize[8]="10";
cardDimCms[8]="17 x 12 cm";
cardDimIns[8]="6.7 x 4.7 in";
cardGreeting[8]="With best wishes for Christmas and the New Year";
sustain[8]="Produced from trees from sustainable forests";
cardNote[8]="Border for this display only";
imageFile[8]="zCrispAndClear.jpg";
thumbNailFile[8]="zCrispAndClear2.jpg";
cdIndex[8]="8";
cardName[9]="Winter Rose";
delCard[9]="";
catNo[9]="";
foil[9]="";
cardPrice[9]="3.20";
packSize[9]="10";
cardDimCms[9]="12.8 x 12.8 cm";
cardDimIns[9]="5.0 x 5.0 in";
cardGreeting[9]="With best wishes for Christmas and the New Year";
sustain[9]="Produced from trees from sustainable forests";
cardNote[9]="Border for this display only";
imageFile[9]="zWinterRose.jpg";
thumbNailFile[9]="zWinterRose2.jpg";
cdIndex[9]="9";
cardName[10]="Christmas Eve";
delCard[10]="";
catNo[10]="";
foil[10]="";
cardPrice[10]="3.70";
packSize[10]="10";
cardDimCms[10]="17 x 12 cm";
cardDimIns[10]="6.7 x 4.7 in";
cardGreeting[10]="With best wishes for Christmas and the New Year";
sustain[10]="Produced from trees from sustainable forests";
cardNote[10]="Border for this display only";
imageFile[10]="zChristmasEve.jpg";
thumbNailFile[10]="zChristmasEve2.jpg";
cdIndex[10]="10";
cardName[11]="Dancing on Ice";
delCard[11]="";
catNo[11]="";
foil[11]="";
cardPrice[11]="3.20";
packSize[11]="10";
cardDimCms[11]="12.8 x 12.8 cm";
cardDimIns[11]="5.0 x 5.0 in";
cardGreeting[11]="With best wishes for Christmas and the New Year";
sustain[11]="Produced from trees from sustainable forests";
cardNote[11]="Border for this display only";
imageFile[11]="zDancingOnIce.jpg";
thumbNailFile[11]="zDancingOnIce2.jpg";
cdIndex[11]="11";
cardName[12]="Nature&#96s Way";
delCard[12]="";
catNo[12]="";
foil[12]="";
cardPrice[12]="3.20";
packSize[12]="10";
cardDimCms[12]="12.8 x 12.8 cm";
cardDimIns[12]="5.0 x 5.0 in";
cardGreeting[12]="With best wishes for Christmas and the New Year";
sustain[12]="Produced from trees from sustainable forests";
cardNote[12]="";
imageFile[12]="zNaturesWay.jpg";
thumbNailFile[12]="zNaturesWay2.jpg";
cdIndex[12]="12";
cardName[13]="Christmas Beach Hut";
delCard[13]="";
catNo[13]="";
foil[13]="";
cardPrice[13]="3.99";
packSize[13]="10";
cardDimCms[13]="12.6 x 17.2 cm";
cardDimIns[13]="5.0 x 6.8 in";
cardGreeting[13]="With best wishes for Christmas and the New Year";
sustain[13]="Produced from trees from sustainable forests";
cardNote[13]="Design exclusive to Pancreatic Cancer Research Fund<br>Border for this display only";
imageFile[13]="zChristmasBeachHut.jpg";
thumbNailFile[13]="zChristmasBeachHut2.jpg";
cdIndex[13]="13";
cardName[14]="Monkey Business";
delCard[14]="";
catNo[14]="";
foil[14]="";
cardPrice[14]="2.50";
packSize[14]="10";
cardDimCms[14]="9.9 x 9.9 cm";
cardDimIns[14]="3.9 x 3.9 in";
cardGreeting[14]="With best wishes for Christmas and the New Year";
sustain[14]="Produced from trees from sustainable forests";
cardNote[14]="Border for this display only";
imageFile[14]="zMonkeyBusiness.jpg";
thumbNailFile[14]="zMonkeyBusiness2.jpg";
cdIndex[14]="14";
cardName[15]="Angels in Pink";
delCard[15]="";
catNo[15]="";
foil[15]="";
cardPrice[15]="3.50";
packSize[15]="10";
cardDimCms[15]="12 x 17 cm";
cardDimIns[15]="4.7 x 6.7 in";
cardGreeting[15]="With best wishes for Christmas and the New Year";
sustain[15]="Produced from trees from sustainable forests";
cardNote[15]="";
imageFile[15]="zAngelsInPink.jpg";
thumbNailFile[15]="zAngelsInPink2.jpg";
cdIndex[15]="15";
cardName[16]="Winter Wonderland";
delCard[16]="";
catNo[16]="";
foil[16]="silver";
cardPrice[16]="4.49";
packSize[16]="10";
cardDimCms[16]="17.2 x 12.6 cm";
cardDimIns[16]="6.8 x 5.0 in";
cardGreeting[16]="With best wishes for Christmas and the New Year";
sustain[16]="Produced from trees from sustainable forests";
cardNote[16]="Silver foiled";
imageFile[16]="zWinterWonderland.jpg";
thumbNailFile[16]="zWinterWonderland2.jpg";
cdIndex[16]="16";
cardName[17]="Three Kings";
delCard[17]="";
catNo[17]="";
foil[17]="";
cardPrice[17]="3.49";
packSize[17]="10";
cardDimCms[17]="15.2 x 10 cm";
cardDimIns[17]="6.0 x 3.9 in";
cardGreeting[17]="With best wishes for Christmas and the New Year";
sustain[17]="Produced from trees from sustainable forests";
cardNote[17]="";
imageFile[17]="zThreeKings.jpg";
thumbNailFile[17]="zThreeKings2.jpg";
cdIndex[17]="17";
cardName[18]="Keeping warm";
delCard[18]="";
catNo[18]="";
foil[18]="";
cardPrice[18]="3.49";
packSize[18]="10";
cardDimCms[18]="10 x 15.2 cm";
cardDimIns[18]="3.9 x 6.0 in";
cardGreeting[18]="With best wishes for Christmas and the New Year";
sustain[18]="Produced from trees from sustainable forests";
cardNote[18]="";
imageFile[18]="zKeepingWarm.jpg";
thumbNailFile[18]="zKeepingWarm2.jpg";
cdIndex[18]="18";
cardName[19]="Crocuses";
delCard[19]="";
catNo[19]="";
foil[19]="";
cardPrice[19]="3.00";
packSize[19]="10";
cardDimCms[19]="12.8 x 12.8 cm";
cardDimIns[19]="5.0 x 5.0 in";
cardGreeting[19]="With best wishes for Christmas and the New Year";
sustain[19]="Produced from trees from sustainable forests";
cardNote[19]="";
imageFile[19]="zCrocuses.jpg";
thumbNailFile[19]="zCrocuses2.jpg";
cdIndex[19]="19";
cardName[20]="Merry Christmas";
delCard[20]="";
catNo[20]="";
foil[20]="gold";
cardPrice[20]="3.99";
packSize[20]="10";
cardDimCms[20]="15.2 x 10 cm";
cardDimIns[20]="6.0 x 3.9 in";
cardGreeting[20]="With best wishes for Christmas and the New Year";
sustain[20]="Produced from trees from sustainable forests";
cardNote[20]="Gold foiled";
imageFile[20]="zMerryChristmas.jpg";
thumbNailFile[20]="zMerryChristmas2.jpg";
cdIndex[20]="20";
cardName[21]="Snowdrop";
delCard[21]="";
catNo[21]="";
foil[21]="";
cardPrice[21]="3.20";
packSize[21]="10";
cardDimCms[21]="13.6 x 13.6 cm";
cardDimIns[21]="5.4 x 5.4 in";
cardGreeting[21]="With best wishes for Christmas and the New Year";
sustain[21]="Produced from trees from sustainable forests";
cardNote[21]="";
imageFile[21]="zSnowdrop.jpg";
thumbNailFile[21]="zSnowdrop2.jpg";
cdIndex[21]="21";
cardName[22]="Robin Line";
delCard[22]="";
catNo[22]="";
foil[22]="silver";
cardPrice[22]="3.20";
packSize[22]="10";
cardDimCms[22]="19.7 x 8.6 cm";
cardDimIns[22]="7.8 x 3.4 in";
cardGreeting[22]="With best wishes for Christmas and the New Year";
sustain[22]="Produced from trees from sustainable forests";
cardNote[22]="Silver foiled";
imageFile[22]="zRobinLine.jpg";
thumbNailFile[22]="zRobinLine2.jpg";
cdIndex[22]="22";
cardName[23]="Delivering Presents";
delCard[23]="";
catNo[23]="";
foil[23]="";
cardPrice[23]="3.20";
packSize[23]="10";
cardDimCms[23]="15 x 9.8 cm";
cardDimIns[23]="5.9 x 3.9 in";
cardGreeting[23]="With best wishes for Christmas and the New Year";
sustain[23]="Produced from trees from sustainable forests";
cardNote[23]="";
imageFile[23]="zDeliveringPresents.jpg";
thumbNailFile[23]="zDeliveringPresents2.jpg";
cdIndex[23]="23";
cardName[24]="Bearing Gifts";
delCard[24]="";
catNo[24]="";
foil[24]="";
cardPrice[24]="3.20";
packSize[24]="10";
cardDimCms[24]="14 x 14 cm";
cardDimIns[24]="5.5 x 5.5 in";
cardGreeting[24]="With best wishes for Christmas and the New Year";
sustain[24]="Produced from trees from sustainable forests";
cardNote[24]="";
imageFile[24]="zBearingGifts.jpg";
thumbNailFile[24]="zBearingGifts2.jpg";
cdIndex[24]="24";
var cardCt="24";
 
//-->
