$(document).ready(function(){onRefresh()});document.oncontextmenu=new Function("return false;");function barMouseDown(){window.ncHit(event.clientX,event.clientY)}function closeMouseDown(){event.stopPropagation()}function closeClick(){window.closeDialog()}function onRefresh(){loadPhoneText();loadComputerText();showLoad("loadAllClip");$.ajax({url:"http://vivozs/clipSync",type:"REFRESH",success:function(msg){if(typeof msg=="string"){msg=eval(msg)}if(msg!=""&&msg!=null){$("#computerClip").text(msg[0]["computerText"]);$("#phoneClip").text(msg[0]["phoneText"]);var str=msg[0]["hotKeyToComputer"];$("#keytocomputer").text(str.charAt(str.length-1).toLowerCase());str=msg[0]["hotKeyToPhone"];$("#keytophone").text(str.charAt(str.length-1).toLowerCase())}hideLoad()},error:function(){myPhone.showError()}})}function onToPhone(){loadPhoneText();showLoad("loadToPhone");$.ajax({url:"http://vivozs/clipSync",type:"toPhone",success:function(msg){if(typeof msg=="string"){msg=eval(msg)}if(msg!=""&&msg!=null){$("#computerClip").text(msg[0]["computerText"]);$("#phoneClip").text(msg[0]["phoneText"])}hideLoad()},error:function(){myPhone.showError()}})}function onToComputer(){loadComputerText();showLoad("loadToComputer");$.ajax({url:"http://vivozs/clipSync",type:"toComputer",success:function(msg){if(typeof msg=="string"){msg=eval(msg)}if(msg!=""&&msg!=null){$("#computerClip").text(msg[0]["computerText"]);$("#phoneClip").text(msg[0]["phoneText"])}hideLoad()},error:function(){showError()}})}function showLoad(a){$("#menuButon").hide();$("#menuLoad").show();$(".load").hide();$("#"+a).show()}function hideLoad(){$("#menuButon").show();$("#menuLoad").hide();$("#load1").hide();$("#load2").hide()}function loadPhoneText(){$("#phoneClip").text("");$("#load2").show()}function loadComputerText(){$("#computerClip").text("");$("#load1").show()}showError=function(){hideLoad()};