var OPERA = (/Opera/i.test(window.navigator.userAgent)); var IE = (/MSIE/i.test(window.navigator.userAgent) && !OPERA); var IE6 = (/MSIE 6/i.test(window.navigator.userAgent) && !OPERA); var IE7 = (/MSIE 7/i.test(window.navigator.userAgent) && !OPERA); var MOZ = (/(Firefox|gecko)/i.test(window.navigator.userAgent)); var mouseX = 0; var mouseY = 0; function newAjax(){ var xmlhttp=false; try { xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } catch (E) { xmlhttp = false; } } if (!xmlhttp && typeof XMLHttpRequest!='undefined') { xmlhttp = new XMLHttpRequest(); } return xmlhttp; } function delFocus(el, text) { if(el.value == text) el.value = ""; } function setFocus(el, text) { if(el.value == "") el.value = text; } function changeState(obj){ var formContenedor = obj.form.name; var value = obj.value; var contenedor=document.getElementById('contentCity'); ajaxCity=newAjax(); ajaxCity.open("POST", "/index.php?module=publicar&task=ajax&subtask=city&state_id="+value,true); ajaxCity.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); ajaxCity.send("state_id="+value); if(document.forms[formContenedor].elements['state'].value == 0) { document.forms[formContenedor].elements['city'].style.display = 'none'; } else { ajaxCity.onreadystatechange=function() { if (ajaxCity.readyState==1) { } if (ajaxCity.readyState==4) { contenedor.innerHTML=ajaxCity.responseText; document.forms[formContenedor].elements['city'].style.display = 'inline'; }//fin del stado 4 }//fin del change function } } function goToUrl(selected) { destination = selected.options[selected.selectedIndex].value; if (destination) { if(destination == "ARG") url = "http://www.nexolocal.com.ar"; else if(destination == "CHI") url = "http://www.nexolocal.cl"; else if(destination == "COL") url = "http://colombia.nexolocal.com"; else if(destination == "ESP") url = "http://www.nexolocal.es"; else if(destination == "MEX") url = "http://www.nexolocal.com.mx"; location.href = url; } } function win(fileName) { myFloater = window.open('','myWindow','scrollbars=yes,status=no,width=300,height=300') myFloater.location.href = fileName; } function winimage(fileName,width,height) { myFloater = window.open('','myWindow','scrollbars=yes,resizable=yes,status=no,width=' + width + ',height=' + height) myFloater.location.href = fileName; } function badCity(){ var inlinewin=dhtmlwindow.open("resultados", "inline", "


No existe la zona que haz ingresado.
Verifica que la hayas escrito correctamente. De no ser así sugiérenos la zona que estás buscando para que la podamos incluir.

Sugiere una nueva zona
", "No se encontraron resultados", "width=300px,height=200px,left=295px,top=150px,resize=1,scrolling=0", "recal"); } function moreCities(){ var inlinewin=dhtmlwindow.open("resultados", "inline", "", "Múltiples resultados", "width=300px,height=200px,left=295px,top=150px,resize=1,scrolling=1", "recal"); } function validateStep3(idTitle, idState, idDescription) { var result = true; if(idTitle != null) { if(trim(document.getElementById(idTitle).value) == "") { document.getElementById('errTitle').style.display = 'block'; document.getElementById(idTitle).value = ''; result = false; } else { document.getElementById('errTitle').style.display = 'none'; } } if(idState != null) { if(document.getElementById(idState).options[document.getElementById(idState).selectedIndex].value == 0) { document.getElementById('errState').style.display = 'block'; result = false; } else { document.getElementById('errState').style.display = 'none'; } } if(idDescription != null) { if(trim(document.getElementById(idDescription).value) == "") { document.getElementById('errDescription').style.display = ''; document.getElementById(idDescription).value = ''; result = false; } else { document.getElementById('errDescription').style.display = 'none'; } } var cEmail = document.getElementById('b[email_option]'); var cError = document.getElementById('errEmail'); if(document.getElementById('exposeMailActive') && document.getElementById('exposeMailActive').checked && document.getElementById('b[email_option]') && document.getElementById('errEmail')) { if(!validarEmail(cEmail.value)) { cError.style.display = 'block'; cError.innerHTML = 'Email inválido'; result = false; } else { cError.style.display = 'none'; } } else { cError.style.display = 'none'; } if(document.getElementById('date_ini') && document.getElementById('date_end') && document.getElementById('errDateIni') && document.getElementById('errDateEnd')) { var cDatIni = trim(document.getElementById('date_ini').value); var erroIni = document.getElementById('errDateIni'); var cDatEnd = trim(document.getElementById('date_end').value); var erroEnd = document.getElementById('errDateEnd'); if(cDatIni != '') { if(!ValidarFormatoFecha(cDatIni)) { erroIni.style.display = 'block'; erroIni.innerHTML = 'Fecha inválido'; result = false; } else { erroIni.style.display = 'none'; } } if(cDatEnd != '') { if(!ValidarFormatoFecha(cDatEnd)) { erroEnd.style.display = 'block'; erroEnd.innerHTML = 'Fecha inválido'; result = false; } else { erroEnd.style.display = 'none'; } } } if(result) { document.forms['publishForm'].submit(); return true; } else { return false; } } function LimitMultiLineLength(obj, e, idMsg) { var iKey; iKey = e.keyCode; var re; re = new RegExp("\r\n","g"); x = obj.value.replace(re,"").length; if ((x >= obj.getAttribute('maxLength')) && ((iKey > 40 && iKey < 255) || (iKey > 95 && iKey < 106)) && (iKey != 8) && (iKey != 46) && (iKey != 13)) { document.getElementById(idMsg).style.display = 'block'; document.getElementById(idMsg).innerHTML = obj.getAttribute('errorMessage'); return false; } else { document.getElementById(idMsg).style.display = 'none'; return true; } } function confirmBorrPost(pid) { var url = '/?module=desktop&task=flag&subtask=delete&pid='+pid; var scriptWindow = "" scriptWindow +="


" scriptWindow +="Esta seguro de borrar este Post ?

" scriptWindow +="
"; scriptWindow +="
"; scriptWindow +="
"; scriptWindow +="
"; scriptWindow +="
"; scriptWindow +="
"; scriptWindow +="
"; var titWindow = "Borrar Post"; var inlinewin=dhtmlwindow.open("confirm", "inline", scriptWindow, titWindow, "width=300px,height=100px,left=370px,top=250px,resize=1,scrolling=0", "recal"); } function enviarFkmc(a,i) { var formObjeto = document.f_kmc; formObjeto.setAttribute("action", a); formObjeto.ind.value = i; formObjeto.submit(); } function enviarFkmcBorrPost(a) { var formObjeto = document.f_kmc; formObjeto.setAttribute("action", a); formObjeto.submit(); } function redirigirEnlace(a,i) { window.location = a; } function ltrim(s) { return s.replace(/^\s+/, ""); } function rtrim(s) { return s.replace(/\s+$/, ""); } function trim(s) { return rtrim(ltrim(s)); } function validarEmail(txt) { var b = new RegExp("[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?"); return b.test(txt) } function ValidarFormatoFecha(Cadena) { var Fecha = new String(Cadena); var anio = new String(Fecha.substring(Fecha.lastIndexOf("/")+1,Fecha.length)) var dia = new String(Fecha.substring(Fecha.indexOf("/")+1,Fecha.lastIndexOf("/"))) var mes = new String(Fecha.substring(0,Fecha.indexOf("/"))) if (isNaN(anio) || anio.length<4 || parseFloat(anio)<1900) return false; if (isNaN(mes) || parseFloat(mes)<1 || parseFloat(mes)>12) return false; if (isNaN(dia) || parseInt(dia, 10)<1 || parseInt(dia, 10)>31) return false; if (mes==4 || mes==6 || mes==9 || mes==11 || mes==2) { if (mes==2 && dia > 28 || dia>30) return false; } return true; }