function imgAct(whichImg,ext)
{
	eval("document.images['" + whichImg + "'].src = './images/" + whichImg + "on." + ext + "';");
}
function imgInAct(whichImg,ext)
{
	eval("document.images['" + whichImg + "'].src = './images/" + whichImg + "." + ext + "';");
}

function popImage(src,title)
{
	var temp = new Image();
	temp.src = src;
	// ^^^^ start loading the image..

	window.open("image.html?src="+src+"&title="+title,"","height=600,width=600,top=50,left=50,channelmode=0,directories=0,fullscreen=0,location=0,menubar=0,resizable=1,scrollbars=1,status=0,titlebar=0,toolbar=0");
	// ^^^^^ open the window which write the image into it.
}

function addto(form)
{ //add to cart but stay on the same page
	var entry=form;
	var description;
	//alert(form);
	var a=0;

	if(entry.quantity.value)
	{
		description=entry.VATrate.value+" "+entry.desc.value;
		//alert ('description:'+description);
		store_name=entry.store.value;
		//alert ('store: '+store_name);
		product_name=entry.Oopshop.value;
		//alert ('prod:'+ product_name);
		quantity=entry.quantity.value;
		//alert ('qty: '+quantity);
		price=entry.price.value;
		//alert('price: '+price);

		document.cookie ="oops"+store_name+"+"+description+ "+" + product_name + "=" + quantity + "++"+ price+"";
		alert(product_name+' has been added to your shopping cart--Thank you!');
		//alert("description is: "+description);
		//alert("store name is: "+store_name);
		//alert("cookie: "+document.cookie);
	}
}

