$(document).ready(function()
{
	$("#control").toggle(
	function ()
	{
		$('#target').attr("disabled", true);
		$('#control').empty().append("Enable target");
	},
	function ()
	{
		$('#target').removeAttr("disabled");
		$('#control').empty().append("Disable target");
	});
	
	$('#readonly').click(
	function()
	{
		if ($('#readonly').attr("readonly") == true)
		{
			$('#readonly').val('');
			$('#readonly').removeAttr("readonly");
		}			
	});	
});
