// 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 = "jane";
var paypal_email2 = "spinal-research.org";
var paypal_charityLogo = "";

//WorldPay variables

var worldpay_accId="";
var worldpay_instId="";
var returns="";
var wpEM1 = "";
var wpEM2 = "";
var contactTel = "";
var worldpayStatus="";
var notify_a_email1 = "";
var notify_a_email2 = "";
var notify_b_email1 = "";
var notify_b_email2 = "";
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="FALSE";
var folder ="SpinalR";
var charityName = "Spinal Research";
var charityNumber = "281325";
var charityWebSite = "www.spinal-research.org";
var tradingCompanyName = "";
var tradingCompanyNumber = "";
var charityAdd1 = "";
var charityAdd2 = "";
var charityAdd3 = "";
var charityAdd4 = "";
var charityAdd5 = "";
var charityAdd6 = "";
var enquiriesTel = "01736 336 992";
var lastDate = "17-Dec-10";
var overprinting = "no";
var lastOverDate = "";
var overprintNote = "";
var newsletter="";
var genNote = "";
var genEnquiriesTel = "01483 898786";
var charityTextpara1 = "Spinal Research is a pioneering charity, which aims to find ways to repair spinal cord injury and to reverse the paralysis that results from it. Based in the UK and recognised as a leader in its field, Spinal Research funds groundbreaking projects at scientific and medical institutions around the world. ";
var charityTextpara2 = "Spinal Research is about to embark on a major new initiative designed to accelerate the rate of approach of promising experimental treatments to the clinic, create a fertile landscape for increased basic and clinical collaboration in the UK and ensure the spinally injured within the UK have the opportunity to participate in future clinical trials.";
var charityTextpara3 = "The new <b>Translational Initiative</b> is the result of a period of intense analysis undertaken to identify key strategic elements where it can have the greatest impact on the bench-to-bedside path. You can help us by buying our cards today.";
var charityLogo = "aLogoSpinalR.gif";
var orient = "H";
var enqEM1 = "Spinal-research";
var enqEM2 = "netpack.co.uk";
var genEM1 = "info";
var genEM2 = "spinal-research.org";
var lstMn = "11";
var lstDay = "17";
var lstYear = "2010";
cardName[1]="Ready for the Off";
delCard[1]="";
catNo[1]="1";
foil[1]="";
cardPrice[1]="3.00";
packSize[1]="10";
cardDimCms[1]="9.9 x 9.9 cm";
cardDimIns[1]="3.9 x 3.9 in";
cardGreeting[1]="With best wishes for Christmas and the New Year";
sustain[1]="Materials from sustainably produced sources";
cardNote[1]="";
imageFile[1]="zReadyForTheOff.jpg";
thumbNailFile[1]="zReadyForTheOff2.jpg";
cdIndex[1]="1";
cardName[2]="Three Kings Bearing Gifts";
delCard[2]="";
catNo[2]="2";
foil[2]="";
cardPrice[2]="3.50";
packSize[2]="10";
cardDimCms[2]="10.8 x 10.8 cm";
cardDimIns[2]="4.3 x 4.3 in";
cardGreeting[2]="With best wishes for Christmas and the New Year";
sustain[2]="The materials used in the manufacture of this card and envelope are supplied solely from sustainable forests";
cardNote[2]="<br><br><span id=t16>Stocks of this design getting low!</span>";
imageFile[2]="zThreeKingsBearingGifts.jpg";
thumbNailFile[2]="zThreeKingsBearingGifts2.jpg";
cdIndex[2]="2";
cardName[3]="Balancing Santa";
delCard[3]="";
catNo[3]="3";
foil[3]="";
cardPrice[3]="3.75";
packSize[3]="10";
cardDimCms[3]="11.7 x 11.7 cm";
cardDimIns[3]="4.6 x 4.6 in";
cardGreeting[3]="With best wishes for Christmas and the New Year";
sustain[3]="The materials used in the manufacture of this card and envelope are supplied solely from sustainable forests";
cardNote[3]="Border for this display only";
imageFile[3]="zBalancingSanta.jpg";
thumbNailFile[3]="zBalancingSanta2.jpg";
cdIndex[3]="3";
cardName[4]="Holy Family";
delCard[4]="";
catNo[4]="4";
foil[4]="";
cardPrice[4]="3.75";
packSize[4]="10";
cardDimCms[4]="12.8 x 12.8 cm";
cardDimIns[4]="5.0 x 5.0 in";
cardGreeting[4]="With best wishes for Christmas and the New Year";
sustain[4]="The materials used in the manufacture of this card and envelope are supplied solely from sustainable forests";
cardNote[4]="";
imageFile[4]="zHolyFamily.jpg";
thumbNailFile[4]="zHolyFamily2.jpg";
cdIndex[4]="4";
cardName[5]="Cosy Christmas";
delCard[5]="";
catNo[5]="5";
foil[5]="";
cardPrice[5]="3.75";
packSize[5]="10";
cardDimCms[5]="11.7 x 11.7 cm";
cardDimIns[5]="4.6 x 4.6 in";
cardGreeting[5]="With best wishes for Christmas and the New Year";
sustain[5]="The materials used in the manufacture of this card and envelope are supplied solely from sustainable forests";
cardNote[5]="";
imageFile[5]="zCosyChristmas.jpg";
thumbNailFile[5]="zCosyChristmas2.jpg";
cdIndex[5]="5";
cardName[6]="Robin and Berries";
delCard[6]="";
catNo[6]="6";
foil[6]="";
cardPrice[6]="3.75";
packSize[6]="10";
cardDimCms[6]="12.7 x 12.7 cm";
cardDimIns[6]="5.0 x 5.0 in";
cardGreeting[6]="With best wishes for Christmas and the New Year";
sustain[6]="The materials used in the manufacture of this card and envelope are supplied solely from sustainable forests";
cardNote[6]="Border for this display only";
imageFile[6]="zRobinAndBerries.jpg";
thumbNailFile[6]="zRobinAndBerries2.jpg";
cdIndex[6]="6";
cardName[7]="Snowed Under";
delCard[7]="";
catNo[7]="7";
foil[7]="";
cardPrice[7]="3.75";
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]="The materials used in the manufacture of this card and envelope are supplied solely from sustainable forests";
cardNote[7]="Border for this display only<br><br><span id=t16>Stocks of this design getting low!</span>";
imageFile[7]="zSnowedUnder.jpg";
thumbNailFile[7]="zSnowedUnder2.jpg";
cdIndex[7]="7";
cardName[8]="Nativity Scene";
delCard[8]="";
catNo[8]="8";
foil[8]="";
cardPrice[8]="3.75";
packSize[8]="10";
cardDimCms[8]="11.7 x 11.7 cm";
cardDimIns[8]="4.6 x 4.6 in";
cardGreeting[8]="With best wishes for Christmas and the New Year";
sustain[8]="The materials used in the manufacture of this card and envelope are supplied solely from sustainable forests";
cardNote[8]="";
imageFile[8]="zNativityScene.jpg";
thumbNailFile[8]="zNativityScene2.jpg";
cdIndex[8]="8";
cardName[9]="A Winter Morning";
delCard[9]="";
catNo[9]="10";
foil[9]="";
cardPrice[9]="4.00";
packSize[9]="10";
cardDimCms[9]="11.4 x 16 cm";
cardDimIns[9]="4.5 x 6.3 in";
cardGreeting[9]="With best wishes for Christmas and the New Year";
sustain[9]="The materials used in the manufacture of this card and envelope are supplied solely from sustainable forests";
cardNote[9]="Border for this display only";
imageFile[9]="zAWinterMorning.jpg";
thumbNailFile[9]="zAWinterMorning2.jpg";
cdIndex[9]="9";
cardName[10]="Frankincense and Myrrh";
delCard[10]="";
catNo[10]="11";
foil[10]="";
cardPrice[10]="4.00";
packSize[10]="10";
cardDimCms[10]="12.7 x 12.7 cm";
cardDimIns[10]="5.0 x 5.0 in";
cardGreeting[10]="With best wishes for Christmas and the New Year";
sustain[10]="The materials used in the manufacture of this card and envelope are supplied solely from sustainable forests";
cardNote[10]="Gold";
imageFile[10]="zFrankincenseAndMyrrh.jpg";
thumbNailFile[10]="zFrankincenseAndMyrrh2.jpg";
cdIndex[10]="10";
cardName[11]="Christmas Eve";
delCard[11]="";
catNo[11]="12";
foil[11]="";
cardPrice[11]="4.50";
packSize[11]="10";
cardDimCms[11]="17 x 12 cm";
cardDimIns[11]="6.7 x 4.7 in";
cardGreeting[11]="With best wishes for Christmas and the New Year";
sustain[11]="The materials used in the manufacture of this card and envelope are supplied solely from sustainable forests";
cardNote[11]="";
imageFile[11]="zChristmasEve.jpg";
thumbNailFile[11]="zChristmasEve2.jpg";
cdIndex[11]="11";
cardName[12]="A Village Christmas";
delCard[12]="Y";
catNo[12]="9";
foil[12]="";
cardPrice[12]="4.00";
packSize[12]="10";
cardDimCms[12]="20.4 x 10.1 cm";
cardDimIns[12]="8.0 x 4.0 in";
cardGreeting[12]="With best wishes for Christmas and the New Year";
sustain[12]="The materials used in the manufacture of this card and envelope are supplied solely from sustainable forests";
cardNote[12]="Border for this display only";
imageFile[12]="zAVillageChristmas.jpg";
thumbNailFile[12]="zAVillageChristmas2.jpg";
cdIndex[12]="12";
var cardCt="11";
 
//-->
