<!--- Javascripts by Visioncraft: www.visioncraft.org - may be used with citation -->

function increase(targetID, inc, mx){
	target = document.getElementById(targetID);
	x = 1 * target.value;
	w = 1 * inc;
	m = 1 * mx;
	if (x + w < m + 1)
	{
	target.value = x + w ;
	}
	recalc_onclick(targetID);
}

function decrease(targetID, dec, mn){
	target = document.getElementById(targetID);
	y = 1 * target.value;
	z = 1 * dec;
	n = 1 * mn;
	if (y - z > n - 1)
	{
	target.value = y - z ;
	}
	recalc_onclick(targetID);
}

function checkvalues(targetID, minv, maxv) {
	target = document.getElementById(targetID);
	val = target.value;
	val=eedisplayFloat(eeparseFloat(val));
	minvalue = minv * 1;
	maxvalue = maxv * 1;
	if (minvalue > val)
	{
	target.value = minvalue;
	}
	if (maxvalue < val)
	{
	target.value = maxvalue;
	}
	else
	{
	target.value = val;
	}
	recalc_onclick(targetID); 
}

function meterheight(targetID) {
	x = document.formc.metersize.value + "px";
	document.getElementById(targetID).style.height = x;
}


