
SAILClass.prototype.func = {

	init: function () {
		var $this = SBM;
		
		$this.useCollection('prototype');
		
		this.version = '2.00';
		this.i       = 0;
		if ($this.global_func) { this.globalize(); }
		
		return this;
	},
	

		isset: function (val) {
			var result = (typeof(val) != 'undefined');
			
			return result;
		},
		
	uniqueid: function (_num, _mix) {
		var num    = this.isset(_num) ? _num : 5;
		var mix    = this.isset(_mix) ? _mix : true;
		var str    = 'abcdefghijklmnopqrstuvwxyz';
		var result = '';
		
		for (var i = 1; i <= num; i++) {
			var is_upper = (mix) && (Math.round(Math.random() * 1) == 0);
			var str_char = str.charAt(Math.round(Math.random() * 25));
			    str_char = is_upper ? str_char.toUpperCase() : str_char;
			
			result += str_char;
		}
		
		return result;
	}
}.init();