function printDoctor(id)
{
	var gAutoPrint = true; // Flag for whether or not to automatically call the print function

	if (document.getElementById != null)
	{
		var html = '<HTML>\n<HEAD>\n';

		if (document.getElementsByTagName != null)
		{
			var headTags = document.getElementsByTagName("head");
			if (headTags.length > 0)
				html += headTags[0].innerHTML;
		}
		
		html += '\n</HEAD>\n<BODY>\n';
				
		var printElement = document.getElementById(id).parentNode;
				
		if (printElement != null)
		{
				html += printElement.innerHTML;
		}
		else
		{
			alert("Could not find the Doctor section to print.");
			return;
		}
			
		html += '\n</BO' + 'DY>\n</HT' + 'ML>';
		
		var printWin = window.open("","printSpecial");
		printWin.document.open();
		printWin.document.write(html);
		
		if (gAutoPrint)
		{
			printWin.print();
		}
		printWin.document.close();
	}
	else
	{
		alert("Sorry, the Print Doctor feature is not available in your browser.");
	}
}

