function printRecipe(name, ingredients, directions) {
	//alert("name="+name+"\ningredients="+ingredients+"\ndirections="+directions);
	name = unescape(name);
	ingredients = unescape(ingredients);
	directions = unescape(directions);
	var win = window.open("", "recipeWin", "width=550,height=400,scrollbars,statusbar");
	var winHTML = "";
	winHTML += "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\"><html xmlns=\"http://www.w3.org/1999/xhtml\"><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\" /><title>Recipe</title><link href=\"css/printRecipe.css\" rel=\"stylesheet\" type=\"text/css\" media=\"print\" /><link href=\"css/screenRecipe.css\" rel=\"stylesheet\" type=\"text/css\" media=\"screen\" /></head><body>";
	winHTML += "<div id=\"recipeBox\"><div id=\"header\"></div><div id=\"body\">";
	winHTML += "<table cellpadding=\"10\" cellspacing=\"0\" border=\"0\" align=\"center\">";
	winHTML += "<tr valign=\"top\" id=\"linkRow\"><td id=\"printCell\"><a href=\"javascript:window.print();\">PRINT RECIPE</a></td><td id=\"closeCell\" align=\"right\"><a href=\"javascript:window.close();\">CLOSE</a></td></tr>";
	winHTML += "<tr valign=\"top\"><td colspan=\"2\"><div id=\"recipeTitle\">" + name + "</div></td></tr>";
	winHTML += "<tr valign=\"top\"><td id=\"directions\">" + directions;
	winHTML += "</td><td id=\"ingredients\">" + ingredients;
	winHTML += "</td></tr></table></div><div id=\"footer\"></div></div>";
	winHTML += "</body></html>";
	win.document.write(winHTML);
	win.document.close();
	//alert(winHTML);
	win.focus();
}


