function Global_Main(LoggedOn){
	str = "";
	str+= '<table cellspacing="0" cellpadding="0" border="0" width="760">';
	str+= '<tr>';
	str+= '<td><img src="images/spacer.gif" width=162 height=1></td>';
	str+= '<td><img src="images/spacer.gif" width=1 height=1></td>';
	str+= '<td><img src="images/spacer.gif" width=148 height=1></td>';
	str+= '<td><img src="images/spacer.gif" width=1 height=1></td>';
	str+= '<td><img src="images/spacer.gif" width=2 height=1></td>';
	str+= '<td><img src="images/spacer.gif" width=1 height=1></td>';
	str+= '<td><img src="images/spacer.gif" width=146 height=1></td>';
	str+= '<td><img src="images/spacer.gif" width=1 height=1></td>';
	str+= '<td><img src="images/spacer.gif" width=2 height=1></td>';
	str+= '<td><img src="images/spacer.gif" width=1 height=1></td>';
	str+= '<td><img src="images/spacer.gif" width=145 height=1></td>';
	str+= '<td><img src="images/spacer.gif" width=1 height=1></td>';
	str+= '<td><img src="images/spacer.gif" width=2 height=1></td>';
	str+= '<td><img src="images/spacer.gif" width=1 height=1></td>';
	str+= '<td><img src="images/spacer.gif" width=145 height=1></td>';
	str+= '<td><img src="images/spacer.gif" width=1 height=1></td>';
	str+= '</tr>';
	str+= '<tr>';
	str+= '<td><img src="images/spacer.gif" width=1 height=50></td>';

	if (LoggedOn == "True")
		{str+= '<td colspan="15" align="right" valign="bottom"><font class="utility"><a class="utility"></a>&nbsp;&nbsp;<font class="utility"><a  class="utility"></a>&nbsp;&nbsp;<font class="utility"><a href="UserMain.asp" class="utility">Home</a>&nbsp;&nbsp;<font class="utility"><a href="logout.asp" class="utility">Log Out</a>&nbsp;&nbsp;</font></td>';}
	else
		{str+= '<td colspan="15" align="right" valign="bottom"><font class="utility"><a class="utility"></a>&nbsp;&nbsp;<font class="utility"><a  class="utility"></a>&nbsp;&nbsp;<font class="utility"><a href="UserMain.asp" class="utility">Home</a>&nbsp;&nbsp;<font class="utility"><a href="logout.asp" class="utility">Log Out</a>&nbsp;&nbsp;</font></td>';}

	str+= '</tr>';
	str+= '<tr>';
	str+= '<td colspan="16" height="3"></td>';
	str+= '</tr>';
	str+= '<tr>';
	str+= '<td colspan="16"><img src="images/gradient.gif" height=10></td>';
	str+= '</tr>';	
	document.write(str);
}

function Global_Login_Main(LoggedOn){
	str = "";
	str+= '<table cellspacing="0" cellpadding="0" border="0" width="760">';
	str+= '<tr>';
	str+= '<td><img src="images/spacer.gif" width=162 height=1></td>';
	str+= '<td><img src="images/spacer.gif" width=1 height=1></td>';
	str+= '<td><img src="images/spacer.gif" width=148 height=1></td>';
	str+= '<td><img src="images/spacer.gif" width=1 height=1></td>';
	str+= '<td><img src="images/spacer.gif" width=2 height=1></td>';
	str+= '<td><img src="images/spacer.gif" width=1 height=1></td>';
	str+= '<td><img src="images/spacer.gif" width=146 height=1></td>';
	str+= '<td><img src="images/spacer.gif" width=1 height=1></td>';
	str+= '<td><img src="images/spacer.gif" width=2 height=1></td>';
	str+= '<td><img src="images/spacer.gif" width=1 height=1></td>';
	str+= '<td><img src="images/spacer.gif" width=145 height=1></td>';
	str+= '<td><img src="images/spacer.gif" width=1 height=1></td>';
	str+= '<td><img src="images/spacer.gif" width=2 height=1></td>';
	str+= '<td><img src="images/spacer.gif" width=1 height=1></td>';
	str+= '<td><img src="images/spacer.gif" width=145 height=1></td>';
	str+= '<td><img src="images/spacer.gif" width=1 height=1></td>';
	str+= '</tr>';
	str+= '<tr>';
	str+= '<td><img src="images/spacer.gif" width=1 height=50></td>';

	str+= '<td colspan="15" align="right" valign="bottom">';
	if (LoggedOn == "True")
		{str+= '<font class="utility"><a class="utility"></a>&nbsp;&nbsp;<font class="utility"><a  class="utility"></a>&nbsp;&nbsp;<font class="utility"><a class="utility"></a>&nbsp;&nbsp;<font class="utility"><a  class="utility"></a>&nbsp;&nbsp;</font>';}
	else
		{str+= '<font class="utility"><a class="utility"></a>&nbsp;&nbsp;<font class="utility"><a  class="utility"></a>&nbsp;&nbsp;<font class="utility"><a class="utility"></a>&nbsp;&nbsp;<font class="utility"><a  class="utility"></a>&nbsp;&nbsp;</font>';}
	str+= '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="images/employersolutions.gif" ></td>';		//bhutch 1-18-06  added this line for quest... if nothing to put here, make a copy of spacer.gif and rename it so nothing will show up.

	str+= '</tr>';
	str+= '<tr>';
	str+= '<td colspan="16" height="3"></td>';
	str+= '</tr>';
	str+= '<tr>';
	str+= '<td colspan="16"><img src="images/gradient.gif" height=10></td>';
	str+= '</tr>';	
	document.write(str);
}

function Main_Side(){
	str = "";
	str+= '<table cellspacing="0" cellpadding="0" width="135" border="0">';
	str+= '<tr>';
	str+= '<td><img height=1 src="images/spacer.gif" width=10></td>';
	str+= '<td><img height=1 src="images/spacer.gif" width=10></td>';
	str+= '<td><img height=1 src="images/spacer.gif" width=115></td>';
	str+= '</tr>';
	str+= '<tr><td colspan=3><font class=subnav><a href="" class="subnav"></a></font></td></tr>';
	str+= '<tr><td colspan=3 height=5></td></tr>';
	str+= '<tr><td colspan=3><font class=subnav><a href="" class="subnav"></a></font></td></tr>';
	str+= '<tr><td colspan=3 height=5></td></tr>';
	str+= '<tr><td colspan=3><font class=subnav><a href="" class="subnav"></a></font></td></tr>';
	str+= '</table>';	
	document.write(str);
}

function Main_Side_Login(){
	str = "";
	str+= '<table cellspacing="0" cellpadding="0" width="135" border="0">';
	str+= '<tr>';
	str+= '<td><img height=1 src="images/spacer.gif" width=10></td>';
	str+= '<td><img height=1 src="images/spacer.gif" width=10></td>';
	str+= '<td><img height=1 src="images/spacer.gif" width=115></td>';
	str+= '</tr>';
	str+= '<tr><td colspan=3><font class=subnav><a href="" class="subnav"></a></font></td></tr>';
	str+= '<tr><td colspan=3 height=5></td></tr>';
	str+= '<tr><td colspan=3><font class=subnav><a href="MoreInfo.asp" class="subnav">More Information</a></font></td></tr>';
	str+= '<tr><td colspan=3 height=10></td></tr>';
	//For Quest Pages Only
	 //str+= '<tr><td colspan=3><font class=subnav><a href="SignUp.asp" class="subnav">Purchase Training</a></font></td></tr>';
	 //str+= '<tr><td colspan=3 height=10></td></tr>';
	 //str+= '<tr><td colspan=3><font class=subnav><a href="http://www.questdiagnostics-ccf.com/training/demo" class="subnav">Flash Demonstration</a></font></td></tr>';
	 //str+= '<tr><td colspan=3 height=5></td></tr>';
	str+= '<tr><td colspan=3><font class=subnav><a href="" class="subnav"></a></font></td></tr>';
	str+= '<tr><td colspan=3 height=5></td></tr>';
	str+= '<tr><td colspan=3><font class=subnav><a href="" class="subnav"></a></font></td></tr>';
	str+= '</table>';	
	document.write(str);
}

function Main_Side_info(){
	str = "";
	str+= '<table cellspacing="0" cellpadding="0" width="135" border="0">';
	str+= '<tr>';
	str+= '<td><img height=1 src="images/spacer.gif" width=10></td>';
	str+= '<td><img height=1 src="images/spacer.gif" width=10></td>';
	str+= '<td><img height=1 src="images/spacer.gif" width=115></td>';
	str+= '</tr>';
	str+= '<tr><td colspan=3><font class=subnav><a href="" class="subnav"></a></font></td></tr>';
	str+= '<tr><td colspan=3 height=5></td></tr>';
	str+= '<tr><td colspan=3>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font class=subnav><a href="loginMain.asp" class="subnav">Home</a></font></td></tr>';
	str+= '<tr><td colspan=3 height=5></td></tr>';
	str+= '<tr><td colspan=3><font class=subnav><a href="" class="subnav"></a></font></td></tr>';
	str+= '<tr><td colspan=3 height=5></td></tr>';
	str+= '<tr><td colspan=3><font class=subnav><a href="" class="subnav"></a></font></td></tr>';
	str+= '</table>';	
	document.write(str);
}

function Main_Side_Admin(){
	str = "";
	str+= '<table cellspacing="0" cellpadding="0" width="135" border="0">';
	str+= '<tr>';
	str+= '<td><img height=1 src="images/spacer.gif" width=10></td>';
	str+= '<td><img height=1 src="images/spacer.gif" width=10></td>';
	str+= '<td><img height=1 src="images/spacer.gif" width=115></td>';
	str+= '</tr>';
	str+= '<tr><td colspan=3><font class=subnav><a href="" class="subnav"></a></font></td></tr>';
	str+= '<tr><td colspan=3 height=5></td></tr>';
	str+= '<tr><td colspan=3><font class=subnav><a href="" class="subnav"></a></font></td></tr>';
	str+= '<tr><td colspan=3 height=5></td></tr>';
	str+= '<tr><td colspan=3><font class=subnav><a href="" class="subnav"></a></font></td></tr>';
	str+= '</table>';	
	document.write(str);
}

