function p(string) {
	document.writeln(string);
}

function writeLinkToResourcesIndex() {
    p(' <div class="linkGroup" style="padding-bottom:10px;"><a href="javascript:history.back();">Back&nbsp;<img src="images/icon_arrowRight.gif" alt="back" /></a> <a href="Resources.htm">Resources Index&nbsp;<img src="images/icon_arrowRight.gif" alt="resources index" /></a></div> ');
}

function writeLinkToDataTableIndex() {
    p(' <div class="linkGroup" style="padding-bottom:10px;"><a href="javascript:history.back();">Back&nbsp;<img src="images/icon_arrowRight.gif" alt="back" /></a> <a href="data_tables.htm">Data Table Index&nbsp;<img src="images/icon_arrowRight.gif" alt="data table index"/></a></div> ');
}

function writeLinkToChapterIndex() {
    p(' <div class="linkGroup"><a href="' +  strRoot + 'chapter_index.htm">Chapter Index&nbsp;<img src="' +  strRoot + 'images/icon_arrowRight.gif" alt="chapter index" /></a></div> ');
}

function writeLinkToPrintablePDF(sPDF) {
    p(' <div class="linkGroup"><a href="' +  strRoot + sPDF + '" target="_blank">Printer-Friendly Version&nbsp;<img src="' +  strRoot + 'images/icon_arrowRight.gif" alt="printer friendly version" /></a></div> ');
}

function writeLinkToSummaryPDF(sPDF) {
    p(' <div class="linkGroup"><a href="' +  strRoot + sPDF + '" target="_blank">Summary View&nbsp;<img src="' +  strRoot + 'images/icon_arrowRight.gif" alt="summary view" /></a></div> ');
}

