// ********************************************
// Shopping Cart User Defined Settings        *
// ********************************************
// settings.js



// no right click !!!
document.onmousedown=click

function click() {
if ((event.button==2) || (event.button==3))
 { alert("Thank you for visiting CAFV"); }
}




// Debug Mode. Setting DEBUG to true will allow
// you to see descriptions of errors in a window.
// You should probably set this to false
// when you run the cart live
var DEBUG       = true;

// set your company information here. This will all
// generated on the printable form
var myName      = 'CAFV';
var mySite      = 'http://www.cafv.inet2000.com/';
var myEmail     = 'spitzel@paphr.sk.ca';
var myPhone     = '(306) 953-6219 ';
var myAddress   = '110-8th Street East';
var myCityState = 'Prince Albert, Sask.';
var myZip       = 'S6V 0V7';
var myCountry   = 'Canada';
var myLogo      = '';
var myMotto     = 'Unlock the Door to Non-Violence ...  to be free is the Key!';

// this is your prefix for all cookies written by your
// implementation of the cart. Do not use spaces!
var myStoreName    = 'CAFV';

// set the domain values for your cookies.
// this should allow you to put catalog
// pages in different directories.
// domain values require two "."!
var unsecureDomain = '';
var secureDomain   = '';

// set the path for the cookies
// currently, we set the path as root.
var cookiePath     = '';

// set customer Info persistence and
// cart persistence via cookies.
// usage: "setExp(S,M,H,D,W,Mo,Y)"
// S = seconds, M = minutes, H = hours
// D = days, W = weeks, Mo = months, Y = years

// note, customer info should persist for a while, say
// 2 to 3 months or longer, but cart data should only
// last a few minutes for the shopping experience.
// default times:
// customer = 2 months,
// cart: 5 mintues (now to 1 day!)
var customerTime = 'setExp(0,0,0,0,0,2,0)';
var cartTime     = 'setExp(0,0,1,0,0,0,0)';
//     usage:              S,M,H,D,W,Mo,Y

// set this variable to true if you don't want the
// cart page to display each time an item's added.
// if set to true, you will get a pop up instead.
var supressCart  = true;

// set the font face to whatever font you're using on your site
// Default setting is "arial,helvetica"
var fontFace = 'Verdana,Arial,Helvetica';
var myFont = 'Verdana,Arial,Helvetica';

// cart look and feel
var cartHeader          = '#0000C5';  // is a mid-blue, was 'silver'
var cartHeaderFontColor = '#eeeeee';  // is near white
var cartInfo            = '#ffffff';  // is white, was  '#DDDDDD'
var cartRow1            = '#ffffcc';  // is pale yellow, was 'white'
var cartRow2            = '#eeeebb';  // is palish yellow (darker than above), was'#DDDDDD'
var cartTaxRow          = '#DDDDDD';
var cartShipRow         = '#00CC66';  // is pale green, was '#DDDDDD';
var cartSubRow          = '#009933';  // was '#DDDDDD'
var cartTotalRow        = '#00CC66';  // is a pale green, was 'silver'
var cartBorder          = 1;
var cartCellSpace       = 1;
var cartCellPad         = 2;

// cart button text
// these variables set the text for each button in the cart
// some are used in more places than one, so use general
// descriptions!
var backText           = '&lt; Back';
var closeText          = 'Close';
var clearFormText      = 'Clear Comments';
var itemUpdateText     = 'Update Quantity';
var itemDeleteText     = 'Remove';
var checkoutText       = 'Proceed to Check Out';
var keepShopText       = 'Keep Browsing';
var deleteCartText     = 'Empty Clipboard';
var printFormText      = 'Proceed to Check Order Form';
var unsecureFormText   = 'Send by Email';    //   was 'Unsecure Form Order';
var unsecureCreditText = 'Unsecure Credit Info';
var secureFormText     = 'Secure Form Order';
var secureCreditText   = 'Secure Credit Info';
var printMyOrderText   = 'Print My Order';
var orderFinalizeText  = 'Email My Order';    //was 'Finalize My Order';
var editCartText       = 'Edit My Clipboard';
var AddedText          = 'has been added to your clipboard.';
var copyrightmessage    =  '&copy; 2004 All Rights Reserved';

