
var clearfield = {
	inputs: {},
	inp: function(input)
	{
		if (this.inputs[input.id] != undefined && this.inputs[input.id])
		{
			return false;
		}
	
		input.value = '';
		this.inputs[input.id] = true;
		
		return true;
	},
	defval: function(input, val)
	{
		if (input.value == '')
		{
			if (input.type != 'textarea')
			{
				input.type = 'text';
			}
			
			input.value = val;
			this.inputs[input.id] = false;
			
			return true;
		}
		
		return false;
	},
	pass: function(input, duplicate)
	{
		$('#' + input).hide();
		
		$('#' + duplicate).show();
		$('#' + duplicate).focus();
	}
}

