function objetoAjax(){ 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 ValidaFormAceptacion(formulario) { if (!formulario.acepto.checked) { alert("ERROR: Aceptación cumplimentiento de la Lley Orgánica 15/1999"); return false; } } function login(id) { var $varLogin = jQuery.noConflict(); $varLogin.ajax({ url:'https://gepec.idpinformatica.com/lt-login.php', data: 'js=true&id='+id, cache: false, type: 'GET', complete: function (response) { $varLogin('#lt_modal').html(response.responseText); } }); } function lt_modal(m,i) { var $varModal = jQuery.noConflict(); $varModal.ajax({ url:'https://gepec.idpinformatica.com/lt-modal.php', data: 'modal='+m+'&id='+i, type: 'GET', cache: true, complete: function (response) { $varModal('#lt_modal').html(response.responseText); }, error: function ( jqXHR, exceptionxhr, status, error ) { //alert(error); alert(jqXHR +" " + exceptionxhr+" " + status+" " + error); } }); }