if (document.images) {
		home1 = new Image;
		home2 = new Image;
		favorites1 = new Image;
		favorites2 = new Image;
		about1 = new Image;
		about2 = new Image;
		aroma1 = new Image;
		aroma2 = new Image;
		faves1 = new Image;
		faves2 = new Image;
		shop1 = new Image;
		shop2 = new Image;
		catalog1 = new Image;
		catalog2 = new Image;
		

		
		home1.src="../buttons/homebtn.gif";
		home2.src="../buttons/homebtn1.gif";
		favorites1.src="../buttons/favoritesbtn.gif";
		favorites2.src="../buttons/favoritesbtn1.gif";
		about1.src = "../buttons/aboutbtn.gif";
		about2.src = "../buttons/aboutbtn1.gif";
		aroma1.src = "../buttons/aromabtn.gif";
		aroma2.src = "../buttons/aromabtn1.gif";
		shop1.src="../buttons/shopbtn.gif";
		shop2.src="../buttons/shopbtn1.gif";
		
	}
	else {
		home1 = "";
		home2 = "";
		favorites1 = "";
		favorites2 = "";
		about1 = "";
		about2 = "";
		aroma1 = ""
		aroma2 = ""
		shop1 = "";
		shop2 = "";
	}
	
function rollIt(imgField, imgPic) {
		if(document.buttons) {
		document[imgField].src = eval (imgPic + ".src")
		}
	}
	
function checkIt (from) {
	sizeOption = new Number (-1);
	
	for (i=0; i<catpage.prodPrice.length; i++) {
		if (catpage.prodPrice[i].checked) {
		sizeOption = i;
		}
	}
	
	scentOption = new Number (-1);
	
	for (i=0; i<catpage.myScent.length; i++) {
	 	if (catpage.myScent[i].checked) {
			scentOption = i;
		}
	}
	if (sizeOption == -1) {
		alert ('Please select the product size using the options on the page.');
	document.catpage.prodPrice[0].focus();
	return false;
	} else if (scentOption == -1) {	
		alert ("Please select a fragrance.");
		document.catpage.myScent[0].focus();
		return false;
	} else {	
		return true;
	}
} 

function checkIt2 (form) {
	sizeOption = new Number (-1);
	for (i=0; i<catpage.prodPrice.length; i++) {
		if (catpage.prodPrice[i].checked) {
		sizeOption = i;
		}
	}
	
	if (sizeOption == -1) {
		alert ('Please select the product, using the options on the page.');
		document.catpage.prodPrice[0].focus();
		return false;	
	} else {
		return true;
	}
} 

function checkIt3 (form) {
	sizeOption = new Number (-1);
	x = new Number ();
	x = document[form].prodPrice.length;
	for (i=0; i < x; i++) {
		if (document[form].prodPrice[i].checked) {
		sizeOption = i;
		}
	}
	
	if (sizeOption == -1) {
		alert ('Please select the product, using the options on the page.');
		document[form].prodPrice[0].focus();
		return false;	
	} else {
		return true;
	}
} 

function submitIt(thisForm) {
	lastVist = String ('')
	myForm = Number ()
	lastVisit = document.forms[thisForm].shopPage.value
	document.forms[thisForm].submit()
	myPage = thisForm
	}
	
function mailIt(theAddress, theSubject) {
	theDomain = "gardenofedenstores";

	theURL = "mailto:" + theAddress + "@" + theDomain + ".com" + "?Subject=" + theSubject;

	document.location = theURL;
}
