//var gAutoPrint = False; // Flag for whether or not to automatically call the print function

function printSpecial()
{
	if (document.getElementById != null)
	{
		var html = '<html>\n<head><title>Transfer Agreements - Printable</title>\n';

		if (document.getElementsByTagName != null)
		{
			var headTags = document.getElementsByTagName("head");
			if (headTags.length > 0)
				html += headTags[0].innerHTML;
		}
		
		html += '<style type=text/css>p{}body{text-align:left;padding:20px;background-color:#ffffff;font-family:verdana,arial,sans-serif;font-size:10pt;}ul{margin-top:30px; list-style-type:square;}a{text-decoration: underline; color: #c00;}#printlinks a{font-size:12pt;font-weight:bold;}.link{text-decoration: underline; color: #c00;}</style>\n</he' + 'ad>\n<body>\n';
		html += '<img src=http://sait.ca/pages/images/wide_column/SAITPolytechnic_bw.jpg width=138 height=60 alt=SAIT Polytechnic align=middle border=0>\n';
		html += '<table id=printlinks>\n<tr>\n<td valign=top><a class=link href=javascript:window.print();>Print Window</a> | <a class=link href=javascript:window.close();>Close Window</a></td>\n</tr>\n</table>\n';
		
		var printReadyElem = document.getElementById("result2");
		
		if (printReadyElem != null)
		{
				html += printReadyElem.innerHTML;
		}
		else
		{
			alert("Could not find the printReady section in the HTML");
			return;
		}
		html += '<p> &copy; SAIT Polytechnic.</p>';
		html += '\n</bo' + 'dy>\n</ht' + 'ml>';
		
		var printWin = window.open("","printTransfer", "scrollbars=yes,resizable=yes,width=600,height=600");
		printWin.document.open("text/html");
		printWin.document.write(html);
		printWin.document.close();
	//	if (gAutoPrint)
		//	printWin.print();
	}
	else
	{
		alert("Sorry, the print ready feature is only available in modern browsers.");
	}
}

function printSpecialnew()
{

var a = window. open('','printwindow','scrollbars=yes,width=600,height=600');
a.document.open("text/html");
a.document.write('<html><head><title>SAIT Polytechnic - Transfer Options</title><style type=text/css>p{font-weight:300;}body{padding:20px;background-color:#ffffff;font-family:verdana,arial,sans-serif;font-size:10pt;}ul{margin-top:30px; list-style-type:square;}a{text-decoration: underline; color: #c00;}.Link {text-decoration: underline; color: #c00;}</style>');
a.document.write('</head><body style=background-image:none;background-color:#ffffff;>');
a.document.write('<img src=http://sait.ca/pages/images/wide_column/SAITPolytechnic_bw.jpg width=138 height=60 alt=SAIT Polytechnic align=middle border=0>');
a.document.write('<table id=printlinks><tr><td valign=top><a class=link href=javascript:eval(window.print());>Print Window</a> | <a class=link href=javascript:window.close();>Close Window</a></td></tr></table>');
a.document.write(document.getElementById("result2").innerHTML);
a.document.write('<p> &copy; SAIT Polytechnic.</p></body></html>');
}
