function makepage(src)
{
  // We break the closing script tag in half to prevent
  // the HTML parser from seeing it as a part of
  // the *main* page.

  return "<html>\n" +
    "<head>\n" +
    "<title>CCTA: Curriculum and Transfer Articulation</title>\n" +
	"<style>\n" +
	"body{font: normal 100% Arial, Helvetica, sans-serif;}" +
	"</style>\n" +
    "<script>\n" +
    "function step1() {\n" +
    "  setTimeout('step2()', 10);\n" +
    "}\n" +
    "function step2() {\n" +
    "  window.print();\n" +
    "  window.close();\n" +
    "}\n" +
    "</scr" + "ipt>\n" +
    "</head>\n" +
    "<body onLoad='step1()'>\n" +
     "<img src=\"http:\/\/www.maricopa.edu/academic/ccta/images/curric_printme.jpg\">\n" + src + "\n" +
	 "<br><br><img src=\"http:\/\/www.maricopa.edu/academic/images/logo.gif\">"+
    "</body>\n" +
    "</html>\n";
}

function printMe(evt)
{
	var x=document.getElementById(evt);

	src = (x.innerHTML);
	var pw = window.open("about:blank", "_new");
	pw.document.open();
	pw.document.write(makepage(src));
	//pw.document.write(evt);
	pw.document.close();
}

