function on_input(type, text, id)
{
	if (type == "in")
	{
		if ($('#'+id).val() == text)
		{
			$('#'+id).val('');
			$('#'+id).css('color', '#000000');
		}
	}
	else if (type == "out")
	{
		if ($('#'+id).val() == '')
		{
			$('#'+id).val(text);
			$('#'+id).css('color', '#777777');
		}
	}
}
