
function ShowGlossary()
{
newWindow=window.open("EHP01glossary.htm","Glossary","toolbar=no,location=no,directories=no,status=no,scrollbars=yes,menubar=no,resizable=no,width=780,height=500,left=0,top=0");
if (newWindow.opener == null) {newWindow.opener = window};
}

function ShowHelp()
{
newWindow=window.open("EHP01help.htm","Help","toolbar=no,location=no,directories=no,status=no,scrollbars=yes,menubar=no,resizable=no,width=780,height=500,left=0,top=0");
if (newWindow.opener == null) {newWindow.opener = window};
}

function ShowResources(file)
{
newWindow=window.open(file,"Resources","toolbar=no,location=no,directories=no,status=no,scrollbars=yes,menubar=no,resizable=yes,width=772,height=500,left=10,top=10");
if (newWindow.opener == null) {newWindow.opener = window};
}

function ShowAccessibility()
{
newWindow=window.open("http://training.fema.gov/508.html","Accessibility","toolbar=yes,location=yes,directories=no,status=no,scrollbars=yes,menubar=yes,resizable=yes,width=730,height=500,left=50,top=20");
if (newWindow.opener == null) {newWindow.opener = window};
}

function ShowCourseMap()
{
	ok = confirm('Going back to the Course Map closes this window and brings you back to the Course Map.\n\nIf you close this window now, you will not get credit for this lesson/topic. \n\nAre you sure you want to leave?')
	if(ok == true){javascript:top.close();}

}

function ShowCourseMapComplete()
{
	ok = confirm('Going back to the Course Map closes this window and brings you back to the Course Map.\n\nSince you have completed this lesson/topic, it\'s OK, you\'ve already received credit. \n\nAre you sure you want to leave?')
	if(ok == true){javascript:top.close();}

}

function GoNext()
{
if(NextPage == 'done' || NextPage == '')
	{
		//location.href="../index.htm";
	}
else
	{location.href=NextPage;}
}

function GoPrev()
{
if(PrevPage == 'done' || PrevPage == '')
	{
		//location.href="../index.htm";
	}
else
	{location.href=PrevPage;}
}

function OpenFlash(file)
{
vwidth = 370;
vheight = 318;
sWidth = screen.width;
tWidth = (sWidth/2);
hWidth = (vwidth/2);
uWidth = (tWidth-hWidth);

newWindow=window.open(file,"Presentation","toolbar=no,location=no,directories=no,status=no,scrollbars=no,menubar=no,resizable=no,width=" + vwidth + ",height=" + vheight + ",left=" + uWidth + ",top=20");
if (newWindow.opener == null) {newWindow.opener = window};
}


function OpenScript(file)
{
vwidth = 615;
vheight = 500;
sWidth = screen.width;
tWidth = (sWidth/2);
hWidth = (vwidth/2);
uWidth = (tWidth-hWidth);

newWindow=window.open(file,"Transcript","toolbar=no,location=no,directories=no,status=no,scrollbars=yes,menubar=no,resizable=no,width=" + vwidth + ",height=" + vheight + ",left=" + uWidth + ",top=20");
if (newWindow.opener == null) {newWindow.opener = window};
}




function SendMe(url)
{
vwidth = 750;
vheight = 460;
sWidth = screen.width;
tWidth = (sWidth/2);
hWidth = (vwidth/2);
uWidth = (tWidth-hWidth);

newSite=window.open("","ExternalSite","toolbar=yes,location=yes,directories=no,status=no,scrollbars=yes,menubar=yes,resizable=yes,width=" + vwidth + ",height=" + vheight + ",left=" + uWidth + ",top=0");
if (newSite != null)
	{
		if (newSite.opener == null) {FBwin.opener = window};
		newSite.document.write('<html><head><title>Resource &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</title>');
		newSite.document.write('</head><link rel="stylesheet" href="files/Feedback.css">');
		newSite.document.write('<body bgcolor="white" onload="self.focus()" leftMargin=0 topMargin=0 MARGINWIDTH="0" MARGINHEIGHT="0">');
		newSite.document.write('<TABLE WIDTH="100%" BORDER=0 CELLPADDING=0 CELLSPACING=0><TR><TD><IMG SRC="images/SendMe_01.gif" WIDTH=612 HEIGHT=46 ALT=""></TD><TD><a href="javascript:self.close()" onMouseOver="document.content1.src=\'images/SendMeHi_02.gif\';" onMouseOut="document.content1.src=\'images/SendMe_02.gif\';"><IMG SRC="images/SendMe_02.gif" WIDTH="109" HEIGHT="46" ALT="Close" name="content1" border="0"></a></TD><TD background="images/SendMe_03.gif" WIDTH="100%" HEIGHT=46>&nbsp;</TD></TR></TABLE>');
		newSite.document.write('<p style="padding-left: 10px;"><b>You are now exiting the FEMA Web Site.</b>  <p style="padding-left: 10px;">You will now be entering the site: ' + url + '  <p style="padding-left: 10px;">We have provided a link to this site because it has information that may be of interest to our viewers. <ul>	<li>FEMA does not necessarily endorse the views expressed or the facts presented on this site.  </li>	<li>FEMA does not endorse any commercial products that may be advertised or on this site. </li>	<li>The FEMA Privacy Notice Policy does not apply on this site. Please check the site for its Privacy Notice.  </li></ul><p style="padding-left: 10px;">When you\'re done, close the window by clicking on the little X in the upper-right hand corner of the window.');
		newSite.document.write('<p style="padding-left: 10px;"><a href="');
		newSite.document.write(url);
		newSite.document.write('">Click on this link to view the requested Internet resource.</a><br>');
		newSite.document.write('</body></html>');
		newSite.document.close();
	}	
}



