function passwd(ELE)
{
	var OBJ = new Object;
	OBJ.element = ELE;
	OBJ.eisu = "abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ23456789";
	OBJ.kigo = "+-_!#$%&/?@";
	OBJ.moji = OBJ.eisu + OBJ.kigo;
	OBJ.lenm = OBJ.moji.length;
	OBJ.lenk = OBJ.kigo.length;

	OBJ.generate = function (ELE)
	{
		if (ELE != null) {
			this.element = ELE;
		}
		if (this.element == null) {
			return false;
		}

		var pos = Math.ceil(Math.random() * 8) -1;
		var word = "";
		for (var ii = 0; ii < 8; ++ii) {
			word += (ii == pos)
			?	this.kigo.substr(Math.ceil(Math.random() * this.lenk) -1, 1)
			:	this.moji.substr(Math.ceil(Math.random() * this.lenm) -1, 1)
			;
		}
		this.element.value = word;
		return true;
	}

	OBJ.putback = function (ELE)
	{
		if (ELE != null) {
			this.element = ELE;
		}
		if (this.element == null) {
			return false;
		}

		this.element.value = this.element.defaultValue;
		return true;
	}

	return OBJ;
}