function writeHeader() {
    // header code goes here;

p(' <body  onload="OnLoad();"> ');
p(' <div  id="contentwrap"> ');
p(' <form  method="post"> ');
p(' <div id="skip"><a href="#skipNav" title="skip main navigation"><img src="' + strRoot + 'images/blank.gif" width="1" height="1" alt="skip navigation" /></a></div>');
p('<div id="wrapper">');
p('    <div id="top" >');
p('        <div id="topLeftLogo" ><a href="http://www.hhs.gov" target="_blank"><img src="' + strRoot + 'images/logo_hhs.gif" alt="Department of Health and Human Services (HHS)" width="348" height="49" border="0" /></a></div>');
p('        <div id="topRightLogo" ><a href="http://www.hhs.gov" target="_blank"><img src="' +  strRoot + 'images/logo_hhs_url.gif" alt="Department of Health and Human Services (HHS)" width="128" height="49" border="0" /></a></div>');
p('    </div>');
p('<div id="topBanner">');
p('        <div id="logoContainer">');
p('            <div id="logo"><a href="http://www.hrsa.gov" id="box-link" target="_blank">HRSA</a><a href="default.htm" id="box-link2"> | OPTN / SRTR Annual Report</a></div>');
p('        </div>');
p('    </div>');
p('</div>');
p(' <table width="100%" cellpadding="0" cellspacing="0" border="0"> ');
p(' 	<tr> ');
p(' 		<td id="navbar" style="padding-left:20px;"> ');
p(' 			<table style="width: 300px;" cellpadding="0" cellspacing="0" border="0"> ');
p(' 				<tr> ');
p(' 					<td style="width:55px;"><a href="' +  strRoot + 'default.htm">Home</a></td> ');
p(' 					<td style="width:70px;"><a href="' +  strRoot + 'chapter_index.htm">Chapters</a></td> ');
p(' 					<td style="width:90px;"><nobr><a href="' +  strRoot + 'data_tables.htm">Data Tables</a></nobr></td> ');
p(' 					<td style="width:85px;"><a href="' +  strRoot + 'Resources.htm">Resources</a></td> ');
p(' 					<td style="width:85px;"><a href="' +  strRoot + 'ar_archives.htm">Archives</a></td> ');
//p(' 					<td style="width:15%;"><a href="' +  strRoot + 'Exit.htm?b=feedback" target="_blank">Feedback</a></td> ');
p(' 				</tr> ');
p(' 			</table> ');
p(' 		</td> ');
p(' 	</tr> ');

p(' 	<tr> ');
p(' 		<td> ');
p('			<table cellpadding="0" cellspacing="0" border="0"> ');
p(' 				<tr> ');
p(' 					<td class="chapter"> ');
p(' 						<strong><label for="chapter">Choose a chapter:</label></strong><br /> ');
p(' 						<select id="chapter" name="chapter" onchange="OnChapterChange();"> ');
p(' 							<option value=""></option> ');
p(' 							<option value="Preface_Contributors.htm">Preface</option> ');
p(' 							<option value="Chapter_I_AR_CD.htm">I. 2009 US Trends</option> ');
p(' 							<option value="Chapter_II_AR_CD.htm">II. Organ Donation & Utilization</option> ');
p(' 							<option value="Chapter_III_AR_CD.htm">III. Kidney and Pancreas Transplantation</option> ');
p(' 							<option value="Chapter_IV_AR_CD.htm">IV. Liver Transplantation</option> ');
p(' 							<option value="Chapter_V_AR_CD.htm">V. Intestine Transplantation</option> ');
p(' 							<option value="Chapter_VI_AR_CD.htm">VI. Heart Transplantation</option> ');
p(' 							<option value="Chapter_VII_AR_CD.htm">VII. Lung Transplantation</option> ');
p(' 							<option value="Chapter_VIII_AR_CD.htm">VIII. Geographic Variation in ESRD Incidence</option> ');
p(' 							<option value="Chapter_IX_AR_CD.htm">IX. DonorNet and the Potential Effects on Organ Utilization</option> ');
p(' 							<option value="Chapter_X_AR_CD.htm">X. Access and Outcomes among Minority Transplant Patients</option> ');
p(' 						</select> ');
p(' 					</td> ');
p(' 					<td class="filter"> ');
p(' 						<table cellpadding="0" cellspacing="0" border="0"> ');
p(' 							<!-- Begining of Filters --> ');
p(' 							<tr> ');
p(' 								<td> ');
p(' 									<strong><label for="organ">Choose an organ:</label></strong><br /> ');
p(' 									<select id="organ" name="organ" onchange="PopulateDropdowns();" style="width:125px;"> ');
p(' 										<option value=""></option> ');
p(' 										<option value="AL">All Organs</option> ');
p(' 										<option value="KI">Kidney</option> ');
p(' 										<option value="PA">Pancreas</option> ');
p(' 										<option value="KP">Kidney/Pancreas</option> ');
p(' 										<option value="HR">Heart</option> ');
p(' 										<option value="LU">Lung</option> ');
p(' 										<option value="HL">Heart/Lung</option> ');
p(' 										<option value="IN">Intestine</option> ');
p(' 										<option value="LI">Liver</option> ');
p(' 									</select> ');
p(' 								</td> ');
p(' 								<td> ');
p(' 									<strong><label for="group">Choose a group:</label></strong><br /> ');
p(' 									<select id="group" name="group" onchange="PopulateDropdowns();" style="width:125px;" > ');
p(' 									</select> ');
p(' 								</td> ');
p(' 								<td> ');
p(' 									<strong><nobr><label for="characteristic">Choose a characteristic:</label></nobr></strong><br /> ');
p(' 									<select id="characteristic" name="characteristic" style="width:225px;" > ');
p(' 									</select> ');
p(' 								</td> ');
p(' 								<td style="vertical-align:bottom;"> ');
p(' 									<a href="javascript:OnSubmit();" alt=""><img src="' +  strRoot + 'images/btn_go.gif" alt="Go"/></a> ');
p(' 								</td> ');
p(' 							</tr> ');
p(' 						</table> ');
p(' 					</td> ');
p(' 				</tr> ');

p('			</table> ');
p(' 		</td> ');
p(' 	</tr> ');
p(' 	<tr> ');
p(' 		<td> ');
p('			<table class="content" cellpadding="0" cellspacing="0" border="0" id="content1"> ');
p(' 				<tr > ');
p(' 					<td  class="spacer" style="padding-left:15px;"></td> ');
p(' 					<td> ');
p(' 						<a name="skipNav" tabindex="1"></a><br /> ');
}

function writeFooter() { 
    // footer code goes here;
    p(' 						<br /><br /> ');
    p(' 					</td> ');
    p(' 					<td class="spacer"></td> ');
    p(' 				</tr> ');
    p('			</table> ');
    p(' 		</td> ');
    p(' 	</tr> ');
    p(' </table> ');
    p(' </form> ');
    p(' </div><!-- contentwrap -->  ');


    //p(' <script language="JavaScript" type="text/javascript" src="google-analytics.js"></script>  ');
	var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
	document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
	try {
		var pageTracker = _gat._getTracker("UA-12534017-1");
		pageTracker._trackPageview();
	} catch(err) {}


    p(' </body> ');
}
