jQuery(function($){ //$('.faq_content').addClass('hide'); //$('.faq_content').hide(); $('.faq_title ul').click(function(){ var thisid=$(this).parent().attr("id"); var tmp = thisid.split("_"); if($('#faq_content_'+tmp[2]).hasClass("hide")) { $('.faq_content').addClass('hide').removeClass('show'); $('.faq_content').slideUp(300); $('#faq_content_'+tmp[2]).addClass('show').removeClass('hide'); $('#faq_content_'+tmp[2]).slideDown(300); }else { $('#faq_content_'+tmp[2]).addClass('hide').removeClass('show'); $('#faq_content_'+tmp[2]).slideUp(300); } }); }); function close_contents(n) { $('#faq_content_'+n).addClass('hide').removeClass('show'); $('#faq_content_'+n).slideUp(300); } function chk_performance_form1(form) { if(form.BTitle.value=='') { alert("Please enter a title"); form.BTitle.focus(); return false; }else if(CKEDITOR.instances.BContent.getData() == '') { alert('Please enter your details'); CKEDITOR.instances.BContent.focus(); return false; }else { return true; } } function chk_performance_form2(form) { if(form.BCategory.value=='') { alert("Please select area"); form.BCategory.focus(); return false; }else if(form.BTitle.value=='') { alert("Please enter a title"); form.BTitle.focus(); return false; }else if(form.BContent.value=='') { alert('Please enter your details'); return false; }else { return true; } } function del_chk(bid) { if(confirm('Are you sure you want to delete?')) { document.del_form1.BID.value=bid; document.del_form1.submit(); } }