$(document).ready(function(){$(".entryform tbody tr:first td").addClass("pad_top_10");$(".entryform tr:last td").addClass("pad_bot_10");if($("#rname").length==0){check_proc();$("#procname").bind("keyup",function(){check_proc()})}});function check_proc(){$.ajax({url:"apps/proccheck.php",type:"get",data:{proc:$("#procname").val()},success:function(a){$("#proccheck").html(a)}})}function AddNewReport(){if(document.forms.myform.rname.value!=""&&document.forms.myform.storedprocedure.value!=""){document.forms.myform.validationRoutine.value="newReport_v";return true}else{alert("Please enter the report name");return false}}function createnew(a,c){var b;b=$("#procname").val();if(b){window.location.href="index.php?a=editor&m="+a+"&proc="+escape(b)}else{alert("Please enter the procedure name")}}function show_existing(a){window.location.href="index.php?a=editor&m="+a+"&proc="+escape($('select[name="storedprocedure"]').val())};