	function selectAll(x) {
	  for(var i=0,l=x.form.length; i<l; i++)
	    if(x.form[i].type == 'checkbox' && x.form[i].name != 'markall')
		x.form[i].checked=x.form[i].checked?false:true
  }
  
  function sortingList(val) {
  var sortselect=document.getElementById("sortselect");
  document.getElementById("sort").value=val;
  document.getElementById("viewlist").submit();
  }

  function validateMod() {
    for (i=1;i<document.me.elements.length;i++){
    if( document.me.elements[i].type=="checkbox" && document.me.elements[i].checked == true )
     {
     	if(confirm(confirm_act)){
  	   	return true;
    	}
    	else {
    		return false;
    	}
     }
    }
    alert(choose_cb);
    return false;
   }
   
   function validateNew() {
    if( document.me.newrequest.value == "" ){
      alert(enter_req);
      return false;
    }
    if( document.me.security_code.value == "" ){
      alert(enter_sec_code);
      return false;
    }
   }
  
   function validateNewE() {
    if( document.me.newemail.value == "" ){
      alert(confirm_enter_email);
      return false;
    }
    if( document.me.newrequest.value == "" ){
      alert(enter_req);
      return false;
    }
    if( document.me.security_code.value == "" ){
      alert(enter_sec_code);
      return false;
    }
   }
  
   function validateSub() {
    if( document.me.newsubscribe.value == "" ){
      alert(enter_email);
      return false;
    }
    if( document.me.security_code.value == "" ){
      alert(enter_sec_code);
      return false;
    }
   }
  
  function PCgetImage(){
    document.images["sec_image"].src="components/com_prayercenter/captcha/prayercenter.captcha.inc.php?new="+escape(new Date());
  }

