function header(highlight){
document.write('<div class="header">');
document.write('<div align="center">');
document.write('<table width=100% border=0 id="table1">');
document.write('<tr >');
document.write('<td width="537"  >');
document.write('<p align="left">');
document.write('<img border="0" src="images/challenge_math.png"  alt="Challenge Math Online - A Gifted Math Program by Noetic Learning"></td>');
document.write('<td>');
document.write('<p align="center">');
document.write('<img border="0" src="images/math.png" width="264" height="102" align="right" alt="math image">&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </td>');
document.write('</tr>');
document.write('</table>');
document.write('</div>');
document.write('</div>');
document.write('<div class="subHeader">');
document.write('  <table width="100%" class="subHeader" >');
document.write('		<tr>');
document.write('		<td   align="center">');
document.write('		<a href="http://www.noetic-learning.com" style="color: #CCCCCC"> Home</a>&nbsp;&nbsp;&nbsp;&nbsp;');
document.write('		<a href="http://www.noetic-learning.com/mathdrill/index.jsp" style="color:CCCCCC"> Math Worksheets Creator</a>&nbsp;&nbsp;&nbsp;&nbsp;');
document.write('		<a href="http://www.noetic-learning.com/homeworkweb/index.jsp" style="color:CCCCCC">StayAhead!</a> &nbsp; ');
document.write('		<a href="http://www.noetic-learning.com/gifted/index.jsp" style="color:FFFFFF">Challenge Math</a> &nbsp; ');
document.write('		<a href="http://www.noetic-learning.com/summermath/index.jsp" style="color:CCCCCC">LeapAhead!</a> &nbsp;&nbsp;&nbsp;');
document.write('		<a href="http://www.noetic-learning.com/mathcontest/index.jsp" style="color:CCCCCC">Math Contest</a>&nbsp;&nbsp;&nbsp;');
document.write('		</td>');
document.write('		</tr>');
document.write(' </table>');
document.write('</div>');
document.write('<table border="0" width="100%" id="table2">	');
document.write('	<tr>');
document.write('		<td bgcolor="#E9CFEC" width="100%">');
document.write('		<p align="center"><b>');
//home
if (highlight=='index')
	document.write('		<a href="index.jsp">Challenge Math Home</a>|');
else 
	document.write('		<a href="index.jsp" style="color:999999">Challenge Math Home</a>|');
//preview
if (highlight=='preview')
	document.write('		<a href="preview.htm" >Preview</a> |');
else
	document.write('		<a href="preview.htm" style="color:999999" target=_blank >Preview</a> |');
//samples
if (highlight=='samples')
	document.write('		<a href="sample.jsp">Samples</a> |');
else
	document.write('		<a href="sample.jsp" style="color:999999" target=_blank >Samples</a> |');
//registration
if (highlight=='registration')
	document.write('		<a href="signup.jsp">Registration</a> |');
else
	document.write('		<a href="signup.jsp" style="color:999999">Registration</a> |');
document.write('		</b></td>');
document.write('	</tr>');
document.write('</table>');
document.write('<br>');


}
function footer()
{
document.write('<div align="center"> ');
document.write('<font size="2">');
document.write('<a href="http://www.noetic-learning.com/term.jsp" style="color:#7E587E" >Terms of Use</a>');
document.write('|<a href="http://www.noetic-learning.com/privacy.jsp" style="color:#7E587E" >Privacy Policy</a>');
document.write('|<a href="http://www.noetic-learning.com/about.jsp" style="color:#7E587E" >About Us</a>');
document.write('|<a href="http://www.noetic-learning.com/contact.jsp" style="color:#7E587E" >Contact Us</a>');
document.write('<p>	');
document.write('© Copyright 2007-2011 Noetic Learning LLC.  All Rights Reserved.');
document.write('</font>');
document.write('</div>');
}