function Main_Side_UserMain(disableAlc){
	str = "";
	str+= '<table cellspacing="0" cellpadding="0" width="135" border="0">';
	str+= '<tr>';
	str+= '<td><img height=1 src="images/spacer.gif" width=10></td>';
	str+= '<td><img height=1 src="images/spacer.gif" width=10></td>';
	str+= '<td><img height=1 src="images/spacer.gif" width=115></td>';
	str+= '</tr>';
	if(disableAlc != true){
		str+= '<tr><td colspan=3><font class=subnav><a href="mainAlcTrain.asp" class="subnav">Alcohol Testing Training</a></font></td></tr>';
		str+= '<tr><td colspan=3 height=5></td></tr>';
	}
	str+= '<tr><td colspan=3><font class=subnav><a href="mainDrugTrain.asp?pg=Intro&pgnum=0" class="subnav">Drug Testing Training</a></font></td></tr>';
	str+= '<tr><td colspan=3 height=5></td></tr>';
	str+= '<tr><td colspan=3><font class=subnav><a href="mainEmpTrain.asp?pg=Intro&pgnum=0" class="subnav">Employee Training</a></font></td></tr>';
	if(GetCookie('licType') == 'S'){
		str+= '<tr><td colspan=3 height=5></td></tr>';
		str+= '<tr><td colspan=3><font class=subnav><a href="mainSupTrain.asp?pg=Intro&pgnum=0" class="subnav">Supervisor Training</a></font></td></tr>';	
	}
	str+= '</table>';

	document.write(str);
}

function Main_Side_AlcMain(quizdone, pg){
	str = "";
	str+= '<table cellspacing="0" cellpadding="0" width="135" border="0">';
	str+= '<tr>';
	str+= '<td><img height=1 src="images/spacer.gif" width=10></td>';
	str+= '<td><img height=1 src="images/spacer.gif" width=10></td>';
	str+= '<td><img height=1 src="images/spacer.gif" width=115></td>';
	str+= '</tr>';
	
	//bhutch 10-8-04  added link to home page (user main)
	str+= str+= '<tr><td></td><td colspan=3><font class=subnav><a href="UserMain.asp" class="subnav">Home</a></font></td></tr>';
	str+= '<tr><td colspan=3 height=20></td></tr>';
	
	if((pg == 'Intro')||(pg == 'IntroQuiz')) {
		str+= '<tr><td name="link_a_intro" id="link_a_intro" style="visibility:hidden"><img src="images/GreenCheck.gif" height=15 width=15></td><td colspan=3><font class=subnav><a href="Train_alcMain.asp?pg=Intro&pgnum=0" class="RedTextTest">Introduction</a></font></td></tr>';
	}else{
		str+= '<tr><td name="link_a_intro" id="link_a_intro" style="visibility:hidden"><img src="images/GreenCheck.gif" height=15 width=15></td><td colspan=3><img src="images/GreenCheck.gif" height=15 width=15 name="link_a_intro" id="link_a_intro" style="display:none"><font class=subnav><a href="Train_alcMain.asp?pg=Intro&pgnum=0" class="subnav">Introduction</a></font></td></tr>';
	}
	str+= '<tr><td colspan=3 height=5></td></tr>';
	if((pg == 'BreathTesting')||(pg == 'BreathTestingQuiz')){
		str+= '<tr><td name="link_a_ebt" id="link_a_ebt" style="visibility:hidden"><img src="images/GreenCheck.gif" height=15 width=15></td><td colspan=3><font class=subnav><a href="Train_alcMain.asp?pg=BreathTesting&pgnum=0" class="RedTextTest">Evidential Breath Testing</a></font></td></tr>';
	}else{
		str+= '<tr><td name="link_a_ebt" id="link_a_ebt" style="visibility:hidden"><img src="images/GreenCheck.gif" height=15 width=15></td><td colspan=3><font class=subnav><a href="Train_alcMain.asp?pg=BreathTesting&pgnum=0" class="subnav">Evidential Breath Testing</a></font></td></tr>';
	}
	str+= '<tr><td colspan=3 height=5></td></tr>';
	if((pg == 'AlcTest')||(pg == 'AlcTestQuiz')){
		str+= '<tr><td name="link_a_alctest" id="link_a_alctest" style="visibility:hidden"><img src="images/GreenCheck.gif" height=15 width=15></td><td colspan=3><font class=subnav><a href="Train_alcMain.asp?pg=AlcTest&pgnum=0" class="RedTextTest">The Alcohol Test</a></font></td></tr>';
	}else{
		str+= '<tr><td name="link_a_alctest" id="link_a_alctest" style="visibility:hidden"><img src="images/GreenCheck.gif" height=15 width=15></td><td colspan=3><font class=subnav><a href="Train_alcMain.asp?pg=AlcTest&pgnum=0" class="subnav">The Alcohol Test</a></font></td></tr>';	
	}
	str+= '<tr><td colspan=3 height=5></td></tr>';
	if((pg == 'SAP')||(pg == 'SAPQuiz')){
		str+= '<tr><td name="link_a_sap" id="link_a_sap" style="visibility:hidden"><img src="images/GreenCheck.gif" height=15 width=15></td><td colspan=3><font class=subnav><a href="Train_alcMain.asp?pg=SAP&pgnum=0" class="RedTextTest">The SAP Evaluation</a></font></td></tr>';
	}else{
		str+= '<tr><td name="link_a_sap" id="link_a_sap" style="visibility:hidden"><img src="images/GreenCheck.gif" height=15 width=15></td><td colspan=3><font class=subnav><a href="Train_alcMain.asp?pg=SAP&pgnum=0" class="subnav">The SAP Evaluation</a></font></td></tr>';	
	}
	str+= '<tr><td colspan=3 height=5></td></tr>';
	if((pg == 'Conclusion')||(pg == 'Conclusion_quiz')){
		str+= '<tr><td name="link_a_conclusion" id="link_a_conclusion" style="visibility:hidden"><img src="images/GreenCheck.gif" height=15 width=15></td><td colspan=3><font class=subnav><a href="Train_alcMain.asp?pg=Conclusion&pgnum=0" class="RedTextTest">Conclusion</a></font></td></tr>';
	}else{
		str+= '<tr><td name="link_a_conclusion" id="link_a_conclusion" style="visibility:hidden"><img src="images/GreenCheck.gif" height=15 width=15></td><td colspan=3><font class=subnav><a href="Train_alcMain.asp?pg=Conclusion&pgnum=0" class="subnav">Conclusion</a></font></td></tr>';	
	}
	str+= '<tr><td colspan=3 height=5></td></tr>';
	if(quizdone){
		str+= '<tr><td name="test" id="test" style="visibility:hidden"><img src="images/GreenCheck.gif" height=15 width=15></td><td colspan=3><font class=subnav><a href="Tests/Test_Alc.asp" class="subnav">Test</a></font></td></tr>';
	}
	str+= '</table>';
	document.write(str);
}

function Main_Side_DrugMain(quizdone, pg){
	str = "";
	str+= '<table cellspacing="0" cellpadding="0" width="135" border="0">';
	str+= '<tr>';
	str+= '<td><img height=1 src="images/spacer.gif" width=10></td>';
	str+= '<td><img height=1 src="images/spacer.gif" width=10></td>';
	str+= '<td><img height=1 src="images/spacer.gif" width=115></td>';
	str+= '</tr>';
	
	//bhutch 10-8-04  added link to home page (user main)
	str+= str+= '<tr><td></td><td colspan=3><font class=subnav><a href="UserMain.asp" class="subnav">Home</a></font></td></tr>';
	str+= '<tr><td colspan=3 height=20></td></tr>';
	
	if((pg == 'Intro')||(pg == 'IntroQuiz')){
		str+= '<tr><td name="intro" id="intro" style="visibility:hidden"><img src="images/GreenCheck.gif" height=15 width=15></td><td colspan=3><font class=subnav><a href="Train_drugMain.asp?pg=Intro&pgnum=0" class="RedTextTest">Introduction</a></font></td></tr>';
	}else{
		str+= '<tr><td name="intro" id="intro" style="visibility:hidden"><img src="images/GreenCheck.gif" height=15 width=15></td><td colspan=3><font class=subnav><a href="Train_drugMain.asp?pg=Intro&pgnum=0" class="subnav">Introduction</a></font></td></tr>';
	}
	str+= '<tr><td colspan=3 height=5></td></tr>';
	if((pg == 'collSite')||(pg == 'collSiteQuiz')){
		str+= '<tr><td name="collsite" id="collsite" style="visibility:hidden"><img src="images/GreenCheck.gif" height=15 width=15></td><td colspan=3><font class=subnav><a href="Train_drugMain.asp?pg=collSite&pgnum=0" class="RedTextTest">The Collection Site</a></font></td></tr>';
	}else{
		str+= '<tr><td name="collsite" id="collsite" style="visibility:hidden"><img src="images/GreenCheck.gif" height=15 width=15></td><td colspan=3><font class=subnav><a href="Train_drugMain.asp?pg=collSite&pgnum=0" class="subnav">The Collection Site</a></font></td></tr>';
	}
	str+= '<tr><td colspan=3 height=5></td></tr>';
	if((pg == 'lab')||(pg == 'labQuiz')){
		str+= '<tr><td name="lab" id="lab" style="visibility:hidden"><img src="images/GreenCheck.gif" height=15 width=15></td><td colspan=3><font class=subnav><a href="Train_drugMain.asp?pg=lab&pgnum=0" class="RedTextTest">The Laboratory</a></font></td></tr>';
	}else{
		str+= '<tr><td name="lab" id="lab" style="visibility:hidden"><img src="images/GreenCheck.gif" height=15 width=15></td><td colspan=3><font class=subnav><a href="Train_drugMain.asp?pg=lab&pgnum=0" class="subnav">The Laboratory</a></font></td></tr>';
	}
	str+= '<tr><td colspan=3 height=5></td></tr>';
	if((pg == 'review')||(pg == 'reviewQuiz')){
		str+= '<tr><td name="review" id="review" style="visibility:hidden"><img src="images/GreenCheck.gif" height=15 width=15></td><td colspan=3><font class=subnav><a href="Train_drugMain.asp?pg=review&pgnum=0" class="RedTextTest">Review</a></font></td></tr>';
	}else{
		str+= '<tr><td name="review" id="review" style="visibility:hidden"><img src="images/GreenCheck.gif" height=15 width=15></td><td colspan=3><font class=subnav><a href="Train_drugMain.asp?pg=review&pgnum=0" class="subnav">Review</a></font></td></tr>';
	}
	str+= '<tr><td colspan=3 height=5></td></tr>';
	if(quizdone){
		str+= '<tr><td name="test" id="test" style="visibility:hidden"><img src="images/GreenCheck.gif" height=15 width=15></td><td colspan=3><font class=subnav><a href="Tests/Test_Drg.asp" class="subnav">Test</a></font></td></tr>';
	}
	str+= '</table>';
	document.write(str);
}

