function abrirpopup(nom,ancho,alto) {dat = 'width=' + ancho + ',height=' + alto + ',left=0,top=0,scrollbars=yes,resize=yes'; ndata = new Date(); nom2 = 'gavamar' + ndata.getMilliseconds(); window.open(nom,nom2,dat)} function obrirfinestra(nom,ancho,alto) { dat = 'width=' + ancho + ',height=' + alto + ',left=100,top=100,scrollbars=no,resize=no'; ndata = new Date(); nom2 = 'gavamar' + ndata.getMilliseconds(); window.open(nom,nom2,dat)} function obrirproblema(nom,ancho,alto) {dat = 'width=' + ancho + ',height=' + alto + ',left=100,top=100,scrollbars=yes,resize=yes'; ndata = new Date(); nom2 = 'gavamar' + ndata.getMilliseconds(); window.open(nom,nom2,dat)} function obrirgrupnoticies(nom,ancho,alto) {dat = 'width=' + ancho + ',height=' + alto + ',left=225,top=250,scrollbars=yes,resize=yes'; window.open(nom,'grup',dat)} var str = top.location.href; var swi= window.self.name; if ((swi.slice(0,7) != 'gavamar') && (swi.slice(0,4) != 'grup')) {if (str.slice(0,24) == 'http://localhost/gavamar') {if ((str.slice(0,30) != 'http://localhost/gavamar/index') && (str.slice(0,45) != 'http://localhost/gavamar/WEB_CASTELLANO/index') && (str.slice(0,41) != 'http://localhost/gavamar/WEB_INGLES/index') && (str.slice(0,42) != 'http://localhost/gavamar/WEB_FRANCES/index') && (str.slice(0,33) != 'http://localhost/gavamar/ES/index') && (str.slice(0,33) != 'http://localhost/gavamar/EN/index') && (str.slice(0,33) != 'http://localhost/gavamar/FR/index')) {location.href = 'http://localhost/gavamar/index1.php?ruta=' + top.location.href;} } else {if ((str.slice(0,28) != 'http://www.gavamar.com/index') && (str.slice(0,43) != 'http://www.gavamar.com/WEB_CASTELLANO/index') && (str.slice(0,39) != 'http://www.gavamar.com/WEB_INGLES/index') && (str.slice(0,40) != 'http://www.gavamar.com/WEB_FRANCES/index') && (str.slice(0,31) != 'http://www.gavamar.com/ES/index') && (str.slice(0,31) != 'http://www.gavamar.com/EN/index') && (str.slice(0,31) != 'http://www.gavamar.com/FR/index') && (str != 'http://www.gavamar.com/')) {location.href = 'http://www.gavamar.com/index1.php?ruta=' + top.location.href;} } }