<!-- 
var strID, suffix;
	strID = window.document.location.toString();
	suffix = (strID.indexOf('/test') > -1 ? 'test_cgi-bin/' : '');


function CreditCardDonation()
{
document.write("<BR><center>Credit Card<BR>Donation Line<BR>01302 775245");
}

function Donation()
{
document.write("<BR><b><font color='#00654d'>To donate to this project by cheque:\n<ul>\n<li>Make cheques payable to 'WorldShare'.</li>\n<li>Write your name & address and the name of the project on the reverse of the cheque (or on a sheet of paper).</li>\n<li>Mail to: FREEPOST WORLDSHARE,<br>(No stamp needed - UK only.)</li>\n</ul></font>");
}

function Ministry()
{
document.write("<BR><b><font color='#00654d'>To donate to this ministry by cheque:\n<ul>\n<li>Make cheques payable to 'WorldShare'.</li>\n<li>Write your name & address and the name of the ministry on the reverse of the cheque (or on a sheet of paper).</li>\n<li>Mail to: FREEPOST WORLDSHARE,<br>(No stamp needed - UK only.)</li>\n</ul></font>");
}

function cheque()
{
document.write("<BR><b><font color='#00654d'>To order this Gift of Hope by cheque:\n<ul>\n<li>Make cheques payable to 'WorldShare'.</li>\n<li>Write your name & address and the name of the GOH project on the reverse of the cheque (or on a sheet of paper).</li>\n<li>Mail to: FREEPOST WORLDSHARE,<br>(No stamp needed - UK only.)</li>\n</ul></font>");
}

function appeal()
{
document.write("<BR><b><font color='#00654d'>To donate to this appeal by cheque:\n<ul>\n<li>Make cheques payable to 'WorldShare - Mozambique'.</li>\n<li>Write your name & address on the reverse of the cheque (or on a sheet of paper).</li>\n<li>Mail to: FREEPOST WORLDSHARE,<br>(No stamp needed - UK only.)</li>\n</ul></font>");
}

function appeal1()
{
document.write("<BR><b><font color='#00654d'>To donate to this appeal by cheque:\n<ul>\n<li>Make cheques payable to 'WorldShare - ECTV'.</li>\n<li>Write your name & address on the reverse of the cheque (or on a sheet of paper).</li>\n<li>Mail to: FREEPOST WORLDSHARE,<br>(No stamp needed - UK only.)</li>\n</ul></font>");
}

function appeal2()
{
document.write("<BR><b><font color='#00654d'>To donate to this appeal by cheque:\n<ul>\n<li>Make cheques payable to 'WorldShare - EPC'.</li>\n<li>Write your name & address on the reverse of the cheque (or on a sheet of paper).</li>\n<li>Mail to: FREEPOST WORLDSHARE,<br>(No stamp needed - UK only.)</li>\n</ul></font>");
}

function lheader()
{
document.write("<A class='home' href='../pdf/Window 2010-2.pdf' target='_blank'>Download magazine</A>&nbsp;&nbsp;<b>NEW OPTION:<br>- <A class='home' href='../pages/magdonate.html'>donate to featured ministries online</A>");
}

function rheader()
{
document.write("<A class='home' href='../goh/g047.html'>Prisoner care packs.</A>&nbsp;&nbsp;<A class='home' href='../goh/g015.html'>Bibles.</A>&nbsp;&nbsp;<A class='home' href='../goh/g030.html'>Rabbits.</A>&nbsp;&nbsp;<A class='home' href='../goh/g050.html'>Milk.</A><br> <A class='home' href='../goh/gohcode2010.html'>Gift of Hope 2010 online.</A> &nbsp<A class='home' href='../pdf/goh2010.pdf' target='_blank'>Download catalogue</A>");
}


function WO(pURL) {
	remote = window.open(pURL,'ws','scrollbars=yes,toolbar=no,menubar=no,location=no');
	remote.focus();
}


function Shopping(pChoice, pProdno)
{
	WO("../../cgi-bin/" + suffix + "ws_shopping_basket_mtn.pl?choice=indirect;pChoice=" + pChoice + ";prod_no=" + pProdno + ";");
}

function DispatchToScripts (pChoice, pProdNo, pOrderKey)
{
var cookieData = GetCookie ("WSOrder");
var NewCookieData = ""
var str = "";
	if (cookieData.length < 2) {
		var CurrentDate = new Date()
		var oneYearFromNow = CurrentDate.getTime() + (365 * 24 * 3600 * 1000);
		CurrentDate.setTime(oneYearFromNow);
		str = "; expires=" + CurrentDate.toGMTString();
	}

  if (pChoice == 'clear') {
	document.cookie = "WSOrder=";

  } else if (pChoice == 'update') {
	if (cookieData.length > 1) {
		document.cookie = "WSOrder=" + pOrderKey
	} else {
		document.cookie = "WSOrder=" + pOrderKey + str;
	}

  } else if (pChoice == '') {
	if (cookieData.length > 1) {
		NewCookieData = cookieData;
	} else {
		if (pOrderKey.length > 1) {
			document.cookie = "WSOrder=" + pOrderKey + str;
			NewCookieData = pOrderKey;
		} else {
			NewCookieData = GenerateID(40);
			document.cookie = "WSOrder=" + NewCookieData + str;
		}
	}
	window.location = "../../cgi-bin/" + suffix + "ws_shopping_basket_mtn.pl?choice=;order_key=" + NewCookieData + ";session_key=" + pOrderKey + ";";

  } else if (pChoice == 'confirmation') {
	window.location = "../../cgi-bin/" + suffix + "ws_shopping_basket_mtn.pl?choice=confirmation;customer_id=" + pProdNo + ";order_key=" + cookieData + ";";

  } else if (pChoice == 'edit item') {
	if (cookieData.length > 1) {
		NewCookieData = cookieData;
	} else {
		NewCookieData = GenerateID(40);
	}
	document.cookie = "WSOrder=" + NewCookieData + str;
	window.location = "../../cgi-bin/" + suffix + "ws_order_mtn.pl?choice=edit item;order_key=" + NewCookieData + ";prod_no=" + pProdNo + ";";

  }
//  window.close();

}

function GenerateID (pNo)
{
var key = "";
	for (var i = 1; i <= pNo; i++) {
		var ran = Math.random() * 61 + 48;
		ran = Math.floor(ran);
		ran = (ran > 57 ? ran + 7 : ran);
		ran = (ran > 90 ? ran + 6 : ran);
		key += String.fromCharCode(ran)
	}
	return key;	
}


function GetCookieVal (offset) {
	var endstr = document.cookie.indexOf (";", offset);
	if (endstr == -1) 
		endstr = document.cookie.length;
	return unescape (document.cookie.substring (offset, endstr));
}


function GetCookie (name) {
	var arg = name + "=";
	var alen = arg.length;
	var clen = document.cookie.length;
	var i = 0;
	var j = 0;
	while (i < clen) {
		j = i + alen;
		if (document.cookie.substring (i, j) == arg) return GetCookieVal (j);
		i = document.cookie.indexOf (" ", i) + 1;
		if (i == 0) break;
	}
	return "";
}


// -->

