// JavaScript Document - Print and Save Functions
// Print functions
function go()
{
	var a = window.open('','','scrollbars=yes,width=500,height=500');
	a.document.open("text/html");
	a.document.write("<head><title>Recipe Formulation Sheet | BeerFormulator.com</title><link href=http://www.beerformulator.com/RecipeWorkspace.css rel=stylesheet type=text/css></head><body>");
	a.document.write("<link href=RecipeWorkspace.css rel=stylesheet type=text/css>");
	a.document.write(document.getElementById('SaveWin').innerHTML);
	a.document.write("<div align=center><br><input type=button name=cmdPring value=Print onClick='parent.print()'> <input type=button name=close value=Close onClick='javascript:window.close()'><br><font face=Arial size=-2><a href=http://beerformulator.com target=_blank>Home</a></font></div></body>");
	a.document.close();
	a.print();
}

function goLib()
{
	var a = window.open('','','scrollbars=yes,width=500,height=500');
	a.document.open("text/html");
	a.document.write("<link href=RecipeWorkspace.css rel=stylesheet type=text/css>");
	a.document.write(document.getElementById('LibWindow').innerHTML);
	a.document.close();
	a.print();
}
// Save Function
function goSave()
{
	var a = window.open('','','scrollbars=yes,width=500,height=500');
	a.document.open("text/html");
	a.document.write("<head><title>Recipe Formulation Sheet | BeerFormulator.com</title><link href=http://www.beerformulator.com/RecipeWorkspace.css rel=stylesheet type=text/css></head><body>");
	a.document.write(document.getElementById('SaveWin').innerHTML);
	a.document.write("<div align=center><br><input type=button name=cmdPring value=Print onClick='parent.print()'> <input type=button name=close value=Close onClick='javascript:window.close()'><br><font face=Arial size=-2><a href=http://beerformulator.com target=_blank>Home</a></font></div></body>");
	a.document.execCommand('SaveAs','1',''+ (form4.Beer.value) +'');
	a.document.close();
	
}