/*

	DIV Print

*/


function divPrint(strid) {
	/*
	var divPrintContent = document.getElementById(strid);
	var strPrintContent = divPrintContent.innerHTML;
	var strPrintBody = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head><title>Spot Baking Recipe | Fun with Spot</title><meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><meta name="description" content="" /><meta name="keywords" content="" /><link rel="stylesheet" type="text/css" href="assets/css/parents_teachers.css" /><link rel="stylesheet" type="text/css" href="assets/css/spot_baking.css" /></head><body style="background-image:none; background-color:#ffffff;" onload="window.print()">##printArea##</body></html>';
	strPrintContent = strPrintContent.replace('<img src="assets/graphics/spot_baking/btn_print.gif" width="165" height="35" alt="Print Recipe" title="Print Recipe" border="0" />', '');
	strPrintContent = strPrintContent.replace('btn_print.gif"', 'btn_print.gif" style="display:none;"');
	*/
	try {
		var microWindow = window.open(strid, 'divPrintWindow','width=580,height=480,toolbar=0,scrollbars=1,status=0');
		/*
		microWindow.document.open();
		strPrintBody = strPrintBody.replace("##printArea##", strPrintContent);
		microWindow.document.write(strPrintBody);
		//microWindow.document.close():
		microWindow.focus();
		microWindow.print();
		*/

		//var printArea = microWindow.getElementById( "printArea" );
		//printArea.innerHTML = "TEST";

		//microWindow.document.write( '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><title>Spot Baking Recipe</title></head><body>' + divPrintContent.innerHTML + '</body></html>' );
		//microWindow.print();
		//microWindow.close();
		/*
		var microWindow = window.open('','divPrintWindow','left=0,top=0,width=1,height=1,toolbar=0,scrollbars=0,status=0');
		var microWindow = document.getElementById( "hiddenwindow" );
		var ifrm = ( microWindow.contentWindow ) ? microWindow.contentWindow : ( microWindow.contentDocument.document ) ? microWindow.contentDocument.document : microWindow.contentDocument;
		ifrm.document.open();
		ifrm.document.write( divPrintContent.innerHTML );
		ifrm.focus();
		ifrm.print();
		ifrm.document.close();
		ifrm.close();
		*/
	} catch(e) {}
}
