mmw.captcha = {
	defaultLength: 6,
	create: function(length) {
		if(typeof length == 'undefined') {
			length = mmw.captcha.defaultLength;
		}
		var captchaValue = '';
		for(var i=1; i <= mmw.captcha.defaultLength; i++) {
			captchaValue = captchaValue + mmw.captcha.createRandomDigit().toString();
		}
		return captchaValue;
	},
	createRandomDigit: function() {
		return Math.floor(Math.random()*10);
	}
};
