// JavaScript Document

var couponcodes = Array();

// This array contains the coupon codes

couponcodes["jeff50"] = 50;

couponcodes["Jeff50"] = 50;















// function returns value if a valid coupon code is entered,

// 0 otherwise.

function checkcode(currcode)

{

	//var currcode = document.FrontPage_Form1.CouponAmount.value;

	

	if (parseInt(couponcodes[currcode]) > 0)

	{

		return couponcodes[currcode];

	}

	else

	{

		return 0;

	}

}