functionConfirm_Delete(e){confirm("Are you sure you want to delete")&&(document.location=e)}functionConfirm_Uninstall(e){confirm("Are you sure you want to uninstall this plugin ?")&&(document.location=e)}functionconfirm_it(e){vart=confirm(e);returnt?!0:!1}functionreloadImage(e,t){img=document.getElementById(t),img.src=e+"?"+Math.random()}functionvalidate_category_form(thisform){with(thisform){if(0==validate_required(title,"Title must be filled out!"))returntitle.focus(),!1;if(0==validate_required(description,"Description must be filled out!"))returndescription.focus(),!1}}functionvalidate_ad_form(thisform){with(thisform){if(0==validate_required(name,"Name must be filled out!"))returnname.focus(),!1;if(0==validate_required(type,"Type must be filled out!"))returntype.focus(),!1;if(0==validate_required(syntax,"Syntax Must Be Filled Out"))returnsyntax.focus(),!1;if(0==validate_required(code,"Code Must Be Filled Out"))returncode.focus(),!1}}functionload_more(e,t,o,a,n,i,l){$.ajax({beforeSend:function(e){$("#"+o).html("loading")},type:"POST",url:baseurl+"/ajax.php",data:{limit:e,mode:t,inner_mode:o,cat_id:i,total:l},dataType:"json",success:function(e){e&&($("#"+a).append(e.template),$(n).attr({limit:parseInt(e.count)+parseInt(e.total)})),1==e.limit_exceeds&&n.css("display","none"),"limit_exceeds"==e&&n.css("display","none"),$("#"+o).html("Laod More...")}})}functionrandomString(){for(vare="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",t=8,o="",a=0;t>a;a++){varn=Math.floor(Math.random()*e.length);o+=e.substring(n,n+1)}returno}functioncheck_remote_url(){$("#remoteUploadBttn").attr("disabled","disabled").hide(),$("#ytUploadBttn").attr("disabled","disabled"),$("#remoteUploadBttnStop").show();vare=$("#remote_file_url").val();if(force_stop=!1,!e||"undefined"==e)return$("#error_msgs").html('<div class="alert alert-danger" role="alert"> Please enter valid remote URL</div>'),$("#remoteUploadBttn").attr("disabled","").show(),$("#remoteUploadBttnStop").attr("disabled","disabled").hide(),!1;vart=$.ajax({url:download_page,type:"POST",data:{file:e,file_name:file_name},dataType:"json",beforeSend:function(){status_update();vart=getName(e);$("#loading").html('<div style="float: left; display: inline-block;"><img src="'+imageurl+'/ajax-loader.gif"></div><div style="float: left; line-height: 16px; padding-left:5px">'+lang.remoteUploadFile+'</div><div class="clear"></div>'),$("#remoteFileName").replaceWith('"'+t+'"')},success:function(e){e.error&&(force_stop=!0,$("#remoteUploadBttn").attr("disabled",""),$("#ytUploadBttn").attr("disabled",""),alert(e.error)),$("#loading").html("");vart=e.vid;$.post(baseurl+"/actions/file_uploader.php",{getForm:"get_form",title:$("#remote_file_url").val(),objId:remoteObjID,vid:t},function(e){$("#remoteUploadBttnStop").hide(),$("#ytUploadBttn").hide(),$("#remoteForm").append(e),$("#cbSubmitUpload"+remoteObjID).before('<span id="updateVideoDataLoading" style="margin-right:5px"></span>').attr("disabled","").attr("value",lang.saveData).attr("onClick","doUpdateVideo('#uploadForm"+remoteObjID+"','"+remoteObjID+"')").after('<input type="hidden" name="videoid" value="'+t+'" id="videoid" />').after('<input type="hidden" name="updateVideo" value="yes" id="updateVideo" />')},"text")}});$("#remoteUploadBttnStop").click(function(){t.abort(),force_stop=!0,$("#loading").html(""),$("#remoteDownloadStatus").hide(),$(this).hide(),$("#remoteUploadBttn").attr("disabled","").show()})}functionyoutube_upload(){$("#remoteUploadBttn").attr("disabled","disabled"),$("#ytUploadBttn").attr("disabled","disabled");vare=$("#remote_file_url").val();if(force_stop=!1,!e||"undefined"==e)return"#error_msgs".html('<div class="alert alert-danger" role="alert"> Please enter valid URL</div>'),$("#remoteUploadBttn").button("reset"),$("#ytUploadBttn").button("reset"),force_stop=!0,!1;$.ajax({url:download_page,type:"POST",data:{file:e,file_name:file_name,youtube:"yes"},dataType:"json",beforeSend:function(){$("#loading").html('<div style="float: left; display: inline-block;"><img src="'+imageurl+'/ajax-loader.gif"><