var gAutoPrint = true; // Flag for whether or not to automatically call the print function

function printSpecial(textToPrint)
{

	var html = '<HTML>\n<HEAD>\n';
    html += '<link href=\"http://www.hivpave.org/home_style.css" rel=/"stylesheet/" media=/"screen/">';
    // html += '<link href=\"http://webdev.hjf.org/hivpave/home_style.css" rel=/"stylesheet/" media=/"screen/">';
	html += '\n</HE' + 'AD>\n<BODY>\n';
	html += '<img src=\"http://www.hivpave.org/images/banner2.jpg\" height=75 width=780 align=top border=0>';
	// html += '<img src=\"http://webdev.hjf.org/hivpave/images/banner2.jpg\" height=75 width=780 align=top border=0>';
		
	if (textToPrint != null)
	{
		html += textToPrint;
	}
	else
	{
		alert("Could not find the print ready section in the HTML");
		return;
	}
			
	html += '\n</BO' + 'DY>\n</HT' + 'ML>';
	
	var printWin = window.open("","printSpecial");
	printWin.document.open();
	printWin.document.write(html);
	printWin.document.close();
	if (gAutoPrint) {
		printWin.print();
	}
	else
	{
		alert("Sorry, your browser does not support this feature. Please select File - Print to print this page.");
	}
}