function Main_Side_EmpMain(quizdone, pg){
	str = "";
	str+= '<table cellspacing="0" cellpadding="0" width="135" border="0">';
	str+= '<tr>';
	str+= '<td><img height=1 src="images/spacer.gif" width=10></td>';
	str+= '<td><img height=1 src="images/spacer.gif" width=10></td>';
	str+= '<td><img height=1 src="images/spacer.gif" width=115></td>';
	str+= '</tr>';
	
	//bhutch 10-8-04  added link to home page (user main)
	str+= str+= '<tr><td></td><td colspan=3><font class=subnav><a href="UserMain.asp" class="subnav">Home</a></font></td></tr>';
	str+= '<tr><td colspan=3 height=20></td></tr>';
	
	if((pg == 'Intro')||(pg == 'IntroQuiz')){
		str+= '<tr><td name="intro" id="intro" style="visibility:hidden"><img src="images/GreenCheck.gif" height=15 width=15></td><td colspan=3><font class=subnav><a href="Train_EmpMain.asp?pg=Intro&pgnum=0" class="RedTextTest">Introduction</a></font></td></tr>';
	}else{
		str+= '<tr><td name="intro" id="intro" style="visibility:hidden"><img src="images/GreenCheck.gif" height=15 width=15></td><td colspan=3><font class=subnav><a href="Train_EmpMain.asp?pg=Intro&pgnum=0" class="subnav">Introduction</a></font></td></tr>';
	}
	str+= '<tr><td colspan=3 height=5></td></tr>';
	if((pg == 'society')||(pg == 'societyQuiz')){
		str+= '<tr><td name="society" id="society" style="visibility:hidden"><img src="images/GreenCheck.gif" height=15 width=15></td><td colspan=3><font class=subnav><a href="Train_EmpMain.asp?pg=society&pgnum=0" class="RedTextTest">Drugs in Society</a></font></td></tr>';
	}else{
		str+= '<tr><td name="society" id="society" style="visibility:hidden"><img src="images/GreenCheck.gif" height=15 width=15></td><td colspan=3><font class=subnav><a href="Train_EmpMain.asp?pg=society&pgnum=0" class="subnav">Drugs in Society</a></font></td></tr>';
	}
	str+= '<tr><td colspan=3 height=5></td></tr>';
	if((pg == 'workplace')||(pg == 'workplaceQuiz')){
		str+= '<tr><td name="workplace" id="workplace" style="visibility:hidden"><img src="images/GreenCheck.gif" height=15 width=15></td><td colspan=3><font class=subnav><a href="Train_EmpMain.asp?pg=workplace&pgnum=0" class="RedTextTest">Drugs in the Workplace</a></font></td></tr>';
	}else{
		str+= '<tr><td name="workplace" id="workplace" style="visibility:hidden"><img src="images/GreenCheck.gif" height=15 width=15></td><td colspan=3><font class=subnav><a href="Train_EmpMain.asp?pg=workplace&pgnum=0" class="subnav">Drugs in the Workplace</a></font></td></tr>';
	}
	str+= '<tr><td colspan=3 height=5></td></tr>';
	if((pg == 'types')||(pg == 'typesQuiz')){
		str+= '<tr><td name="types" id="types" style="visibility:hidden"><img src="images/GreenCheck.gif" height=15 width=15></td><td colspan=3><font class=subnav><a href="Train_EmpMain.asp?pg=types&pgnum=0" class="RedTextTest">Types of Drugs</a></font></td></tr>';
	}else{
		str+= '<tr><td name="types" id="types" style="visibility:hidden"><img src="images/GreenCheck.gif" height=15 width=15></td><td colspan=3><font class=subnav><a href="Train_EmpMain.asp?pg=types&pgnum=0" class="subnav">Types of Drugs</a></font></td></tr>';
	}
	str+= '<tr><td colspan=3 height=5></td></tr>';
	if((pg == 'depres')||(pg == 'depresQuiz')){
		str+= '<tr><td name="depres" id="depres" style="visibility:hidden"><img src="images/GreenCheck.gif" height=15 width=15></td><td colspan=3><font class=subnav><a href="Train_EmpMain.asp?pg=depres&pgnum=0" class="RedTextTest">Depressants</a></font></td></tr>';
	}else{
		str+= '<tr><td name="depres" id="depres" style="visibility:hidden"><img src="images/GreenCheck.gif" height=15 width=15></td><td colspan=3><font class=subnav><a href="Train_EmpMain.asp?pg=depres&pgnum=0" class="subnav">Depressants</a></font></td></tr>';
	}
	str+= '<tr><td colspan=3 height=5></td></tr>';
	if((pg == 'stim')||(pg == 'stimQuiz')){
		str+= '<tr><td name="stim" id="stim" style="visibility:hidden"><img src="images/GreenCheck.gif" height=15 width=15></td><td colspan=3><font class=subnav><a href="Train_EmpMain.asp?pg=stim&pgnum=0" class="RedTextTest">Stimulants</a></font></td></tr>';
	}else{
		str+= '<tr><td name="stim" id="stim" style="visibility:hidden"><img src="images/GreenCheck.gif" height=15 width=15></td><td colspan=3><font class=subnav><a href="Train_EmpMain.asp?pg=stim&pgnum=0" class="subnav">Stimulants</a></font></td></tr>';
	}
	str+= '<tr><td colspan=3 height=5></td></tr>';
	if((pg == 'relax')||(pg == 'relaxQuiz')){
		str+= '<tr><td name="relax" id="relax" style="visibility:hidden"><img src="images/GreenCheck.gif" height=15 width=15></td><td colspan=3><font class=subnav><a href="Train_EmpMain.asp?pg=relax&pgnum=0" class="RedTextTest">Relaxants</a></font></td></tr>';
	}else{
		str+= '<tr><td name="relax" id="relax" style="visibility:hidden"><img src="images/GreenCheck.gif" height=15 width=15></td><td colspan=3><font class=subnav><a href="Train_EmpMain.asp?pg=relax&pgnum=0" class="subnav">Relaxants</a></font></td></tr>';
	}
	str+= '<tr><td colspan=3 height=5></td></tr>';	
	if((pg == 'hallucin')||(pg == 'hallucinQuiz')){
		str+= '<tr><td name="hallucin" id="halluc" style="visibility:hidden"><img src="images/GreenCheck.gif" height=15 width=15></td><td colspan=3><font class=subnav><a href="Train_EmpMain.asp?pg=hallucin&pgnum=0" class="RedTextTest">Hallucinogens</a></font></td></tr>';	
	}else{
		str+= '<tr><td name="hallucin" id="halluc" style="visibility:hidden"><img src="images/GreenCheck.gif" height=15 width=15></td><td colspan=3><font class=subnav><a href="Train_EmpMain.asp?pg=hallucin&pgnum=0" class="subnav">Hallucinogens</a></font></td></tr>';	
	}
	str+= '<tr><td colspan=3 height=5></td></tr>';
	if((pg == 'empRespon')||(pg == 'empRespQuiz')){
		str+= '<tr><td name="empresp" id="empresp" style="visibility:hidden"><img src="images/GreenCheck.gif" height=15 width=15></td><td colspan=3><font class=subnav><a href="Train_EmpMain.asp?pg=empRespon&pgnum=0" class="RedTextTest">Employee Responsibility</a></font></td></tr>';
	}else{
		str+= '<tr><td name="empresp" id="empresp" style="visibility:hidden"><img src="images/GreenCheck.gif" height=15 width=15></td><td colspan=3><font class=subnav><a href="Train_EmpMain.asp?pg=empRespon&pgnum=0" class="subnav">Employee Responsibility</a></font></td></tr>';
	}
	str+= '<tr><td colspan=3 height=5></td></tr>';
	if(quizdone){
		str+= '<tr><td name="test" id="test" style="visibility:hidden"><img src="images/GreenCheck.gif" height=15 width=15></td><td colspan=3><font class=subnav><a href="Tests/Test_Emp.asp" class="subnav">Test</a></font></td></tr>';
	}
	str+= '</table>';
	document.write(str);
}

