//*******************************************************************
// Funciones de validación de formularios
//*******************************************************************
function validar_registro_index() {

	var RegExPatternEmail = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;

	if (document.registro_index.email.value == "") {
	alert("Ingrese su dirección de correo electrónico");
	document.registro_index.email.focus();
	return false;
    }

	if (!document.registro_index.email.value.match(RegExPatternEmail)) {
	alert("La dirección de correo electrónico ingresada no es correcta");
	document.registro_index.email.focus();
	return false;
    }
}
//*******************************************************************
function validar_micuenta_index() {

	if (document.micuenta_index.cookieexists.value == "false") {
	alert("Acceso denegado: habilite el soporte para cookies en su navegador");
	document.micuenta_index.username.focus();
	return false; 
	}

	if (document.micuenta_index.username.value == "") {
	alert("Ingrese el nombre de usuario de su cuenta");
	document.micuenta_index.username.focus();
	return false;
    }

	if (document.micuenta_index.password.value == "") {
	alert("Ingrese la contraseña de su cuenta");	
	document.micuenta_index.password.focus();
	return false;
    }

	if (document.micuenta_index.recordar.checked) 
		setCookie('usuario_micuenta', document.micuenta_index.username.value);
	else 
		setCookie('usuario_micuenta', '');
}
//*******************************************************************
function validar_registro_clave() {

	if (document.registro_clave.validacion.value == 1) {
	if (document.registro_clave.clave.value == "") {
	alert("Ingrese la clave de validación");
	document.registro_clave.clave.focus();
	return false;
    }

	if (document.registro_clave.clave.value.length != 32) {
	alert("La clave de validación no es correcta");
	document.registro_clave.clave.focus();
	return false;
    }}
}
//*******************************************************************
function validar_registro_usuario() {

	var RegExpUser = /^[a-zA-Z0-9]{3,16}$/
	var RegExpPass = /^[a-zA-Z0-9]{6,16}$/

	if (document.registro_usuario.username.value == "") {
	alert("Ingrese un nombre de usuario válido");
	document.registro_usuario.username.focus();
	return false;
    }

	if (document.registro_usuario.username.value.length < 3) {
	alert("La longitud mínima del nombre de usuario es de 3 caracteres");
	document.registro_usuario.username.focus();
	return false;
    }

	if (!document.registro_usuario.username.value.match(RegExpUser)) {
	alert("El nombre de usuario ingresado contiene caracteres no válidos");
	document.registro_usuario.username.focus();
	return false;
    } 

	if (document.registro_usuario.password.value == "") {
	alert("Ingrese una contraseña válida");
	document.registro_usuario.password.focus();
	return false;
    }

	if (document.registro_usuario.password.value.length < 6) {
	alert("La longitud mínima de la contraseña es de 6 caracteres");
	document.registro_usuario.password.focus();
	return false;
    }

	if (!document.registro_usuario.password.value.match(RegExpUser)) {
	alert("La contraseña ingresada contiene caracteres no válidos");
	document.registro_usuario.password.focus();
	return false;
    } 

	if (document.registro_usuario.password_rep.value == "") {
	alert("Reingrese la contraseña");
	document.registro_usuario.password_rep.focus();
	return false;
    }

	if (document.registro_usuario.password_rep.value.length < 6) {
	alert("La longitud mínima de la contraseña reingresada es de 6 caracteres");
	document.registro_usuario.password_rep.focus();
	return false;
    }

	if (!document.registro_usuario.password_rep.value.match(RegExpUser)) {
	alert("La contraseña reingresada contiene caracteres no válidos");
	document.registro_usuario.password_rep.focus();
	return false;
    } 

	if (document.registro_usuario.password.value != document.registro_usuario.password_rep.value) {
	alert("Las contraseñas ingresadas no coinciden");
	document.registro_usuario.password.focus();
	return false;
    }
}
//*******************************************************************
function validar_paso2_tipo() {

	if (!document.paso2_tipo.responsable_tipo[0].checked && !document.paso2_tipo.responsable_tipo[1].checked) {
	alert("Indique si es un nuevo cliente o un cliente registrado");
	return false;
    } 

   	if (document.paso2_tipo.responsable_tipo[1].checked) {
   	if (!document.paso2_tipo.acepto[0].checked && !document.paso2_tipo.acepto[1].checked) {
	alert("Indique si acepta o no acepta la política de privacidad y seguridad en línea");
	return false;
    }}
}
//*******************************************************************
function cambiar_pais() {
	document.registro_datos.cambia_pais.value=false;
	document.registro_datos.mostrar.value='';
	document.registro_datos.submit();
}
//*******************************************************************
function validar_registro_datos() {

	var RegExPatternEmail = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;

	if (document.registro_datos.cambia_pais.value == false) return true;

	if (document.registro_datos.elements['responsable[cuenta][nombres]'].value == "") {
	alert("Ingrese el/los nombre/s del responsable de cuenta");
	document.registro_datos.elements['responsable[cuenta][nombres]'].focus();
	return false;
    }

	if (document.registro_datos.elements['responsable[cuenta][apellidos]'].value == "") {
	alert("Ingrese el/los apellido/s del responsable de cuenta");
	document.registro_datos.elements['responsable[cuenta][apellidos]'].focus();
	return false;
    }

	if (document.registro_datos.elements['responsable[cuenta][email]'].value == "") {
	alert("Ingrese la dirección de correo electrónico del responsable de cuenta");
	document.registro_datos.elements['responsable[cuenta][email]'].focus();
	return false;
    }

	if (!document.registro_datos.elements['responsable[cuenta][email]'].value.match(RegExPatternEmail)) {
	alert("La dirección de correo electrónico ingresada no es correcta");
	document.registro_datos.elements['responsable[cuenta][email]'].focus();
	return false;
    } 

	if (document.registro_datos.elements['responsable[cuenta][documento_nro]'].value == "") {
	alert("Ingrese el número de documento del responsable de cuenta");
	document.registro_datos.elements['responsable[cuenta][documento_nro]'].focus();
	return false;
    }

	if (document.registro_datos.elements['responsable[cuenta][localidad]'].value == "") {
	alert("Ingrese la localidad del responsable de cuenta");
	document.registro_datos.elements['responsable[cuenta][localidad]'].focus();
	return false;
    }

	if (document.registro_datos.elements['responsable[cuenta][domicilio1]'].value == "") {
	alert("Ingrese el domicilio del responsable de cuenta");
	document.registro_datos.elements['responsable[cuenta][domicilio1]'].focus();
	return false;
    }

	if (document.registro_datos.elements['responsable[cuenta][telefono]'].value == "") {
	alert("Ingrese el número de teléfono del responsable de cuenta");
	document.registro_datos.elements['responsable[cuenta][telefono]'].focus();
	return false;
    }
    
	if (document.registro_datos.elements['responsable[facturacion][nombres]'].value == "") {
	alert("Ingrese el/los nombre/s del responsable de facturación");
	document.registro_datos.elements['responsable[facturacion][nombres]'].focus();
	return false;
    }

	if (document.registro_datos.elements['responsable[facturacion][apellidos]'].value == "") {
	alert("Ingrese el/los apellido/s del responsable de facturación");
	document.registro_datos.elements['responsable[facturacion][apellidos]'].focus();
	return false;
    }

	if (document.registro_datos.elements['responsable[facturacion][email]'].value == "") {
	alert("Ingrese la dirección de correo electrónico del responsable de facturación");
	document.registro_datos.elements['responsable[facturacion][email]'].focus();
	return false;
    }

	if (!document.registro_datos.elements['responsable[facturacion][email]'].value.match(RegExPatternEmail)) {
	alert("La dirección de correo electrónico ingresada no es correcta");
	document.registro_datos.elements['responsable[facturacion][email]'].focus();
	return false;
    } 

	if (document.registro_datos.elements['responsable[facturacion][documento_nro]'].value == "") {
	alert("Ingrese el número de documento del responsable de facturación");
	document.registro_datos.elements['responsable[facturacion][documento_nro]'].focus();
	return false;
    }

	if (document.registro_datos.elements['responsable[facturacion][localidad]'].value == "") {
	alert("Ingrese la localidad del responsable de facturación");
	document.registro_datos.elements['responsable[facturacion][localidad]'].focus();
	return false;
    }

	if (document.registro_datos.elements['responsable[facturacion][domicilio1]'].value == "") {
	alert("Ingrese el domicilio del responsable de facturación");
	document.registro_datos.elements['responsable[facturacion][domicilio1]'].focus();
	return false;
    }

	if (document.registro_datos.elements['responsable[facturacion][telefono]'].value == "") {
	alert("Ingrese el número de teléfono del responsable de facturación");
	document.registro_datos.elements['responsable[facturacion][telefono]'].focus();
	return false;
    }

	if (document.registro_datos.elements['responsable[tecnico][nombres]'].value == "") {
	alert("Ingrese el/los nombre/s del responsable técnico");
	document.registro_datos.elements['responsable[tecnico][nombres]'].focus();
	return false;
    }

	if (document.registro_datos.elements['responsable[tecnico][apellidos]'].value == "") {
	alert("Ingrese el/los apellido/s del responsable técnico");
	document.registro_datos.elements['responsable[tecnico][apellidos]'].focus();
	return false;
    }

	if (document.registro_datos.elements['responsable[tecnico][email]'].value == "") {
	alert("Ingrese la dirección de correo electrónico del responsable técnico");
	document.registro_datos.elements['responsable[tecnico][email]'].focus();
	return false;
    }

	if (!document.registro_datos.elements['responsable[tecnico][email]'].value.match(RegExPatternEmail)) {
	alert("La dirección de correo electrónico ingresada no es correcta");
	document.registro_datos.elements['responsable[tecnico][email]'].focus();
	return false;
    } 

	if (document.registro_datos.elements['responsable[tecnico][documento_nro]'].value == "") {
	alert("Ingrese el número de documento del responsable técnico");
	document.registro_datos.elements['responsable[tecnico][documento_nro]'].focus();
	return false;
    }

	if (document.registro_datos.elements['responsable[tecnico][localidad]'].value == "") {
	alert("Ingrese la localidad del responsable técnico");
	document.registro_datos.elements['responsable[tecnico][localidad]'].focus();
	return false;
    }

	if (document.registro_datos.elements['responsable[tecnico][domicilio1]'].value == "") {
	alert("Ingrese el domicilio del responsable técnico");
	document.registro_datos.elements['responsable[tecnico][domicilio1]'].focus();
	return false;
    }

	if (document.registro_datos.elements['responsable[tecnico][telefono]'].value == "") {
	alert("Ingrese el número de teléfono del responsable técnico");
	document.registro_datos.elements['responsable[tecnico][telefono]'].focus();
	return false;
    }
}
//*******************************************************************
function validar(xxx) { 
    var exp = /[^A-Za-z0-9_\-]/
    if (exp.test(xxx))
        return true
    else
        return false
}
//*******************************************************************
function validaremail(xxx) { 
    var exp = /^[a-z_0-9\-\']+(\.[a-z_0-9\-\']+)*@[a-z_0-9\-]+(\.[a-z_0-9\-]+){1,}$/i
    if (exp.test(xxx))
        return false
    else
        return true
}
//*******************************************************************
function mostrar(object) { 
    if (object != "")
        document.getElementById(object).style.display='block'; 
}
//*******************************************************************
function ocultar1(object) {
	if (object != '') 
		document.getElementById(object).style.display='none';
}
//*******************************************************************
function ocultar(object) {
    setTimeout('ocultar1('+object+')',2000);
}
//*******************************************************************
function mOvr(src) {
	src.style.cursor = 'pointer';
	src.bgColor = '#999999';
}
//*******************************************************************
function mOut(src) {
	  src.style.cursor = 'default';
	  src.bgColor = '#666666';
}
//*******************************************************************
function mClk(src) {
	if(event.srcElement.tagName=='TD') 
	src.children.tags('A')[0].click();
}
//*******************************************************************
function descargar(doc) {
    document.location.href='/herramientas/descargar.php?file='+doc;
    return false;
}
//*******************************************************************
function ValidarConsultaDominios() {
    if (document.ConsultaDominios[1].value == "") {
	alert("Ingrese el nombre de dominio que desea consultar");
	document.ConsultaDominios[1].focus();
	return false;
    }   

    if (validar(document.ConsultaDominios[1].value)) {
	alert("El nombre de dominio ingresado no es válido. Sólo se permiten letras y/o números");
	document.ConsultaDominios[1].focus();
	return false;
    }        

	var a = 0;
	for (var i = 0; i < document.ConsultaDominios.elements.length; i++) {
    if (document.ConsultaDominios.elements[i].type == 'checkbox') {
      if (document.ConsultaDominios.elements[i].checked) a++;
	}}

	if (a==0) {
	alert("Seleccione al menos una extensión de dominio");
	document.ConsultaDominios[3].focus();
	return false;
	}

}
//*******************************************************************
function whois(xxx,yyy) {
	var options = 'width=600,height=400,left='+(screen.availWidth-600)/2+',';
		options+= 'top='+(screen.availHeight-400)/2+',';
		options+= 'directories=no,status=no,location=no,toolbar=no,scrollbars=yes,';
		options+= 'resize=no,menubar=no,copyhistory=no';
	window.open('whois.php?dom='+xxx+'&server='+yyy,'whois',options);	
}
//*******************************************************************
function dominios_precios() {
	var options = 'width=700,height=500,left='+(screen.availWidth-700)/2+',';
		options+= 'top='+(screen.availHeight-500)/2+',';
		options+= 'directories=no,status=no,location=no,toolbar=no,scrollbars=yes,';
		options+= 'resize=no,menubar=no,copyhistory=no';
	window.open('/productos/dominios/tabla.precios.php','dominios_precios',options);	
}
//*******************************************************************
function validar_estado_orden() {

    if (document.estado_orden.elements['o'].value == '') {
        alert("Ingrese el número de orden");
        document.estado_orden.elements['o'].focus();
        return false; 
	}
    if (document.estado_orden.elements['o'].value.length < 10) {
        alert("El número de orden ingresado no es válido");
       document.estado_orden.elements['o'].focus();
        return false; 
	}
}
//*******************************************************************
function validar_cancelaciones() {
    if (document.cancelaciones.elements['orden'].value == '') {
        alert("Ingrese el número de orden");
        document.cancelaciones.elements['orden'].focus();
        return false; 
	}
    if (document.cancelaciones.elements['motivo'].value == '') {
        alert("Especifique el motivo de su cancelación/reclamo");
        document.cancelaciones.elements['motivo'].focus();
        return false; 
	}
}
//*******************************************************************
function editar_dns_dominio(xxx,yyy) {
	var options = 'width=500,height=350,left='+(screen.availWidth-500)/2+',';
		options+= 'top='+(screen.availHeight-350)/2+',';
		options+= 'directories=no,status=no,location=no,toolbar=no,scrollbars=no,';
		options+= 'resize=no,menubar=no,copyhistory=no';
	window.open('/contratar/editar_dns_dominio.php?o='+xxx+'&d='+yyy,'editar_dns_dominio',options);
}
//*******************************************************************
function editar_contacto_dominio(xxx,yyy) {
	var options = 'width=500,height=400,left='+(screen.availWidth-500)/2+',';
		options+= 'top='+(screen.availHeight-400)/2+',';
		options+= 'directories=no,status=no,location=no,toolbar=no,scrollbars=yes,';
		options+= 'resize=no,menubar=no,copyhistory=no';
	window.open('/contratar/editar_contacto_dominio.php?o='+xxx+'&d='+yyy,'editar_contacto_dominio',options);
}
//*******************************************************************
function validar_new_nameserver(fname) {

	var validns = /[^A-Za-z0-9_\.]/g;

    if (document.forms[fname][3].value == '') {
        alert("Ingrese el nombre del servidor DNS");
        document.forms[fname][3].focus();
        return false; 
	}
    if (validns.test(document.forms[fname][3].value)) {
        alert("El nombre del servidor DNS ingresado contiene caracteres no válidos");
        document.forms[fname][3].focus();
        return false; 
	}        
}
//*******************************************************************
function contratar_producto (codigo) {
	document.contratar.pid.value = codigo;
	document.contratar.submit();
}
//*******************************************************************
/* Funciones de cookies */ 
//*******************************************************************
function getCookie(name) {
  var cname = name + "=";
  var dc = document.cookie;
  if (dc.length > 0) {
    begin = dc.indexOf(cname);
    if (begin != -1) {
      begin += cname.length;
      end = dc.indexOf(";", begin);
      if (end == -1) end = dc.length;
        return unescape(dc.substring(begin, end));
    }
  }
  return null;
}
//*******************************************************************
function setCookie(cookieName,cookieValue,nDays) {
    var today = new Date();
    var expire = new Date();
    if (nDays==null || nDays==0) nDays=1;
    expire.setTime(today.getTime() + 3600000*24*nDays);
    document.cookie = cookieName+"="+escape(cookieValue)
	+ ";expires="+expire.toGMTString();
}
//*******************************************************************
function delCookie (name,path,domain) {
  if (getCookie(name)) {
    document.cookie = name + "=" +
    ((path == null) ? "" : "; path=" + path) +
    ((domain == null) ? "" : "; domain=" + domain) +
    "; expires=Thu, 01-Jan-70 00:00:01 GMT"; }
}
//*******************************************************************
function cc() {
  if (document.cookie == "") {
    alert("Su navegador posee las cookies deshabilitadas.\nDebe habilitarlas para utilizar Mi cuenta.");
	document.micuenta_index.cookieexists.value = "false"  
  } else {
    document.micuenta_index.cookieexists.value = "true"
	setear();
  }
}
document.cookie = 'killme' + escape('nothing')
//*******************************************************************
function setear() {
    if (getCookie('usuario_micuenta') != null) {
		document.micuenta_index.username.value=getCookie('usuario_micuenta');
		document.micuenta_index.recordar.checked=true; 
	}
	if (document.micuenta_index.username.value != '') document.micuenta_index.password.focus();
}
//*******************************************************************
function orden_info (orden) {
	var options = 'width=600,height=400,left='+(screen.availWidth-600)/2+',';
		options+= 'top='+(screen.availHeight-400)/2+',';
		options+= 'directories=no,status=no,location=no,toolbar=no,scrollbars=yes,';
		options+= 'resize=no,menubar=no,copyhistory=no';
	window.open('ordeninfo.php?op='+orden,'orden_info',options);	
}
//*******************************************************************
function checkDomain(nname) {
var arr = new Array(
'.com','.net','.org','.biz','.coop','.info','.museum','.name',
'.pro','.edu','.gov','.int','.mil','.ac','.ad','.ae','.af','.ag',
'.ai','.al','.am','.an','.ao','.aq','.ar','.as','.at','.au','.aw',
'.az','.ba','.bb','.bd','.be','.bf','.bg','.bh','.bi','.bj','.bm',
'.bn','.bo','.br','.bs','.bt','.bv','.bw','.by','.bz','.ca','.cc',
'.cd','.cf','.cg','.ch','.ci','.ck','.cl','.cm','.cn','.co','.cr',
'.cu','.cv','.cx','.cy','.cz','.de','.dj','.dk','.dm','.do','.dz',
'.ec','.ee','.eg','.eh','.er','.es','.et','.fi','.fj','.fk','.fm',
'.fo','.fr','.ga','.gd','.ge','.gf','.gg','.gh','.gi','.gl','.gm',
'.gn','.gp','.gq','.gr','.gs','.gt','.gu','.gv','.gy','.hk','.hm',
'.hn','.hr','.ht','.hu','.id','.ie','.il','.im','.in','.io','.iq',
'.ir','.is','.it','.je','.jm','.jo','.jp','.ke','.kg','.kh','.ki',
'.km','.kn','.kp','.kr','.kw','.ky','.kz','.la','.lb','.lc','.li',
'.lk','.lr','.ls','.lt','.lu','.lv','.ly','.ma','.mc','.md','.mg',
'.mh','.mk','.ml','.mm','.mn','.mo','.mp','.mq','.mr','.ms','.mt',
'.mu','.mv','.mw','.mx','.my','.mz','.na','.nc','.ne','.nf','.ng',
'.ni','.nl','.no','.np','.nr','.nu','.nz','.om','.pa','.pe','.pf',
'.pg','.ph','.pk','.pl','.pm','.pn','.pr','.ps','.pt','.pw','.py',
'.qa','.re','.ro','.rw','.ru','.sa','.sb','.sc','.sd','.se','.sg',
'.sh','.si','.sj','.sk','.sl','.sm','.sn','.so','.sr','.st','.sv',
'.sy','.sz','.tc','.td','.tf','.tg','.th','.tj','.tk','.tm','.tn',
'.to','.tp','.tr','.tt','.tv','.tw','.tz','.ua','.ug','.uk','.um',
'.us','.uy','.uz','.va','.vc','.ve','.vg','.vi','.vn','.vu','.ws',
'.wf','.ye','.yt','.yu','.za','.zm','.zw');

var mai = nname;
var val = true;
var dot = mai.lastIndexOf(".");
var dname = mai.substring(0,dot);
var ext = mai.substring(dot,mai.length);

if (dot>2 && dot<57) {
	for(var i=0; i<arr.length; i++) {
	  if(ext == arr[i]) {
	 	val = true;
		break;
	  } else val = false;
	}
	if(val == false) {
	  	 return ("La extensión "+ext+" no es válida");
		 //return false;
	} else {
		for(var j=0; j<dname.length; j++) {
		  var dh = dname.charAt(j);
		  var hh = dh.charCodeAt(0);
		  if((hh > 47 && hh<59) || (hh > 64 && hh<91) || (hh > 96 && hh<123) || hh==45 || hh==46) {
			 if((j==0 || j==dname.length-1) && hh == 45) {
	  		   return ("El dominio no puede comenzar o terminar con '-'");
			   //return false;
		 	 }
		  } else {
		  	 return ("El dominio contiene caracteres no válidos");
			 //return false;
		  }
		}
	}
} else {
 return("El nombre de dominio no es válido");
// return false;
}
return("ok");
//return true;
}
//*******************************************************************
function validar_ingreso_webmail() {

    if (document.ingreso_webmail.elements['dominio'].value == '') {
        alert("Ingrese el nombre de dominio de su cuenta");
        document.ingreso_webmail.elements['dominio'].focus();
        return false; 
	}
	if (!validar(document.ingreso_webmail.elements['dominio'].value)) {
		alert("El nombre de dominio ingresado no es válido. Sólo se permiten letras y/o números");
        document.ingreso_webmail.elements['dominio'].focus();
		return false;
    }        
}
//*******************************************************************
function abre_chat(depto) {
	var options = 'width=400,height=430,left='+(screen.availWidth-400)/2+',';
		options+= 'top='+(screen.availHeight-430)/2+',';
		options+= 'directories=no,status=no,location=no,toolbar=no,scrollbars=yes,';
		options+= 'resize=no,menubar=no,copyhistory=no';
	window.open('/soporte/chat/live/main.php?departmentid='+depto,'abre_chat_x',options);
}
//*******************************************************************
function contacto_form(){
	window.open('/acerca/contacto_form','contacto','width=400,height=560,left='+(screen.availWidth-400)/2+',top='+(screen.availHeight-560)/2+',directories=no,status=no,location=no,toolbar=no,scrollbars=yes,resize=no,menubar=no,copyhistory=no');
}
//*******************************************************************
function sitemap(){
	window.open('/acerca/sitemap','sitemap','width=550,height=450,left='+(screen.availWidth-550)/2+',top='+(screen.availHeight-450)/2+',directories=no,status=no,location=no,toolbar=no,scrollbars=yes,resize=no,menubar=no,copyhistory=no');
}
//*******************************************************************
function validar_contacto_form() {

    var email  		= document.contacto.email.value; 
    var codigo  	= document.contacto.validator.value; 
    var nombre  	= document.contacto.nombre.value; 
	var emailvalido = /[\w-\.]{3,}@([\w-]{2,}\.)*([\w-]{2,}\.)[\w-]{2,4}/;
	if (email.length == 0) {
		alert("Ingrese su dirección de correo electrónico");
		document.contacto.email.focus(); 		
		return false;		
    } else if (email.length > 64) {
		alert("La dirección de correo electrónico no puede exceder los 64 caracteres de longitud");
		document.contacto.email.focus(); 		
		return false;
    } else if (!emailvalido.test(email)) {
		alert("La dirección de correo electrónico ingresada no es válida");
		document.contacto.email.focus(); 		
		return false;
    } else if (nombre.length == 0) {
		alert("Ingrese su nombre y apellido");
		document.contacto.nombre.focus(); 		
		return false;
	} else if (codigo.length < 6) {
		alert("Por favor, ingrese los 6 números del código de seguridad");
		document.contacto.validator.focus(); 		
		return false;
	}	
	return true;
}
//*******************************************************************
function Go(url) {
	window.opener.location.href = url;
	self.close();
}
//*******************************************************************
function ayuda(id) {
	window.open('/soporte/ayuda/'+id,'help','width=500,height=370,scrollbars=yes');
}
//*******************************************************************
function confirma_borrar_item() {
	if (confirm('¿Confirma eliminar este ítem?') == false) return (false);
    return (true);
}
//*******************************************************************