function setProductBackground(imageUrl)
{
	document.getElementById('productimg').style.backgroundImage='url('+imageUrl+')';
}

function size(size, height, width)
{
	this.size	= size;
	this.height	= height;
	this.width	= width;
}

function showSize(size)
{
	var productLength;
	var productWidth;
	
	if (document.all)
	{
		productHeight	= document.all['product-height'];
		productWidth	= document.all['product-width'];
	}
	else
	{
		productHeight	= document.getElementById('product-height');
		productWidth	= document.getElementById('product-width');
	}
	
	if (productHeight)
	{
		productHeight.innerHTML = '';
	}
	
	if (productWidth)
	{
		productWidth.innerHTML = '';
	}
					
	for (i = 0; i < shirtsize.length; i++)
	{
		if (shirtsize[i].size == size)
		{
			if (productHeight && shirtsize[i].height != 0)
			{
				productHeight.innerHTML = shirtsize[i].height;
			}
			
			if (productWidth && shirtsize[i].width != 0)
			{
				productWidth.innerHTML = shirtsize[i].width;
			}
		}
	}
}


function checkSelect(which, warning)
{
	select	= document.getElementById(which);
	
	if (select.options.length > 1 && select.options[0].selected)
	{
		alert(warning + "!");
	
		return false;
	}
	
	return true;
}