function Main_Side_SupMain(quizdone, pg){
	str = "";
	str+= '<table cellspacing="0" cellpadding="0" width="135" border="0">';
	str+= '<tr>';
	str+= '<td><img height=1 src="images/spacer.gif" width=10></td>';
	str+= '<td><img height=1 src="images/spacer.gif" width=10></td>';
	str+= '<td><img height=1 src="images/spacer.gif" width=115></td>';
	str+= '</tr>';
	
	//bhutch 10-8-04  added link to home page (user main)
	str+= str+= '<tr><td></td><td colspan=3><font class=subnav><a href="UserMain.asp" class="subnav">Home</a></font></td></tr>';
	str+= '<tr><td colspan=3 height=20></td></tr>';
	
	if((pg == 'Intro')||(pg == 'intro')){
		str+= '<tr><td name="intro" id="intro" style="visibility:hidden"><img src="images/GreenCheck.gif" height=15 width=15></td><td colspan=3><font class=subnav><a href="Train_supervisorMain.asp?pg=Intro&pgnum=0" class="RedTextTest">Introduction</a></font></td></tr>';
	}else{
		str+= '<tr><td name="intro" id="intro" style="visibility:hidden"><img src="images/GreenCheck.gif" height=15 width=15></td><td colspan=3><font class=subnav><a href="Train_supervisorMain.asp?pg=Intro&pgnum=0" class="subnav">Introduction</a></font></td></tr>';
	}
	str+= '<tr><td colspan=3 height=5></td></tr>';
	if((pg == 'role')||(pg == 'role')){
		str+= "<tr><td name='role' id='role' style='visibility:hidden'><img src='images/GreenCheck.gif' height=15 width=15></td><td colspan=3><font class=subnav><a href='Train_supervisorMain.asp?pg=role&pgnum=0' class='RedTextTest'>The Supervisor's Role</a></font></td></tr>";
	}else{
		str+= "<tr><td name='role' id='role' style='visibility:hidden'><img src='images/GreenCheck.gif' height=15 width=15></td><td colspan=3><font class=subnav><a href='Train_supervisorMain.asp?pg=role&pgnum=0' class='subnav'>The Supervisor's Role</a></font></td></tr>";
	}
	str+= '<tr><td colspan=3 height=5></td></tr>';
	if((pg == 'stereotypes')||(pg == 'stereotypes')){
		str+= '<tr><td name="stereo" id="stereo" style="visibility:hidden"><img src="images/GreenCheck.gif" height=15 width=15></td><td colspan=3><font class=subnav><a href="Train_supervisorMain.asp?pg=stereotypes&pgnum=0" class="RedTextTest">Drug User Stereotypes</a></font></td></tr>';
	}else{
		str+= '<tr><td name="stereo" id="stereo" style="visibility:hidden"><img src="images/GreenCheck.gif" height=15 width=15></td><td colspan=3><font class=subnav><a href="Train_supervisorMain.asp?pg=stereotypes&pgnum=0" class="subnav">Drug User Stereotypes</a></font></td></tr>';
	}
	str+= '<tr><td colspan=3 height=5></td></tr>';
	if((pg == 'ID1')||(pg == 'ID1')){
		str+= '<tr><td name="id1" id="id1" style="visibility:hidden"><img src="images/GreenCheck.gif" height=15 width=15></td><td colspan=3><font class=subnav><a href="Train_supervisorMain.asp?pg=ID1&pgnum=0" class="RedTextTest">Identifying Drug<br> Users I</a></font></td></tr>';
	}else{
		str+= '<tr><td name="id1" id="id1" style="visibility:hidden"><img src="images/GreenCheck.gif" height=15 width=15></td><td colspan=3><font class=subnav><a href="Train_supervisorMain.asp?pg=ID1&pgnum=0" class="subnav">Identifying Drug<br> Users I</a></font></td></tr>';
	}
	str+= '<tr><td colspan=3 height=5></td></tr>';
	if((pg == 'ID2')||(pg == 'ID2')){
		str+= '<tr><td name="id2" id="id2" style="visibility:hidden"><img src="images/GreenCheck.gif" height=15 width=15></td><td colspan=3><font class=subnav><a href="Train_supervisorMain.asp?pg=ID2&pgnum=0" class="RedTextTest">Identifying Drug<br> Users II</a></font></td></tr>';
	}else{
		str+= '<tr><td name="id2" id="id2" style="visibility:hidden"><img src="images/GreenCheck.gif" height=15 width=15></td><td colspan=3><font class=subnav><a href="Train_supervisorMain.asp?pg=ID2&pgnum=0" class="subnav">Identifying Drug<br> Users II</a></font></td></tr>';
	}
	str+= '<tr><td colspan=3 height=5></td></tr>';
	if((pg == 'documentation')||(pg == 'documentation')){
		str+= '<tr><td name="document" id="document" style="visibility:hidden"><img src="images/GreenCheck.gif" height=15 width=15></td><td colspan=3><font class=subnav><a href="Train_supervisorMain.asp?pg=documentation&pgnum=0" class="RedTextTest">Documentation</a></font></td></tr>';
	}else{
		str+= '<tr><td name="document" id="document" style="visibility:hidden"><img src="images/GreenCheck.gif" height=15 width=15></td><td colspan=3><font class=subnav><a href="Train_supervisorMain.asp?pg=documentation&pgnum=0" class="subnav">Documentation</a></font></td></tr>';
	}
	str+= '<tr><td colspan=3 height=5></td></tr>';
	if((pg == 'intervention')||(pg == 'intervention')){
		str+= '<tr><td name="intervention" id="intervention" style="visibility:hidden"><img src="images/GreenCheck.gif" height=15 width=15></td><td colspan=3><font class=subnav><a href="Train_supervisorMain.asp?pg=intervention&pgnum=0" class="RedTextTest">Intervention</a></font></td></tr>';
	}else{
		str+= '<tr><td name="intervention" id="intervention" style="visibility:hidden"><img src="images/GreenCheck.gif" height=15 width=15></td><td colspan=3><font class=subnav><a href="Train_supervisorMain.asp?pg=intervention&pgnum=0" class="subnav">Intervention</a></font></td></tr>';
	}
	str+= '<tr><td colspan=3 height=5></td></tr>';	
	if((pg == 'interview')||(pg == 'interview')){
		str+= '<tr><td name="interview" id="interview" style="visibility:hidden"><img src="images/GreenCheck.gif" height=15 width=15></td><td colspan=3><font class=subnav><a href="Train_supervisorMain.asp?pg=interview&pgnum=0" class="RedTextTest">The Interview</a></font></td></tr>';	
	}else{
		str+= '<tr><td name="interview" id="interview" style="visibility:hidden"><img src="images/GreenCheck.gif" height=15 width=15></td><td colspan=3><font class=subnav><a href="Train_supervisorMain.asp?pg=interview&pgnum=0" class="subnav">The Interview</a></font></td></tr>';	
	}
	str+= '<tr><td colspan=3 height=5></td></tr>';
	if((pg == 'conclusion')||(pg == 'conclusion')){
		str+= '<tr><td name="conclusion" id="conclusion" style="visibility:hidden"><img src="images/GreenCheck.gif" height=15 width=15></td><td colspan=3><font class=subnav><a href="Train_supervisorMain.asp?pg=conclusion&pgnum=0" class="RedTextTest">Conclusion</a></font></td></tr>';
	}else{
		str+= '<tr><td name="conclusion" id="conclusion" style="visibility:hidden"><img src="images/GreenCheck.gif" height=15 width=15></td><td colspan=3><font class=subnav><a href="Train_supervisorMain.asp?pg=conclusion&pgnum=0" class="subnav">Conclusion</a></font></td></tr>';
	}
	str+= '<tr><td colspan=3 height=5></td></tr>';
	if(quizdone){
		str+= '<tr><td name="test" id="test" style="visibility:hidden"><img src="images/GreenCheck.gif" height=15 width=15></td><td colspan=3><font class=subnav><a href="Tests/Test_Sup.asp" class="subnav">Test</a></font></td></tr>';
	}
	str+= '</table>';
	document.write(str);
}

function navMain(backColor){
	str = "";
	str+= '<tr>';
	str+= '<td rowspan="5"><img src="images/nav_curve.gif" width=162 height=27></td> <!--width was 162-->';
	str+= '<td colspan="3" bgcolor="' + backColor + '"><img src="images/spacer.gif" width=1 height=1></td>';
	str+= '<td rowspan="5" bgcolor="' + backColor + '"></td>';
	str+= '<td colspan="3" bgcolor="' + backColor + '"><img src="images/spacer.gif" width=1 height=1></td>';
	str+= '<td rowspan="5" bgcolor="' + backColor + '"></td>';
	str+= '<td colspan="3" bgcolor="' + backColor + '"><img src="images/spacer.gif" width=1 height=1></td>';
	str+= '<td rowspan="5" bgcolor="' + backColor + '"></td>';
	str+= '<td colspan="3" bgcolor="' + backColor + '"><img src="images/spacer.gif" width=1 height=1></td>';
	str+= '</tr>';
	str+= '<tr>';
	str+= '<td bgcolor="' + backColor + '"><img src="images/spacer.gif" width=0 height=20></td>';
	str+= '<td bgcolor="' + backColor + '" rowspan="3" align="center"></td>';
	str+= '<td bgcolor="' + backColor + '"><img src="images/spacer.gif" width=0 height=1></td>';
	str+= '<td bgcolor="' + backColor + '"><img src="images/spacer.gif" width=0 height=1></td>';
	str+= '<td bgcolor="' + backColor + '" align="center" rowspan="3"></td>';
	str+= '<td bgcolor="' + backColor + '"><img src="images/spacer.gif" width=0 height=1></td>';
	str+= '<td bgcolor="' + backColor + '"><img src="images/spacer.gif" width=0 height=1></td>';
	str+= '<td bgcolor="' + backColor + '" align="center" rowspan="3"></td>';
	str+= '<td bgcolor="' + backColor + '"><img src="images/spacer.gif" width=0 height=1></td>';
	str+= '<td bgcolor="' + backColor + '"><img src="images/spacer.gif" width=0 height=1></td>';
	str+= '<td bgcolor="' + backColor + '" align="center" rowspan="3"></td>';
	str+= '<td bgcolor="' + backColor + '"><img src="images/spacer.gif" width=0 height=1></td>';
	str+= '</tr>';
	str+= '<tr>';
	str+= '<td bgcolor="' + backColor + '"><img src="images/spacer.gif" width=1 height=1></td>';
	str+= '<td bgcolor="' + backColor + '"><img src="images/spacer.gif" width=1 height=1></td>';
	str+= '<td bgcolor="' + backColor + '"><img src="images/spacer.gif" width=1 height=1></td>';
	str+= '<td bgcolor="' + backColor + '"><img src="images/spacer.gif" width=1 height=1></td>';
	str+= '<td bgcolor="' + backColor + '"><img src="images/spacer.gif" width=1 height=1></td>';
	str+= '<td bgcolor="' + backColor + '"><img src="images/spacer.gif" width=1 height=1></td>';
	str+= '<td bgcolor="' + backColor + '"><img src="images/spacer.gif" width=1 height=1></td>';
	str+= '<td bgcolor="' + backColor + '"><img src="images/spacer.gif" width=1 height=1></td>';
	str+= '</tr>';
	str+= '<tr>';
	str+= '<td bgcolor="' + backColor + '"><img src="images/spacer.gif" width=1 height=3></td>';
	str+= '<td bgcolor="' + backColor + '"><img src="images/spacer.gif" width=1 height=1></td>';
	str+= '<td bgcolor="' + backColor + '"><img src="images/spacer.gif" width=1 height=1></td>';
	str+= '<td bgcolor="' + backColor + '"><img src="images/spacer.gif" width=1 height=1></td>';
	str+= '<td bgcolor="' + backColor + '"><img src="images/spacer.gif" width=1 height=1></td>';
	str+= '<td bgcolor="' + backColor + '"><img src="images/spacer.gif" width=1 height=1></td>';
	str+= '<td bgcolor="' + backColor + '"><img src="images/spacer.gif" width=1 height=1></td>';
	str+= '<td bgcolor="' + backColor + '"><img src="images/spacer.gif" width=1 height=1></td>';
	str+= '</tr>';
	str+= '<tr>';
	str+= '<td colspan="3" bgcolor="' + backColor + '"><img src="images/spacer.gif" width=1 height=2></td>';
	str+= '<td colspan="3" bgcolor="' + backColor + '"><img src="images/spacer.gif" width=1 height=2></td>';
	str+= '<td colspan="3" bgcolor="' + backColor + '"><img src="images/spacer.gif" width=1 height=1></td>';
	str+= '<td colspan="3" bgcolor="' + backColor + '"><img src="images/spacer.gif" width=1 height=1></td>';
	str+= '</tr>';
	str+= '</table>';
	document.write(str);
}