function SendMeFEMA(url)
{
vwidth = 750;
vheight = 460;
sWidth = screen.width;
tWidth = (sWidth/2);
hWidth = (vwidth/2);
uWidth = (tWidth-hWidth);

newSite=window.open("","ExternalSite","toolbar=yes,location=yes,directories=no,status=no,scrollbars=yes,menubar=yes,resizable=yes,width=" + vwidth + ",height=" + vheight + ",left=" + uWidth + ",top=0");
if (newSite != null)
	{
		if (newSite.opener == null) {FBwin.opener = window};
		newSite.document.write('<html><head><title>Resource &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</title>');
		newSite.document.write('</head><link rel="stylesheet" href="files/Feedback.css">');
		newSite.document.write('<body bgcolor="white" onload="self.focus()" leftMargin=0 topMargin=0 MARGINWIDTH="0" MARGINHEIGHT="0">');
		newSite.document.write('<TABLE WIDTH="100%" BORDER=0 CELLPADDING=0 CELLSPACING=0><TR><TD><IMG SRC="images/SendMe_01.gif" WIDTH=612 HEIGHT=46 ALT=""></TD><TD><a href="javascript:self.close()" onMouseOver="document.content1.src=\'images/SendMeHi_02.gif\';" onMouseOut="document.content1.src=\'images/SendMe_02.gif\';"><IMG SRC="images/SendMe_02.gif" WIDTH="109" HEIGHT="46" ALT="Close" name="content1" border="0"></a></TD><TD background="images/SendMe_03.gif" WIDTH="100%" HEIGHT=46>&nbsp;</TD></TR></TABLE>');
		newSite.document.write('<p style="padding-left: 10px;">We\'re opening a new browser window to view this FEMA resource in.  <p style="padding-left: 10px;">When you\'re done, close the window by clicking on the little X in the upper-right hand corner of the window.');
		newSite.document.write('<p style="padding-left: 10px;"><a href="');
		newSite.document.write(url);
		newSite.document.write('">Click on this link to view the requested FEMA resource.</a><br>');
		newSite.document.write('</body></html>');
		newSite.document.close();
	}	
}


function SendMeLocal(file)
{
vwidth = 750;
vheight = 460;
sWidth = screen.width;
tWidth = (sWidth/2);
hWidth = (vwidth/2);
uWidth = (tWidth-hWidth);

localSite=window.open("","LocalPage","toolbar=yes,location=no,directories=no,status=no,scrollbars=yes,menubar=yes,resizable=yes,width=" + vwidth + ",height=" + vheight + ",left=" + uWidth + ",top=0");
if (localSite != null)
	{
		if (localSite.opener == null) {FBwin.opener = window};
		localSite.document.write('<html><head><title>Resource &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</title>');
		localSite.document.write('</head><link rel="stylesheet" href="files/Feedback.css">');
		localSite.document.write('<body bgcolor="white" onload="self.focus()" leftMargin=0 topMargin=0 MARGINWIDTH="0" MARGINHEIGHT="0">');
		localSite.document.write('<TABLE WIDTH="100%" BORDER=0 CELLPADDING=0 CELLSPACING=0><TR><TD><IMG SRC="images/SendMe_01.gif" WIDTH=612 HEIGHT=46 ALT=""></TD><TD><a href="javascript:self.close()" onMouseOver="document.content1.src=\'images/SendMeHi_02.gif\';" onMouseOut="document.content1.src=\'images/SendMe_02.gif\';"><IMG SRC="images/SendMe_02.gif" WIDTH="109" HEIGHT="46" ALT="Close" name="content1" border="0"></a></TD><TD background="images/SendMe_03.gif" WIDTH="100%" HEIGHT=46>&nbsp;</TD></TR></TABLE>');
		localSite.document.write('<p style="padding-left: 10px;">We\'re opening a new browser window to view this resource in.  <p style="padding-left: 10px;">When you\'re done, close the window by clicking on the little X in the upper-right hand corner of the window.');
		localSite.document.write('<p style="padding-left: 10px;"><a href="');
		localSite.document.write(file);
		localSite.document.write('">Click on this link to view the requested local resource.</a><br>');
		localSite.document.write('</body></html>');
		localSite.document.close();
	}	
}


