//<A HREF="javascript: printSpecial()"><IMG SRC="/images/icon_print.gif" ALT="Print this page" WIDTH="20" HEIGHT="19" BORDER=0> </A>
// USE THIS <DIV> TAG TO IDENTIFY THE PRINTABLE CONTENT - <DIV ID="printready">

// JavaScript Document
<!-- Begin
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=1,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=600,height=600,left = 232,top = 84');");
}

function printSpecial()
{
	if (document.getElementById != null)
	{
		var html = '<HTML>\n<HEAD>\n';
		html += '<link rel=stylesheet href="http://www.apa.org/divisions/div30/includes/apa.css" type="text/css">';
		html += '\n</HE' + 'AD>\n<BODY class="template"><div id="printcontent">\n';
		// begin new HTML top
		html += '<TABLE border="0" width="100%">\n';
		html += '<TR>\n'
		html += '<TD align="center"><div id="printbanner">Society of Psychological Hypnosis<br />Division 30 - American Psychological Association</div>\n';
		html += '</TD>\n';
		html += '</TR>\n';
		html += '<TR>\n'
		html += '<TD colspan="2"><hr size="1" color="#CCCCCC" />\n';
		html += '</TD>\n';
		html += '</TR>\n';
		html += '</TABLE>\n';

		/*if (document.getElementsByTagName != null)
		{
			//var headTags = document.getElementsByTagName("head");
			var headTags = document.getElementsByTagName("TITLE");
			if (headTags.length > 0) {
				html += '<h2>' + headTags[0].innerHTML + ''; 
				html += '</h2>'
					}
		}*/
		

		//html += '<TD>\n';
		// end new HTML top
		
		
		var printReadyElem = document.getElementById("printready");
		
		if (printReadyElem != null)
		{
				html += '' + printReadyElem.innerHTML ;
		}
		else
		{
			alert("Could not find the printready section in the HTML");
			return;
		}

		// begin new HTML bottom
		html += '<hr size="1" color="#CCCCCC" />Copyright &copy; 2005, Society of Psychological Hypnosis, Division 30, American Psychological Association</div>';
		// end new HTML bottom
			
		html += '\n</BO' + 'DY>\n</HT' + 'ML>';
		var printWin = window.open("","printSpecial","scrollbars=1,menubar=1,width=750,height=500,left=10,top=10");
		printWin.document.open();
		printWin.document.write(html);
		printWin.print();
		printWin.document.close();
		//if (gAutoPrint) 
			//loadStyles(printWin);
			//printWin.focus();
			//printWin.print();
			//setTimeout(printWin.close,5000);
	}
	else
	{
		alert("Sorry, the print ready feature is only available in javascript-enabled browsers.");
	}
}


// End -->
