1
2
3
4
5
6
Se ha producido un error al procesar la plantilla.
Unable to find Velocity template with ID _TEMPLATE_CONTEXT_/202373/202399/20102/400058
1#parse ( "$templatesPath/337347" )	## v3_Flujo_Aaa.vm 
2#parse ( "$templatesPath/337350" )	## v3_Flujo_Upsell_Hogar_WS.vm 
3 
4## Uris 
5## ------------------------------------------------------------------------------- 
6#set ( $form_action						=     "" ) 
7 
8#set ( $uri_paso_back					=     "/contrata-paquete" ) 
9#set ( $uri_paso_next					=     "/tp_negocio" ) 
10#set ( $uri_paso_FlujoParamVacio		=     "/contrata-paquete" ) 
11 
12## Includes (parsedDom) 
13## ------------------------------------------------------------------------------- 
14#set ( $uri_valor						=     "/pyme_upsell_valores_list" ) 
15 
16## Variables 
17## ------------------------------------------------------------------------------- 
18#set ( $pasoId							=     1 ) 
19#set ( $pasoAnteriorId					=     ( $pasoId - 1 ) ) 
20 
21## Include 
22## ------------------------------------------------------------------------------- 
23 
24<script src="/documents/202399/214880/accounting.min.js/6375fe8b-55ca-42d2-b855-825046800b97"></script> 
25 
26## Style - inicio 
27## ------------------------------------------------------------------------------- 
28<style> 
29	#v3_Form_paso_valor_s_01 { 
30		display: block; 
31		width: 50%; 
32		margin: 0 auto;	 
33
34	 
35	#v3_Flujo_confirma_elem_label_servicio_id { 
36		font-size: 1.6em; 
37
38	 
39	#v3_Flujo_confirma_elem_control_servicio_id { 
40		font-size: 1.6em; 
41		color: #48BAF6; 
42	}	 
43	 
44	.v3_Flujo_resumen_total { 
45		font-size: 1.6em; 
46
47	 
48	.v3_Flujo_resumen_total_control { 
49		color: #48BAF6; 
50
51	 
52	.contenedor_tabla_mobile { 
53		width: 100%; 
54
55	 
56	.v3_Valor_input_s { 
57		display: inline-block; 
58		margin-left: -3px;		 
59		vertical-align: top; 
60		 
61		text-align: right; 
62		 
63		width: 10%; 
64
65	 
66	.v3_Valor_input { 
67        width: 20px !important; ## AUI 
68        height: 20px !important; 
69		 
70        margin-top: 15px !important; ## AUI 
71		 
72		display: block !important; ## Estilos en ?? lo ocultan 
73	}		 
74	 
75	.v3_Valor_html_s { 
76		display: inline-block; 
77		margin-left: -3px;	 
78		vertical-align: top; 
79		 
80		width: 90%; 
81
82	 
83	.v3_Valor_s { 
84		padding-bottom: 20px; 
85
86	 
87	.v3_Valor_media_s { 
88		width: 15% !important; 
89	}	 
90	 
91	.v3_Valor_info_s { 
92		width: 80%; 
93
94		 
95## tablet 
96@media only screen and (min-width: 761px) and (max-width: 1090px) { 
97	 
98	.v3_Valor_media_s { 
99		width: 25% !important; 
100	}	 
101	 
102	.v3_Valor_info_s { 
103		width: 75% !important; 
104
105 
106
107 
108## movil 
109@media only screen and (max-width: 760px) { 
110 
111	#v3_Form_paso_valor_s_01 { 
112		width: 100%;	 
113
114	 
115	.v3_Valor_media_s { 
116		width: 30% !important; 
117	}	 
118	 
119	.v3_Valor_info_s { 
120		width: 70% !important; 
121	}	 
122	 
123	.v3_Valor_input {		 
124        margin-top: 5px !important; ## AUI 
125	}			 
126 
127}		 
128	 
129</style> 
130## Style - fin 
131## ------------------------------------------------------------------------------- 
132 
133<style> 
134## Style - Dinámico - inicio 
135## =============================================================================== 
136 
137## Style - Dinámico - fin 
138## =============================================================================== 
139</style> 
140 
141## msg - working - inicio 
142## =============================================================================== 
143 
144<a href="#v3_Form_submit_msg_working"  
145	 id="v3_Form_submit_msg_working_for_fancy"></a> 
146<div class="v3_Form_submit_msg_working"  
147		id="v3_Form_submit_msg_working"  
148
149	<div class="v3_Form_submit_msg_working_titulo"> 
150		Estamos validando tus datos 
151	</div> 
152	<div class="v3_Form_submit_msg_working_titulo_sub"> 
153		Espera un momento 
154	</div> 
155	<div class="v3_Form_submit_msg_working_img"> 
156		<img src="$IMG_WS_WORKING" alt="..." class=""> 
157	</div> 
158</div> <!-- <div class="v3_Form_submit_msg_working"  --> 
159 
160## msg - working - fin 
161## =============================================================================== 
162 
163## parsedDom - inicio 
164## =============================================================================== 
165 
166## paquete - inicio 
167## ------------------------------------------------------------------------------- 
168 
169<div  class="v3_Form_form_parsedDom"  
170		 id="v3_Form_form_valor_parsedDom"> 
171</div> 
172 
173## paquete - fin 
174## ------------------------------------------------------------------------------- 
175 
176## parsedDom - fin 
177## =============================================================================== 
178 
179## v3_Form - inicio 
180## =============================================================================== 
181<div class="v3_Form"> 
182<div class="v3_Form_content fullBox">	   
183<form name="v3_Form_form"  
184		id="v3_Form_form"  
185	method="POST" action="" 
186
187 
188## paso - inicio 
189## =============================================================================== 
190 
191<div class="v3_Form_paso " 
192		id="v3_Form_paso_$pasoId"> 
193<div class="v3_Form_paso_contenido"> 
194	 
195## paso - section - inicio 
196## -------------------------------------------------------------------------------	 
197<div class="v3_Form_paso_s  
198			v3_Form_paso_valor_s_01"  
199		id="v3_Form_paso_valor_s_01">		 
200 
201    <div class="v3_Form_titulo_gral_s">	 
202		<div class="v3_Form_titulo_gral"> 
203			¡No olvides solicitar la activación de 
204			<strong> 
205				herramientas en la Nube!  
206			</strong> 
207		</div>	 
208    </div> 
209	 
210	<div class="v3_Form_section_spacer"> 
211		&nbsp; 
212	</div> 
213	 
214#set ( $form_elem_label     =	"Número Telmex a 10 dígitos" ) 
215#set ( $form_elem_name      =	"tel" ) 
216#set ( $form_elem_msg_error	=	"" ) 
217		<div class=""> 
218    		<input type="hidden"  
219		    	name="$form_elem_name" id="$form_elem_name"  
220		    	title="$form_elem_label"  
221				placeholder="$form_elem_label"   
222    			class="v3_Form_form_elem"  
223				value="" 
224
225		</div> 
226		<div class="v3_Form_form_elem_msg_error"  
227				id="v3_Form_form_elem_msg_error_$form_elem_name"> 
228			El teléfono debe ser de 10 dígitos 
229		</div> 
230		 
231#set ( $form_elem_label     =	"Correo electrónico" ) 
232#set ( $form_elem_name      =	"email" ) 
233#set ( $form_elem_msg_error	=	"" ) 
234		<div class=""> 
235    		<input type="hidden"  
236		    	name="$form_elem_name" id="$form_elem_name"  
237		    	title="$form_elem_label"  
238				placeholder="$form_elem_label"   
239    			class="v3_Form_form_elem"  
240				value="" 
241
242		</div> 
243		<div class="v3_Form_form_elem_msg_error"  
244				id="v3_Form_form_elem_msg_error_$form_elem_name"> 
245			Ingrese un correo electrónico válido 
246		</div> 
247		 
248#set ( $form_elem_label     =	"Paquete seleccionado" ) 
249#set ( $form_elem_name      =	"servicio_id" ) 
250#set ( $form_elem_msg_error	=	"" ) 
251		<div class=""> 
252    		<input type="hidden"  
253		    	name="$form_elem_name" id="$form_elem_name"  
254		    	title="$form_elem_label"  
255				placeholder="$form_elem_label"   
256    			class="v3_Form_form_elem"  
257				value="" 
258
259		</div> 
260		<div class="v3_Form_form_elem_msg_error"  
261				id="v3_Form_form_elem_msg_error_$form_elem_name"> 
262			Seleccione un servicio válido 
263		</div> 
264		 
265#set ( $form_elem_label     =	"Paquete seleccionado (precio)" ) 
266#set ( $form_elem_name      =	"servicio_id_precio" ) 
267#set ( $form_elem_msg_error	=	"" ) 
268		<div class=""> 
269    		<input type="hidden"  
270		    	name="$form_elem_name" id="$form_elem_name"  
271		    	title="$form_elem_label"  
272				placeholder="$form_elem_label"   
273    			class="v3_Form_form_elem"  
274				value="" 
275
276		</div> 
277		<div class="v3_Form_form_elem_msg_error"  
278				id="v3_Form_form_elem_msg_error_$form_elem_name"> 
279		</div>	 
280		 
281#set ( $form_elem_label     =	"Paquete actual" ) 
282#set ( $form_elem_name      =	"servicio_id_actual" ) 
283#set ( $form_elem_msg_error	=	"" ) 
284		<div class=""> 
285    		<input type="hidden"  
286		    	name="$form_elem_name" id="$form_elem_name"  
287		    	title="$form_elem_label"  
288				placeholder="$form_elem_label"   
289    			class="v3_Form_form_elem"  
290				value="" 
291
292		</div> 
293		<div class="v3_Form_form_elem_msg_error"  
294				id="v3_Form_form_elem_msg_error_$form_elem_name"> 
295		</div> 
296		 
297#set ( $form_elem_label     =	"" ) 
298#set ( $form_elem_name      =	"tec" ) 
299#set ( $form_elem_msg_error	=	"" ) 
300		<div class=""> 
301    		<input type="hidden"  
302		    	name="$form_elem_name" id="$form_elem_name"  
303		    	title="$form_elem_label"  
304				placeholder="$form_elem_label"   
305    			class="v3_Form_form_elem"  
306				value="" 
307
308		</div> 
309		<div class="v3_Form_form_elem_msg_error"  
310				id="v3_Form_form_elem_msg_error_$form_elem_name"> 
311		</div> 
312		 
313#set ( $form_elem_label     =	"" ) 
314#set ( $form_elem_name      =	"tec_nva" ) 
315#set ( $form_elem_msg_error	=	"" ) 
316		<div class=""> 
317    		<input type="hidden"  
318		    	name="$form_elem_name" id="$form_elem_name"  
319		    	title="$form_elem_label"  
320				placeholder="$form_elem_label"   
321    			class="v3_Form_form_elem"  
322				value="" 
323
324		</div> 
325		<div class="v3_Form_form_elem_msg_error"  
326				id="v3_Form_form_elem_msg_error_$form_elem_name"> 
327		</div> 
328		 
329#set ( $form_elem_label     =	"" ) 
330#set ( $form_elem_name      =	"recibo_papel_no" ) 
331#set ( $form_elem_msg_error	=	"" ) 
332		<div class=""> 
333    		<input type="hidden"  
334		    	name="$form_elem_name" id="$form_elem_name"  
335		    	title="$form_elem_label"  
336				placeholder="$form_elem_label"   
337    			class="v3_Form_form_elem"  
338				value="" 
339
340		</div> 
341		<div class="v3_Form_form_elem_msg_error"  
342				id="v3_Form_form_elem_msg_error_$form_elem_name"> 
343		</div>		 
344		 
345## valor - inicio 
346## -------------------------------------------------------------------------------		 
347 
348<div  class="v3_Flujo_valor_list"  
349		 id="v3_Flujo_valor_list"> 
350</div>  
351 
352## valor - fin 
353## ------------------------------------------------------------------------------- 
354 
355 
356<div class="v3_Flujo_resumen_costo_adicional v3_Form_hidden"  
357		id="v3_Flujo_resumen_costo_adicional"> 
358	* Adicional al precio de tu paquete. 
359</div> 
360 
361<br> 
362 
363## resumen - total - inicio 
364## -------------------------------------------------------------------------------	 
365 
366    <div class="v3_Flujo_resumen_total"  
367			id="v3_Flujo_resumen_total"> 
368    <div class="v3_Flujo_resumen_total_cont"> 
369		 
370		<div class="v3_Flujo_resumen_total_label"  
371				id="v3_Flujo_resumen_total_label"> 
372	    	Total al mes:  
373			<span class="v3_Flujo_resumen_total_control"  
374	    			 id="v3_Flujo_resumen_total_control"> 
375	         <span class="v3_Flujo_resumen_total_control_cantidad"  
376	    			 id="v3_Flujo_resumen_total_control_cantidad">  
377	          </span>						 
378	        </span>			 
379		</div> ## <div class="v3_Flujo_resumen_total_label"  
380			 
381    </div> 
382    </div> ## <div class="v3_Flujo_resumen_total" 
383		 
384## resumen - total - fin 
385## -------------------------------------------------------------------------------			 
386 
387## resultado - inicio 
388## ------------------------------------------------------------------------------- 
389 
390## resultado - fin 
391## ------------------------------------------------------------------------------- 
392 
393</div> ## <div class="v3_Form_paso_s 
394## paso - section - fin 
395## ------------------------------------------------------------------------------- 
396 
397	<div class="v3_Form_section_spacer"> 
398		&nbsp; 
399	</div>	 
400 
401<div class="v3_Form_form_boton_list"> 
402	 
403#set ( $form_elem_label     =	"Continuar" ) 
404#set ( $form_elem_name      =	"boton_paso_" ) 
405#set ( $form_elem_msg_error	=	"" ) 
406    		<input type="button" 
407    			name="$form_elem_name" id="$form_elem_name"   
408    			value="$form_elem_label" title="$form_elem_label" 				 
409    			class="v3_Form_form_boton"  
410    			onclick="fnv3_Flujo_paso( this.form, '$pasoId', this );"    			 
411
412 
413        	<a href="javascript:fnv3_Flujo_regresar( '$pasoAnteriorId' );" class="v3_Form_form_boton_regresar"> 
414        		Regresar 
415        	</a> 
416 
417</div> ## <div class="v3_Form_form_boton_list"> 
418	 
419</div> ## <div class="v3_Form_paso_contenido"> 
420</div> ## <div class="v3_Form_paso " 
421## paso - fin	 
422## =============================================================================== 
423	 
424</form> 
425</div> ## <div class="v3_Form"> 
426</div> ## <div class="v3_Form_content fullBox"> 
427## v3_Form - fin 
428## =============================================================================== 
429	 
430## No se pone directamente <script para que el código no se coloree como js en el editor 
431#set ( $string_aux     			= "<script" ) 
432$string_aux type="text/javascript">			 
433			 
434## pasos - inicio 
435## ------------------------------------------------------------------------------- 
436 
437function fnv3_Flujo_paso_init_event() { 
438	var frmForm       	= null; 
439	 
440	frmForm = document.forms[ "v3_Form_form" ]; 
441	 
442	fnv3_Flujo_paso_ir( frmForm, '$pasoId' ); 
443	 
444	fnv3_Flujo_val_load( frmForm ); 
445	 
446	fnAjaxParse( "$uri_valor", false ); 
447	 
448	## Si viene de botón "Regresar" 
449	fnv3_Flujo_val_load_valor_list( frmForm ); 
450	 
451	fnv3_Flujo_resumen( frmForm, '$pasoId' ); 
452				 
453} ## End if 
454 
455function fnv3_Flujo_regresar_especifico( pasoId ) { 
456	var frmForm				=	null; 
457	 
458	var lstParams			=	""; 
459	 
460	frmForm = document.forms[ "v3_Form_form" ]; 
461	 
462	lstParams  = ""; 
463	lstParams += "&"; 
464	lstParams += "paq" 		+ "=" 	+ frmForm.elements[ 'servicio_id' ].value;						 
465	 
466	fnv3_Flujo_location( '${uri_paso_back}' + '?' + lstParams ); 
467	 
468} ## End function 
469 
470function fnv3_Flujo_paso_especifico( pfrmForm, pasoId, pobCaller ) { 
471	var frmForm       	= null; 
472   
473	frmForm = pfrmForm; 
474	 
475#*	 
476	fnv3_Form_boton_working( pobCaller ); 
477	 
478    setTimeout(  
479		function () {		 
480			fnv3_Flujo_Form_submit( pfrmForm ); 
481		} ## End function 
482		, ( 1 * 1000 )  
483	); 
484*#	 
485	fnv3_Flujo_Form_submit( pfrmForm ); 
486	 
487} ## End function 
488  
489## pasos - fin 
490## ------------------------------------------------------------------------------- 
491 
492## pre-submit - inicio 
493## ------------------------------------------------------------------------------- 
494  
495## pre-submit - fin 
496## ------------------------------------------------------------------------------- 
497 
498## validar - inicio 
499## ------------------------------------------------------------------------------- 
500function fnv3_Form_validar_especifico( pfrmForm, pasoId ) { 
501## return true; ## DEV 
502	var retorno       	= 	true; 
503	var frmForm       	= 	null; 
504	var frmElem     	= 	null; 
505	var frmElemName     = 	""; 
506	var frmElemNameAux	= 	""; 
507	var stringAux     	= 	""; 
508	var lobCaptcha		=	null; 
509 
510	frmForm = pfrmForm; 
511	 
512	frmElemName = "tel"; 
513	frmElem = frmForm.elements[ frmElemName ]; 
514	if ( !fnv3_Form_valida_vacio( frmElem.value ) ) { 
515##		fnv3_Flujo_msg_error( frmElem ); 
516		retorno = false;     
517	} ## End if        
518	else { 
519		if ( !fnv3_Form_valida_tel( frmElem.value ) ) { 
520			fnv3_Flujo_msg_error( frmElem ); 
521			retorno = false;     
522		} ## End if 
523	} ## End else 
524	    	 
525	frmElemName = "email"; 
526	frmElem = frmForm.elements[ frmElemName ]; 
527	if ( !fnv3_Form_valida_vacio( frmElem.value ) ) { 
528##		fnv3_Flujo_msg_error( frmElem ); 
529		retorno = false;     
530	} ## End if        
531	else {   
532		if ( !fnv3_Form_valida_email( frmElem.value ) ) { 
533			fnv3_Flujo_msg_error( frmElem ); 
534			retorno = false;     
535		} ## End if  
536	} ## End else 
537	 
538	frmElemName = "servicio_id"; 
539	frmElem = frmForm.elements[ frmElemName ]; 
540	if ( !fnv3_Form_valida_vacio( frmElem.value ) ) { 
541##		fnv3_Flujo_msg_error( frmElem ); 
542		retorno = false;     
543	} ## End if   
544		 
545	return retorno; 
546} ## End function 
547  
548## validar - fin 
549## ------------------------------------------------------------------------------- 
550 
551## submit - inicio 
552## ------------------------------------------------------------------------------- 
553 
554function fnv3_Flujo_Form_submit_ajax_especifico( pfrmForm, pasoId ) { 
555	var frmForm       	= 	null; 
556	var lstFormAction	=	""; 
557	var lstAjxUrl   	= 	""; 
558	var lstAjxParams  	= 	""; 
559	 
560	var frmElem     	= 	null; 
561	var frmElemName     = 	""; 
562	 
563	var lstParams		=	""; 
564	 
565	frmForm = pfrmForm; 
566	 
567	lstFormAction	=	"$form_action"; 
568	 
569	lstAjxUrl	 =	""; 
570	lstAjxUrl	+=	lstFormAction + "?"; 
571	 
572	fnv3_Flujo_servicio_success( {}, pasoId );		 
573	 
574} ## End function 
575 
576## submit - fin 
577## ------------------------------------------------------------------------------- 
578 
579## post-submit - inicio 
580## ------------------------------------------------------------------------------- 
581 
582function fnv3_Flujo_servicio_success_process( pobXHR, pasoId ) { 
583	var lobData       		= 	null; 
584	var retornoCode   		= 	""; 
585	var frmForm				=	null; 
586	 
587	var frmElem     		= 	null; 
588	var frmElemName     	= 	""; 
589	 
590	var lstParams			=	""; 
591	 
592	frmForm = document.forms[ "v3_Form_form" ]; 
593	 
594	lobData = pobXHR; 
595	 
596	lstParams  = ""; 
597	 
598   	frmElemName = "recibo_papel_no"; 
599   	frmElem = frmForm.elements[ frmElemName ]; 
600	lstParams = frmElem.value; 
601	 
602	fnv3_FlujoParamSet( lstParams, '_upvalor' );		 
603	 
604	lstParams  = ""; 
605	lstParams += "&"; 
606	lstParams += "paq" 		+ "=" 	+ frmForm.elements[ 'servicio_id' ].value;						 
607	lstParams += "&"; 
608	lstParams += "prec" 	+ "=" 	+ frmForm.elements[ 'servicio_id_precio' ].value; 
609    lstParams += "&"; 
610	lstParams += "val" 	    + "=" 	+ frmForm.elements[ 'recibo_papel_no' ].value; 
611		 
612	fnv3_Flujo_location( '${uri_paso_next}' + '?' + lstParams ); 
613 
614} ## End function 
615  
616## post-submit - fin 
617## ------------------------------------------------------------------------------- 
618 
619## form - values - load - inicio 
620## ------------------------------------------------------------------------------- 
621 
622function fnv3_Flujo_val_load( pfrmForm ) { 
623	var frmForm       			=	null; 
624	 
625	var	larValSelected			=	null; 
626	 
627	frmForm = pfrmForm; 
628	 
629	frmForm.elements[ 'tel' ].value 				= fnv3_FlujoParamGet( 't', '_upco' ); 
630	frmForm.elements[ 'email' ].value 				= fnv3_FlujoParamGet( 'em', '_upco' ); 
631	frmForm.elements[ 'servicio_id' ].value 		= fnv3_UriParamGet( 'paq' ); 
632	frmForm.elements[ 'servicio_id_precio' ].value 	= fnv3_UriParamGet( 'prec' ); 
633	 
634	frmForm.elements[ 'servicio_id_actual' ].value 	= fnv3_FlujoParamGet( 'nivel', 	'_upco' ); 
635	frmForm.elements[ 'tec' ].value 				= fnv3_FlujoParamGet( 'tec', 	'_upco' ); 
636	frmForm.elements[ 'tec_nva' ].value 			= fnv3_FlujoParamGet( 'tec_nva','_upco' ); 
637	 
638} ## End function 
639 
640function fnv3_Flujo_val_load_valor_list( pfrmForm ) { 
641	var frmForm       			=	null; 
642	var lstElementId   			=	''; 
643	 
644	var	larValSelected			=	null; 
645	 
646	frmForm = pfrmForm; 
647	 
648	fnv3_FlujoParamSet( '', '_upvalor' ); 
649	 
650	## Si viene de botón "Regresar" 
651	larValSelected = fnv3_FlujoParamGet( '_upvalor' ) 
652	 
653	if ( larValSelected != '' ) { 
654	 
655    	larValSelected = larValSelected.split( '-' ); 
656    	for ( x = 0; x < larValSelected.length; x++ ) { 
657			lstElementId = 'v3_Valor_input_' + larValSelected[ x ]; 
658    		$( '#' + lstElementId ).prop( "checked", true ); 
659			fnv3_Flujo_Valor_select( frmForm.elements[ lstElementId ], larValSelected[ x ] ); 
660    	} ## End for		 
661	 
662	} ## End if 
663	 
664} ## End function 
665 
666## form - values - load - fin 
667## ------------------------------------------------------------------------------- 
668 
669## resumen - inicio 
670## ------------------------------------------------------------------------------- 
671 
672function fnv3_Form_form_resumen_suma() { 
673	var lnuSuma			   	=	0; 
674	var lstNumero		   	=	""; 
675	var lnuNumero		   	=	0; 
676	 
677	var frmForm       		= 	null; 
678	var frmElemName     	= 	"";	 
679	var lstHtml				= 	""; 
680	 
681	var lboCostoAdicional	=	false; 
682	 
683	var larCampoVals		=	[]; 
684	var larCampoValsAux		=	[]; 
685	 
686	var SEP_CAR				=	"-"; 
687	var lstObId				=	""; 
688	 
689	var lstHtmlToInsert		=	""; 
690	 
691	lnuSuma = 0; 
692	 
693	frmForm = document.forms[ "v3_Form_form" ]; 
694	 
695   	frmElemName = "servicio_id_precio"; 
696   	frmElem = frmForm.elements[ frmElemName ]; 
697 
698	## precio del paquete seleccionado 
699	lstNumero = frmElem.value; 
700	lnuNumero = parseFloat( lstNumero ); 
701	lnuSuma += lnuNumero; 
702	 
703	## valores 
704   	frmElemName = "recibo_papel_no"; 
705   	frmElem = frmForm.elements[ frmElemName ]; 
706	 
707	larCampoVals = frmElem.value.split( SEP_CAR ); 
708	 
709	for ( var i = 0; i < larCampoVals.length; i++ ) { 
710		 
711		if (  larCampoVals[ i ] == "" ) { 
712			continue; 
713		} ## End if  
714		 
715		lstObId = '#' + 'v3_Valor_s_' + larCampoVals[ i ] + ' .contenido_ob .precio'; 
716		 
717		lstNumero = $( lstObId ).html();		 
718		lstNumero = lstNumero.trim(); 
719		 
720		lnuNumero = parseFloat( lstNumero ); 
721		if ( !isNaN( lnuNumero ) ) { 
722			lnuSuma += lnuNumero; 
723			 
724			lboCostoAdicional = true; 
725		} ## End if		 
726		 
727	} ## End for 
728	 
729	lstNumero = accounting.formatMoney( lnuSuma ); 
730	 
731	lstHtmlToInsert = lstNumero; 
732	lstElemDestinoId = '#' + 'v3_Flujo_resumen_total_control_cantidad'; 
733	$( lstElemDestinoId ).html( lstHtmlToInsert );		 
734	 
735	$( '#' + 'v3_Flujo_resumen_costo_adicional' ).addClass( 'v3_Form_hidden' ); 
736	if ( lboCostoAdicional ) { 
737		$( '#' + 'v3_Flujo_resumen_costo_adicional' ).removeClass( 'v3_Form_hidden' ); 
738	} ## End if 
739	 
740} ## End function 
741 
742function fnv3_Flujo_resumen( pasoId ) { 
743	var frmForm       	= null; 
744	 
745	var lstHtmlToInsert   	=	""; 
746	var lstElemFuenteId		=	""; 
747	var lobElemFuente	   	=	null; 
748	var lstElemDestinoId	=	""; 
749	 
750	frmForm = document.forms[ "v3_Form_form" ]; 
751	 
752	fnv3_Form_form_resumen_suma(); 
753	 
754} ## End function 
755 
756## resumen - fin 
757## ------------------------------------------------------------------------------- 
758 
759## paginas relacionadas (parse) - inicio 
760## =============================================================================== 
761 
762function fnv3_Form_form_parsedDom_add_valor( pobDom ) { 
763	var lstElemDestinoId		=	""; 
764	var lstElemFuenteId			=	""; 
765	var lobElemFuente	   		=	null; 
766	var lstElemFuenteHtml  		=	"";	 
767	var id						=	""; 
768	var	lstHtml					=	""; 
769	 
770	var frmForm					=	null; 
771	var frmElemName     		= 	""; 
772	var	frmElem					=	null; 
773	 
774	var lstPageElemId			=	""; 
775	 
776	var lobElemFilter			=	null; 
777	var larElemFilterProcesed	=	[]; 
778	 
779	frmForm = document.forms[ "v3_Form_form" ]; 
780	 
781	lstElemDestinoId = "#" + "v3_Form_form_valor_parsedDom"; 
782	$( lstElemDestinoId ).html( '' ); 
783	 
784	lstElemFuenteId = "." + 'v3_Valor_ob_id'; 
785	 
786	pobDom.find( lstElemFuenteId ).each( 
787		function( index ) { 
788		 
789        	lobElemFuente = $( this );	 
790        	lstElemFuenteHtml = lobElemFuente.html(); 
791			 
792			id = lobElemFuente.attr( 'id' ); 
793			id = id.substring( 'v3_Valor_'.length ); 
794			 
795			lobElemFilter = fnv3_Form_form_parsedDom_add_valor_filter( id ); 
796			 
797        	## Solo procesar una vez cada id 
798        	for ( x = 0; x < larElemFilterProcesed.length; x++ ) { 
799        		if ( larElemFilterProcesed[ x ] == lobElemFilter[ "elem_id" ] ) { 
800        			return; 
801        		} ## End if 
802        	} ## End for 
803        	larElemFilterProcesed.push( lobElemFilter[ "elem_id" ] );				 
804						 
805			if( lobElemFilter[ "elem_fuente_id" ] != id ) { 
806				id = lobElemFilter[ "elem_id" ]; 
807			 
808				lstElemFuenteId = '#' + 'v3_Valor_' + lobElemFilter[ "elem_fuente_id" ]; 
809				lobElemFuente = pobDom.find( lstElemFuenteId );	 
810				lstElemFuenteHtml = lobElemFuente.html(); 
811			} ## End else 
812			 
813			lstHtml  = ''; 
814        	lstHtml += '<div class="v3_Valor_s" '; 
815			lstHtml += 		   'id="v3_Valor_s_' + id + '" '; 
816			lstHtml += '>'; 
817        	lstHtml += '	<div class="v3_Valor_input_s">'; 
818			lstHtml += 			'<input type="checkbox" name="v3_Valor_input_' + id + '" '; 
819			lstHtml += 				'class="v3_Valor_input" '; 
820			lstHtml += 				   'id="v3_Valor_input_' + id + '" '; 
821			lstHtml += 				'onClick="fnv3_Flujo_Valor_select( this, ' + '\'' + id +  '\''  + ' );" '; 
822			lstHtml += 				'value="' + id + '" '; 
823			lstHtml += 			'>'; 
824        	lstHtml += '	</div>';			 
825        	lstHtml += '	<div class="v3_Valor_html_s">'; 
826			lstHtml += lstElemFuenteHtml; 
827        	lstHtml += '	</div>';			 
828        	lstHtml += '</div>'; 
829			 
830        	$( lstElemDestinoId ).append( lstHtml ); 
831			 
832		} ## End function 
833	); 
834	 
835	lstPageElemId = "#" + "v3_Flujo_valor_list"; 
836	$( lstPageElemId ).html( '' );	 
837	 
838	$( lstPageElemId ).html( $( lstElemDestinoId ).html() );	 
839	$( lstElemDestinoId ).html( '' );		 
840		 
841} ## End function 
842 
843function fnv3_Form_form_parsedDom_add( pstParseUri, pobDom ) { 
844	if ( pstParseUri == "$uri_valor" ) { 
845		fnv3_Form_form_parsedDom_add_valor( pobDom );		 
846	} ## End if 
847 
848} ## End function 
849 
850function fnAjaxParse_success_especifico( pstParseUri, pobDom ) { 
851	fnv3_Form_form_parsedDom_add( pstParseUri, pobDom );		 
852} ## End function 
853 
854## paginas relacionadas (parse) - fin 
855## =============================================================================== 
856 
857## valor - inicio 
858## ------------------------------------------------------------------------------- 
859 
860function fnv3_Flujo_Valor_select( ob, pstId ) { 
861	var id					=	""; 
862	var obTargetId			=	""; 
863	var lstElemFuenteId		=	""; 
864	var lobElemFuente	   	=	null;	 
865	 
866	var frmForm       		= 	null; 
867	var frmElemName     	= 	""; 
868	var frmElem				=	null; 
869	 
870	var larCampoVals		=	[]; 
871	var larCampoValsAux		=	[]; 
872	 
873	var SEP_CAR				=	"-"; 
874	var lboIdYaExiste		=	false; 
875	 
876	var lstParams		=	""; 
877 
878	frmForm = document.forms[ "v3_Form_form" ]; 
879	 
880	id = pstId; 
881	 
882	frmElemName = "recibo_papel_no"; 
883	frmElem = frmForm.elements[ frmElemName ]; 
884	 
885	if ( ob.checked ) { 
886		 
887    	if ( frmElem.value == "" ) { 
888    		frmElem.value = pstId;	 
889    	} ## End if 
890    	else { 
891    		larCampoVals = frmElem.value.split( SEP_CAR ); 
892    		 
893        	for ( var i = 0; i < larCampoVals.length; i++ ) { 
894        		 
895        		if ( larCampoVals[ i ] == pstId ) { 
896        			lboIdYaExiste = true; 
897        			break; 
898        		} ## End if 
899        		 
900        	} ## End for 
901        	 
902        	if ( !lboIdYaExiste ) { 
903        		frmElem.value = frmElem.value + SEP_CAR + pstId; 
904        	} ## End if 
905    		 
906    	} ## End else	 
907	 
908	} ## End if 
909	else { 
910		 
911		larCampoVals = frmElem.value.split( SEP_CAR ); 
912		 
913    	for ( var i = 0; i < larCampoVals.length; i++ ) { 
914    		 
915    		if ( larCampoVals[ i ] == pstId ) { 
916    			continue; 
917    		} ## End if 
918			 
919			larCampoValsAux.push( larCampoVals[ i ] );			 
920    		 
921    	} ## End for 
922		 
923    	frmElem.value = ""; 
924    	for ( var i = 0; i < larCampoValsAux.length; i++ ) { 
925    		if ( i == ( larCampoValsAux.length - 1 ) ) { 
926    			SEP_CAR = ""; 
927    		} ## End if 
928    		frmElem.value = frmElem.value + larCampoValsAux[ i ] + SEP_CAR; 
929    	} ## End if 
930	 
931	} ## End else 
932	 
933	fnv3_Form_form_resumen_suma(); 
934 
935} ## End function 
936 
937## valor - fin 
938## -------------------------------------------------------------------------------		 
939 
940</script> 
941 
942#parse ( "$templatesPath/400058" ) ## v3_Flujo_Upsell_Pyme_Valor_Reutil.vm 
943 
944## ( document ).ready - inicio 
945## =============================================================================== 
946 
947## No se pone directamente <script para que el código no se coloree como js en el editor 
948#set ( $string_aux     			= "<script" ) 
949$string_aux type="text/javascript"> 
950 
951$( document ).ready( 
952function() { 
953	fnv3_Form_html5Inputs( "v3_Form_form" ); 
954	fnv3_Flujo_paso_init_event(); 
955} ## End function 
956);  ## $( document ).ready( 
957</script> 
958	 
959## ( document ).ready - fin 
960## =============================================================================== 
¡Hola!  
¿puedo ayudarte en algo?