//need to fix that when mouse is over reasons in column 2, it displays "examples" on top. //prefixes B,D,Z,R are most affected container = parent.parent.frames[1]; heightScr=screen.height; sectnInfo = 1; frst = 1; var noExamp; var sent; var recd; var rcd; var recdVal; var inr; function selInb(sent) { recd = sent; var chpsct = container.document.displayForm.initValue.value; var chp = chpsct.substring(0,1); if ((chp == "B") || (chp == "D") || (chp == "E") || (chp == "R")) { if ((sent == "R") || (sent == "RT")) { noReasExamp('A'); } if ((sent == "E") || (sent == "ET")) { noReasExamp('E'); } } else if (chp == "Z") { if ((sent == "R") || (sent == "RT")) { noReasExamp('Z'); } } else if (chp == "X") { recd = sent; } else if (chp == "N") { if ((sent == "R") || (sent == "RT")) { recd = sent; } if ((sent == "E") || (sent == "ET")) { noReasExamp('E'); } } else { if ((sent == "R") || (sent == "RT")) { noReasExamp('R'); } if ((sent == "E") || (sent == "ET")) { noReasExamp('E'); } }; if (((chp == "Z")&&((sent == "E")||(sent == "ET")))||(chp == "X")||((chp == "N")&&((sent == "R") || (sent == "RT")))) { if (parent.frames[2].document.title=='threepart') { initValue = container.document.displayForm.initValue.value; var hasher = initValue; var exampfile = initValue; parent.parent.frames[2].frames[0].location='ProdCode.php#'+hasher; //@@ } else { // (frmcnt == 1) parent.frames[2].location='no3index.php'; } setTimeout("resumeA(recd)",1500); } } function dispMsg(sct) { var pro = sct.substring(1); var pro2 = pro.split("p"); var pro3 = pro2[0]; var exa = pro2[1]; container.document.displayForm.initValue.value = sct; if (pro3 == "GP") { container.document.displayForm.prodValue.value = "General Principles"; container.document.displayForm.examValue.value = "General Principle " + exa; } else{ container.document.displayForm.prodValue.value = "item " + pro3; container.document.displayForm.examValue.value = "provision " + pro3 + "." + exa; } noExamp = sct.substring(0,1); topDisplay(); } function topDisplay() { if (noExamp == "X") { parent.parent.frames[0].location='topsel.php'; }; if (noExamp == "Z") { parent.parent.frames[0].location='topNoReas.php'; }; if ((noExamp == "B") || (noExamp == "D") || (noExamp == "E")) { parent.parent.frames[0].location='toprreg.php'; }; if (noExamp == "R") { parent.parent.frames[0].location='topreg.php'; }; if ((noExamp == "A") || (noExamp == "G") || (noExamp == "J") || (noExamp == "K") || (noExamp == "L")) { parent.parent.frames[0].location='toptext.php'; }; if (noExamp == "N") { parent.parent.frames[0].location='topsplit.php'; }; return; } function noReasExamp(inr) { if (inr == "R") { alert("You did not select a section, or:\n\n" + "Your mouse is not over a passage that has Reasons and Examples " + "(such as the Preamble or Introduction, or the Reasons section itself), or:\n\n" + "Some unexpected issue prompted this message."); }; if (inr == "A") { alert("You already have the Reasons section\n" + "on the screen. Clicking the [R] box will\n" + "not make it appear in column 2 as\n" + "well. You don't need a duplicate copy\n" + "of the same thing on screen at one time!"); }; if (inr == "E") { alert("Examples are not available for this\n" + "passage. Move the mouse to a passage\n" + "that displays an appropriate message at\n" + "the top of the browser display before\n" + "clicking [E] or [R]. Be careful not\n" + "to move the mouse into another\n" + "paragraph before clicking."); }; if (inr == "Z") { alert("This passage has examples (You can see these\n" + "by clicking [E]). As you already have the\n" + "Reasons section on the screen, clicking the [R]\n" + "box does not make it appear in column 2 as well."); }; initValue = container.document.displayForm.initValue.value; var hasher = initValue; if (parent.frames[2].document.title=='threepart') { parent.parent.frames[2].frames[0].location='ProdCode.php#'+hasher; //@@ } else { // (frmcnt == 1) parent.frames[2].location='ProdCode.php#'+hasher; } } function onecol() { parent.parent.frames[0].location="topexam.php"; } function inreas() { parent.parent.frames[0].location="topreas.php"; } function openWn2(htmlname,width,height,scrolrs) { window.open(htmlname+".php","","status=no, top=25, left=25, width=" + width + ", height=" + height + ", toolbar=no, location=no, menubar=no, resizable=yes, scrollbars=" + scrolrs) } function openWnd(msg,wd,ht,scrollans,hash) { window.open(msg + "/" + msg + ".php" + hash,"","status=no,width=" + wd + ",height=" + ht + ",left=25,top=25,scrollbars=" + scrollans + ",toolbar=no,location=no,menubar=no,resizable=no") } function resumeA(rcd) { var recdVal = rcd; initValue = container.document.displayForm.initValue.value; var hasher = initValue; var exampfile = initValue; if (parent.frames[2].document.title=='threepart') { parent.parent.frames[2].frames[0].location='ProdCode.php#'+hasher; //@@ } var longprod = container.document.displayForm.prodValue.value; var pre = longprod.substring(1); var pre2 = pre.split(" "); var pro3 = pre2[1]; if ((recdVal == "E") || (recdVal == "ET")) { if(exampfile=="X1p1a"){exampfile="X1p1";} if(exampfile=="X1p1b"){exampfile="X1p1";} if(exampfile=="X1p1c"){exampfile="X1p1";} if(exampfile=="X1p1d"){exampfile="X1p1";} if(exampfile=="X1p2a"){exampfile="X1p2";} if(exampfile=="X1p2b"){exampfile="X1p2";} if(exampfile=="X1p2c"){exampfile="X1p2";} if(exampfile=="X1p2d"){exampfile="X1p2";} if(exampfile=="X1p10a"){exampfile="X1p10";} if(exampfile=="X1p10b"){exampfile="X1p10";} if(exampfile=="X1p9"){exampfile="X1p3";} if(exampfile=="X1p9a"){exampfile="X1p3";} if(exampfile=="X1p9b"){exampfile="X1p3";} if(exampfile=="X1p9c"){exampfile="X1p3";} if(exampfile=="X1p9f"){exampfile="X1p9e";} if(exampfile=="X2p2a"){exampfile="X2p2";} if(exampfile=="X2p2b"){exampfile="X2p2";} if(exampfile=="X2p2c"){exampfile="X2p2";} if(exampfile=="X2p3a"){exampfile="X2p3";} if(exampfile=="X2p3b"){exampfile="X2p3";} if(exampfile=="X2p5A"){exampfile="X2p5";} if(exampfile=="X5p1"){exampfile="X5p0";} if(exampfile=="X11p0"){exampfile="X11p1";} if(exampfile=="X11p2"){exampfile="X11p1";} if(exampfile=="X11p3"){exampfile="X11p1";} if(exampfile=="X11p2A"){exampfile="X11p1";} if(exampfile=="X12p3"){exampfile="X2Ap1";} if(exampfile=="X7p0"){exampfile="X6p4";} if(exampfile=="X7p1"){exampfile="X6p4";} if(exampfile=="X7p2"){exampfile="X6p4";} if(exampfile=="X9p4"){exampfile="X2p8";} if(exampfile=="X12p7"){exampfile="X2p8";} if(exampfile=="X12p2"){exampfile="X9p5";} if(exampfile=="X8p1"){exampfile="X8p0";} if(exampfile=="X8p2"){exampfile="X8p0";} if(exampfile=="X8p3"){exampfile="X8p0";} if(exampfile=="X9p1"){exampfile="X9p0";} if(exampfile=="X9p2"){exampfile="X9p0";} if(exampfile=="X9p3"){exampfile="X9p0";} if(exampfile=="X9p5"){exampfile="X9p0";} if(exampfile=="X10p1"){exampfile="X10p0";} if(exampfile=="X10p2"){exampfile="X10p0";} if(exampfile=="X10p3"){exampfile="X10p0";} if(exampfile=="ZR8p2"){exampfile="X8p0";} if(exampfile=="ZR2p5A"){exampfile="X2p5";} parent.parent.frames[2].frames[2].location=exampfile+'.php#'+hasher; //@@ parent.parent.frames[0].location='topexam.php'; //@@ rve = "E"; }; if ((recdVal == "R") || (recdVal == "RT")) { var hasher = initValue; var hashchp = pro3; parent.parent.frames[2].frames[2].location='reasons.php#C'+hashchp; //@@ rve = "R"; parent.parent.frames[0].location='topreas.php'; //@@ }; } function secondLoad() { parent.frames[2].location='ProdCode.php'; if (navigator.appName == "Netscape") if(!document.all && document.getElementById){ } else{ alert("This application has detected that\n" + "you are using Netscape. This\n" + "web site is not yet fully functional\n" + "in Netscape. Tooltips are not\n" + "operational, and procedures that change\n" + "the number of frames currently do\n" + "not work in Netscape. The operator\n" + "of this web site suggests that you\n" + "use Internet Explorer or (second best)\n" + "Firefox.");}; } function singleCol() { var hasher = container.document.displayForm.initValue.value; parent.parent.frames[2].location='ProdCode.php#'+hasher; //@@ parent.parent.frames[0].location='topsel.php'; //@@ } function chHst() { if (self==parent) { alert("You requested a URL of content that was designed\n" + "to be displayed within a frame of a larger window.\n" + "Any attempt to load this content without its\n" + "framing material will result in mouse-driven\n" + "functions and other links generating errors.\n" + "You will be redirected to prodcode.dhwritings.com."); top.location="http://prodcode.dhwritings.com"; return; } } function loadPC() { chHst(); } function nexp(hsh) { exampfile = hsh; self.location=exampfile+'.php'; parent.parent.frames[2].frames[0].location='ProdCode.php#'+exampfile; } function soleCol(hsh) { var hasher = hsh; parent.parent.frames[2].location='ProdCode.php#'+hasher; parent.parent.frames[0].location='topsel.php'; }