//******************************************************************************************//
// File for cookie related fnctions in JavaScript //
// Author : Manish Hatwalne (http://www.technofundo.com/) //
// Feedback : feedback@technofundo.com (for feedback/bugs) //
// Created : 19 August 2001 //
// Functions : //
// (1) setCookie(szName, szValue [,szExpires] [,szPath] [,szDomain] [,szSecure]) //
// (2) getCookie(szName) //
// (3) deleteCookie(szName) //
// //
// Feel free to use/modify the code in this file, but always keep the header intact. //
// And DO NOT re-distribute this file, instead provide a link to the site //
// http://www.technofundo.com/. Thank You. //
// //
//******************************************************************************************//
//******************************************************************************************
//
// A CGI program uses the following syntax to add cookie information to the HTTP header:
//
// Set-Cookie: name=value
// [;EXPIRES=dateValue]
// [;DOMAIN=domainName]
// [;PATH=pathName]
// [;SECURE]
//
// This function sets a client-side cookie as above. Only first 2 parameters are required
// Rest of the parameters are optional. If no szExpires value is set, cookie is a session cookie.
//
// Prototype : setCookie(szName, szValue [,szExpires] [,szPath] [,szDomain] [,bSecure])
//******************************************************************************************
function setCookie(szName, szValue, szExpires, szPath, szDomain, bSecure)
{
var szCookieText = escape(szName) + '=' + escape(szValue);
szCookieText += (szExpires ? '; EXPIRES=' + szExpires.toGMTString() : '');
szCookieText += (szPath ? '; PATH=' + szPath : '');
szCookieText += (szDomain ? '; DOMAIN=' + szDomain : '');
szCookieText += (bSecure ? '; SECURE' : '');
document.cookie = szCookieText;
}
//******************************************************************************************
// This functions reads & returns the cookie value of the specified cookie (by cookie name)
//
// Prototype : getCookie(szName)
//******************************************************************************************
function getCookie(szName)
{
var szValue = null;
if(document.cookie) //only if exists
{
var arr = document.cookie.split((escape(szName) + '='));
if(2 <= arr.length)
{
var arr2 = arr[1].split(';');
szValue = unescape(arr2[0]);
}
}
return szValue;
}
//******************************************************************************************
// To delete a cookie, pass name of the cookie to be deleted
//
// Prototype : deleteCookie(szName)
//******************************************************************************************
function deleteCookie(szName)
{
var tmp = getCookie(szName);
if(tmp)
{ setCookie(szName,tmp,(new Date(1))); }
}
//==========================================^-^==============================================//
// This and many more interesting and usefull scripts at http://www.technofundo.com/ //
//==========================================^-^==============================================//
var product = getCookie("honeysuckleCookie");
if(product == null)
{
var product = [];
}
var product1 = [];
var products = product1.concat(product);
var qty = getCookie("honeysuckleCookie2");
if(qty == null)
{
var qty = [];
}
var qty1 = [];
var qtys = qty1.concat(qty);
function addtokart(productID)
{
products.push(productID);
qtys.push("1");
setCookie("honeysuckleCookie", products);
setCookie("honeysuckleCookie2", qtys);
alert("This item has been added to your Kart - go to Mail Orders to view your Kart.");
}
Honeysuckle Cottage
|
|
|
|
|

Our newsletter The Green Ark is dispached every two months to its members. Its eight to ten pages is jammed with interesting articles for gardeners, special offers for members only, and advance information on future events. Every edition arrives complete with a free packet of seeds.
Recent editions have contained major articles on subjects such as such as Winter Chills and Herbal Brews, Gardening with Gothic Plants, A Day With Bill Mollison Founder of Permaculture, and a Faery Herbal. There are many shorter articles too with recipes, herbal ideas, seasonal gardening tips, and flower and herb crafts As well, members are offered the first opportunity to purchase hard to find collectable classic old gardening books in the section ‘The Green Ark Rare and Collectable Books’.
Subscriptions are $16 including postage for 6 copies, or $ 30 for 12 copies.
The Green Ark subscription also makes a wonderful gift for a gardener. We would be happy to include a message on an appropriate gift card with the first edition if wished.
|
6 issues 
|
12 issues 
|
|
|
|
|

Workshops
2010 Program
Coming Soon!
30 Bowen Mountain Rd
Grosevale NSW
Directions given in
To Find Us
and on Google Maps
NOW AVAILABLE
Mail Order catalogues
"A Heritage of Plants for Fragrance, Use and Delight"
($4 including postage; Perennials, Shrubs and Herbs')
"Roses of History and Romance"
($3 including postage Wild, Heritage, Nostalgia and David Austin Roses).
Dr Judyth McLeod's latest book
"In A Unicorn's Garden" (Murdoch Books) The medieval world, its gardens and plants.
Available from Honeysuckle Cottage for $49.95 plus $5.00 postage. (Signed copy available if wished.)
|
|
|
|
|
|
|
|