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'+messages.download+' '+messages.pause+' '+(this.index+1)+' of '+total+' '+recorded_type+'-'+(appname?' - '+appname:'')+(time?' '+time:'');}else{this.title=''+messages.download+' '+messages.auto_play+' '+(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'+messages.download+' '+messages.pause+' '+(this.index+1)+' of '+this.group.length+(this.title?' - '+this.title:'')}else{this.title=''+messages.download+' '+messages.auto_play+' '+(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,});