function navLeftBGcolor(backColor){
	str = "";
	str += '<tr>';
	str += '<td bgcolor="' + backColor + '"><img src="images/spacer.gif" width="10" height="1"></td>';
	str += '<td bgcolor="' + backColor + '"><img src="images/spacer.gif" width="135" height="1"></td>';
	str += '<td bgcolor="' + backColor + '"><img src="images/spacer.gif" width="10" height="1"></td>';
	str += '<td bgcolor="' + backColor + '"><img src="images/spacer.gif" width="15" height="1"></td>';
	str += '<td bgcolor="' + backColor + '"><img src="images/spacer.gif" width="520" height="1"></td>';
	str += '<td bgcolor="' + backColor + '"><img src="images/spacer.gif" width="70" height="1"></td>';
	str += '</tr>';
	str += '<tr>';
	str += '<td rowspan="99" bgcolor="' + backColor + '"><img src="images/spacer.gif" width="10" height="1"></td>';
	str += '<td bgcolor="' + backColor + '"><img src="images/spacer.gif" width="1" height="19"></td>';
	str += '<td rowspan="99" bgcolor="' + backColor + '"><img src="images/spacer.gif" width="10" height="1"></td>';
	str += '<td rowspan="99"><img src="images/spacer.gif" width="15" height="1"></td>';
	str += '<td></td>';
	str += '<td></td>';
	str += '</tr>';
	document.write(str);
}

function bottom_main(backColor){
	str = "";
	str+= '<!--stopindex-->';
	str+= '<table cellspacing="0" cellpadding="0" border="0" width=760> <!-- width="760" -->';
	str+= '<tr>';
	str+= '<td width="10" rowspan="99"><img src="images/spacer.gif" width=10 height=1></td>';
	str+= '<td width="160" bgcolor="#cccccc"><img src="images/spacer.gif" width=160 height=1></td>';
	str+= '<td width="590" bgcolor="#cccccc"><img src="images/spacer.gif" width=590 height=1></td>';
	str+= '</tr>';	
	str+= '<tr><td colspan="2" height="10"></td></tr>';
	str+= '<tr>';
	str+= '<td></td>';
	//str+= '<td><font class="utility">Change this to something  | <a href="gowhere?.asp" class="utility">this needs to change too</a><br></font></td>';
	str+= '<td><img src="images/oldphonenumber.gif"></td>';		//bhutch 1-18-06  added this line for quest... if nothing to put here, make a copy of spacer.gif and rename it so nothing will show up.
	str+= '</tr>';
	str+= '<tr><td colspan="2" height="10"></td></tr>';
	str+= '</table>';	
	document.write(str);
if (document.layers) {
	document.write('<layer height="59" width="153" left="5" top="10"><a ><img src="images/logo.gif" width=153 height=59 border="0"></a></layer>');
	} else {
	document.write('<div style="position: absolute; left: 5; top: 10; z-index: 10; width: 153; height: 59;"><a ><img src="images/logo.gif" border="0"></a></div>');
	}
}

function ShowAllQuizInfo(){
str = "";
str += '<table border="0" class=text style="display:none" name=alltable id=alltable>';
str += '<tr>';
str += '<td rowspan=16 width=10></td><td><b>Alcohol:</b></td><td></td><td></td><td rowspan=16 width=30px></td><td><b>Drug:</b></td>';
str += '<tr>';
str += '<td colspan=2><img style="visibility:hidden" id=a_intro name=a_intro src="images/greencheck.gif">&nbsp&nbsp Introduction Quiz</td><td></td><td><img style="visibility:hidden" id=d_intro name=d_intro src="images/greencheck.gif">&nbsp&nbsp Introduction Quiz &nbsp&nbsp</td><td></td>';
str += '</tr>';
str += '<tr>';
str += '<td colspan=2><img style="visibility:hidden" id=a_ebt name=a_ebt src="images/greencheck.gif" >&nbsp&nbsp Evidential Breath Testing Quiz &nbsp&nbsp</td><td></td><td><img style="visibility:hidden" id=d_colsite name=d_colsite src="images/greencheck.gif" >&nbsp&nbsp The Collection Site Quiz &nbsp&nbsp</td><td></td>';
str += '</tr>';
str += '<tr>';
str += '<td colspan=2><img style="visibility:hidden" id=a_alcteset name=a_alctest src="images/greencheck.gif" >&nbsp&nbsp The Alcohol Test Quiz &nbsp&nbsp</td><td></td><td><img style="visibility:hidden" id=d_lab name=d_lab src="images/greencheck.gif">&nbsp&nbsp The Laboratory Quiz &nbsp&nbsp</td><td></td>';
str += '</tr>';
str += '<tr>';
str += '<td colspan=2><img style="visibility:hidden" id=a_sap name=a_sap src="images/greencheck.gif" >&nbsp&nbsp The SAP Evaluation Quiz &nbsp&nbsp</td><td></td><td><img style="visibility:hidden" id=d_review name=d_review src="images/greencheck.gif">&nbsp&nbsp Review Quiz &nbsp&nbsp</td><td></td>';
str += '</tr>';
str += '</tr>';					
str += '<tr colspan=6 height=10px></tr>';
str += '<tr>';
str += '<td><b>Employee:</b></td><td></td><td></td><td><b>Supervisor:</b></td>';
str += '<tr>';
str += '<td colspan=2><img style="visibility:hidden" id=e_intro name=e_intro src="images/greencheck.gif" >&nbsp&nbsp Introduction Quiz &nbsp&nbsp</td><td></td><td><img style="visibility:hidden" id=s_role name=s_role src="images/greencheck.gif">&nbsp&nbsp Supervisor Role Quiz &nbsp&nbsp</td><td></td>';
str += '</tr>';
str += '<tr>';
str += '<td colspan=2><img style="visibility:hidden" id=e_society name=e_society src="images/greencheck.gif" >&nbsp&nbsp Drugs In Society Quiz &nbsp&nbsp</td><td></td><td><img style="visibility:hidden" id=s_stereotype name=s_stereotype src="images/greencheck.gif">&nbsp&nbsp Drug User Stereotypes Quiz &nbsp&nbsp</td><td></td>';
str += '</tr>';
str += '<tr>';
str += '<td colspan=2><img style="visibility:hidden" id=e_workplace name=e_workplace src="images/greencheck.gif"  >&nbsp&nbsp Drugs in the Workplace Quiz &nbsp&nbsp</td><td></td><td><img style="visibility:hidden" id=s_ID1 name=s_ID1 src="images/greencheck.gif">&nbsp&nbsp ID Drug Users I Quiz &nbsp&nbsp</td><td></td>';
str += '</tr>';
str += '<tr>';
str += '<td colspan=2><img style="visibility:hidden" id=e_types name=e_types src="images/greencheck.gif"  >&nbsp&nbsp Types of Drugs Quiz &nbsp&nbsp</td><td></td><td><img style="visibility:hidden" id=s_ID2 name=s_ID2 src="images/greencheck.gif">&nbsp&nbsp ID Drug Users II Quiz &nbsp&nbsp</td><td></td>';
str += '</tr>';
str += '<tr>';
str += '<td colspan=2><img style="visibility:hidden" id=e_depres name=e_depres src="images/greencheck.gif"  >&nbsp&nbsp Depressants Quiz &nbsp&nbsp</td><td></td><td><img style="visibility:hidden" id=s_document name=s_document src="images/greencheck.gif">&nbsp&nbsp Documentation Quiz &nbsp&nbsp</td><td></td>';
str += '</tr>';
str += '<tr>';
str += '<td colspan=2><img style="visibility:hidden" id=e_stim name=e_stim src="images/greencheck.gif"  >&nbsp&nbsp Stimulants Quiz &nbsp&nbsp</td><td></td><td><img style="visibility:hidden" id=s_intervention name=s_intervention src="images/greencheck.gif">&nbsp&nbsp Intervention Quiz &nbsp&nbsp</td><td></td>';
str += '</tr>';
str += '<tr>';
str += '<td colspan=2><img style="visibility:hidden" id=e_relax name=e_relax src="images/greencheck.gif"  >&nbsp&nbsp Relaxants Quiz &nbsp&nbsp</td><td></td><td><img  style="visibility:hidden" id=s_interview name=s_interview src="images/greencheck.gif">&nbsp&nbsp Interview Quiz &nbsp&nbsp</td><td></td>';
str += '</tr>';
str += '<tr>';
str += '<td colspan=2><img style="visibility:hidden" id=e_halluc name=e_halluc src="images/greencheck.gif"  >&nbsp&nbsp Hallucinogens Quiz &nbsp&nbsp</td><td>';
str += '</tr>';
str += '</tr>';
str += '</table>';
document.write (str);
}


function ShowAlcQuizInfo(){
str = "";
str += '<table class=text style="display:none" name=alctable id=alctable>';
str += '<tr>';
str += '<td rowspan=16 width=10></td><td style="visibility:hidden" id=a_title name=a_title><b>Alcohol:</b><td>';
str += '<tr>';
str += '<td colspan=2 ><img id=a_intro name=a_intro style="visibility:hidden" src="images/greencheck.gif" > &nbsp&nbsp Introduction Quiz &nbsp&nbsp</td><td></td>';
str += '</tr>';
str += '<tr>';
str += '<td colspan=2><img id=a_ebt name=a_ebt style="visibility:hidden" src="images/greencheck.gif" > &nbsp&nbsp Evidential Breath Testing Quiz &nbsp&nbsp</td><td></td>';
str += '</tr>';
str += '<tr>';
str += '<td colspan=2><img style="visibility:hidden" id=a_alctest name=a_alctest src="images/greencheck.gif"> &nbsp&nbsp The Alcohol Test Quiz &nbsp&nbsp</td><td></td>';
str += '</tr>';
str += '<tr>';
str += '<td colspan=2><img style="visibility:hidden" id=a_sap name=a_sap src="images/greencheck.gif"> &nbsp&nbsp The SAP Evaluation Quiz &nbsp&nbsp</td><td></td>';
str += '</tr>';
str += '<tr>';
str += '<td colspan=2><img style="visibility:hidden" id=a_conclusion name=a_conclusion src="images/greencheck.gif"> &nbsp&nbsp Conclusion &nbsp&nbsp</td><td></td>';
str += '</tr>';
str += '</tr>';
str += '</table>';
document.write (str);
}

function ShowDrgQuizInfo(){
str = "";
str += '<table class=text style="display:none" name=drgtable id=drgtable border=0>';
str += '<tr>';
str += '<td colspan=2></td><td></td><td><b>Drug:</b></td>';
str += '<tr>';
str += '<td colspan=2></td><td></td><td><img style="visibility:hidden" id=d_intro name=d_intro src="images/greencheck.gif">&nbsp&nbsp Introduction Quiz &nbsp&nbsp</td><td></td>';
str += '</tr>';
str += '<tr>';
str += '<td colspan=2></td><td></td><td><img style="visibility:hidden" id=d_colsite name=d_colsite src="images/greencheck.gif">&nbsp&nbsp The Collection Site Quiz &nbsp&nbsp</td><td></td>';
str += '</tr>';
str += '<tr>';
str += '<td colspan=2></td><td></td><td><img style="visibility:hidden" id=d_lab name=d_lab src="images/greencheck.gif">&nbsp&nbsp The Laboratory Quiz &nbsp&nbsp</td><td></td>';
str += '</tr>';
str += '<tr>';
str += '<td colspan=2></td><td></td><td><img style="visibility:hidden" id=d_review name=d_review src="images/greencheck.gif">&nbsp&nbsp Review Quiz &nbsp&nbsp</td><td></td>';
str += '</tr>';
str += '</tr>';					
str += '</table>';
document.write (str);
}

