//WHI Order Functions

function checkForDigital(form, itemNum){
	//if user selects digital format, we want to add CD to type and
	//disable it
	var itemFeeFld = "item_fee_id" + itemNum;
	var imageSurfaceFld = "image_surface" + itemNum;
	if(form[itemFeeFld][form[itemFeeFld].selectedIndex].value == "12"){
		var newOption = new Option();
		newOption.value = "CD";
		newOption.text = "CD";
		form[imageSurfaceFld].options.length = 0;
		form[imageSurfaceFld].options[0] = newOption;
		//form[imageSurfaceFld].selectedIndex = form[imageSurfaceFld].options.length - 1;
		//form[imageSurfaceFld].disabled = true;
	}
	else{
		//for(var i = 0; i < form[imageSurfaceFld].options.length; i++){
			//if(form[imageSurfaceFld].options[i].text == "CD"){
			form[imageSurfaceFld].options.length = 0;
			var newOption = new Option();
			newOption.value = "matte";
			newOption.text = "Matte";
			var newOption2 = new Option();
			newOption2.value = "glossy";
			newOption2.text = "Glossy";
			form[imageSurfaceFld].options[0] = newOption;
			form[imageSurfaceFld].options[1] = newOption2;
			
				//form[imageSurfaceFld].disabled = false;
				//form[imageSurfaceFld].options.length = form[imageSurfaceFld].options.length - 1;
				//form[imageSurfaceFld].selectedIndex = 0;
			//}
		//}
	}
}


//  End -->
