function abre(){ var foto = window.open("","janela2","width=350,height=360,resizable=no,toolbar=0,location=0,directories=0,status=no,menubar=0"); document.dados.submit(); } function agregar(url,titulo){ if (document.all) window.external.AddFavorite(url,titulo) } function BuscarEnter(idioma){ if (window.event.keyCode==13) { MethodBuscar('ctl00',idioma); }} function BuscarEnter2(idioma){ if (window.event.keyCode==13) { MethodBuscar2('buscador',idioma); }} function BusquedaRapida(){ if (document.getElementById('menu_busqueda').options[document.getElementById('menu_busqueda').selectedIndex].value=='') { alert('Debe escoger un elemento.'); return } location = document.getElementById('menu_busqueda').options[document.getElementById('menu_busqueda').selectedIndex].value;} function Comparar(idioma){ // Find all the checkboxes... var inputs = document.getElementsByTagName("input"); existe = 0; arreglo=''; // Loop through all form elements (input tags) for(index = 0; index < inputs.length; index++) { // ...if it's the type of checkbox we're looking for, toggle its checked status if(inputs[index].type == "checkbox") { if(inputs(index).checked==true & inputs[index].id=='producto') { existe += 1; arreglo = arreglo + inputs[index].value + ','; } } } if (existe!=0){ if (existe>3) { alert('No puede seleccionar más de tres productos.'); }else{ location = 'http://www.gelineablanca.com.ec/main.aspx?pid=7eiyk6amSxI=&idioma=' + idioma + '&parent=43xQYtoAXGXQNRllZE%2bsdLqnWeA4i/T50r7BcWyX66s=&arreglo=' + arreglo } }else{ alert('No tiene productos seleccionados.'); } } function CompararRusia(f){ // Find all the checkboxes... var inputs1 = document.getElementsByTagName("input"); existe = 0; arreglorusia=''; // Loop through all form elements (input tags) for(index = 0; index < inputs1.length; index++) { // ...if it's the type of checkbox we're looking for, toggle its checked status if(inputs1[index].type == "checkbox") { if(inputs1(index).checked==true & inputs1[index].id=='producto') { existe += 1; arreglorusia = arreglorusia + inputs1[index].value + ','; } } } if (existe!=0){ if (existe>3) { alert('No puede seleccionar más de tres productos.'); }else{ location = 'main.aspx?pid=7eiyk6amSxI=&idioma=179&parent=43xQYtoAXGXQNRllZE%2bsdLqnWeA4i/T50r7BcWyX66s=&f='+f+'&arreglorusia=' + arreglorusia } }else{ alert('No tiene productos seleccionados.'); } } function ConfirmUser(sAsk,sURL){ //Pregunta de Confirmar,Liga a redirigir resultado=confirm(sAsk); if (resultado==false) { return; }else{ location = sURL; }} function ChooseCountry(){ window.open(document.getElementById('cmbMarca').value,'_blank')} function ChooseGE(){ var pais=document.getElementById('cmbGE').value; var liga="" if (pais=='MX'){ liga="http://gelineablanca.com.mx"; } if (pais=='CA') { liga="http://www.geappliances.ca/"; } if (pais=='AR') { liga="http://gelineablanca.com.ar"; } if (pais=='BR') { liga="http://www.gedako.com.br/"; } if (pais=='CO') { liga="http://gelineablanca.com.co"; } if (pais=='CR') { liga='http://gelineablanca.co.cr'; } if (pais=='EC') { liga="http://www.gelineablanca.com.ec"; } if (pais=='SV') { } if (pais=='GT') { liga="http://gelineablanca.com.gt"; } if (pais=='PE') { liga="http://gelineablanca.com.pe"; } if (pais=='VE') { liga="http://gelineablanca.com.ve"; } window.open(liga,'_blank'); HideDIVS();} function ChooseMABE(){ var pais=document.getElementById('cmbMABE').value; var liga="" if (pais=='MX'){ liga="http://www.mabe.com.mx"; } if (pais=='GT') { liga="http://mabe.com.gt"; } if (pais=='CR') { liga='http://mabe.co.cr'; } if (pais=='CO') { liga="http://mabe.com.co"; } if (pais=='EC') { liga="http://mabe.com.ec"; } if (pais=='PA') { liga="http://mabe.com.pa"; } if (pais=='PE') { liga="http://mabe.com.pe"; } if (pais=='RU') { liga="http://www.mabe.ru"; } if (pais=='VE') { liga="http://mabe.com.ve"; } window.open(liga,'_blank'); HideDIVS(); } function ChooseMarca(){ var pais=document.getElementById('cmbPais').value; document.getElementById('cmbMarca').options.length=0; if (pais=='MX'){ document.getElementById('cmbMarca').options.add(new Option('MABE',"http://www.mabe.com.mx")); document.getElementById('cmbMarca').options.add(new Option('GE',"http://gelineablanca.com.mx")); document.getElementById('cmbMarca').options.add(new Option('EASY',"http://easy.com.mx")); document.getElementById('cmbMarca').options.add(new Option('IEM',"http://piensaloiem.com.mx")); document.getElementById('cmbMarca').options.add(new Option('SERVIPLUS',"http://serviplus.com.mx")); } if (pais=='CA') { document.getElementById('cmbMarca').options.add(new Option('GE','http://www.geappliances.ca/')); document.getElementById('cmbMarca').options.add(new Option('MOFFAT','http://www.moffatappliances.ca')); } if (pais=='CL') { document.getElementById('cmbMarca').options.add(new Option('MABE','http://www.mabe.cl')); document.getElementById('cmbMarca').options.add(new Option('GE','http://mabe.cc/main.aspx?idioma=188')); } if (pais=='AR') { document.getElementById('cmbMarca').options.add(new Option('GE','http://gelineablanca.com.ar')); document.getElementById('cmbMarca').options.add(new Option('PATRICK','http://patrick.com.ar')); document.getElementById('cmbMarca').options.add(new Option('MABE','http://mabe.com.ar')); } if (pais=='BR') { document.getElementById('cmbMarca').options.add(new Option('GE','http://www.gedako.com.br/')); document.getElementById('cmbMarca').options.add(new Option('DAKO','http://www.dako.com.br')); document.getElementById('cmbMarca').options.add(new Option('MABE','http://www.mabebrasil.com.br')); document.getElementById('cmbMarca').options.add(new Option('Continental','http://www.continental.com.br')); document.getElementById('cmbMarca').options.add(new Option('BOSCH','http://www.bosch.com.br')); } if (pais=='CO') { document.getElementById('cmbMarca').options.add(new Option ('MABE','http://mabe.com.co')); document.getElementById('cmbMarca').options.add(new Option('GE',"http://gelineablanca.com.co")); document.getElementById('cmbMarca').options.add(new Option('CENTRALES','http://centrales.com.co')); } if (pais=='CR') { document.getElementById('cmbMarca').options.add(new Option('MABE','http://mabe.co.cr')); document.getElementById('cmbMarca').options.add(new Option('GE','http://gelineablanca.co.cr')); document.getElementById('cmbMarca').options.add(new Option('CETRON','http://mabe.cc/cetron/cetron_home.html')); document.getElementById('cmbMarca').options.add(new Option('ATLAS','http://mabe.cc/Atlas/atlas_home.html')); } if (pais=='EC') { document.getElementById('cmbMarca').options.add(new Option('MABE','http://mabe.com.ec')); document.getElementById('cmbMarca').options.add(new Option('GE','http://www.gelineablanca.com.ec')); document.getElementById('cmbMarca').options.add(new Option('DUREX','http://durex.com.ec')); } if (pais=='SV') { document.getElementById('cmbMarca').options.add(new Option('MABE',163)); document.getElementById('cmbMarca').options.add(new Option('GE',154)); } if (pais=='GT') { document.getElementById('cmbMarca').options.add(new Option('MABE','http://mabe.com.gt')); document.getElementById('cmbMarca').options.add(new Option('GE','http://gelineablanca.com.gt')); } if (pais=='PE') { document.getElementById('cmbMarca').options.add(new Option('MABE','http://mabe.com.pe')); document.getElementById('cmbMarca').options.add(new Option('GE',"http://gelineablanca.com.pe")); document.getElementById('cmbMarca').options.add(new Option('INRESA','http://inresa.com.pe')); } if (pais=='PA') { document.getElementById('cmbMarca').options.add(new Option('MABE','http://mabe.com.pa')); } if (pais=='VE') { document.getElementById('cmbMarca').options.add(new Option('MABE','http://mabe.com.ve')); document.getElementById('cmbMarca').options.add(new Option('GE',"http://gelineablanca.com.ve")); document.getElementById('cmbMarca').options.add(new Option('REGINA','http://www.regina.com.ve')); } if (pais=='RU') { document.getElementById('cmbMarca').options.add(new Option('MABE','http://www.mabe.ru')); document.getElementById('cmbMarca').options.add(new Option('DE DIETRICH','http://www.dedietrich-otoplenie.ru')); } } function ChoosePais(Pais){ liga=document.getElementById('cmb'+Pais).value; window.open(liga,'_blank'); HideDIVS();} function HideDIVS(){ document.all.item('GEDIV').style.visibility="hidden"; document.all.item('MABEDIV').style.visibility="hidden"; document.all.item('MEXICODIV').style.visibility="hidden"; document.all.item('CANADADIV').style.visibility="hidden"; document.all.item('ARGENTINADIV').style.visibility="hidden"; document.all.item('BRASILDIV').style.visibility="hidden"; document.all.item('COLOMBIADIV').style.visibility="hidden";} function hideMABE(){ document.getElementById('mabeHome').style.visibility="hidden"; document.getElementById('sp0').style.visibility="hidden";} function HideOut(){ if (event.srcElement.tagName == "DIV") { HideDIVS(); } else { //nevermind, don't do anything }} function iomabe(){ var ancho = screen.availWidth; var alto = screen.availHeight; window.open("http://www.mabe.com.mx/portal/IOMABE_FLASH/ioMabe.swf","ventana1","width="+screen.availWidth+",height="+screen.availHeight+",scrollbars=NO,location=NO,menubar=NO,status=NO,toolbar=NO,titlebar=NO") } function limpiarSearch(){ var caracter; var temp = document.getElementById('ctl00').value; if((caracter = temp.indexOf('ñ')) != -1){ temp = temp.replace(/ñ/i, "ni"); } if((caracter = temp.indexOf('á')) != -1){ temp = temp.replace(/á/i, "a"); } if((caracter = temp.indexOf('é')) != -1){ temp = temp.replace(/é/i, "e"); } if((caracter = temp.indexOf('í')) != -1){ temp = temp.replace(/í/i, "i"); } if((caracter = temp.indexOf('ó')) != -1){ temp = temp.replace(/ó/i, "o"); } if((caracter = temp.indexOf('ú')) != -1){ temp = temp.replace(/ú/i, "u"); } document.getElementById('fixed').value = temp;} function mail(){ if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(document.frmForma407.txtEMail.value)){ } else { alert("El correo electrónico es incorrecto"); }} function menuapple(){ } function MethodBuscar(objID,idioma){ strBuscar = document.getElementById(objID).value if (strBuscar=='') { alert('Escriba su criterio de búsqueda.'); return; } if (idioma!=null){ strURL='&idioma='+idioma; } strURL='main.aspx?pid=n0tMjKeusDs=&parent=8d7stF7VCc55t7G4ufLYIRV/mQ3UuNNS'+strURL strURL += '&search=' + strBuscar location = strURL } function MethodBuscar2(objID,idioma){ strBuscar = document.all.item(objID).value if(strBuscar==''){ alert('Escriba su criterio de búsqueda.'); return; } if(idioma!=null){ strURL = 'main.aspx?pid=n0tMjKeusDs=&parent=8d7stF7VCc55t7G4ufLYIRV/mQ3UuNNS'; strURL += '&idioma=' + idioma; strURL += '&search=' + strBuscar; temp = strBuscar; if(temp.indexOf('ñ') != -1){ temp = temp.replace(/ñ/i, "ni"); } if(temp.indexOf('á') != -1){ temp = temp.replace(/á/i, "a"); } if(temp.indexOf('é') != -1){ temp = temp.replace(/é/i, "e"); } if(temp.indexOf('í') != -1){ temp = temp.replace(/í/i, "i"); } if(temp.indexOf('ó') != -1){ temp = temp.replace(/ó/i, "o"); } if(temp.indexOf('ú') != -1){ temp = temp.replace(/ú/i, "u"); } strURL += '&fixed=' + temp; location = strURL }} function mostrarcampo(form){ } function mostrardiv(){ div = document.getElementById('flotante'); div.style.display =''; } function muestra_oculta(id){ if (document.getElementById){ //se obtiene el id var el = document.getElementById(id); //se define la variable "el" igual a nuestro div el.style.display = (el.style.display == 'none') ? 'block' : 'none'; //damos un atributo display:none que oculta el div } } function Newsletter(){ location=location + '&EMailNews=' + document.getElementById('registro').value; } function NotShow(objeto){ if (objeto.value==1) { document.getElementById('noshow').style.display='block'; }else{ document.getElementById('noshow').style.display='none' }} function numeros(){ if(( event.keyCode >= 97 && event.keyCode <= 122) || (event.keyCode >=65 && event.keyCode <=90)) { event.keyCode=0; }} function OpenLink(liga){ window.open(liga,'_blank'); HideDIVS();} function PromptUser(sAsk,sPrompt,sNull,sURL){ //Pregunta de Confirmar,Pregunta de Prompt,Alert de nulo, Liga a redirigir resultado=window.prompt(sPrompt,''); if (resultado==null) { return } if (resultado=='') { alert(sNull) return } var conf = confirm(sAsk) if (conf == true) { location = sURL + resultado }else{ return } } function ShowLayer(capa){ HideDIVS(); document.all.item(capa).style.visibility="visible";} function sustituir_img(obj){ imgGrande.src=obj.src.replace('_A', ''); obj.border="4"; obj.style.borderColor = "#134288"; if (ant!=null) { ant.border=0; } ant=obj;} function validarNumeros(event){ var tecla = String.fromCharCode(event.which || event.keyCode); if ( !/[\d.\b\r]/.test(tecla) ) return false; return true;} function ventana(direccion, pantallacompleta, herramientas, direcciones, estado, barramenu, barrascroll, cambiatamano, ancho, alto, izquierda, arriba, sustituir){ var opciones = "fullscreen=" + pantallacompleta + ",toolbar=" + herramientas + ",location=" + direcciones + ",status=" + estado + ",menubar=" + barramenu + ",scrollbars=" + barrascroll + ",resizable=" + cambiatamano + ",width=" + ancho + ",height=" + alto + ",left=" + izquierda + ",top=" + arriba; var ventana = window.open(direccion,"venta",opciones,sustituir); } function WishList(idioma){ // Find all the checkboxes... var inputs = document.getElementsByTagName("input"); existe = 0; arreglo = ''; // Loop through all form elements (input tags) for (index = 0; index < inputs.length; index++) { // ...if it's the type of checkbox we're looking for, toggle its checked status if (inputs[index].type == "checkbox") { if (inputs(index).checked == true & inputs[index].id == 'producto') { existe += 1; arreglo = arreglo + inputs[index].value + ','; } } } if (existe != 0) { if (existe > 3) { alert('No puede seleccionar más de tres productos.'); } else { location = 'http://www.gelineablanca.com.ec/main.aspx?pid=nwRyGlc6OGk=&idioma=' + idioma + '&parent=43xQYtoAXGXQNRllZE%2bsdEXVOTRMm9PzEVrfSrs%2bkxo=&arreglo=' + arreglo } } else { alert('No tiene productos seleccionados.'); } } function WishListRusia(){ // Find all the checkboxes... var inputs1 = document.getElementsByTagName("input"); existe = 0; arreglorusia=''; // Loop through all form elements (input tags) for(index = 0; index < inputs1.length; index++) { // ...if it's the type of checkbox we're looking for, toggle its checked status if(inputs1[index].type == "checkbox") { if(inputs1(index).checked==true & inputs1[index].id=='producto') { existe += 1; arreglorusia = arreglorusia + inputs1[index].value + ','; } } }} function WishListSingle(idioma,arreglo){ location = 'http://www.gelineablanca.com.ec/main.aspx?pid=nwRyGlc6OGk=&idioma=' + idioma + '&parent=43xQYtoAXGXQNRllZE%2bsdEXVOTRMm9PzEVrfSrs%2bkxo=&arreglo=' + arreglo } function FillComboClient(intValor,strQuery,intID,ctlHolder,ctlControl,intLang) { var ctlActual = document.getElementById(ctlControl); var funcion = ctlActual.onchange; var estilo = ctlActual.className; var strValores = intValor + "|" + strQuery + "|" + intID + "|" + intLang ; var e = document.getElementById(ctlHolder); var d = document.getElementById(ctlControl); e.removeChild(d); var hideFieldValue = document.getElementById(ctlHolder).innerHTML; HtmlControlUpdate('RegistryEngine.FillCombo', ctlHolder, strValores ,new HtmlControl(ctlControl)); document.getElementById(ctlHolder).innerHTML = document.getElementById(ctlHolder).innerHTML + hideFieldValue; document.getElementById(ctlControl).onchange = funcion document.getElementById(ctlControl).className = estilo; if (funcion==null){ }else{ funcion(); } } function EnableForm(strText,strImage,intForm) { document.all.item('Confirm').value=""; if (document.all.item('btnSave')!==null) { document.all.item('btnSave').value=strText } if (document.all.item('btnSaveImg')!==null) { document.all.item('btnSaveImg').src=strImage } for (i=0;i < document.all.length;i++) { if (document.all.item(i)!==null) { document.all.item(i).disabled=false; } } document.all.item('Confirm').value=""; return false; } function ValidarEmail(ctlEmail,strMsg) { var strEmail = document.all.item(ctlEmail).value; if (!RegistryEngine.ValidateEMail(strEmail).value) { alert(strMsg); } return RegistryEngine.ValidateEMail(strEmail).value } function WinDialog(sUrl,sWidth,sHeight,sScroll,sResize,sX,sY,sDialog,sExtra) { sUrl = sUrl.replace('+','%2b').replace('+','%2b') if (sExtra==1) { location=sUrl; return } if (sDialog==1) { var MyArgs = new Array(''); var WinSettings = "dialogTop;" + sY + "edge:Raised;dialogLeft;" + sX + ";center:off;resizable:" + sResize + ";status:no;dialogHeight:" + sWidth + "px;dialogWidth:" + sHeight + "px;help:no;scroll:" + sScroll + ";"; window.showModalDialog(sUrl+"&webdialog=1", window, WinSettings); }else{ msg=open(sUrl,""," scrollbars=" + sScroll + ",resizable=" + sResize + ", toolbar=no,directories=no,menubar=no,width=" + sWidth + ", height=" + sHeight + ",top=" + sY + ";left=" + sX + ""); } } function PrintWindow() { this.print(); }