<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">// JavaScript Document

var vNewLine = "\n";

function vnopntoscomas(e)
{
    tecla = (document.all) ? e.keyCode : e.which; // 2
    if (tecla==8) 
		return true; // 3
    patron =/[A-Za-zñÑ\s\w]/; // 4
    te = String.fromCharCode(tecla); // 5

	return patron.test(te); // 6	
}

function vformu_pobox(formu)
{
	var vlr;
	var vmsj;	
	var aux;

	vlr=true;
	vmsj="";

	if (formu.cas_nombre.value.length&lt;1)
	{
		vlr=false;
		if(typeof TraducirTextoJS=="function"){ aux = TraducirTextoJS("missing.name"); }
		else { aux = "Text not translate: * Debe llenar el campo de Nombre. "; }
		vmsj=vmsj+ vNewLine +aux;
	}
	
	if (formu.cas_celular.value.length&lt;1)
	{
		vlr=false;
		if(typeof TraducirTextoJS=="function"){ aux = (" Indique Cel"); }
		else { aux = "Text not translate: * Debe llenar el campo de Nombre. "; }
		vmsj=vmsj+ vNewLine +aux;
	}
	
//	if (formu.cas_cedula.value.length&lt;1)
//	{
//		vlr=false;
//		//vmsj=vmsj+"\n* Debe llenar el campo de Nombre. ";
//		if(typeof TraducirTextoJS=="function"){ aux = (" ID"); }
//		else { aux = "Text not translate: * Debe llenar el campo de cedula. "; }
//		vmsj=vmsj+ vNewLine +aux;
//	}
	
	if (formu.cas_zip.value.length&lt;1)
	{
		vlr=false;
		//vmsj=vmsj+"\n* Debe llenar el campo de zip. ";
		if(typeof TraducirTextoJS=="function"){ aux = TraducirTextoJS("missing.zip"); }
		else { aux = "Text not translate: * Debe llenar el campo de Zip. "; }
		vmsj=vmsj+ vNewLine +aux;
	}
	
	
	if (formu.cas_direccion.value.length&lt;1)
	{
		vlr=false;
		//vmsj=vmsj+"\n* Debe llenar el campo de Direccion. ";
		if(typeof TraducirTextoJS=="function"){ aux = TraducirTextoJS("missing.address"); }
		else { aux = "Text not translate: * Debe llenar el campo de Direccion. "; }
		vmsj=vmsj+ vNewLine +aux;
	}
	if (formu.cas_email.value.length&lt;1)
	{
		vlr=false;
		//vmsj=vmsj+"\n* Debe llenar el campo de Correo. ";
		if(typeof TraducirTextoJS=="function"){ aux = TraducirTextoJS("missing.email"); }
		else { aux = "Text not translate: * Debe llenar el campo de Correo. "; }
		vmsj=vmsj+ vNewLine +aux;
	}
	if(formu.cas_email.value.length&gt;1)
	{
		re=/^[_a-z0-9-]+(.[_a-z0-9-]+)*@[a-z0-9-]+(.[a-z0-9-]+)*(.[a-z]{2,3})$/
		formu.cas_email.value=formu.cas_email.value.toLowerCase()
		if(!re.exec(formu.cas_email.value))
		{
			vlr=false;
			//vmsj=vmsj+"\n* Debe dar un correo valido en el campo de Correo. ";
			if(typeof TraducirTextoJS=="function"){ aux = TraducirTextoJS("email.valid"); }
			else { aux = "Text not translate: * Debe dar un correo valido en el campo de Correo."; }
			vmsj=vmsj+ vNewLine +aux;
		}
	}
	if (formu.cas_alias.value.length&lt;1)
	{
		vlr=false;
		//vmsj=vmsj+"\n* Debe llenar el campo de Alias. ";
		if(typeof TraducirTextoJS=="function"){ aux = TraducirTextoJS("missing.alias"); }
		else { aux = "Text not translate: * Debe llenar el campo de Alias. "; }
		vmsj=vmsj+ vNewLine +aux;
	}
	if (formu.ciudad.value.length&lt;1)
	{
		vlr=false;
		//vmsj=vmsj+"\n* Debe seleccionar una Ciudad. ";
		if(typeof TraducirTextoJS=="function"){ aux = TraducirTextoJS("missing.city"); }
		else { aux = "Text not translate: * Debe llenar el campo de Ciudad. "; }
		vmsj=vmsj+ vNewLine +aux;
	}
	if (formu.cas_password.value.length&lt;1)
	{
		vlr=false;
		//vmsj=vmsj+"\n* Debe llenar el campo de Clave. ";
		if(typeof TraducirTextoJS=="function"){ aux = TraducirTextoJS("missing.pass"); }
		else { aux = "Text not translate: * Debe llenar el campo de Clave. "; }
		vmsj=vmsj+ vNewLine +aux;
	}
	if (formu.cas_telefono.value.length&lt;1)
	{
		vlr=false;
		//vmsj=vmsj+"\n* Debe llenar el campo de Telefono. ";
		if(typeof TraducirTextoJS=="function"){ aux = TraducirTextoJS("missing.telephone"); }
		else { aux = "Text not translate: * Debe llenar el campo de Telefono. "; }
		vmsj=vmsj+ vNewLine +aux;
	}
	if(formu.notificar.checked)
	{
		if(formu.ccEmail.value.length&gt;1)
		{
			re=/^[_a-z0-9-]+(.[_a-z0-9-]+)*@[a-z0-9-]+(.[a-z0-9-]+)*(.[a-z]{2,3})$/
			formu.ccEmail.value=formu.ccEmail.value.toLowerCase()
			if(!re.exec(formu.ccEmail.value))
			{
				vlr=false;
				//vmsj=vmsj+"\n* Debe dar un correo valido en el campo de BCC a. ";
				if(typeof TraducirTextoJS=="function"){ aux = TraducirTextoJS("email.valid"); }
				else { aux = "Text not translate: * Debe dar un correo valido en el campo de BCC a."; }
				vmsj=vmsj+ vNewLine +aux;
			}
		}
	}
	//else
	//{
		//vlr=false;
		//vmsj=vmsj+"\n* Debe habilitar el campo de Notificar via email a el cliente. ";	
		//if(typeof TraducirTextoJS=="function"){ aux = TraducirTextoJS("email.notif"); }
		//else { aux = "Text not translate: * Debe habilitar el campo de Notificar via email a el cliente. "; }
		//vmsj=vmsj+ vNewLine +aux;
	//}

	if(vlr==false)
	{
		//alert("Por favor tenga en cuenta: \n"+vmsj);
		if(typeof AlertClient=="function"){aux = TraducirTextoJS("alert.header",""); }
		else { aux = "Text not translate: Por favor tenga en cuenta lo siguiente "; }
		vmsj = aux + vNewLine + vmsj;
		alert(vmsj);
	}
	else
	{
		//alert("Todos campos llenos");	
		formu.vformul.value=2;&nbsp;
		formu.submit();
	}
}


