function changeLites(x)
{
	//x is the exact text shown to the user from the width dropdown menu.
	//alert(x);
	
	document.calc.lites.options.length=0;
	
	//execute a stacked if statement to determine exactly what lites remain
	if (x == '16"' || x == '18"' || x == '20"' || x == '22"')
	{
		document.calc.lites.options[0] = new Option("5 Lites", "5lites", true, true);
		document.getElementById("imageGlass").src = "/calc/glass/glass_withoutPanel/9005.jpg";
		document.getElementById("imageGlass").alt = "5 Lites";
		document.getElementById("imageGlass").title = "5 Lites";
	}
	else if (x == '24"')
	{
		document.calc.lites.options[0] = new Option("5 Lites", "5lites", true, true);
		document.calc.lites.options[1] = new Option("10 Lites", "10lites", false, false);
		document.getElementById("imageGlass").src = "/calc/glass/glass_withoutPanel/9005.jpg";
		document.getElementById("imageGlass").alt = "5 Lites";
		document.getElementById("imageGlass").title = "5 Lites";
	}
	else if(x == '26"' || x == '28"')
	{
		document.calc.lites.options[0] = new Option("10 Lites", "10lites", true, true);
		document.getElementById("imageGlass").src = "/calc/glass/glass_withoutPanel/9010.jpg";
		document.getElementById("imageGlass").alt = "10 Lites";
		document.getElementById("imageGlass").title = "10 Lites";
	}
	else //30 32 34 36
	{
		document.calc.lites.options[0] = new Option("15 Lites", "15lites", true, true);
		document.getElementById("imageGlass").src = "/calc/glass/glass_withoutPanel/9015.jpg";
		document.getElementById("imageGlass").alt = "15 Lites";
		document.getElementById("imageGlass").title = "15 Lites";
	}
}

function change510(x)
{
	//x is the exact text shown to the user from the width dropdown menu.
	//alert(x);
	
	//declare a variable to hold the location for the image to change to
	var y;
	var z;
	
	//execute a switch statement to determine exactly where to send the user's picture
	switch(x)
	{
		case '5 Lites':
			y = '/calc/glass/glass_withoutPanel/9005.jpg';
			z = '5 Lites';
			break;
		case '10 Lites':
			y = '/calc/glass/glass_withoutPanel/9010.jpg';
			z = '10 Lites';
			break;
		default:
			alert('error');
			break;
	}
	
	//set the image src to the y variable's contents
	document.getElementById("imageGlass").src=y;
	document.getElementById("imageGlass").alt=z;
	document.getElementById("imageGlass").title=z;
}