// set the currency character
var currency = '$';

// set whether you want to gather separate shipping info
var getAltShipping = false;

// enter the percentag tax to charge customers if
// you will charge tax. example - .06 is 6%
// Default setting is 7.0% for Sask.
var taxPercent = '.07';

// set whether you want to charge tax all the time. If so,
// you do not need to edit the taxOnCountry or taxOnState variables
var alwaysTax = false;

// set whether you want to charge tax by country or by state/province
// if you want to use either of these two variables, then make sure that
// alwaysTax = false
// NOTE: typically, you would tax based on state/provice, so the cart
// will check that variable first.
var taxOnState   = false;
var taxOnCountry = false;

// set the state(s) you want to flag for taxing. Make sure that
// you use the common abreviation as well as the full name, all lower case!
var taxStateArray = new Array(
'ks',
'sk',
'kansas',
'ar',
'arkansas'
);

// set the country(s) you want to flag for taxing. Make sure that
// you use the common abreviation as well as the full name, all lower case!
var taxCountryArray = new Array(
'us',
'usa',
'ca',
'canada'
);

// enter shipping amount in percentage or straight charge.
// if you use a percentage, then set shipPercent = true,
// otherwise set it to false.
// Default setting is 10%
var shipAmt = '13.00';
var shipPercent = false;

// set shipping cost per item.
// If set to true and shipPercent is false, then the cusomter will
// be charged shipping on a per item basis.
// If set to true, shipPercent is false, and useShipOptions is false,
// then the cusomter will be charged the set shipping amount per item ordered.
var shipPerItem = false;

// set this to true if you want to use shipping
// options as opposed to a set amount or percentage.
// set to false to use a set amount or percentage
// This will override the variables shipAmt, shipPercent, and shipPerItem
var useShipOptions = false;

// set this to true if you want to use shipping
// rules as opposed to a set amount, percentage, or straight shipping options
// shipPercent, shipPerItem, and shipOptions must be false!
var useShipRules = false;

// this will define a set of radio buttons for your shipping options.
// the true/false at the end is for setting that shipping option to
// be charged per each item ordered.
// Formatting:
// One option per line - "Options Description + | + option cost + | true/false",
var shipOptions = new Array(
'Regular Ground|13.00|true',
'UPS Second Day Air|32.50|false',
'FedEx Overnight|40.95|false'
);

// this will define a set of rules for what amount to charge for shipping
// should you decide not to use options, set amount, percentage, etc.
// Formatting:
// Define a new shipRule per line and pass the proper arguments:
// new shipRule(amtLbound,amtUbound,qtyLbound,qtyUbound,shipCost,percent,countries,applyDomestic)
// amtLbound & amtUbound - the monetary range of the order to apply this rule.
//						   set both  to 0 to disqualify the amount range.
//						   if you don't use amount, then you must use the quantity
//						   bounds for the rule.
// qtyLbound & qtyUbound - the item quantity range of the order to apply this rule
//						   set both  to 0 to disqualify the quantity range.
//						   if you don't use quantity, then you must use the amount
//						   bounds for the rule.
// shipCost              - any numerical value
// percent               - true/false. True charges the shipCost as a percentage of
//						   the order subtotal. False charges as a straight amount
// countries             - the listing of the countries that you consider in your
//                         national shipping area. List must be delimited with a |
// applyDomestic         - true/false. True applies the rule if the customer's
//                         country of residence matches your list and other
//                         qualifiers apply. False applies the rule if the
//                         customer's country does NOT match the list (international)
//                         and other qualifiers apply.
var myShipRules = new Array(
new shipRule(0,   99.99,0,0,4.5,false,'USA|Canada',true),
new shipRule(100,100000,0,0,0.1,true, 'USA|Canada',true),
new shipRule(0,   49.99,0,0,9.0,false,'USA|Canada',false),
new shipRule(50, 100000,0,0,0.2,true, 'USA|Canada',false)
);

// set this option for which credit cards you accept
// use the same formatting as the shipOptions
var cardOption = new Array(
'Visa',
'MasterCard',
'American Express',
'Certified Check',
'International Money Order'
);

