function clickReturn() {
	if (parent.name=='hasrchd') {
		parent.name='normal';
		top.document.location="../../index.html";
								}
	else
  	if (parent.name=="Review"||parent.name=="Revov")
		parent.close();
	return;			   }
function checkWindow() {
	if (document==parent.document) {
		fullUrl=document.location + "";
		suffix=fullUrl.indexOf("m.html");
		if (suffix > 0) {
			window.name='hasrchd';
			document.location = fullUrl.substring(0,suffix) + ".html";
			return false;
						}          }
	if (parent.name=='hasrchd') {
		document.images.rtn.src="../Images/home.gif";
		window.status='Welcome to the "Principles of Human Action" Course';						}
	else
	if (parent.name=="Review"||parent.name=="Revov") 
		document.images.rtn.src="../Images/rctreturn.gif";
	else
		window.status="--- Primary Course Window ---";
	return true;	   }
function checkSecWin() {
	if (window.name!="Details"&&window.name!="Dtls"
	  &&window.name!="Details2") {
		document.images.rtn.src="../Images/home.gif";
		window.status='Welcome to the "Principles of Human Action" Course';						 }
					   }
function rtnSecWin() {
	if (window.name=="Details"||window.name=="Dtls"
	  ||window.name=="Details2")
		parent.close();
	else
		top.document.location="../../index.html";
					 }
function getFeatureSize() {
	if (document.layers) // netscape
		featureSize = "";
	else {
		featureSize =  ",top=0,left=0";
		featureSize += ",height=" + (screen.availHeight - 22);
		featureSize += ",width="  + (screen.availWidth - 10);
		 }				  }
function getFeatureShortSize() {
	if (document.layers) // netscape
		featureSize = "";
	else {
		featureSize =  ",top=0,left=0";
		featureSize += ",height=" + (screen.availHeight - 135);
		featureSize += ",width="  + (screen.availWidth - 10);
		 }				  }
function clickReview() {
	getFeatureSize();
	features = "toolbar=0,status=0,resizable=1,scrollbars=1" + featureSize;
	winRev=window.open("../cc/HDRev.html", "Review", features);
	return;			   }
function clickPageRef(ref) {
	getFeatureSize();
	features = "scrollbars=1,toolbar=0,status=0,resizable=1" + 
		featureSize;
	winRev=window.open(ref + ".html", "Review", features);
	return;			   	   }
function clickDetails(ref) {
	getFeatureSize();
	features = "scrollbars=1,toolbar=0,status=0,resizable=1" + 
		featureSize;
	winRev=window.open(ref + ".html", "Details", features);
	return;                }
function hdg(title,pagenbr) {
	top.frames[0].document.open();
	htmlStr='<html><body bgcolor=';
	if (pagenbr.substring(0,1)==1)
		{htmlStr+="#000099"; fntcolor="#cccc66";}
	else
	if (pagenbr.substring(0,1)==2)
		{htmlStr+="#007700"; fntcolor="#e0e0ff";}
	else
	if (pagenbr.substring(0,1)==3)
		{htmlStr+="#990099"; fntcolor="#e0e0ff";}
	else
	if (pagenbr.substring(0,1)==4)
		{htmlStr+="#e80000"; fntcolor="#eeee88";}
	else // pagenbr.substring(0,1)==5
		{htmlStr+="#00a0a0"; fntcolor="#ffffff";}
	htmlStr+='><table width=100% cellpadding="0" cellspacing="0"><tr valign="middle"><td><span style="font-family: verdana, sans-serif, helvetica;"><b><i><font color="';
	htmlStr+=fntcolor;
	htmlStr+='" size=';
	if (pagenbr.length < 4) // section heading
		htmlStr+='5>';
	else
		htmlStr+='3>';
	htmlStr+=title;
	htmlStr+='</font></span></td><td align="right"><span style=\"font-family: verdana, sans-serif, helvetica\"><b><font color="';
	htmlStr+=fntcolor;
	htmlStr+='" size=3>p.&nbsp;';
	htmlStr+=pagenbr;
	htmlStr+='</font></i></b></span></td></tr></table>'; 
	top.frames[0].document.write(htmlStr);
	top.frames[0].document.close();
	return;					}
function wMsg(msgline) {
	writeMsg('<span style="font-family: verdana, sans-serif, helvetica; font-size:12pt"><b><font color=Red>Please reconsider your answer!</font></b>  </span>' + msgline);
	return;		   	   }
function rMsg(msgline,nlnk) {
	writeMsg('<span style="font-family: verdana, sans-serif, helvetica; font-size:12pt"><b><font color=Green>Right!&nbsp;&nbsp;</font></b></span>' + msgline + ' &nbsp;&nbsp;&nbsp;&nbsp;<a href="' + nlnk + '.html" target=_top><img src="../Images/greenarrow.gif" width="30" height="20" border="0" alt="Next page" align="absmiddle"></a>');
	return;		   	   		}
function writeMsg(msg){
	parent.frames[2].document.open();
	htmlStr="<html><body bgcolor=#ffffcc><span style=\"font-family: verdana, sans-serif, helvetica; font-size:10pt\">"+msg+"</span></body></html>";
	parent.frames[2].document.write(htmlStr);
	parent.frames[2].document.close();
	return;			  }
function externalURL(ref) {
	if (ref == 'IOE')
		ref='http://www.lfb.com/index.php?stocknumber=AR5245';
	if (ref == 'OPAR')
		ref='http://www.lfb.com/index.php?stocknumber=OB5918';
	if (ref == 'VOS')
		ref='http://www.lfb.com/index.php?stocknumber=AR0161';
	if (ref == 'CUI')
		ref='http://www.lfb.com/index.php?stocknumber=AR0162';
	if (ref == 'AS')
		ref='http://www.lfb.com/index.php?stocknumber=AR0169';
	if (ref == 'EOL')
		ref='http://www.lfb.com/index.php?stocknumber=HH7135';
	if (ref == 'AGD')
		ref='http://www.lfb.com/index.php?stocknumber=MR0145';
	if (ref == 'RAC')
		ref='http://www.lfb.com/index.php?stocknumber=TS7027';
	if (ref == 'RTS')
		ref='http://www.lfb.com/index.php?stocknumber=FA6155';
	if (ref == 'MES')
		ref='http://www.lfb.com/index.php?stocknumber=MR8786';
	if (ref == 'PAM')
		ref='http://www.lfb.com/index.php?stocknumber=MR0566';
	if (ref == 'PC')
		ref='http://www.lfb.com/index.php?stocknumber=LV7363';
	if (ref == 'FNI')
		ref='http://www.lfb.com/index.php?stocknumber=AR0164';
	return ref;           }
