$(document).ready(function(){$(".entryform tbody tr:first td").addClass("pad_top_10");$(".entryform tr:last td").addClass("pad_bot_10");UserSearch("")});function EditFolder(){if($("fname").value==""){alert("Please enter the folder name.");return false}$.ajax({url:"apps_v/editFolder_v.php",type:"post",data:$("#myform").serialize(),success:function(a){if(a!=""){alert(a)}else{window.location.href="index.php?m="+$("#m").val()}}});return false}function UserSearch(a){$.ajax({url:"apps_v/ef_usersearch.php",type:"post",data:{report:$("#fid").val(),search:a},success:function(b){$("#userlist").html(b)}});return false}function SetPublic(a,c){var b=a.checked?1:0;$.ajax({url:"apps/grantf.php",type:"post",data:{user:c,folderid:$("#fid").val(),grant:b},success:function(d){if(d!=""){alert(d)}}})}function UserPrivSet(a,b,d,c){var e=0;if(a.checked){e=1}$.ajax({url:"apps_v/editFolderUsr.php",type:"post",data:{add:e,user:b,folder:d,auth:c,csrf_token:csrf_token_get()}});return false}function GroupPrivSet(a,d,b){var c=0;if(a.checked){c=1}$.ajax({url:"apps_v/editFolderGrp.php",type:"post",data:{add:c,group:d,folder:b,csrf_token:csrf_token_get()}});return false};