function PopUpSize(howWide,howHigh,what)
{
	
vwidth = howWide;
vheight = howHigh;
sWidth = screen.width;
tWidth = (sWidth/2);
hWidth = (vwidth/2);
uWidth = (tWidth-hWidth);

	Hintwin=window.open("","detail","toolbar=no,location=no,directories=no,status=no,scrollbars=yes,menubar=no,resizable=yes,width=" + vwidth + ",height=" + vheight + ",left=" + uWidth + ",top=50");
	if (Hintwin != null)
	{
		if (Hintwin.opener == null) {FBwin.opener = window};
		Hintwin.document.write('<html><head><title>Detailed Information &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</title>');
		Hintwin.document.write('</head><link rel="stylesheet" href="files/Feedback.css">');
		Hintwin.document.write('<body bgcolor="white" onload="self.focus()">');
		Hintwin.document.write(what);
		Hintwin.document.write('<p><CENTER><A HREF="javascript:parent.self.close()"><IMG SRC="images/close.gif" WIDTH=60 HEIGHT=29 BORDER=0 ALT="Click here to close this window"></A></CENTER><br>');
		Hintwin.document.write('</body></html>');
		Hintwin.document.close();
	}	
}

function showDefShort(vDef)
{
	
vwidth = 350;
vheight = 300;
sWidth = screen.width;
tWidth = (sWidth/2);
hWidth = (vwidth/2);
uWidth = (tWidth-hWidth);

	Hintwin=window.open("","detail","toolbar=no,location=no,directories=no,status=no,scrollbars=yes,menubar=no,resizable=yes,width=" + vwidth + ",height=" + vheight + ",left=" + uWidth + ",top=50");
	if (Hintwin != null)
	{
		if (Hintwin.opener == null) {FBwin.opener = window};
		Hintwin.document.write('<html><head><title>Detailed Information &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</title>');
		Hintwin.document.write('</head><link rel="stylesheet" href="files/Feedback.css">');
		Hintwin.document.write('<body bgcolor="white" onload="self.focus()">');
		Hintwin.document.write(vDef);
		Hintwin.document.write('<p><CENTER><A HREF="javascript:parent.self.close()"><IMG SRC="images/close.gif" WIDTH=60 HEIGHT=29 BORDER=0 ALT="Click here to close this window"></A></CENTER><br>');
		Hintwin.document.write('</body></html>');
		Hintwin.document.close();
	}	
}



function showDefLongOld(vDef)
{
	
vwidth = 600;
vheight = 400;
sWidth = screen.width;
tWidth = (sWidth/2);
hWidth = (vwidth/2);
uWidth = (tWidth-hWidth);

	Hintwin=window.open("","detail","toolbar=no,location=no,directories=no,status=no,scrollbars=yes,menubar=no,resizable=yes,width=" + vwidth + ",height=" + vheight + ",left=" + uWidth + ",top=50");
	if (Hintwin != null)
	{
		if (Hintwin.opener == null) {FBwin.opener = window};
		Hintwin.document.write('<html><head><title>Detailed Information &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</title>');
		Hintwin.document.write('</head><link rel="stylesheet" href="files/Feedback.css">');
		Hintwin.document.write('<body bgcolor="white" onload="self.focus()">');
		Hintwin.document.write(vDef);
		Hintwin.document.write('<p><CENTER><A HREF="javascript:parent.self.close()"><IMG SRC="images/close.gif" WIDTH=60 HEIGHT=29 BORDER=0 ALT="Click here to close this window"></A></CENTER><br>');
		Hintwin.document.write('</body></html>');
		Hintwin.document.close();
	}	
}


