<!--
function doScentChange()
{
	//alert('hello');
	var scent=document.getElementById('scent');
	var link=document.getElementById('scentLink');
	if (scent.value)
	{
		//alert(scent.value);
		link.style.display='block';
		//link.onClick=doPopUp('showScent.php?id='+scent.value);
	}
	else
	{
		link.style.display='none';
	}
}
function doColorChange()
{
	var colorchip=document.getElementById('colorchip');
	var colorfld=document.getElementById('color');
	//alert(colorfld.value);
	var hidden=document.getElementById('color'+colorfld.value);
	//alert(hidden.value);
	colorchip.style.backgroundColor='#'+hidden.value;
	//alert(colorchip.style.backgroundColor);
}
function verifyForm()
{
	//alert('check');
	//var frm=document['frmBuild'];
	var frm=document.forms[0];
	if (!frm.color.value)
	{
		alert('You must choose a color!');
		return false;
	}
	if (!frm.scent.value)
	{
		alert('You must choose a scent!');
		return false;
	}
	if (!frm.container.value)
	{
		alert('You must choose a container!');
		return false;
	}
	return true;
}
function doContainerChange(sender)
{
	//alert("containerchange");
	var display=document.getElementById('display_container');
	//alert(sender.length);
	for (var i=0; i<sender.length; i++)
	{
		if (sender.options[i].selected)
		{
			var source=document.getElementById('container'+sender.options[i].value);
			//alert(source);
			display.src=source.src;
			display.style.filter=source.style.filter;
		}
	}
}
function doPopUp()
{
	var scent=document.getElementById('scent');
	var win=window.open('', '', 'HEIGHT=400, WIDTH=400, resizable, status, scrollbars');
	win.moveTo(100,100);
	//win.location=url;
	win.location='scentdetails.php?id='+scent.value;
}

-->