function ShowEmpQuizInfo(){
str = "";
str += '<table class=text style="display:none" name=emptable id=emptable border=0>';
str += '<tr>';
str += '<td><b>Employee:</b></td>';
str += '<tr>';
str += '<td colspan=2><img style="visibility:hidden" id=e_intro name=e_intro src="images/greencheck.gif">&nbsp&nbsp Introduction Quiz &nbsp&nbsp</td><td></td>';
str += '</tr>';
str += '<tr>';
str += '<td colspan=2><img style="visibility:hidden" id=e_society name=e_society src="images/greencheck.gif">&nbsp&nbsp Drugs In Society Quiz &nbsp&nbsp</td><td></td>';
str += '</tr>';
str += '<tr>';
str += '<td colspan=2><img style="visibility:hidden" id=e_workplace name=e_workplace src="images/greencheck.gif">&nbsp&nbsp Drugs in the Workplace Quiz &nbsp&nbsp</td><td></td>';
str += '</tr>';
str += '<tr>';
str += '<td colspan=2><img style="visibility:hidden" id=e_types name=e_types src="images/greencheck.gif">&nbsp&nbsp Types of Drugs Quiz &nbsp&nbsp</td><td></td>';
str += '</tr>';
str += '<tr>';
str += '<td colspan=2><img style="visibility:hidden" id=e_depres name=e_depres src="images/greencheck.gif">&nbsp&nbsp Depressants Quiz &nbsp&nbsp</td><td></td>';
str += '</tr>';
str += '<tr>';
str += '<td colspan=2><img style="visibility:hidden" id=e_stim name=e_stim src="images/greencheck.gif">&nbsp&nbsp Stimulants Quiz &nbsp&nbsp</td><td></td>';
str += '</tr>';
str += '<tr>';
str += '<td colspan=2><img style="visibility:hidden" id=e_relax name=e_relax src="images/greencheck.gif">&nbsp&nbsp Relaxants Quiz &nbsp&nbsp</td><td></td>';
str += '</tr>';
str += '<tr>';
str += '<td colspan=2><img style="visibility:hidden" id=e_halluc name=e_halluc src="images/greencheck.gif">&nbsp&nbsp Hallucinogens Quiz &nbsp&nbsp</td><td></td>';
str += '</tr>';
str += '<tr>';
str += '<td colspan=2><img style="visibility:hidden" id=e_empresp name=e_empresp src="images/greencheck.gif">&nbsp&nbsp Employee Responsibility Quiz &nbsp&nbsp</td><td></td>';
str += '</tr>';
str += '</tr>';
str += '</table>';
document.write (str);
}

function ShowSupQuizInfo(){
str = "";
str += '<table class=text style="display:none" name=suptable id=suptable>';
str += '<tr>';
str += '<td></td><td></td><td></td><td><b>Supervisor:</b></td>';
str += '<tr>';
str += '<td colspan=2></td><td></td><td><img style="visibility:hidden" id="s_intro" name="s_intro" src="images/greencheck.gif">&nbsp&nbsp Supervisor Introduction Quiz &nbsp&nbsp</td><td></td>';
str += '</tr>';
str += '<tr>';
str += '<td colspan=2></td><td></td><td><img style="visibility:hidden" id="s_role" name="s_role" src="images/greencheck.gif">&nbsp&nbsp Supervisor Role Quiz &nbsp&nbsp</td><td></td>';
str += '</tr>';
str += '<tr>';
str += '<td colspan=2></td><td></td><td><img style="visibility:hidden" id="s_stereotype" name="s_stereotype" src="images/greencheck.gif">&nbsp&nbsp Drug User Stereotypes Quiz &nbsp&nbsp</td><td></td>';
str += '</tr>';
str += '<tr>';
str += '<td colspan=2></td><td></td><td><img style="visibility:hidden" id="s_ID1" name="s_ID1" src="images/greencheck.gif">&nbsp&nbsp ID Drug Users I Quiz &nbsp&nbsp</td><td></td>';
str += '</tr>';
str += '<tr>';
str += '<td colspan=2></td><td></td><td><img style="visibility:hidden" id="s_ID2" name="s_ID2" src="images/greencheck.gif">&nbsp&nbsp ID Drug Users II Quiz &nbsp&nbsp</td><td></td>';
str += '</tr>';
str += '<tr>';
str += '<td colspan=2></td><td></td><td><img style="visibility:hidden" id="s_document" name="s_document" src="images/greencheck.gif">&nbsp&nbsp Documentation Quiz &nbsp&nbsp</td><td></td>';
str += '</tr>';
str += '<tr>';
str += '<td colspan=2></td><td></td><td><img style="visibility:hidden" id="s_intervention" name="s_intervention" src="images/greencheck.gif">&nbsp&nbsp Intervention Quiz &nbsp&nbsp</td><td></td>';
str += '</tr>';
str += '<tr>';
str += '<td colspan=2></td><td></td><td><img style="visibility:hidden" id="s_interview" name="s_interview" src="images/greencheck.gif">&nbsp&nbsp Interview Quiz &nbsp&nbsp</td><td></td>';
str += '</tr>';
str += '<tr>';
str += '<td colspan=2></td><td></td><td><img style="visibility:hidden" id="s_conclusion" name="s_conclusion" src="images/greencheck.gif">&nbsp&nbsp Conclusion Quiz &nbsp&nbsp</td><td></td>';
str += '</tr>';
str += '</tr>';
str += '</table>';
document.write (str);
}
//*****************************************************************
//Andrew B
//  check_answer is Used in the Quiz Modules to
//  Manipulate the Next button and also display correct/incorrect with the
//  Appropriate image.
//*****************************************************************
function check_answer(ans, highlight){
	if (ans==0) {
		//document.all["answer"].innerText = 'Incorrect';
		document.getElementById('ImgNext').style.display='none';
		document.getElementById('correct').style.display='none';
		document.getElementById('incorrect').style.display='inline';		
	}else{
		//document.all["answer"].innerText = 'Correct';
		document.getElementById('ImgNext').style.display='inline';
		document.getElementById('correct').style.display='inline';
		document.getElementById('incorrect').style.display='none';
	}
	if (highlight == 1){
		document.getElementById('answer1').style.background='yellow';
		document.getElementById('answer2').style.background='white';
		if (document.getElementById('answer3')){
			document.getElementById('answer3').style.background='white';
		}
		if (document.getElementById('answer4')){
			document.getElementById('answer4').style.background='white';
		}
	}
	if (highlight == 2){
		document.getElementById('answer2').style.background='yellow';
		document.getElementById('answer1').style.background='white';
		if (document.getElementById('answer3')){
			document.getElementById('answer3').style.background='white';
		}
		if (document.getElementById('answer4')){
			document.getElementById('answer4').style.background='white';
		}
	}
	if (highlight == 3){
		document.getElementById('answer3').style.background='yellow';
		document.getElementById('answer2').style.background='white';
		document.getElementById('answer1').style.background='white';
		if (document.getElementById('answer4')){
			document.getElementById('answer4').style.background='white';
		}
	}
	if (highlight == 4){
		document.getElementById('answer4').style.background='yellow';
		document.getElementById('answer2').style.background='white';
		document.getElementById('answer3').style.background='white';
		document.getElementById('answer1').style.background='white';
	}
}
//*****************************************************************
//Andrew B
//  Funcion Displays Quiz Information in User Main
//  Under the 'View My Quiz Status' heading.
//*****************************************************************
function showquiz(Instr){
	if (Instr == 'alc'){
		document.getElementById('alctable').style.display='inline';
		document.getElementById('drgtable').style.display='none';
		document.getElementById('emptable').style.display='none';
		document.getElementById('suptable').style.display='none';
		document.getElementById('alltable').style.display='none';
		document.getElementById('a_title').style.visibility='visible';
	}
	if (Instr == 'drg'){
		document.getElementById('drgtable').style.display='inline';
		document.getElementById('alctable').style.display='none';
		document.getElementById('emptable').style.display='none';
		document.getElementById('suptable').style.display='none';
		document.getElementById('alltable').style.display='none';
	}
	if (Instr == 'emp'){
		document.getElementById('emptable').style.display='inline';
		document.getElementById('alctable').style.display='none';
		document.getElementById('drgtable').style.display='none';
		document.getElementById('suptable').style.display='none';
		document.getElementById('alltable').style.display='none';
	}
	if (Instr == 'sup'){
		document.getElementById('suptable').style.display='inline';
		document.getElementById('alctable').style.display='none';
		document.getElementById('drgtable').style.display='none';
		document.getElementById('emptable').style.display='none';
		document.getElementById('alltable').style.display='none';
	}
	if (Instr == 'all'){
		document.getElementById('alltable').style.display='inline';
		document.getElementById('alctable').style.display='none';
		document.getElementById('drgtable').style.display='none';
		document.getElementById('emptable').style.display='none';
		document.getElementById('suptable').style.display='none';
		document.getElementById('a_title').style.visibility='visible';
	}
}