function showDefLong(vDef)
{
	
vwidth = 600;
vheight = 400;
sWidth = screen.width;
tWidth = (sWidth/2);
hWidth = (vwidth/2);
uWidth = (tWidth-hWidth);

	Hintwin=window.open("","detail","toolbar=no,location=no,directories=no,status=no,scrollbars=yes,menubar=no,resizable=yes,width=" + vwidth + ",height=" + vheight + ",left=" + uWidth + ",top=50");
	if (Hintwin != null)
	{
		if (Hintwin.opener == null) {FBwin.opener = window};
		Hintwin.document.write('<html><head><title>Detailed Information &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</title>');
		Hintwin.document.write('</head><link rel="stylesheet" href="files/Feedback.css">');
		Hintwin.document.write('<body bgcolor="white" onload="self.focus()" LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>');
		Hintwin.document.write('<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr>	<td><img src="images/details_01.gif" width="350" height="46" alt="Details" border="0"></td>	<td><img src="images/resources_02.gif" width="27" height="46" alt="" border="0"></td>	<td><a href="javascript:self.print()" onMouseOver="document.r1.src=\'images/resourcesHi_03.gif\';" onMouseOut="document.r1.src=\'images/resources_03.gif\';"><img src="images/resources_03.gif" width="102" height="46" alt="Print" border="0" name="r1"></td>	<td><a href="javascript:self.close()" onMouseOver="document.r2.src=\'images/resourcesHi_04.gif\';" onMouseOut="document.r2.src=\'images/resources_04.gif\';"><img src="images/resources_04.gif" width="93" height="46" alt="Close" border="0" name="r2"></td>	<td width="100%" background="images/resources_02.gif">&nbsp;</td></tr></table>');
		Hintwin.document.write('<table width="100%" border="0" cellspacing="0" cellpadding="12"><tr bgcolor="#FFFFFF">	<td><p>');
		Hintwin.document.write(vDef);
		Hintwin.document.write('</td></tr></table>');
		Hintwin.document.write('<p><CENTER><A HREF="javascript:parent.self.close()"><IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=1 BORDER=0 ALT="Click here to close this window"></A></CENTER><br>');
		Hintwin.document.write('</body></html>');
		Hintwin.document.close();
	}	
}



function showTrans(vNar)
{
vwidth = 500;
vheight = 420;
sWidth = screen.width;
tWidth = (sWidth/2);
hWidth = (vwidth/2);
uWidth = (tWidth-hWidth);

	Hintwin=window.open("","detail","toolbar=no,location=no,directories=no,status=no,scrollbars=yes,menubar=no,resizable=yes,width=" + vwidth + ",height=" + vheight + ",left=" + uWidth + ",top=50");
	if (Hintwin != null)
	{
		if (Hintwin.opener == null) {FBwin.opener = window};
		Hintwin.document.write('<html><head><title>Text Version of Transcript &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</title>');
		Hintwin.document.write('</head>');
		Hintwin.document.write('<body bgcolor="white">');
		Hintwin.document.write('<font face="arial" size="-1">');		
		Hintwin.document.write(vNar);
		Hintwin.document.write('<p><CENTER><A HREF="javascript:parent.self.close()"><IMG SRC="images/close.gif" WIDTH="60" HEIGHT="29" BORDER="0" ALT="Click here to close this window"></A></CENTER><br>');
		Hintwin.document.write('</font></body></html>');
		Hintwin.document.close();
	}	
}

function doLong(extFile)
{
alert('The link you clicked will open a new browser window.  When you are done viewing the information in that new window, close the window to return to the lesson page.');
	
vwidth = 430;
vheight = 300;
sWidth = screen.width;
tWidth = (sWidth/2);
hWidth = (vwidth/2);
uWidth = (tWidth-hWidth);

	descWin=window.open(extFile,"detail","toolbar=no,location=no,directories=no,status=no,scrollbars=yes,menubar=no,resizable=yes,width=" + vwidth + ",height=" + vheight + ",left=" + uWidth + ",top=50");
}

function doSupp(extFile)
{
alert('The link you clicked will open a new browser window.  When you are done viewing the information in that new window, close the window to return to the lesson page.');
	
vwidth = 600;
vheight = 400;
sWidth = screen.width;
tWidth = (sWidth/2);
hWidth = (vwidth/2);
uWidth = (tWidth-hWidth);

	suppWin=window.open(extFile,"supp","toolbar=no,location=no,directories=no,status=no,scrollbars=yes,menubar=yes,resizable=yes,width=" + vwidth + ",height=" + vheight + ",left=" + uWidth + ",top=50");
}

function doFull(extFile)
{
alert('The link you clicked will open a new browser window.  When you are done viewing the information in that new window, close the window to return to the lesson page.');

	fullWin=window.open(extFile,"full","toolbar=yes,location=yes,directories=no,status=yes,scrollbars=yes,menubar=yes,resizable=yes,left=50,top=50");
}