function vformu_no_pobox(formu)
{
	var vlr;
	var vmsj;
	var aux;
	vlr=true;
	vmsj="";

	if (formu.cas_nombre.value.length&lt;1)
	{
		vlr=false;
		//vmsj=vmsj+"\n* Debe llenar el campo de Nombre. ";
		if(typeof TraducirTextoJS=="function"){ aux = TraducirTextoJS("missing.name"); }
		else { aux = "Text not translate: * Debe llenar el campo de Nombre. "; }
		vmsj=vmsj+ vNewLine +aux;
	}
	
	if (formu.cas_celular.value.length&lt;1)
	{
		vlr=false;
		//vmsj=vmsj+"\n* Debe llenar el campo de Nombre. ";
		if(typeof TraducirTextoJS=="function"){ aux = (" Indique Cel"); }
		else { aux = "Text not translate: * Debe llenar el campo de Cel. "; }
		vmsj=vmsj+ vNewLine +aux;
	}
	
	
	if (formu.cas_cedula.value.length&lt;1)
	{
		vlr=false;
		//vmsj=vmsj+"\n* Debe llenar el campo de Nombre. ";
		if(typeof TraducirTextoJS=="function"){ aux = (" ID"); }
		else { aux = "Text not translate: * Debe llenar el campo de cedula. "; }
		vmsj=vmsj+ vNewLine +aux;
	}
	if (formu.cas_direccion.value.length&lt;1)
	{
		vlr=false;
		//vmsj=vmsj+"\n* Debe llenar el campo de Direccion. ";
		if(typeof TraducirTextoJS=="function"){ aux = TraducirTextoJS("missing.address"); }
		else { aux = "Text not translate: * Debe llenar el campo de Direccion. "; }
		vmsj=vmsj+ vNewLine +aux;
	}
	if (formu.cas_email.value.length&lt;1)
	{
		vlr=false;
		//vmsj=vmsj+"\n* Debe llenar el campo de email. ";
		if(typeof TraducirTextoJS=="function"){ aux = TraducirTextoJS("missing.email"); }
		else { aux = "Text not translate: * Debe llenar el campo de Email. "; }
		vmsj=vmsj+ vNewLine +aux;
	}
	if(formu.cas_email.value.length&gt;1)
	{
		re=/^[_a-z0-9-]+(.[_a-z0-9-]+)*@[a-z0-9-]+(.[a-z0-9-]+)*(.[a-z]{2,3})$/
		formu.cas_email.value=formu.cas_email.value.toLowerCase()
		if(!re.exec(formu.cas_email.value))
		{
			vlr=false;
			//vmsj=vmsj+"\n* Debe dar un correo valido en el campo de email. ";
			if(typeof TraducirTextoJS=="function"){ aux = TraducirTextoJS("email.valid"); }
			else { aux = "Text not translate: * Debe dar un correo valido en el campo de email. "; }
			vmsj=vmsj+ vNewLine +aux;
		}
	}
	if (formu.cas_alias.value.length&lt;1)
	{
		vlr=false;
		//vmsj=vmsj+"\n* Debe llenar el campo de Cedula. ";
		if(typeof TraducirTextoJS=="function"){ aux = TraducirTextoJS("missing.alias"); }
		else { aux = "Text not translate: * Debe llenar el campo de Alias. "; }
		vmsj=vmsj+ vNewLine +aux;
	}
	
	
	if (formu.cas_telefono.value.length&lt;1)
	{
		vlr=false;
		//vmsj=vmsj+"\n* Debe llenar el campo de Telefono. ";
		if(typeof TraducirTextoJS=="function"){ aux = TraducirTextoJS("missing.telephone"); }
		else { aux = "Text not translate: * Debe llenar el campo de Telefono. "; }
		vmsj=vmsj+ vNewLine +aux;
	}
	if (formu.cas_ciudad_id.value.length&lt;1)
	{
		vlr=false;
		//vmsj=vmsj+"\n* Debe seleccionar una Ciudad. ";
		if(typeof TraducirTextoJS=="function"){ aux = TraducirTextoJS("missing.city"); }
		else { aux = "Text not translate: * Debe llenar el campo de Ciudad. "; }
		vmsj=vmsj+ vNewLine +aux;
	}
	if (formu.ciudad.value.length&lt;1)
	{
		vlr=false;
		//vmsj=vmsj+"\n* Debe seleccionar una Ciudad. ";
		if(typeof TraducirTextoJS=="function"){ aux = TraducirTextoJS("select.city"); }
		else { aux = "Text not translate: * Debe seleccionar una Ciudad. "; }
		vmsj=vmsj+ vNewLine +aux;
	}
	if (formu.cas_password.value.length&lt;1)
	{
		vlr=false;
		//vmsj=vmsj+"\n* Debe llenar el campo de Clave. ";
		if(typeof TraducirTextoJS=="function"){ aux = TraducirTextoJS("missing.pass"); }
		else { aux = "Text not translate: * Debe llenar el campo de Clave. "; }
		vmsj=vmsj+ vNewLine +aux;
	}
	if (formu.cas_agencia_id_combo.value==0)
	{
		vlr=false;
		//vmsj=vmsj+"\n* Debe seleccionar una Agencia. ";
		if(typeof TraducirTextoJS=="function"){ aux = TraducirTextoJS("select.ffw"); }
		else { aux = "Text not translate: * Debe seleccionar una agencia. "; }
		vmsj=vmsj+ vNewLine +aux;
	}
	if(formu.notificar.checked)
	{
	
	}
	else
	{
		//vlr=false;
		//vmsj=vmsj+"\n* Debe habilitar el campo de Notificar via email a el cliente. ";	
		if(typeof TraducirTextoJS=="function"){ aux = TraducirTextoJS("email.notif"); }
		else { aux = "Text not translate: * Debe habilitar el campo de Notificar via email a el cliente. "; }
		vmsj=vmsj+ vNewLine +aux;
	}

	if(vlr==false)
	{
		//alert("Por favor tenga en cuenta: \n"+vmsj);
		if(typeof TraducirTextoJS=="function"){ aux = TraducirTextoJS("alert.header"); }
		else { aux = "Text not translate: Por favor tenga en cuenta: "; }
		vmsj = aux + vNewLine + vmsj;
		alert(vmsj);
	}
	else
	{
		//alert("Todos campos llenos");	
		formu.vformul.value=2;&nbsp;
		formu.submit();
	}
}

