//*****************************************************************************\
// Filename......: functions.js
// File Type.....: JavaScripts
// Description...: Custom functions for Toil
//*****************************************************************************/


	/****************************************************************************\
	* Function Name.: roundInput
	* Parameters....: input_id, container_class, border_class
	* Description...: input_id        -- is the ID of the input element
	*                 container_class -- will let you control the text input 
	*                                    background color and padding
	*                 border_class    -- will let you control the border color
	* Return Type...: 
	\****************************************************************************/
	function roundInput(input_id, container_class, border_class)
	{
		var input = $('#'+input_id+'');
		var input_width = input.css("width"); //get the width of input
		var wrap_width = parseInt(input_width) + 10; //add 10 for padding
		wrapper = input.wrap("<div class='"+container_class+"'></div>").parent();
		wrapper.wrap("<div class='"+border_class+"' style='width: "+wrap_width+"px;'></div>"); //apply border
		wrapper.corner("round 8px").parent().css('padding', '2px').corner("round 5px"); //round box and border
	}

