document.getElementById("interval_2_n").value;
			document.getElementById("interval_1_d").value = document.getElementById("interval_2_d").value;
		}
		interval_changed(no);
		return;
	}

	var lb_n = 0;
	var lb_d = 99;
	var ub_n = 99;
	var ub_d = 0;
	for(var n = 0; n < 100; n += 1)
		for(var d = 0; d < 100; d += 1) {
			if (n/d <= value_1 && n/d > lb_n/lb_d){
				lb_n = n;
				lb_d = d;
			}
			if (n/d >= value_2 && n/d < ub_n/ub_d){
				ub_n = n;
				ub_d = d;
			}
		}
	document.getElementById("interval_lb_