function populate_lite_options(style_id)
{
	var width = document.getElementById("width").value; 
	var height = document.getElementById("height").value; 
	var dropdown = document.getElementById("liteoptions");
	var selectedgrilloptionvalue = $('#grille_setup').val();

	dropdown.disabled = true;

	if (width == "" || height == "" || selectedgrilloptionvalue == "none")
	{
		dropdown.disabled = true;
		$("#liteoptions").children().remove();
		return;
	}
	else
	{
		//dropdown.disabled = false;
	}

	$.ajax({
		type:'post',
		url:'../classes/ajax.process.php',
		data:'mode=liteoptions&style_id='+style_id+'&width='+width+'&height='+height,
		success:function(data, textStatus, XMLHttpRequest)
				{
					var lite_options = eval('(' + data + ')');

					$("#liteoptions").children().remove();

					for(var k in lite_options)
					{
						var option = lite_options[k];

						var total_sashes = 0;
						
						// For the 3-lite uneven slider, the center sash is actually twice the size as the outer two
						// This is how we will work around the problem
						if(option["double_center_sash_size"] == 1)
						{
							total_sashes = parseInt(option["sash_count"]) + 1;
						}
						else
						{
							total_sashes = option["sash_count"];
						}

						var lite_count = option["sash_lites_x"] * option["sash_lites_y"] * total_sashes;
						var option_text = lite_count + " Lites Per Window";
						var option_value = lite_count;

						$("#liteoptions").append("<option value=\"" + option_value + "\">" + option_text + "</option>");
					}

				}
	});
}