//*****************************************************************
//The Following 3 functions are used by the Tests pages.
function initialize(){
 	GotItRight = new Array(numQuestions);
	var x;
	for(x = 0; x < numQuestions; x++){
	 	GotItRight[x] = false; 		
	}
}
function ScoreExam(extype){
 	var score = 0;
	var x=0;
	var str= 'type=' + extype + '&';
	for(x = 0; x < numQuestions; x++)	{
	 	if (GotItRight[x] == true){
			score++; 		
		}
	}
	score=(score/x)*100;
	if (score < 80){
		for(x = 0; x < numQuestions; x++)	{
			if (GotItRight[x] == false){
				str= str + (x+1) + '=' + (x+1) + '&'; //builds a string of incorrect answers.  Passed to retake.asp
			}
		}
		location.replace("retake.asp?" + str + "" + "score=" + score);//if elements in the querystring need to be added,
																		//put them on the end of this.
	}else{
		location.replace("../RecordScore.asp?score=" + score);
		PrintCertificate(extype);
		
	}
}
function record_answer(Qnum, answer){
 	if (answer==true) {
 		GotItRight[Qnum-1] = true;
 	}else{
 		GotItRight[Qnum-1] = false;	
 	}
}
//*****************************************************************
//*****************************************************************
function wait(Amount){
	d = new Date() //today's date
	while (1){
		mill=new Date() // Date Now
		diff = mill-d //difference in milliseconds
		if( diff > Amount ){
			break;
		}
	}
}
//*****************************************************************
//*****************************************************************
//bhutch 10-6-04  added this function to show certificate in a new window
function PrintCertificate(itype,callee){
	//Delay printing of certificate to allow Recordscore.asp to complete execution.
	window.status="Creating certificate..."
	wait(3000);//wait 3 seconds...
	if(callee==0){
		//user main
		window.open("Certificate.asp?type=" + itype,null,"menubar=yes,toolbar=no,addressbar=no,scrollbars,resizable,left=0,top=0,width=640,height=560")
	}else{
		//test completion
		window.open("../Certificate.asp?type=" + itype,null,"menubar=yes,toolbar=no,addressbar=no,scrollbars,resizable,left=0,top=0,width=640,height=560")
	}
	window.status=""

}
//*****************************************************************
//Andrew B: Makes sure cookies and javascript are enabled
//          on the browser.
//*****************************************************************
function cookiesTest(){
	document.cookie="tempcookie=1;";
	document.cookie="permcookie=1; path=/; expires=date()+1;";

	var temp = document.cookie;
	if (temp.indexOf("tempcookie=1") != -1){
		//document.write("<font size=1>Temporary cookies ok.</font><br>");
	}else{
		document.location="CookiesNjava.asp"
	}
	
	if (temp.indexOf("permcookie=1") != -1){
		//document.write("<font size=1>Permanent cookies ok.</font><br>");
	}else{
		document.location="CookiesNjava.asp"
	}
}
function javaTest(){
	//document.write("<font size='1'>Javascript ok.</font><br>");
	var jtest = navigator.javaEnabled();
	if (jtest){
		//document.write("<font size='1'>Java ok.</font><br>");
	}else{
		document.location="CookiesNjava.asp"
	}
}
//*****************************************************************

