Number(document.getElementById("both_degree_input").value);
	if(isNaN(both_degree) || both_degree < 0) {
		both_degree = 0;
	}
	document.getElementById("both_degree_input").value = both_degree;
	draw_canvas("both_canvas");
}

var ips = 1;
function change_ips() {
	ips = Number(document.getElementById("ips_input").value);
	if(isNaN(ips)) {
		ips = 1;
	}
	document.getElementById("ips_input").value = ips;
	draw_canvas("both_canvas");
}

function inc(counter_name) {
	var counter = document.getElementById(counter