﻿$(document).ready(function(){refreshSessionDotNet()});function refreshSessionDotNet(){var xmlhttp=GetXmlHttpNet();xmlhttp.open("POST","/Services/AutenticarService.svc/ajaxEndpoint/RefreshSessionDotNet",true);xmlhttp.setRequestHeader("Content-type","application/json");xmlhttp.send("");xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){if(xmlhttp.status==200){var result=eval("("+xmlhttp.responseText+")").d;if(result){if(result.NecesitaActualizar){CargarPopUp(result,null)}}}}}}function GetXmlHttpNet(){var a=["Msxml2.XMLHTTP.6.0","Msxml2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"];var d=null;if(window.XMLHttpRequest){d=new XMLHttpRequest()}else{if(window.ActiveXObject){for(var b in a){try{d=new ActiveXObject(a[b])}catch(c){}}}}return d};