//Toggle Doo-hickey
function toggleBox(szDivID)
{
	var partial = document.getElementById('partial' + szDivID);
	partial.style.display = (partial.style.display == '') ? 'none' : '';

	var whole = document.getElementById('whole' + szDivID);
	whole.style.display = (whole.style.display == 'block') ? 'none' : 'block';
}

function toggleBoxSearch(szDivID)
{
	var partial = document.getElementById('partial' + szDivID);
	partial.style.display = (partial.style.display == 'block') ? 'none' : 'block';

	var whole = document.getElementById('whole' + szDivID);
	whole.style.display = (whole.style.display == '') ? 'none' : '';
}

//Print DIV Thingamajig
function printContent(id){
   str=document.getElementById(id).innerHTML
   newwin=window.open('','printwin','left=100,top=100,scrollbars=yes,width=600,height=600')
   newwin.document.open();
   newwin.document.write('<html>\n');
   newwin.document.write('<head>\n');
   newwin.document.write('<style type="text/css">@import "/resources/css/ate/print.css";</style>\n');
   newwin.document.write('<title>Print Page</title>\n')
   newwin.document.write('</head>\n')
   newwin.document.write('<body>\n')
   newwin.document.write(str)
   newwin.document.write('<p align="center"><a href="javascript:window.close();">Close Window</a></p>\n');
   newwin.document.write('</body>\n');
   newwin.document.write('</html>');
   newwin.document.close();
   newwin.print();
}

function doAgree(box) {
	var submit = document.getElementById( 'submit' );

	if( box.checked == true )
		submit.disabled = false;
	else
		submit.disabled = true;
}

function ate_menu_showhide(whichLayer) {
if (document.getElementById)
{
// this is the way the standards work
var style2 = document.getElementById(whichLayer).style;
style2.display = style2.display? "":"block";
}
else if (document.all)
{
// this is the way old msie versions work
var style2 = document.all[whichLayer].style;
style2.display = style2.display? "":"block";
}
else if (document.layers)
{
// this is the way nn4 works
var style2 = document.layers[whichLayer].style;
style2.display = style2.display? "":"block";
}
}
