//this function checks the form given as obj (returns the form is all full - textboxes only) and adds red borders when needed. function pass_confirm2(pass1,pass2) { if(pass1.value!=pass2.value) { alert(''); return false; } else return true; } function komunar_snif(komunar_id,choice1,choice2,td) { if(choice1.value!=komunar_id) { $(choice2).hide("slow"); $(td).hide("slow"); } else { $(choice2).show("slow"); $(td).show("slow"); } } function chekim_func(chekim_num,n) { for(i=1;i<=chekim_num;i++) { $(document.getElementById("chek"+i+n)).show("slow"); $(document.getElementById("chek"+i+"_sum"+n)).show("slow"); $(document.getElementById("chek"+i+"_date"+n)).show("slow"); } for(;i<=10;i++) { $(document.getElementById("chek"+i+n)).hide("slow"); $(document.getElementById("chek"+i+"_sum"+n)).hide("slow"); $(document.getElementById("chek"+i+"_date"+n)).hide("slow"); } } function bank_det(choice1,item1,item2,item3,item4,item5,item6,item7,cc1,cc2,cc3,cc4,cc5,cc6,cc7) { if(choice1.selectedIndex==0) { $(item1).hide("slow"); $(item2).hide("slow"); $(item3).hide("slow"); $(item4).hide("slow"); $(item5).hide("slow"); $(item6).hide("slow"); $(item7).hide("slow"); $(cc1).hide("slow"); $(cc2).hide("slow"); $(cc3).hide("slow"); $(cc4).hide("slow"); $(cc5).hide("slow"); $(cc6).hide("slow"); $(cc7).hide("slow"); } else if(choice1.selectedIndex==1) { $(item1).show("slow"); $(item2).show("slow"); $(item3).show("slow"); $(item4).show("slow"); $(item5).show("slow"); $(item6).show("slow"); $(item7).show("slow"); $(cc1).hide("slow"); $(cc2).hide("slow"); $(cc3).hide("slow"); $(cc4).hide("slow"); $(cc5).hide("slow"); $(cc6).hide("slow"); $(cc7).hide("slow"); } else { $(item1).hide("slow"); $(item2).hide("slow"); $(item3).hide("slow"); $(item4).hide("slow"); $(item5).hide("slow"); $(item6).hide("slow"); $(item7).hide("slow"); $(cc1).show("slow"); $(cc2).show("slow"); $(cc3).show("slow"); $(cc4).show("slow"); $(cc5).show("slow"); $(cc6).show("slow"); $(cc7).show("slow"); } }