function printRecipe()
{
	if (document.getElementById != null)
	{
		var html = '<html>\n<head>\n';
		html += '<title>SkilletChronicles.com Recipe</title>';
		html += '\n</head>\n<body>\n';
		
		var printElem = document.getElementById("recipe");
		
		if (printElem != null)
		{
				html += printElem.innerHTML;
		}
		else
		{
			alert("Could not find a recipe on this page to print");
			return;
		}
			
		html += '\n</body>\n</html>';
		
		var printWin = window.open("","printRecipe");
		printWin.document.open();
		printWin.document.write(html);
		printWin.document.close();
		printWin.print();
	}
	else
	{
		alert("Sorry, the print recipe feature is unavailable in your browser.");
	}
}


function printRecipeLink()
{
	if (document.getElementById != null)
	{		
		var printElem = document.getElementById("recipe");
		
		if (printElem != null)
		{
				document.write('<div class="print_recipe_link"><a href="javascript:void(printRecipe())">Print this recipe</a></div>');
		}
	}
}