// set whether you'd like to allow a printable form for orders
// If you don't use a printable form, then make sure you
// have your form or gateway based ording variables set!
// default is true
var usePrint = true;

// set whether you want to allow CGI or ASP form based order submission.
// default is true
var useForm = true;

// set whether you want to allow the
var useGateway = true;

// set wether you want to allow customers the option to use
// unsecure order submission (not including printable forms)
// if useSecure is false and/or you're missing your secure
// page settings, the cart defaults to unsecure ordering
var useUnsecure = true;

// set whether you want to allow secure order submission.
// default is true
var useSecure = false;

// the page that displays the cart contents
// if the cart script is on this page, it will display
// update/delete buttons for your items
// otherwise, it displays as a receipt format.
var cartPage = 'cart.html';

// set the names of the cart pages
// the page where we get the shipping information
var COstep1 = 'customerdata.html';

// the last step for printing an order form (verify address, etc.)
var COprintVerify = 'orderverify.html';
  // var COprintVerify = 'printverify.html';

// the printable order form
var COprint = 'printorder.html';


// the page that will build the form data
// for posting to your form handling CGI/ASP
// this will post to the unsecure form handler
// defined by 'unsecurePostAction'
var COform = 'formorder.html';

// the page that will build the form data
// for credit card validation
// through your merchant account
// this will post to the unsecure form handler
// defined by 'unsecureGatewayAction'
var COgateway = 'emailorder.html';
  // var COgateway = 'gateway.html';

// the page that will build the form data
// for the secure CGI/ASP order form submission
// This posts the order to your form handling CGI script
// defined by 'securePostAction'
var COsecureForm = 'secure_formorder.html';

// the page tha will build the form data
// for secure credit card validation
// through your merchant account
// this posts the order to the merchant account gateway
// or account handling script defined by 'secureGatewayAction'
var COsecureGateway = 'secure_gateway.html';

// set CGI/ASP Post Action path (non-secure)
// these 2 fields are for FormMail.pl actions
var unsecurePostAction = '/cgi-bin/FormMail.pl';
var recipient = "sales@prescriptionscanadian.com,ronlong@sk.sympatico.ca";
// was var unsecurePostAction = 'mailto:ronlong@sk.sympatico.ca';
// was var unsecurePostAction = 'http://www.yoursite.com/cgi-bin/writeorder.cgi';

// set the Post Action for your particular
// credit card gateway processor
// see your processor documentation for this address
var unsecureGatewayAction = 'http://www.yoursite.com/cgi-bin/writeorder.cgi';

// set up the Post action for your secure form.
// If you aren't using secure ordering, then set securePostAction = ""
var securePostAction = 'https://your.securesite.com/cgi-bin/writeorder.cgi';

// set up the Post action for your secure form.
// If you aren't using secure ordering, then set securePostAction = ""
var secureGatewayAction = 'https://your.securesite.com/cgi-bin/writeorder.cgi';

// set the path to your SSL here. If you aren't using
// secure server, then this variable isn't necessary
var securePath = 'https://your.securesite.com';

// set up an array of tags for your specific form handling CGI script
// see the form script help file for required/optional tags
// be sure to use escape charcaters (see example)!
// by default, these tags are specifically coded for use with
// Matt's Script Archive formmail.cgi
var extraFormTags = new Array(
);

// set the name of the field that designates the mail recipient for
// your form handling CGI or ASP. This gets used to add the customer's email
// to this field so that they get a copy of the order as well.
// leave blank if you have another method of mailing a receipt to the
// customer
var cgiMailField = '';

// Shipping Rule Object - Do not edit
function shipRule(amtLbound,amtUbound,qtyLbound,qtyUbound,shipCost,percent,countries,applyDomestic){
	this.amtLbound     = amtLbound;
	this.amtUbound     = amtUbound;
	this.qtyLbound     = qtyLbound;
	this.qtyUbound     = qtyUbound;
	this.shipCost      = shipCost;
	this.percent       = percent;
	this.countries     = countries;
	this.applyDomestic = applyDomestic
}