function vformu_no_poboxNYC(formu) {
    var vlr;
    var vmsj;
    var aux;
    vlr = true;
    vmsj = "";

    if (formu.cas_nombre.value.length &lt; 1) {
        vlr = false;
        //vmsj=vmsj+"\n* Debe llenar el campo de Nombre. ";
        if (typeof TraducirTextoJS == "function") { aux = TraducirTextoJS("missing.name"); }
        else { aux = "Text not translate: * Debe llenar el campo de Nombre. "; }
        vmsj = vmsj + vNewLine + aux;
    }

    if (formu.cas_celular.value.length &lt; 1) {
        vlr = false;
        //vmsj=vmsj+"\n* Debe llenar el campo de Nombre. ";
        if (typeof TraducirTextoJS == "function") { aux = (" Indique Cel"); }
        else { aux = "Text not translate: * Debe llenar el campo de Cel. "; }
        vmsj = vmsj + vNewLine + aux;
    }

    /*
    if (formu.cas_cedula.value.length &lt; 1) {
        vlr = false;
        //vmsj=vmsj+"\n* Debe llenar el campo de Nombre. ";
        if (typeof TraducirTextoJS == "function") { aux = (" ID"); }
        else { aux = "Text not translate: * Debe llenar el campo de cedula. "; }
        vmsj = vmsj + vNewLine + aux;
    }*/
    if (formu.cas_direccion.value.length &lt; 1) {
        vlr = false;
        //vmsj=vmsj+"\n* Debe llenar el campo de Direccion. ";
        if (typeof TraducirTextoJS == "function") { aux = TraducirTextoJS("missing.address"); }
        else { aux = "Text not translate: * Debe llenar el campo de Direccion. "; }
        vmsj = vmsj + vNewLine + aux;
    }
    if (formu.cas_email.value.length &lt; 1) {
        vlr = false;
        //vmsj=vmsj+"\n* Debe llenar el campo de email. ";
        if (typeof TraducirTextoJS == "function") { aux = TraducirTextoJS("missing.email"); }
        else { aux = "Text not translate: * Debe llenar el campo de Email. "; }
        vmsj = vmsj + vNewLine + aux;
    }
    if (formu.cas_email.value.length &gt; 1) {
        re = /^[_a-z0-9-]+(.[_a-z0-9-]+)*@[a-z0-9-]+(.[a-z0-9-]+)*(.[a-z]{2,3})$/
        formu.cas_email.value = formu.cas_email.value.toLowerCase()
        if (!re.exec(formu.cas_email.value)) {
            vlr = false;
            //vmsj=vmsj+"\n* Debe dar un correo valido en el campo de email. ";
            if (typeof TraducirTextoJS == "function") { aux = TraducirTextoJS("email.valid"); }
            else { aux = "Text not translate: * Debe dar un correo valido en el campo de email. "; }
            vmsj = vmsj + vNewLine + aux;
        }
    }
    if (formu.cas_emailV.value != formu.cas_email.value) {
        vlr = false;
        //vmsj=vmsj+"\n* Debe llenar el campo de email. ";
        if (typeof TraducirTextoJS == "function") { aux = TraducirTextoJS("Verificaremail"); }
        else { aux = "Text not translate: * Los correos ingresados no coinciden. "; }
        vmsj = vmsj + vNewLine + aux;
    }
    /*
    if (formu.cas_alias.value.length &lt; 1) {
        vlr = false;
        //vmsj=vmsj+"\n* Debe llenar el campo de Cedula. ";
        if (typeof TraducirTextoJS == "function") { aux = TraducirTextoJS("missing.alias"); }
        else { aux = "Text not translate: * Debe llenar el campo de Alias. "; }
        vmsj = vmsj + vNewLine + aux;
    }
    */

    if (formu.cas_telefono.value.length &lt; 1) {
        vlr = false;
        //vmsj=vmsj+"\n* Debe llenar el campo de Telefono. ";
        if (typeof TraducirTextoJS == "function") { aux = TraducirTextoJS("missing.telephone"); }
        else { aux = "Text not translate: * Debe llenar el campo de Telefono. "; }
        vmsj = vmsj + vNewLine + aux;
    }
    if (formu.cas_ciudad_id.value.length &lt; 1) {
        vlr = false;
        //vmsj=vmsj+"\n* Debe seleccionar una Ciudad. ";
        if (typeof TraducirTextoJS == "function") { aux = TraducirTextoJS("missing.city"); }
        else { aux = "Text not translate: * Debe llenar el campo de Ciudad. "; }
        vmsj = vmsj + vNewLine + aux;
    }
    if (formu.ciudad.value.length &lt; 1) {
        vlr = false;
        //vmsj=vmsj+"\n* Debe seleccionar una Ciudad. ";
        if (typeof TraducirTextoJS == "function") { aux = TraducirTextoJS("select.city"); }
        else { aux = "Text not translate: * Debe seleccionar una Ciudad. "; }
        vmsj = vmsj + vNewLine + aux;
    }
    if (formu.cas_password.value.length &lt; 1) {
        vlr = false;
        //vmsj=vmsj+"\n* Debe llenar el campo de Clave. ";
        if (typeof TraducirTextoJS == "function") { aux = TraducirTextoJS("missing.pass"); }
        else { aux = "Text not translate: * Debe llenar el campo de Clave. "; }
        vmsj = vmsj + vNewLine + aux;
    }
    /*
    if (formu.cas_agencia_id_combo.value == 0) {
        vlr = false;
        //vmsj=vmsj+"\n* Debe seleccionar una Agencia. ";
        if (typeof TraducirTextoJS == "function") { aux = TraducirTextoJS("select.ffw"); }
        else { aux = "Text not translate: * Debe seleccionar una agencia. "; }
        vmsj = vmsj + vNewLine + aux;
    }
    if (formu.notificar.checked) {

    }
    else {
        //vlr=false;
        //vmsj=vmsj+"\n* Debe habilitar el campo de Notificar via email a el cliente. ";	
        if (typeof TraducirTextoJS == "function") { aux = TraducirTextoJS("email.notif"); }
        else { aux = "Text not translate: * Debe habilitar el campo de Notificar via email a el cliente. "; }
        vmsj = vmsj + vNewLine + aux;
    }
    */
    if (vlr == false) {
        //alert("Por favor tenga en cuenta: \n"+vmsj);
        if (typeof TraducirTextoJS == "function") { aux = TraducirTextoJS("alert.header"); }
        else { aux = "Text not translate: Por favor tenga en cuenta: "; }
        vmsj = aux + vNewLine + vmsj;
        alert(vmsj);
    }
    else {
        //alert("Todos campos llenos");	
        formu.vformul.value = 2;
        formu.submit();
    }
}
	
function autocompletar_bcc_pobox(formu)
{
	if(formu.notificar.checked)
	{
		formu.ccEmail.value=formu.cas_email.value;
	}
	else
	{
		formu.ccEmail.value="";	
	}
}

//QUY-145-65213

function validar(e,N1,N2) { 

 if (N1 ==1)
 {
    tecla = (document.all) ? e.keyCode : e.which; 
    if (tecla==8) return true; 
    patron =/[*']/; 
	te = String.fromCharCode(tecla); 
	return !patron.test(te);
 }
 if (N1 ==2)
 {
    tecla = (document.all) ? e.keyCode : e.which; 
    if (tecla==8) return true; 
    patron = /\D/; // No acepta números
	te = String.fromCharCode(tecla); 
	return !patron.test(te);
 }
}</pre></body></html>