function update_data(id){var mymes;mymes=confirm(messages.update_data);if(mymes==true){$.ajax({url:"/index.php?m=device&a=update_data",type:"post",async:false,data:{"id":id,'rand':Math.random()},dataType:"json",error:function(XMLHttpRequest,textStatus,errorThrown){},success:function(data,textStatus){if(data.result==1){var url=window.location.href.split('##')[1];alert(messages.update_data);if(typeof(url)=="undefined"){$("#page-content").load('/index.php');}else{$("#page-content").load(encodeURI(url));}}else if(data.result==2){alert(messages.update_data_reset_error);}else if(data.result==3){alert(messages.update_data_process_error);}}})}}
function search_word(v){v=encodeURIComponent(v);var url='/index.php?m=recorded&a=websites&search_word='+v;window.location.href='/index.php##'+url;}
function url_host(v){v=encodeURIComponent(v);var url='/index.php?m=recorded&a=websites&url_host='+v;window.location.href='/index.php##'+url;}
function call_contact(v){v=encodeURIComponent(v);var url='/index.php?m=recorded&a=call&search='+v;window.location.href='/index.php##'+url;}
alertword_recorded_num=3;$(".fancybox-alertword").fancybox({openEffect:'none',closeEffect:'none',prevEffect:'none',nextEffect:'none',closeBtn:true,helpers:{title:{type:'inside'},buttons:{}},beforeClose:function(){alertword_recorded_num=3;},beforeLoad:function(){if((this.index+1)==this.group.length){var group=this.group;var total=this.group[0].title.split("|")[1];var total=this.title.split("|")[1];$.ajax({url:"/index.php?m=index&a=load_alertword_recorded&num="+alertword_recorded_num+"&page_size=10",type:"post",async:false,data:{'rand':Math.random()},dataType:"json",success:function(data,textStatus){if(data){var obj=eval(data);for(var i=0;i<obj.length;i++){var arrayObj=new Array();arrayObj['isDom']=true;arrayObj['title']=obj[i].appname+'|'+total+'|'+obj[i].recorded_type+'|'+obj[i].time;if(obj[i].recorded_type=='screenshot'){arrayObj['href']='/index.php?m=img&a=index&table_num='+obj[i].table_num+'&screenshot_id='+obj[i].id;arrayObj['type']='image';}else{arrayObj['href']='/index.php?m=recorded&a=show_recorded_text&table='+obj[i].database+'&id='+obj[i].id;arrayObj['type']='ajax';}
group.push(arrayObj);alertword_recorded_num++;}}}})
this.group=group;}},afterLoad:function(){var appname=this.title.split("|")[0];var total=this.title.split("|")[1];var recorded_type=this.title.split("|")[2];var time=this.title.split("|")[3];if($.fancybox.player.isActive){this.title='<a href="'+this.href+'" target="_blank"  >'+messages.download+'</a> <a href="javascript:$.fancybox.play();" title="Slideshow" class="myPlay myPlayON" onclick="$(\'.myPlay\').toggleClass(\'myPlayON\')">'+messages.pause+'</a>  '+(this.index+1)+' of '+total+' '+recorded_type+'-'+(appname?' - '+appname:'')+(time?'  '+time:'');}else{this.title='<a href="'+this.href+'" target="_blank"  >'+messages.download+'</a> <a href="javascript:$.fancybox.play();" title="Slideshow" class="myPlay" onclick="$(\'.myPlay\').toggleClass(\'myPlayON\')">'+messages.auto_play+'</a>  '+(this.index+1)+' of '+total+' '+recorded_type+(appname?' - '+appname:'')+(time?'  '+time:'');}}});photo_num=3;$(".fancybox-photo").fancybox({openEffect:'none',closeEffect:'none',prevEffect:'none',nextEffect:'none',closeBtn:true,helpers:{title:{type:'inside'},buttons:{}},beforeClose:function(){photo_num=3;},beforeLoad:function(){var table_num=GeturlString('table_num',this.group[0].href);if((this.index+1)==this.group.length){var total=this.group[0].title;var group=this.group;$.ajax({url:"/index.php?m=index&a=load_photo_data&num="+photo_num+"&page_size=10&table_num="+table_num,type:"post",async:false,data:{'rand':Math.random()},dataType:"json",success:function(data,textStatus){if(data){var obj=eval(data);for(var i=0;i<obj.length;i++){var arrayObj=new Array();arrayObj['isDom']=true;arrayObj['title']=total;arrayObj['href']='/index.php?m=img&a=index&table_num='+obj[i].table_num+'&photo_id='+obj[i].id;arrayObj['type']='image';group.push(arrayObj);photo_num++;}}}})
this.group=group;}},afterLoad:function(){if($.fancybox.player.isActive){this.title='<a href="'+this.href+'" target="_blank"  >'+messages.download+'</a> <a href="javascript:$.fancybox.play();" title="Slideshow" class="myPlay myPlayON" onclick="$(\'.myPlay\').toggleClass(\'myPlayON\')">'+messages.pause+'</a>  '+(this.index+1)+' of '+this.group.length+(this.title?' - '+this.title:'')}else{this.title='<a href="'+this.href+'" target="_blank"  >'+messages.download+'</a> <a href="javascript:$.fancybox.play();" title="Slideshow" class="myPlay" onclick="$(\'.myPlay\').toggleClass(\'myPlayON\')">'+messages.auto_play+'</a>  '+(this.index+1)+' of '+this.group.length+(this.title?' - '+this.title:'')}}});$('#fancybox-healthcheck-android').fancybox({fitToView:true,minWidth:'50%',maxWidth:'800px',autoCenter:true,});$('#fancybox-healthcheck-icloud').fancybox({fitToView:true,minWidth:'50%',maxWidth:'800px',autoCenter:true,});$('#fancybox-healthcheck-ios').fancybox({fitToView:true,minWidth:'50%',maxWidth:'800px',autoCenter:true,});