function checkFacturacionHandler() {
	if ($('check_facturacion').checked) {
		$('nombre_facturacion').value = $('nombre').value + ' ' + $('apellidos1').value + ' ' + $('apellidos2').value;
		$('provincia_facturacion').value = $('provincia').value;
		$('cp_facturacion').value = $('cp').value;
		$('direccion_facturacion').value = $('direccion').value;
		$('localidad_facturacion').value = $('localidad').value;
	} else {
		$('nombre_facturacion').value = '';
		$('provincia_facturacion').value = '';
		$('cp_facturacion').value = '';
		$('direccion_facturacion').value = '';
		$('localidad_facturacion').value = '';
	}
}

document.observe('dom:loaded', function() {

	if ($('envia')) {
		$('envia').observe('click', function() { 
			if ($('frmPaso1')) {
				val = new Validation('frmPaso1', {useTitles:true, onSubmit:false});
				res = val.validate();
				if (res) {
					$('frmPaso1').submit();
				}
			}
		});
	}
});
