function func_search(){document.frm_show_data.submit()}function func_panging(a){document.frm_show_data.page.value=a;document.frm_show_data.submit()}function link_location(a){document.location=a}function submit_to(a){document.frm_show_data.action=a;document.frm_show_data.submit()}function order_by(a,b){document.frm_show_data.field_asc_desc.value=a;document.frm_show_data.asc_desc.value=b;document.frm_show_data.submit()}function click_confirm(a){if(confirm(a)){return true}else{return false}}function check_checkbox(a){flag=document.getElementById("ck_all").checked;for(i=0;i<a;i++){try{document.getElementById("id_"+i).checked=flag}catch(b){break}}}function del_selected(b,a,d){del=false;for(i=0;i<a;i++){try{if(document.getElementById("id_"+i).checked==true){del=true;break}}catch(c){break}}if(!del){alert("Pilih salah satu record yang ingin dihapus")}else{if(!confirm(d)){return}submit_to(b)}}function submit_save(){document.frm_input_data.submit()}function show_subrubrik(){var a=$("div_kd_subrubrik");new Ajax.Request("ajax_subrubrik.php",{method:"get",parameters:{kd_rubrik:$F("kd_rubrik")},onComplete:function(b){a.innerHTML=b.responseText}})}function send_get(url,id_set,script){var div=$(id_set);div.innerHTML='<img src="images/wait_ax.gif" />';new Ajax.Request(url,{method:"get",onComplete:function(ajax){div.innerHTML=ajax.responseText;if(script!=""){eval(script)}}})}function ubah_posisi(a){dim=$(document.body).getDimensions();div=document.createElement("div");div.style.position="absolute";div.style.left="0px";div.style.top="0px";div.style.width=dim.width+"px";div.style.height=dim.height+"px";div.style.backgroundColor="#EDEDED";$(document.body).appendChild(div);new Ajax.Request(a,{method:"get",onComplete:function(b){$(document.body).removeChild(div)}})};
