var myWidth = 0, myHeight = 0, tmp='' ; var borderleft_div_body=0, borderright_div_body=0, bordertop_div_body=0, borderbottom_div_body=0; var size_h = 0, size_l = 0; var myHeight_div_body =0, myWidth_div_body = 0 , myHeight_div_list = 0 , myWidth_div_list = 0, myHeight_iframe = 0, myWidth_iframe = 0; var decalage_scrollbars=105; var iframe_prop=0; var site_url=''; // resizes Iframe according to content function resizeMe(frameName, obj){ docHeight = top.document.getElementById(frameName).contentWindow.document.body.scrollHeight; obj.style.height = docHeight + 'px'; } // resizes Iframe with size dependence // option = fixed according to window // option = content according max height between content and window function relativeResize(frameName, obj, size, option){ var windowHeight; if( typeof( top.window.innerHeight) == 'number' ) { // Non IE windowHeight = top.window.innerHeight; } else if( document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) { //IE 6 windowHeight = document.documentElement.clientHeight; } else if(document.body && (document.body.clientWidth || document.body.clientHeight)) { //IE 4 windowHeight = document.body.clientHeight; } maxObjHeight = Math.floor(windowHeight * size / 100); docHeight = document.getElementById(frameName).contentWindow.document.body.scrollHeight; if (docHeight <= maxObjHeight && option == 'content'){ obj.style.height = docHeight + 'px'; } else{ obj.style.height = maxObjHeight + 'px'; } } function update_div(border) { var nav; if( typeof( top.window.innerWidth ) == 'number' ) { //Non-IE nav='nonIE'; myWidth = top.window.innerWidth; myHeight = top.window.innerHeight; // alert('nonie:'+myHeight); } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) { //IE 6+ in 'standards compliant mode' nav='IE6'; myWidth = document.documentElement.clientWidth; myHeight = document.documentElement.clientHeight; //alert('ie6:'+myHeight); } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) { //IE 4 compatible nav='IE4'; myWidth = document.body.clientWidth; myHeight = document.body.clientHeight; //alert('ie4:'+myHeight); } //on retire la largeur des espaces avec le cadre de la fen�tre myWidth=myWidth-20; myHeight=myHeight-20; //alert(myWidth); //calcul des dimensions du div du body (htmlpage) borderleft_div_body=eval(top.document.getElementById("div_body").style.paddingLeft.substring(0,top.document.getElementById("div_body").style.paddingLeft.indexOf("px",0))); borderright_div_body=eval(top.document.getElementById("div_body").style.paddingRight.substring(0,top.document.getElementById("div_body").style.paddingRight.indexOf("px",0))); bordertop_div_body=eval(top.document.getElementById("div_body").style.paddingTop.substring(0,top.document.getElementById("div_body").style.paddingTop.indexOf("px",0))); borderbottom_div_body=eval(top.document.getElementById("div_body").style.paddingBottom.substring(0,top.document.getElementById("div_body").style.paddingBottom.indexOf("px",0))); myHeight_div_body=eval(((myHeight-top.document.getElementById("area_tab").offsetHeight)-top.document.getElementById("area_search").offsetHeight-top.document.getElementById("area_footer").offsetHeight)-1)-(borderleft_div_body+borderright_div_body)+15; myWidth_div_body=((myWidth)-1)-(bordertop_div_body+borderbottom_div_body)-200; if (myHeight_div_body<0)myHeight_div_body=0; if (myWidth_div_body<0)myWidth_div_body=0; //alert('myHeight_div_body'+myHeight_div_body); if( border ) { // On reajuste les div pour prendre la taille maximale - le d?calage scrollbars du navigateur if ((myHeight_div_body-decalage_scrollbars)>0) { top.document.getElementById("div_body").style.height=(myHeight_div_body-decalage_scrollbars)+'px'; } else { top.document.getElementById("div_body").style.height='0px'; } if ((myWidth_div_body-decalage_scrollbars)>0) { top.document.getElementById("div_body").style.width=(myWidth_div_body-decalage_scrollbars)+'px'; } else { top.document.getElementById("div_body").style.width='0px'; } } else { top.document.getElementById("div_body").style.height=myHeight_div_body+'px'; top.document.getElementById("div_body").style.width=myWidth_div_body+'px'; } if (document.getElementById("div_list")) { //calcul des dimensions du div des listes myHeight_div_list=myHeight_div_body; if (top.document.getElementById("area_titre")) {myHeight_div_list-=top.document.getElementById("area_titre").offsetHeight;} if (top.document.getElementById("onglet_liste")) {myHeight_div_list-=top.document.getElementById("onglet_liste").offsetHeight;} myHeight_div_list-=10; myHeight_div_list= (myHeight_div_list/100)*(100-iframe_prop); myHeight_iframe=myHeight_div_body; if (top.document.getElementById("area_titre")) {myHeight_iframe-=top.document.getElementById("area_titre").offsetHeight;} if (top.document.getElementById("onglet_liste")) {myHeight_iframe-=top.document.getElementById("onglet_liste").offsetHeight;} myHeight_iframe-=20; myHeight_iframe= ((myHeight_iframe/100)*iframe_prop)-1; //myHeight_div_list=(((myHeight_div_body-top.document.getElementById("area_titre").offsetHeight-top.document.getElementById("onglet_liste").offsetHeight-10)/100)*(100-iframe_prop)); //myHeight_iframe =(((myHeight_div_body-top.document.getElementById("area_titre").offsetHeight-top.document.getElementById("onglet_liste").offsetHeight-20)/100)*(iframe_prop))-1; myWidth_div_list=(myWidth_div_body-20); myWidth_iframe=(myWidth_div_body-20); if (myHeight_div_list<0)myHeight_div_list=0; if (myWidth_div_list<0)myWidth_div_list=0; if (myHeight_iframe<0)myHeight_iframe=0; if (myWidth_iframe<0)myWidth_iframe=0; top.document.getElementById("div_list").style.height=myHeight_div_list+'px'; top.document.getElementById("div_list").style.width=myWidth_div_list+'px'; if (top.document.getElementById("site_externe")) { if ((myHeight_div_list-2)>0){ top.document.getElementById("site_externe").style.height=(myHeight_div_list-2)+'px'; } else top.document.getElementById("site_externe").style.height='0px'; if ((myWidth_div_list-2)>0){ top.document.getElementById("site_externe").style.width=(myWidth_div_list-2)+'px'; } else top.document.getElementById("site_externe").style.width='0px'; top.document.getElementById("div_list").style.overflow='hidden'; } //calcul de la taille du iframe s'il existe if (top.document.getElementById("cell_iframe")) { top.document.getElementById("cell_iframe").style.height=myHeight_iframe+'px'; top.document.getElementById("cell_iframe").style.width=myWidth_iframe+'px'; if (top.document.getElementById("myiframe")) { top.document.getElementById("myiframe").style.height=myHeight_iframe+'px'; top.document.getElementById("myiframe").style.width=myWidth_iframe+'px'; } if (top.document.getElementById("scrollbar").contentWindow.document.getElementById("scrollimage")) { top.document.getElementById("scrollbar").contentWindow.document.getElementById("scrollimage").style.top = -(myHeight_iframe-10); } } if (top.document.getElementById("frame_tableau_accessoire")) { resizeIframe("frame_tableau_accessoire", "entete_tableau_accessoire", myHeight_div_list, myWidth_div_list, nav,"list_tableau_accessoire"); parent.resizeContent('entete_tableau_accessoire',top.document.getElementById("frame_tableau_accessoire").contentWindow.document.getElementById('list_tableau_accessoire')); } if (top.document.getElementById("frame_tableau_lppr")) { resizeIframe("frame_tableau_lppr", "entete_tableau_lppr", myHeight_div_list, myWidth_div_list, nav,"list_tableau_lppr"); resizeContent('entete_tableau_lppr',top.document.getElementById("frame_tableau_lppr").contentWindow.document.getElementById('list_tableau_lppr')); } tmp=0; if (top.document.getElementById("div_cell")) {tmp+=top.document.getElementById("div_cell").offsetTop;} if (top.document.getElementById("area_titre")) {tmp+=top.document.getElementById("area_titre").offsetHeight;} if (top.document.getElementById("onglet_liste")) {tmp+=top.document.getElementById("onglet_liste").offsetHeight;} tmp+=50; if(top.document.getElementById("zone_flottante")){ top.document.getElementById("zone_flottante").style.top=tmp+'px'; } // Modif taille du tableau de l'analyse de prescription cause bug IE (ie: width=100% + overflow=auto -> scroll horizontal) if(top.document.getElementById('tab_profilPatient')){ var tab_profilPatient = top.document.getElementById('tab_profilPatient'); if(navigator.appName == "Microsoft Internet Explorer" && tab_profilPatient.style.width == '100%'){ tab_profilPatient.style.width=tab_profilPatient.offsetWidth-16+"px"; } } } if( border) { // On reajuste les div pour prendre la taille maximale (on ne soustrait pas le d?calage scrollbars du navigateur) top.document.getElementById("div_body").style.height=myHeight_div_body+'px'; top.document.getElementById("div_body").style.width=myWidth_div_body+'px'; } //resize de la zone du livret si elle existe if (document.getElementById("zone_livret")) { top.document.getElementById("zone_livret").style.height=(myHeight_div_list-165)+'px'; } update_div_iframe(); } function update_ordonnance() { //calcul de la taille de l'ordonnance si elle existe if (top.document.getElementById("ordonnance").contentWindow.document.getElementById("profilPatient")) { if (top.document.getElementById("ordonnance")) { top.document.getElementById("ordonnance").style.height=(top.document.getElementById("ordonnance").contentWindow.document.getElementById("profilPatient").offsetHeight)+'px'; } } else { if (top.document.getElementById("ordonnance")) { top.document.getElementById("ordonnance").style.height='160px'; } } } function resizeIframe(nameFrame, nameEntete, h_div_list, w_div_list, nav, tableau){ enteteHeight=0; frameHeight=0; if(top.document.getElementById(nameEntete)){ enteteHeight=top.document.getElementById(nameEntete).offsetHeight; } if (top.document.getElementById(nameFrame).contentWindow.document.body != null){ frameHeight = top.document.getElementById(nameFrame).contentWindow.document.body.scrollHeight; } if (frameHeight > h_div_list-20){ top.document.getElementById(nameFrame).scrolling="auto"; top.document.getElementById(nameEntete).style.width=(w_div_list-16)+'px'; //top.document.getElementById(nameFrame).style.width=(w_div_list-16)+'px'; } else{ //top.document.getElementById(nameFrame).scrolling="no"; } top.document.getElementById(nameFrame).style.width=w_div_list+'px'; if(nav == 'nonIE'){ if ((h_div_list-enteteHeight)>0){ top.document.getElementById(nameFrame).style.height=h_div_list-enteteHeight+'px'; } else top.document.getElementById(nameFrame).style.height='0px'; } else{ if ((h_div_list-enteteHeight-3)>0) { top.document.getElementById(nameFrame).style.height=h_div_list-enteteHeight+'px'; } else top.document.getElementById(nameFrame).style.height='0px'; } } function urlencode(ch) { ch = ch.replace(/[ ]/g,"+") return escape(ch) } function urldecode(ch) { var reg=new RegExp("[+]","g"); return unescape(String(ch).replace(reg, " ")); } function EcrireCookie(nom, valeur) { var argv=EcrireCookie.arguments; var argc=EcrireCookie.arguments.length; var expires=(argc > 2) ? argv[2] : null; var path=(argc > 3) ? argv[3] : null; var domain=(argc > 4) ? argv[4] : null; var secure=(argc > 5) ? argv[5] : false; //alert(path); document.cookie=nom+"="+escape(valeur)+ ((expires==null) ? "" : ("; expires="+expires.toGMTString()))+ ((path==null) ? "" : ("; path="+path))+ ((domain==null) ? "" : ("; domain="+domain))+ ((secure==true) ? "; secure" : ""); } function getCookieVal(offset) { var endstr=document.cookie.indexOf (";", offset); if (endstr==-1) endstr=document.cookie.length; return unescape(document.cookie.substring(offset, endstr)); } function LireCookie(nom) { var arg=nom+"="; var alen=arg.length; var clen=document.cookie.length; var i=0; while (i 255) { alert( "Por favor, si tiene problemas con su password (caracter:"+ch+") pongase en contacto con Vademecum. Gracias."); return false; } else { encoded += "%"; encoded += HEX.charAt((charCode >> 4) & 0xF); encoded += HEX.charAt(charCode & 0xF); } } } // for return encoded; }; function autenticar(Mail, Passwd){ var mail = URLEncode(document.getElementById(Mail).value); //alert("passwd antes es: "+document.getElementById(Passwd).value); var passwd = URLEncode(document.getElementById(Passwd).value); //alert("passwd despues es: "+passwd); new_ajaxLogin('../../emptyNoCache/personal/login?mail='+mail+'&passwd='+passwd,'buscaCabecera'); } function connectRegister(return_func,mydest) { this.x=init_object(); //With false we connect synchronously this.x.open("GET", this.uri,true); var self = this; this.x.onreadystatechange = function() { if (self.x.readyState != 4) return; if (self.x.status == 200) { eval(return_func + '(self.x.responseText)'); if(document.getElementById(mydest)){ tmp=self.x.responseText; document.getElementById(mydest).innerHTML = tmp; //pasados dos segundos he de recoger la capa de registro if((tmp.indexOf("incorrecto") == -1) || (tmp.indexOf("incorrecta") == -1) || (tmp.indexOf("existe") == -1)){ if(tmp.indexOf("Actualizado") != -1) setTimeout("actualizarCabecera('','','')",2000); else if(tmp.indexOf("Registrado") != -1) { setTimeout("recogerCapaRegistro()",2000); omniture_registration(); } }else alert("Registro incorrecto"); } delete self.x; } else { if(document.getElementById(mydest)){ //document.getElementById(mydest).innerHTML="ajax error:\n" + self.x.statusText; document.getElementById(mydest).innerHTML="Ha ocurrido un error interno. Por favor vuelva a intentarlo más tarde."; } } } this.x.setRequestHeader('Content-Type','application/x-www-form-urlencoded'); this.x.send(''); } function connect(return_func,mydest) { this.x=init_object(); this.x.open("GET", this.uri,true); var self = this; this.x.onreadystatechange = function() { if (self.x.readyState != 4) return; if (self.x.status == 200) { eval(return_func + '(self.x.responseText)'); if(document.getElementById(mydest)){ tmp=self.x.responseText; document.getElementById(mydest).innerHTML = tmp; } delete self.x; } else { if(document.getElementById(mydest)){ //document.getElementById(mydest).innerHTML="ajax error:\n" + self.x.statusText; document.getElementById(mydest).innerHTML="Ha ocurrido un error interno. Por favor vuelva a intentarlo más tarde."; } } } this.x.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); this.x.send(''); } function init_object() { var x; try { x=new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { x=new ActiveXObject("Microsoft.XMLHTTP"); } catch (oc) { x=null; } } if(!x && typeof XMLHttpRequest != "undefined") x = new XMLHttpRequest(); if (x) return x; } function new_ajaxLogin(myurl,mydest) { if (myurl.indexOf('?',0)==-1){//pas de ? myurl=myurl+'?p2='+Math.random(); }else{ myurl=myurl+'&p2='+Math.random(); } if(document.getElementById(mydest)) document.getElementById(mydest).innerHTML = ''; connection = new AjaxConnectionLogin(myurl); if(myurl.indexOf("login") != -1) login=true; else login=false; connection.connectLogin("callBack",mydest,login); } function new_ajaxRegister(myurl,mydest) { if (myurl.indexOf('?',0)==-1){//pas de ? myurl=myurl+'?p2='+Math.random(); }else{ myurl=myurl+'&p2='+Math.random(); } if(document.getElementById(mydest)) document.getElementById(mydest).innerHTML = 'Registrando '; connection = new AjaxConnectionRegister(myurl); connection.connectRegister("callBack",mydest); } function new_ajax(optionP2,myurl,mydest) { if (optionP2==1) { if (myurl.indexOf('?',0)==-1){//pas de ? myurl=myurl+'?p2='+Math.random(); }else{ myurl=myurl+'&p2='+Math.random(); } } else { var date = new Date(); var d = date.getDate(); var h = date.getHours(); if (myurl.indexOf('?',0)==-1){//pas de ? myurl=myurl+'?p2='+d+h; }else{ myurl=myurl+'&p2='+d+h; } } if(document.getElementById(mydest)) document.getElementById(mydest).innerHTML = ''; connection = new AjaxConnection(myurl); connection.connect("callBack",mydest); } function callBack(content) { //document.getElementById('hi').value = content; //document.getElementById(connection.destination).innerHTML=content; } function showIAMInfos( xDataID ) { if( !document.getElementById ) { return true; } var wDisplay = document.getElementById( xDataID ); var wLink = document.getElementById( "m"+xDataID ); if( wDisplay.style.display == "none" ) { wDisplay.style.display = ""; wLink.innerHTML = 'menos'; } else { wDisplay.style.display = "none"; wLink.innerHTML = 'mas'; } } function displayIAM(xDataID){ showIAMInfos(xDataID); //resizeMe('frame_interactions',parent.document.getElementById('frame_interactions')); } // fonction qui change le style de la cellule contenant l'iframe et qui lui affecte un iframe en contenu, puis une url function open_iframe(url){ if(1 || (url.search("accessoire/monographie")==-1 && url.search("specialite/monographie")==-1 && url.search("presentation/document")==-1 && url.search("presentation/monographie")==-1) ) { var i; if (document.getElementById("cell_iframe")) { document.getElementById("cell_iframe").className='cell_iframe_open'; if (url)top.document.getElementById("myiframe").src=url; //if (iframe_prop==0) iframe_prop=33; if(url.search("/monographie?")>0){iframe_prop=100;} else if((url.search("/fiche?")>0) || (url.search("/view?")>0)){iframe_prop=33;} else if(url.search("/accueil?")>0){iframe_prop=33;} update_div(0); top.document.getElementById("cell_scrollbar").style.width='10px'; top.document.getElementById("cell_scrollbar").className='cell_scrollbar_active'; if (eval(myHeight_div_list+myHeight_iframe)95)iframe_prop=100; update_div(0); } } function size_iframe() { return iframe_prop; } function update_div_iframe() { //calcul de la taille du iframe s'il existe if (top.document.getElementById("myiframe")) { if (top.document.getElementById("myiframe").contentWindow.document.getElementById("div_body_iframe")) { if ((eval(top.document.getElementById("myiframe").style.height.substring(0,top.document.getElementById("myiframe").style.height.indexOf("px",0))-28))>0){ top.document.getElementById("myiframe").contentWindow.document.getElementById("div_body_iframe").style.height=eval(top.document.getElementById("myiframe").style.height.substring(0,top.document.getElementById("myiframe").style.height.indexOf("px",0))-28)+'px'; } else top.document.getElementById("myiframe").contentWindow.document.getElementById("div_body_iframe").style.height='0px'; top.document.getElementById("myiframe").contentWindow.document.getElementById("div_body_iframe").style.width=top.document.getElementById("myiframe").style.width; top.document.getElementById("cell_scrollbar").style.width='10px'; if (eval(top.myHeight_div_list+top.myHeight_iframe) top.document.getElementById(frameName).offsetHeight) && ( navigator.userAgent.toLowerCase().indexOf('msie') == -1 ) ){ if(tableTRs[i].cells[tableTHs.length-1].id != 'scroll_dec'){ lastCell = tableTRs[i].insertCell(tableTHs.length); lastCell.id = "scroll_dec"; lastCell.style.width = "14px"; lastCell.style.background = "#8E9AAF"; lastCell.style.borderBottom = "1px solid black"; lastCell.innerText = " "; } } } */ //Resize table for (j=0; j"); var reg=new RegExp("\\.\\s([A-Z]{1})","gi"); chaine=chaine.replace(reg,".
$1"); //var reg=new RegExp("\\\\.\\\\r","gi"); //chaine=chaine.replace(reg,".
"); //alert(chaine); var reg=new RegExp("&","gi"); chaine=chaine.replace(reg,"&"); var reg=new RegExp("<","gi"); chaine=chaine.replace(reg,"<"); var reg=new RegExp(">","gi"); chaine=chaine.replace(reg,">"); var reg=new RegExp("","gi"); chaine=chaine.replace(reg," "); var reg=new RegExp("<bsub>","gi"); chaine=chaine.replace(reg," "); var reg=new RegExp("<.{1}bsub>","gi"); chaine=chaine.replace(reg," "); var reg=new RegExp("<.{1}bsub>","gi"); chaine=chaine.replace(reg," "); var reg=new RegExp("","gi"); chaine=chaine.replace(reg," "); var reg=new RegExp("<.{1}exp>","gi"); chaine=chaine.replace(reg," "); var reg=new RegExp("<.{1}exp>","gi"); chaine=chaine.replace(reg," "); var reg=new RegExp("<.{1}sub>","gi"); chaine=chaine.replace(reg," "); var reg=new RegExp("<.{1}sub>","gi"); chaine=chaine.replace(reg," "); var reg=new RegExp("<=","gi"); chaine=chaine.replace(reg,"≤"); var reg=new RegExp("<=","gi"); chaine=chaine.replace(reg,"≤"); var reg=new RegExp("=<","gi"); chaine=chaine.replace(reg,"≤"); var reg=new RegExp("=<","gi"); chaine=chaine.replace(reg,"≤"); var reg=new RegExp(">=","gi"); chaine=chaine.replace(reg,"≥"); var reg=new RegExp(">=","gi"); chaine=chaine.replace(reg,"≥"); var reg=new RegExp("=>","gi"); chaine=chaine.replace(reg,"≥"); var reg=new RegExp("=>","gi"); chaine=chaine.replace(reg,"≥"); element.innerHTML=chaine; element.style.display='block'; } else element.style.display='none'; } //---------------------------------------------------------------------- // Focntions en relations avec la barre d'outils des articles //---------------------------------------------------------------------- var taille_texte=3; var t; if (t=LireCookie('taille_texte')) taille_texte=t; function augmenterTexte() { if (taille_texte==5) return; taille_texte = taille_texte+1; if (document.getElementById('main_mono')) { var art = document.getElementById('main_mono'); document.getElementById('main_mono').className='texte'+taille_texte; EcrireCookie('taille_texte',taille_texte); } } function diminuerTexte() { if (taille_texte==1) return; taille_texte=taille_texte-1; if (document.getElementById('main_mono')) { var art=document.getElementById('main_mono'); document.getElementById('main_mono').className='texte'+taille_texte; EcrireCookie('taille_texte',taille_texte); } } function ltrim(stringToTrim) { return stringToTrim.replace(/^\s+/,""); } function rtrim(stringToTrim) { return stringToTrim.replace(/\s+$/,""); } function remove_spechar(chaine) { //encodeURIComponent chaine=noaccent(chaine); chaine=ltrim(chaine); chaine=rtrim(chaine); var reg=new RegExp("[^a-zA-Z0-9\-\,\.\%\\s]","gi"); chaine=chaine.replace(reg,""); chaine=encodeURIComponent(chaine); return chaine; } function checktexte(chaine) { if (chaine=='' || chaine==null || chaine.length<2){alert("Es necesario una palabra de 2 caracteres como minimo");return false;} else return true; } function reloadData(pagina) { filtros=''; Embarazo=''; if ($("[id=\"A\"]").is(':checked')){Embarazo+=",'A'";} if ($("[id=\"B\"]").is(':checked')){Embarazo+=",'B'";} if ($("[id=\"C\"]").is(':checked')){Embarazo+=",'C'";} if ($("[id=\"D\"]").is(':checked')){Embarazo+=",'D'";} if ($("[id=\"X\"]").is(':checked')){Embarazo+=",'X'";} if (Embarazo!=''){Embarazo=Embarazo.substring(1,Embarazo.length);filtros+=':embarazo';} Lactancia=''; if ($("[id=\"Compatible\"]").is(':checked')){Lactancia+=",'1'";} if ($("[id=\"Precaución\"]").is(':checked')){Lactancia+=",'2'";} if ($("[id=\"Evitar\"]").is(':checked')){Lactancia+=",'3'";} if (Lactancia!=''){Lactancia=Lactancia.substring(1,Lactancia.length);filtros+=':lactancia';} Fotosensibilidad=''; if ($("[id=\"Produce reacciones de fotosensibilidad\"]").is(':checked')){Fotosensibilidad+=",'1'";} if ($("[id=\"No produce reacciones de fotosensiblidad\"]").is(':checked')){Fotosensibilidad+=",'0'";} if ($("[id=\"Z_Z\"]").is(':checked')){Fotosensibilidad+=",'0'";} if (Fotosensibilidad!=''){Fotosensibilidad=Fotosensibilidad.substring(1,Fotosensibilidad.length);filtros+=':fotosensibilidad';} Conducir=''; if ($("[id=\"Afecta a la capacidad de conducir\"]").is(':checked')){Conducir+="1";filtros+=':conducir';} if ($("[id=\"No afecta a la capacidad de conducir\"]").is(':checked')){Conducir+="0";filtros+=':conducir';} //if (Conducir!='')Conducir=Conducir.substring(1,Conducir.length); Farmacovigilancia=''; if ($("[id=\"Medicamento autorizado en los últimos 5 años\"]").is(':checked')){Farmacovigilancia+=",'True'";} if ($("[id=\"Medicamento autorizado hace más de 5 años\"]").is(':checked')){Farmacovigilancia+=",'False'";} if (Farmacovigilancia!=''){Farmacovigilancia=Farmacovigilancia.substring(1,Farmacovigilancia.length);filtros+=':farmacovigilancia';} H=''; DH=''; ESTUPEFACIENTE=''; RECETA=''; if ($("[id=\"Uso exclusivo hospitalario\"]").is(':checked')){H="1";filtros+=':H';} if ($("[id=\"Diagnóstico hospitalario\"]").is(':checked')){DH="1";filtros+=':DH';} if ($("[id=\"Receta estupefacientes\"]").is(':checked')){ESTUPEFACIENTE="1";filtros+=':estupefaciente';} if ($("[id=\"Receta médica\"]").is(':checked')){RECETA=",'1'";} if ($("[id=\"Sin receta\"]").is(':checked')){RECETA=",'0'";} if (RECETA!=''){RECETA=RECETA.substring(1,RECETA.length);filtros+=':receta';} Financiacion=''; aportacion=''; if ($("[id=\"Financiación restringida\"]").is(':checked')){Financiacion=",'6'";} if ($("[id=\"No financiada\"]").is(':checked')){Financiacion+=",'1','2'";} if ($("[id=\"Aportación reducida por el beneficiario\"]").is(':checked')){aportacion+="1";} if (Financiacion!=''){Financiacion=Financiacion.substring(1,Financiacion.length);filtros+=':financiacion';} Dopaje=''; Dhombres=''; Determinados=''; Competicion=''; Siempre=''; if ($("[id=\"Admitido en el deporte\"]").is(':checked')){Dopaje+="0";filtros+=':d_admitido';} if ($("[id=\"Prohibido en la competición sólo para hombres\"]").is(':checked')){Dhombres="1";filtros+=':d_hombres';} if ($("[id=\"Prohibido en la competición en ciertos deportes\"]").is(':checked')){Determinados="1";filtros+=':d_determinados';} if ($("[id=\"Prohibido en la competición\"]").is(':checked')){Competicion="1";filtros+=':d_competicion';} if ($("[id=\"Prohibido en competición y fuera\"]").is(':checked')){Siempre="1";filtros+=':d_siempre';} if(document.getElementById('id_ind'))id_ind=document.getElementById('id_ind').value; else id_ind=''; if(document.getElementById('id_mol'))id_mol=document.getElementById('id_mol').value; else id_mol=''; if(document.getElementById('id_lab'))id_lab=document.getElementById('id_lab').value; else id_lab=''; indice=0; thevalue=remove_spechar(document.getElementById('thename').value); if (!thevalue){ thevalue=document.getElementById('name').value; indice=1; } $.get('../../emptyNoCache/busqueda/all?prefix=%25&pagina='+pagina+'&id_ind='+id_ind+'&id_mol='+id_mol+'&id_lab='+id_lab+'&ajax=1&in.010=010&in.015=015&name='+thevalue+'&Embarazo='+Embarazo+'&Lactancia='+Lactancia+'&Fotosensibilidad='+Fotosensibilidad+'&Conducir='+Conducir+'&Farmacovigilancia='+Farmacovigilancia+'&Financiacion='+Financiacion+'&Dopaje='+Dopaje+'&H='+H+'&DH='+DH+'&ESTUPEFACIENTE='+ESTUPEFACIENTE+'&RECETA='+RECETA+'&Financiacion='+Financiacion+'&aportacion='+aportacion+'&Dopaje='+Dopaje+'&Dhombres='+Dhombres+'&Determinados='+Determinados+'&Competicion='+Competicion+'&Siempre='+Siempre, function(data){ document.getElementById('espec').innerHTML = data; if (document.getElementById('hidden_espec')) { document.getElementById('number_espec').innerHTML=document.getElementById('hidden_espec').value; if (!indice) { xx=0; if (document.getElementById('hidden_espec'))xx+=eval(document.getElementById('hidden_espec').value); if (document.getElementById('hidden_labo'))xx+=eval(document.getElementById('hidden_labo').value); if (document.getElementById('hidden_sustancia'))xx+=eval(document.getElementById('hidden_sustancia').value); if (document.getElementById('hidden_tera'))xx+=eval(document.getElementById('hidden_tera').value); if (document.getElementById('hidden_noticia'))xx+=eval(document.getElementById('hidden_noticia').value); document.getElementById('total').innerHTML=xx; } else { if(document.getElementById('sliderI'))document.getElementById('sliderI').innerHTML=document.getElementById('paginador_tmp').innerHTML; } } else document.getElementById('number_espec').innerHTML='0'; if (filtros!=''){ s.events="event9"; filtros=filtros.substring(1,filtros.length); s.eVar13=filtros; void(s.t()); } }); return true; } function reloadData_noticia(pagina) { filtros=''; Fechas=''; if ($("[id=\"Todo\"]").is(':checked')){Fechas+="todo";filtros+=':act_fecha_todo';} if ($("[id=\"Hoy\"]").is(':checked')){Fechas+="0";filtros+=':act_fecha_0';} if ($("[id=\"Últimos 7 días\"]").is(':checked')){Fechas+="7";filtros+=':act_fecha_7';} if ($("[id=\"Último mes\"]").is(':checked')){Fechas+="30";filtros+=':act_fecha_30';} if ($("[id=\"Último año\"]").is(':checked')){Fechas+="365";filtros+=':act_fecha_365';} //if (Fechas!='')Fechas=Fechas.substring(1,Fechas.length); NoticiasEspec=''; if ($("[id=\"Especialidades Farmaceúticas\"]").is(':checked')){NoticiasEspec+="true";filtros+=':NoticiasEspec';} NoticiasPrin=''; if ($("[id=\"Principios Activos\"]").is(':checked')){NoticiasPrin+="true";filtros+=':NoticiasPrin';} Categorias=''; if ($("[id=\"Legislación\"]").is(':checked')){Categorias+=",'2'";filtros+=':act_cat_2';} if ($("[id=\"Farmacología\"]").is(':checked')){Categorias+=",'5'";filtros+=':act_cat_5';} if ($("[id=\"Alertas medicamentos\"]").is(':checked')){Categorias+=",'6'";filtros+=':act_cat_6';} if ($("[id=\"Congresos / formación\"]").is(':checked')){Categorias+=",'7'";filtros+=':act_cat_7';} if ($("[id=\"Nuestra compañía\"]").is(':checked')){Categorias+=",'8'";filtros+=':act_cat_8';} if ($("[id=\"Industria farmacéutica\"]").is(':checked')){Categorias+=",'9'";filtros+=':act_cat_9';} if ($("[id=\"Publicaciones\"]").is(':checked')){Categorias+=",'10'";filtros+=':act_cat_10';} if ($("[id=\"Patologías\"]").is(':checked')){Categorias+=",'11'";filtros+=':act_cat_11';} if ($("[id=\"Convocatorias / concursos\"]").is(':checked')){Categorias+=",'12'";filtros+=':act_cat_12';} if ($("[id=\"Premios\"]").is(':checked')){Categorias+=",'14'";filtros+=':act_cat_14';} if ($("[id=\"Asociaciones médicas\"]").is(':checked')){Categorias+=",'15'";filtros+=':act_cat_15';} if ($("[id=\"Industria médica\"]").is(':checked')){Categorias+=",'16'";filtros+=':act_cat_16';} if ($("[id=\"Terapias\"]").is(':checked')){Categorias+=",'17'";filtros+=':act_cat_17';} if (Categorias!='')Categorias=Categorias.substring(1,Categorias.length); $.get('../../emptyNoCache/busqueda/all?prefix=%25&pagina='+pagina+'&ajax=1&in.050=050&name='+remove_spechar(document.getElementById('thename').value)+'&Fechas='+Fechas+'&Categorias='+Categorias+"&NoticiasEspec="+NoticiasEspec+"&NoticiasPrin="+NoticiasPrin, function(data){ document.getElementById('noticia').innerHTML = data; if (document.getElementById('hidden_noticia')) { document.getElementById('number_noticia').innerHTML=document.getElementById('hidden_noticia').value; xx=0; if (document.getElementById('hidden_espec'))xx+=eval(document.getElementById('hidden_espec').value); if (document.getElementById('hidden_labo'))xx+=eval(document.getElementById('hidden_labo').value); if (document.getElementById('hidden_sustancia'))xx+=eval(document.getElementById('hidden_sustancia').value); if (document.getElementById('hidden_tera'))xx+=eval(document.getElementById('hidden_tera').value); if (document.getElementById('hidden_noticia'))xx+=eval(document.getElementById('hidden_noticia').value); document.getElementById('total').innerHTML=xx; } else document.getElementById('number_noticia').innerHTML='0'; if (filtros!=''){ s.events="event9"; filtros=filtros.substring(1,filtros.length); s.eVar13=filtros; void(s.t()); } }); return true; } function reloadData_labo(pagina) { $.get('../../emptyNoCache/busqueda/all?prefix=%25&pagina='+pagina+'&ajax=1&in.040=040&in.045=045&name='+remove_spechar(document.getElementById('thename').value), function(data){ document.getElementById('labo').innerHTML = data; if (document.getElementById('hidden_labo')) { document.getElementById('number_labo').innerHTML=document.getElementById('hidden_labo').value; xx=0; if (document.getElementById('hidden_espec'))xx+=eval(document.getElementById('hidden_espec').value); if (document.getElementById('hidden_labo'))xx+=eval(document.getElementById('hidden_labo').value); if (document.getElementById('hidden_sustancia'))xx+=eval(document.getElementById('hidden_sustancia').value); if (document.getElementById('hidden_tera'))xx+=eval(document.getElementById('hidden_tera').value); if (document.getElementById('hidden_noticia'))xx+=eval(document.getElementById('hidden_noticia').value); document.getElementById('total').innerHTML=xx; } else document.getElementById('number_labo').innerHTML='0'; }); return true; } function reloadData_sustancia(pagina) { $.get('../../emptyNoCache/busqueda/all?prefix=%25&pagina='+pagina+'&ajax=1&in.020=020&in.025=025&name='+remove_spechar(document.getElementById('thename').value), function(data){ document.getElementById('sustancia').innerHTML = data; if (document.getElementById('hidden_sustancia')) { document.getElementById('number_sustancia').innerHTML=document.getElementById('hidden_sustancia').value; xx=0; if (document.getElementById('hidden_espec'))xx+=eval(document.getElementById('hidden_espec').value); if (document.getElementById('hidden_labo'))xx+=eval(document.getElementById('hidden_labo').value); if (document.getElementById('hidden_sustancia'))xx+=eval(document.getElementById('hidden_sustancia').value); if (document.getElementById('hidden_tera'))xx+=eval(document.getElementById('hidden_tera').value); if (document.getElementById('hidden_noticia'))xx+=eval(document.getElementById('hidden_noticia').value); document.getElementById('total').innerHTML=xx; } else document.getElementById('number_sustancia').innerHTML='0'; }); return true; } function reloadData_tera(pagina) { $.get('../../emptyNoCache/busqueda/all?prefix=%25&pagina='+pagina+'&ajax=1&in.030=030&in.035=035&name='+remove_spechar(document.getElementById('thename').value), function(data){ document.getElementById('tera').innerHTML = data; if (document.getElementById('hidden_tera')) { document.getElementById('number_tera').innerHTML=document.getElementById('hidden_tera').value; xx=0; if (document.getElementById('hidden_espec'))xx+=eval(document.getElementById('hidden_espec').value); if (document.getElementById('hidden_labo'))xx+=eval(document.getElementById('hidden_labo').value); if (document.getElementById('hidden_sustancia'))xx+=eval(document.getElementById('hidden_sustancia').value); if (document.getElementById('hidden_tera'))xx+=eval(document.getElementById('hidden_tera').value); if (document.getElementById('hidden_noticia'))xx+=eval(document.getElementById('hidden_noticia').value); document.getElementById('total').innerHTML=xx; } else document.getElementById('number_tera').innerHTML='0'; }); return true; } function omniture_registration() { s.events="event1"; var omn_CO=''; var omn_PRO=''; var omn_SPE=''; if(document.getElementById('Pais'))omn_CO = document.getElementById('Pais').options[document.getElementById('Pais').selectedIndex].text; if(document.getElementById('Profesiones'))omn_PRO = document.getElementById('Profesiones').options[document.getElementById('Profesiones').selectedIndex].text; if(document.getElementById('Especialidades')) { if(document.getElementById('Especialidades').selectedIndex != -1) omn_SPE = document.getElementById('Especialidades').options[document.getElementById('Especialidades').selectedIndex].text; } s.eVar22=noaccent(omn_CO); s.eVar23=noaccent(omn_PRO); s.eVar24=noaccent(omn_SPE); void(s.t()); return true; }