//******************************************************************************************
//Andrew B: 30-Dec-2004 
//  Following 3 functions make the back/next buttons appear to be pressed down. 
//******************************************************************************************
function ImgBack_Click(pg, pgnum){
		document.getElementById("ImgBack").src="images/BBackDn.gif";
		wait(100);
		cmdBack_click(pg, pgnum)
		document.getElementById("ImgBack").src="images/BBackUp.gif";
}
function ImgNext_Click(pg, pgnum){
		document.getElementById("ImgNext").src="images/BNextDn.gif"
		wait(100);
		cmdNext_click(pg, pgnum)
		document.getElementById("ImgNext").src="images/BNextUp.gif";
}
function wait(Amount){
	d = new Date() //today's date
	while (1){
		mill=new Date() // Date Now
		diff = mill-d //difference in milliseconds
		if( diff > Amount ){
			break;
		}
	}
}
//******************************************************************************************
//Andrew B. 2/15/2005 
//  Display the current module, section and page number and display text body
//******************************************************************************************
function changepage(pg, cpgnum, direction, module){
	if (module=='alc'){
		switch(pg){
			case('Intro'):
				document.getElementById("runme").innerHTML = "Alcohol Testing Training --- Introduction --- Page #" + (cpgnum+1);
				break;
			case('BreathTesting'):
				document.getElementById("runme").innerHTML = "Alcohol Testing Training --- Evidential Breath Testing --- Page #" + (cpgnum+1);
				break;
			case('AlcTest'):
				document.getElementById("runme").innerHTML = "Alcohol Testing Training --- Alcohol Test --- Page #" + (cpgnum+1);
				break;
			case('SAP'):
				document.getElementById("runme").innerHTML = "Alcohol Testing Training --- SAP Evaluation --- Page #" + (cpgnum+1);
				break;
			case('Conclusion'):
				document.getElementById("runme").innerHTML = "Alcohol Testing Training --- Conclusion --- Page #" + (cpgnum+1);
				break;
		}
	}
	if (module=='drg'){
		switch(pg){
			case('Intro'):
				document.getElementById("runme").innerHTML = "Drug Testing Training --- Introduction --- Page #" + (cpgnum+1);
				break;
			case('collSite'):
				document.getElementById("runme").innerHTML = "Drug Testing Training --- The Collection Site --- Page #" + (cpgnum+1);
				break;
			case('lab'):
				document.getElementById("runme").innerHTML = "Drug Testing Training --- The Laboratory --- Page #" + (cpgnum+1);
				break;
			case('review'):
				document.getElementById("runme").innerHTML = "Drug Testing Training --- Review --- Page #" + (cpgnum+1);
				break;			
		}
	}
	if (module=='emp'){
		switch(pg){
			case('Intro'):
				document.getElementById("runme").innerHTML = "Employee Training --- Introduction --- Page #" + (cpgnum+1);	
				break;
			case('society'):
				document.getElementById("runme").innerHTML = "Employee Training --- Drugs in Society --- Page #" + (cpgnum+1);
				break;
			case('workplace'):
				document.getElementById("runme").innerHTML = "Employee Training --- Drugs in the Workplace --- Page #" + (cpgnum+1);
				break;
			case('types'):
				document.getElementById("runme").innerHTML = "Employee Training --- Types of Drugs --- Page #" + (cpgnum+1);
				break;
			case('depres'):
				document.getElementById("runme").innerHTML = "Employee Training --- Depressants --- Page #" + (cpgnum+1);
				break;
			case('stim'):
				document.getElementById("runme").innerHTML = "Employee Training --- Stimulants --- Page #" + (cpgnum+1);
				break;
			case('relax'):
				document.getElementById("runme").innerHTML = "Employee Training --- Relaxants --- Page #" + (cpgnum+1);
				break;
			case('hallucin'):
				document.getElementById("runme").innerHTML = "Employee Training --- Hallucinogens --- Page #" + (cpgnum+1);
				break;
			case('empRespon'):
				document.getElementById("runme").innerHTML = "Employee Training --- Employee Responsibility --- Page #" + (cpgnum+1);
				break;
		}
	}
	if (module=='sup'){
		switch(pg){
			case('Intro'):
				document.getElementById("runme").innerHTML = "Supervisor Training --- Introduction --- Page #" + (cpgnum+1);
				break;
			case('role'):
				document.getElementById("runme").innerHTML = "Supervisor Training --- The Supervisor's Role --- Page #" + (cpgnum+1);
				break;
			case('stereotypes'):
				document.getElementById("runme").innerHTML = "Supervisor Training --- Drug User Stereotypes --- Page #" + (cpgnum+1);
				break;
			case('ID1'):
				document.getElementById("runme").innerHTML = "Supervisor Training --- Identifying Drug Users I --- Page #" + (cpgnum+1);
				break;
			case('ID2'):
				document.getElementById("runme").innerHTML = "Supervisor Training --- Identifying Drug Users II --- Page #" + (cpgnum+1);
				break;
			case('documentation'):
				document.getElementById("runme").innerHTML = "Supervisor Training --- Documentation --- Page #" + (cpgnum+1);
				break;
			case('intervention'):
				document.getElementById("runme").innerHTML = "Supervisor Training --- Intervention --- Page #" + (cpgnum+1);
				break;
			case('interview'):
				document.getElementById("runme").innerHTML = "Supervisor Training --- The Interview --- Page #" + (cpgnum+1);
				break;
			case('conclusion'):
				document.getElementById("runme").innerHTML = "Supervisor Training --- Conclusion --- Page #" + (cpgnum+1);
				break;
		}
	}
	if (direction=="back"){
		document.getElementById('' + cpgnum).style.display='inline';
		cpgnum++;
		document.getElementById('' + cpgnum).style.display='none';
	}else{
		if (direction=="next"){
			document.getElementById('' + cpgnum).style.display='inline';
			cpgnum--;
			document.getElementById('' + cpgnum).style.display='none';
		}else{
			document.getElementById('' + cpgnum).style.display='inline';
		}
	}
	
}
//******************************************************************************************
//Andrew B. 
//  If a page has an animation it's listed here, and the animation is run.
//  Currently this only works in Internet Explorer.  Other Browsers will display the
//  the highlighted text.
//******************************************************************************************
function checkanimate(module, section, cpage){
	if (module=="alc"){
		if (section=="Intro"){
			if (pgnum==2 || pgnum==4 || pgnum==5 || pgnum==7 || pgnum==8 || pgnum==10){
				animate(3,pgnum);
			}
		}
		if (section == "BreathTesting"){
			if (pgnum==4 || pgnum==6){
				animate(3, pgnum);
			}
		}
		if (section == "AlcTest"){
			if (pgnum==1 || pgnum==2 || pgnum==3 || pgnum==4 || pgnum==6 || pgnum==7 || pgnum==9 || pgnum==10 || pgnum==11 || pgnum==12 || pgnum==13){
				animate(3, pgnum);
			}
		}
		if (section == "SAP"){
			if (pgnum==4){
				animate(3, pgnum);
			}
		}
		if (section == "Conclusion"){
			//currently no pages with animated text
		}
	}
	if (module=="drg"){
		if (section=="Intro"){
			if (pgnum==2 || pgnum==4 || pgnum==6 || pgnum==8 || pgnum==10){
				animate(3, pgnum);
			}
		}
		if (section=="collSite"){
			if (pgnum==2 || pgnum==4 || pgnum==7){
				animate(3, pgnum);
			}
		}
		if (section=="lab"){
			if (pgnum==3 || pgnum==5 || pgnum==9){
				animate(3, pgnum);
			}
		}
		if (section=="review"){
			if (pgnum==3 || pgnum==5 || pgnum==7){
				animate(3, pgnum);
			}
		}
	}
	if (module=="emp"){
		if (section=="Intro"){
			if (pgnum==3){
				animate(3, pgnum);
			}
		}
		if (section=="society"){
			if (pgnum==2){
				animate(3, pgnum);
			}
		}
		if (section=="workplace"){
			if (pgnum==2 || pgnum==4 || pgnum==8 || pgnum==10 || pgnum==12 || pgnum==15 || pgnum==16 || pgnum==18 || pgnum==20 || pgnum==22 || pgnum==25 || pgnum==27 || pgnum==28 || pgnum==30 || pgnum==32){
				animate(3, pgnum);
			}
		}
		if (section=="types"){
			if (pgnum==2){
				animate(3, pgnum);
			}
		}
		if (section=="depres"){
			if (pgnum==0 || pgnum==2 || pgnum==4 || pgnum==7 || pgnum==9 || pgnum==11 || pgnum==14 || pgnum==16 || pgnum==21){
				animate(3, pgnum);
			}
		}
		if (section=="stim"){
			if (pgnum==0 || pgnum==2 || pgnum==6 || pgnum==8){
				animate(3, pgnum);
			}
		}
		if (section=="relax"){
			if (pgnum==3 || pgnum==5 || pgnum==8 || pgnum==10){
				animate(3, pgnum);
			}
		}
		if (section=="hallucin"){
			//no text animations
		}
		if (section=="empRespon"){
			if (pgnum==1 || pgnum==2 || pgnum==3 || pgnum==5 || pgnum==7 || pgnum==9 || pgnum==11 || pgnum==13){
				animate(3, pgnum);
			}
		}
	}
	if (module=="sup"){
		if (section=="Intro"){
			if (pgnum==3){
				animate(3, pgnum);
			}
		}
		if (section=="role"){
			//no text animations
			//animate(3, pgnum);
		}
		if (section=="stereotypes"){
			//no text animations
		}
		if (section=="ID1"){
			if (pgnum==2 || pgnum==4 || pgnum==6 || pgnum==8 || pgnum==10 || pgnum==11 || pgnum==14 || pgnum==16 || pgnum==18 || pgnum==20 || pgnum==22 || pgnum==24 || pgnum==26 || pgnum==29 || pgnum==31){
				animate(3, pgnum);
			}
		}
		if (section=="ID2"){
			if (pgnum==2 || pgnum==3 || pgnum==4){
				animate(3, pgnum);
			}
		}
		if (section=="documentation"){
			if (pgnum==2 || pgnum==4 || pgnum==7 || pgnum==9 || pgnum==11 || pgnum==13 || pgnum==16 || pgnum==18 || pgnum==21 || pgnum==24 || pgnum==26 || pgnum==28 || pgnum==31 || pgnum==34 || pgnum==36 || pgnum==38 || pgnum==40 || pgnum==42 || pgnum==44 || pgnum==46 || pgnum==48){
				animate(3, pgnum);
			}
		}
		if (section=="intervention"){
			if (pgnum==4 || pgnum==6 || pgnum==8 || pgnum==10 || pgnum==12 || pgnum==14 || pgnum==16 || pgnum==19 || pgnum==23 || pgnum==25 || pgnum==28 || pgnum==29 || pgnum==30 || pgnum==32 || pgnum==33 || pgnum==38 || pgnum==40 || pgnum==42 || pgnum==44){
				animate(3, pgnum);
			}
		}
		if (section=="interview"){
			if (pgnum==3 || pgnum==5 || pgnum==8 || pgnum==9 || pgnum==10 || pgnum==12 || pgnum==14 || pgnum==18 || pgnum==19 || pgnum==21 || pgnum==23 || pgnum==26){
				animate(3, pgnum);
			}
		}
		if (section=="conclusion"){
			//no text animations
			//animate(3, pgnum);
		}
	}
}
//******************************************************************************************
//Andrew B. 
//  Fixes 'page flashing' problem with the animated text, All pages WITHOUT an animation
//  are included here.
//******************************************************************************************
function clearanimate(module, section, cpage){
	if (module=="alc"){
		if (section=="Intro"){
			if (cpage!= 0 && cpage != 1 && cpage != 3 && cpage != 6 && cpage != 9 && cpage != 11){
				document.getElementById('Text' + (cpage)).style.visibility= "hidden";
			}
		}
		if (section == "BreathTesting"){
			if (cpage!= 0 && cpage != 1 && cpage != 2 && cpage != 3 && cpage != 5){
				document.getElementById('Text' + (cpage)).style.visibility= "hidden";
			}
		}
		if (section == "AlcTest"){
			if (cpage!= 0 && cpage != 5 && cpage != 8){
				document.getElementById('Text' + (cpage)).style.visibility= "hidden";
			}
		}
		if (section == "SAP"){
			if (cpage!= 0 && cpage != 1 && cpage != 2 && cpage != 3){
				document.getElementById('Text' + (cpage)).style.visibility= "hidden";
			}
		}
		if (section == "Conclusion"){
			//currently no pages with animated text
		}
	}
	if (module =="drg"){
		if (section=="Intro"){
			if (cpage != 0 && cpage != 1 && cpage != 3 && cpage != 5 && cpage != 7 && cpage != 9 && cpage != 11){
				document.getElementById('Text' + (cpage)).style.visibility= "hidden";
			}
		}
		if (section=="collSite"){
			if (cpage != 0 && cpage != 1 && cpage != 3 && cpage != 5 && cpage != 6 && cpage != 8){
				document.getElementById('Text' + (cpage)).style.visibility= "hidden";
			}
		}
		if (section=="lab"){
			if (cpage != 0 && cpage != 1 && cpage != 2 && cpage != 4 && cpage != 6 && cpage != 7 && cpage != 8){
				document.getElementById('Text' + (cpage)).style.visibility= "hidden";
			}
		}
		if (section=="review"){
			if (cpage != 0 && cpage != 1 && cpage != 2 && cpage != 4 && cpage != 6 && cpage != 8){
				document.getElementById('Text' + (cpage)).style.visibility= "hidden";
			}
		}
		
	}
	if (module =="emp"){
		if (section=="Intro"){
			if (cpage != 0 && cpage != 1 && cpage != 2 && cpage != 4){
				document.getElementById('Text' + (cpage)).style.visibility= "hidden";
			}
		}
		if (section=="society"){
			if (cpage !=0 && cpage !=1 && cpage != 3){
				document.getElementById('Text' + (cpage)).style.visibility= "hidden";
			}
		}
		if (section=="workplace"){
			if (cpage !=0 && cpage !=1 && cpage !=3 && cpage !=5 && cpage !=6 && cpage !=7 && cpage !=9 && cpage !=11 && cpage !=13 && cpage !=14 && cpage !=17 && cpage !=19 && cpage !=21 && cpage !=23 && cpage !=24 && cpage !=26 && cpage !=29 && cpage !=31){
				document.getElementById('Text' + (cpage)).style.visibility= "hidden";
			}
		}
		if (section=="types"){
			if (cpage !=0 && cpage != 1){
				document.getElementById('Text' + (cpage)).style.visibility= "hidden";
			}
		}
		if (section=="depres"){
			if (cpage !=1 && cpage !=3 && cpage !=5 && cpage !=6 && cpage !=8 && cpage !=10 && cpage !=12 && cpage !=13 && cpage !=15 && cpage !=17 && cpage !=18 && cpage !=19 && cpage !=20 && cpage !=22){
				document.getElementById('Text' + (cpage)).style.visibility= "hidden";
			}
		}
		if (section=="stim"){
			if (cpage !=1 && cpage !=3 && cpage !=4 && cpage !=5 && cpage !=7 && cpage !=9){
				document.getElementById('Text' + (cpage)).style.visibility= "hidden";
			}
		}
		if (section=="relax"){
			if (cpage !=0 && cpage !=1 && cpage !=2 && cpage !=4 && cpage !=6 && cpage !=7 && cpage !=9){
				document.getElementById('Text' + (cpage)).style.visibility= "hidden";
			}
		}
		if (section=="hallucin"){
			//no text animations
		}
		if (section=="empRespon"){
			if (cpage !=0 && cpage !=4 && cpage !=6 && cpage !=8 && cpage !=10 && cpage !=12){
				document.getElementById('Text' + (cpage)).style.visibility= "hidden";
			}
		}
	}
	if (module =="sup"){
		if (section=="Intro"){
			if (cpage !=0 && cpage !=1 && cpage !=2 && cpage !=4){
				document.getElementById('Text' + (cpage)).style.visibility= "hidden";
			}
		}
		if (section=="role"){
			//currently no pages with animated text
		}
		if (section=="stereotypes"){
			//currently no pages with animated text
		}
		if (section=="ID1"){
			if (cpage !=0 && cpage !=1 && cpage !=3 && cpage !=5 && cpage !=7 && cpage !=9 && cpage!=12 && cpage !=13 && cpage !=15 && cpage !=17 && cpage !=19 && cpage !=21 && cpage !=23 && cpage !=25 && cpage !=27 && cpage !=28 && cpage !=30){
				document.getElementById('Text' + (cpage)).style.visibility= "hidden";
			}
		}
		if (section=="ID2"){
			if (cpage !=0 && cpage !=1 && cpage !=5 && cpage !=6 && cpage !=7 && cpage !=8 && cpage !=9 && cpage !=10 && cpage !=11 && cpage !=12 && cpage !=13 && cpage !=14){
				document.getElementById('Text' + (cpage)).style.visibility= "hidden";
			}
		}
		if (section=="documentation"){
			if (cpage !=0 && cpage !=1 && cpage !=3 && cpage !=5 && cpage !=6 && cpage !=8 && cpage !=10 && cpage !=12 && cpage !=14 && cpage !=15 && cpage !=17 && cpage !=19 && cpage !=20 && cpage !=22 && cpage !=23 && cpage !=25 && cpage !=27 && cpage !=29 && cpage !=30 && cpage !=32 && cpage !=33 && cpage !=35 && cpage !=37 && cpage !=39 && cpage !=41 && cpage !=43 && cpage !=45 && cpage !=47 && cpage !=49 && cpage !=50 && cpage !=51 && cpage !=52 && cpage !=53){
				document.getElementById('Text' + (cpage)).style.visibility= "hidden";
			}
		}
		if (section=="intervention"){
			if (cpage !=0 && cpage !=1 && cpage !=2 && cpage !=3 && cpage !=5 && cpage !=7 && cpage !=9 && cpage !=11 && cpage !=13 && cpage !=15 && cpage !=17 && cpage !=18 && cpage !=20 && cpage !=21 && cpage !=22 && cpage !=24 && cpage !=26 && cpage !=27 && cpage !=31 && cpage !=34 && cpage !=35 && cpage !=36 && cpage !=37 && cpage !=39 && cpage !=41 && cpage !=43){
				document.getElementById('Text' + (cpage)).style.visibility= "hidden";
			}
		}
		if (section=="interview"){
			if (cpage !=0 && cpage !=1 && cpage !=2 && cpage !=3 && cpage !=4 && cpage !=5 && cpage !=6 && cpage !=7 && cpage !=8 && cpage !=9 && cpage !=10 && cpage !=11 && cpage !=12 && cpage !=13 && cpage !=14 && cpage !=15 && cpage !=16 && cpage !=17 && cpage !=20 && cpage !=22 && cpage !=24 && cpage !=25){
				document.getElementById('Text' + (cpage)).style.visibility= "hidden";
			}
		}
		if (section=="conclusion"){
			//currently no pages with animated text
		}
	}
}

//******************************************************************************************
//******************************************************************************************
