// 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 = "sarah.hinchley";
var paypal_email2 = "fote.org.uk";
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 ="FriendsElderly";
var charityName = "Friends of the Elderly";
var charityNumber = "226064";
var charityWebSite = "www.fote.org.uk";
var tradingCompanyName = "";
var tradingCompanyNumber = "";
var charityAdd1 = "40-42 Ebury Street";
var charityAdd2 = "London";
var charityAdd3 = "";
var charityAdd4 = "";
var charityAdd5 = "";
var charityAdd6 = "SW1W 0LZ";
var enquiriesTel = "020 7730 8263";
var lastDate = "13-Dec-10";
var overprinting = "no";
var lastOverDate = "";
var overprintNote = "";
var newsletter="";
var genNote = "";
var genEnquiriesTel = "020 7730 8263";
var charityTextpara1 = "Friends of the Elderly is a registered charity specialising in the provision of direct services to older people particularly those in need due to frailty, isolation or lack of resources.";
var charityTextpara2 = "We provide person-centered care which aims to:<li>support older people to remain in their own homes as long as they reasonably can with a decent quality of life<li>provide excellent and flexible 24 hour care when people can no longer remain at home";
var charityTextpara3 = "Our services include day clubs and centres, home visiting services, home support services, grants and residential, nursing and dementia care homes.";
var charityLogo = "aLogoFriendsElderly.jpg";
var orient = "V";
var enqEM1 = "events";
var enqEM2 = "fote.org.uk";
var genEM1 = "events";
var genEM2 = "fote.org.uk";
var lstMn = "11";
var lstDay = "13";
var lstYear = "2010";
cardName[1]="Holly Tree";
delCard[1]="";
catNo[1]="";
foil[1]="";
cardPrice[1]="3.00";
packSize[1]="10";
cardDimCms[1]="12.1 x 12.1 cm";
cardDimIns[1]="4.8 x 4.8 in";
cardGreeting[1]="With Best Wishes for Christmas and the New Year";
sustain[1]="";
cardNote[1]="";
imageFile[1]="zHollyTree.jpg";
thumbNailFile[1]="zHollyTree2.jpg";
cdIndex[1]="1";
cardName[2]="Three Kings";
delCard[2]="";
catNo[2]="";
foil[2]="";
cardPrice[2]="3.00";
packSize[2]="10";
cardDimCms[2]="12.1 x 12.1 cm";
cardDimIns[2]="4.8 x 4.8 in";
cardGreeting[2]="With Best Wishes for Christmas and the New Year";
sustain[2]="";
cardNote[2]="Proceeds from the sale of this card will support our appeal to build a dementia care home in Malvern:   The Peace of Mind Appeal";
imageFile[2]="zThreeKings.jpg";
thumbNailFile[2]="zThreeKings2.jpg";
cdIndex[2]="2";
cardName[3]="Robin & Christmas Rose Twin Pack";
delCard[3]="";
catNo[3]="";
foil[3]="";
cardPrice[3]="3.00";
packSize[3]="10";
cardDimCms[3]="9.8 x 13 cm";
cardDimIns[3]="3.9 x 5.1 in";
cardGreeting[3]="With Best Wishes for Christmas and the New Year";
sustain[3]="";
cardNote[3]="5 of each design<br>Borders for this display only";
imageFile[3]="zRobin&ChristmasRoseTwin.jpg";
thumbNailFile[3]="zRobin&ChristmasRoseTwin2.jpg";
cdIndex[3]="3";
cardName[4]="Guiding Star";
delCard[4]="";
catNo[4]="";
foil[4]="";
cardPrice[4]="3.00";
packSize[4]="10";
cardDimCms[4]="9.8 x 13 cm";
cardDimIns[4]="3.9 x 5.1 in";
cardGreeting[4]="With Best Wishes for Christmas and the New Year";
sustain[4]="";
cardNote[4]="";
imageFile[4]="zGuidingStar.jpg";
thumbNailFile[4]="zGuidingStar2.jpg";
cdIndex[4]="4";
cardName[5]="Green Wreath on Door";
delCard[5]="";
catNo[5]="";
foil[5]="";
cardPrice[5]="3.00";
packSize[5]="10";
cardDimCms[5]="8.3 x 16.5 cm";
cardDimIns[5]="3.3 x 6.5 in";
cardGreeting[5]="With Best Wishes for Christmas and the New Year";
sustain[5]="";
cardNote[5]="Border for this display only";
imageFile[5]="zGreenWreathOnDoor.jpg";
thumbNailFile[5]="zGreenWreathOnDoor2.jpg";
cdIndex[5]="5";
var cardCt="5";
 
//-->
