text: /**
   * @package    Shadowsocks
   *
   * @created    14th August, 2018
   * @author     Jibon L. Costa <support@mynaparrot.com>
   * @website    https://www.mynaparrot.com
   * @copyright  Copyright (C) MynaParrot 2018. All Rights Reserved
   * @license    MIT
   */
  
  Joomla.submitbutton = function(task)
  {
  	if (task == ''){
  		return false;
  	} else { 
  		var isValid=true;
  		var action = task.split('.');
  		if (action[1] != 'cancel' && action[1] != 'close'){
  			var forms = $$('form.form-validate');
  			for (var i=0;i<forms.length;i++){
  				if (!document.formvalidator.isValid(forms[i])){
  					isValid = false;
  					break;
  				}
  			}
  		}
  		if (isValid){
  			Joomla.submitform(task);
  			return true;
  		} else {
  			alert(Joomla.JText._('user, some values are not acceptable.','Some values are unacceptable'));
  			return false;
  		}
  	}
  }