function numita(x) {
	if (x=="") {x=0;}
	x = ""+x;
	if (x.indexOf(".")>0) {
		x = parseFloat(x);
		x = x.toFixed(2);
		x = x.replace(".",",");		
	} else {
		x = parseFloat(x);
		x = x.toFixed(2);
		x = x.replace(".",",");			
	}	
	return x;
}

function nummat(x) {
	if (x=="") {x=0;}
	x = ""+x;
	if (x.indexOf(",")>0) {
		x = x.replace(",",".");
	}
	return parseFloat(x);
}
