	function revisar(){
		errores=0;
		msg_error = "";
		monto=document.forms[0].elements['TBK_MONTO'].value;
		if 
(((document.forms[0].elements['TBK_MONTO'].value).length == 
0)||(!(document.forms[0].elements['TBK_MONTO'].value>0))) {
			errores++;
			msg_error = msg_error + "Selecciona los casilleros correspondientes\na la donación que quieres realizar.\n";
		}
		if (errores!=0){
			window.alert(msg_error);
		}else{
			document.forms[0].submit();
		}
	}
	function addCommas(nStr){
		nStr += '';
		x = nStr.split('.');
		x1 = x[0];
		x2 = x.length > 1 ? ',' + x[1] : '';
		var rgx = /(\d+)(\d{3})/;
		while (rgx.test(x1)) {
			x1 = x1.replace(rgx, '$1' + '.' + '$2');
		}
		return x1 + x2;
	}
	function check_donacion_mediagua(){
		var checks=document.formDonacion.donaciones;
		var tr_monto=document.getElementById("tr_monto");
		if(checks[0].checked==true){
			tr_monto.value=addCommas(checks[0].value);
		}
		else if(checks[1].checked==true){
			tr_monto.value=addCommas(checks[1].value);
		}
	}
