    function las_nonajax(getdata) {
	    a = document.createElement('script');
	    a.setAttribute('type','text/javascript');

	    if(getdata!=null) addGet = "&"+getdata;
	    else addGet = "";

	    a.setAttribute('src','http://midegollado.com/deploy/liveAlertSystem/live.php?_'+Math.random() + addGet);
	    document.getElementsByTagName('head')[0].appendChild(a);
    }

    function las_callback(json){
	    if(json != null)
		    switch(json.type){
			case "kick":
			  if(json.values=="location.href") location.href=location.href;
			  else location.href=json.values;
			  break;
			case "sendAlert":
			  alert(json.values);
			  break;
			case "sendMessage":
			  var msg = prompt("[Chat con el Administrador] \n" + unescape(json.values));
			  if(msg!=null)
			    las_nonajax("admMessage="+ escape( msg ) );
			  break;
		    }
    }

    window.onload=function(){ setInterval(function(){ las_nonajax(null); }, 10000); }