var phsn_ISBNOID='0-328-17699-0' function pageno() { var a; var a1; var d; var tfilename; var tfilename1; var fileLocation; fileLocation = window.location.href; tfilename=fileLocation.substring(fileLocation.lastIndexOf("/")+1); tfilename1=tfilename.substring(0,tfilename.length-5); var dot=tfilename1.indexOf(".") if (dot==-1) { a= tfilename1; } else { a= tfilename1.substr(0,dot); } a=a.replace("_","–"); var zero=a.indexOf("0"); if (zero==0) { a= a.substr(1); zero=a.indexOf("0"); if (zero==0) { a= a.substr(1); } var ndash=a.indexOf("–"); if (zero!=-1) { a= a.replace("–0","–"); a= a.replace("–0","–"); } } if(a=="vi1" || a=="vi2") { a="vi"; document.write("p."+" " + a); } else if(a=="viii4" || a=="viii5") { a="viii"; document.write("p."+" " + a); } else if(a=="xiv11" || a=="xiv12") { a="xiv"; document.write("p."+" " + a); } else if(a=="xviii16" || a=="xviii17") { a="xviii"; document.write("p."+" " + a); } else { document.write("p."+" " + a); } } /*******For handling the keycode for Internet explorer */ function handler(evnt) { x=document.itextmyform.txtgoto.value; if (document.layers) { keycd = evnt.which; } else { if (document.all) { evnt = window.event; keycd = evnt.keyCode; } if (keycd==13 || keycd==3) { Goto_Page(); } } } /*end */ /*****************for Capture the keypress events */ function blockA(e) { x=document.itextmyform.txtgoto.value; if (e.which==13 && x=="") { window.location.href= window.location.href; document.itextmyform.self; document.itextmyform.focus; window.location.href= window.location.href; } else if (e.which==13 || e.which==3 ) { Goto_Page(); } } /* end capture events */ /*This function for checking the IE version and Netscape above four version */ function gotoie() { if (navigator.appName == "Microsoft Internet Explorer") { if(window.event.keyCode==13 || window.event.keyCode==3) { Goto_Page(); return true; } } else if (navigator.appName == "Netscape" && parseInt(navigator.appVersion) >= 4) { if(window.event.keyCode==13 || window.event.keyCode==3) { Goto_Page(); return true; } } else { Goto_Page(); return true; } } /* For Print Page */ function suffixPrintPage(fname) { var strLen; var i; var strFileName= new String(""); var strRet = new String(""); var strCharCode; var bContinue; strLen=fname.length; fname= fname.toUpperCase(); i=strLen; bContinue=1; while(i>=1 && bContinue==1) { strCharCode=fname.charCodeAt(i-1); if ((strCharCode >= 65) && (strCharCode <= 90)) { strFileName+= fname.substr(i-1,1); bContinue=1; } else { bContinue=0; } i=i-1; } strLen=strFileName.length; for (i=strLen;i>=1;i--) { strRet+=strFileName.substr(i-1,1); } return strRet; } function prefixPrintPage(fname) { var strLen; var i; var strFileName= new String(""); var strRet = new String(""); var strCharCode; var bContinue; strLen=fname.length; fname= fname.toUpperCase(); i=1; bContinue=1; while(i<=strLen && bContinue==1) { strCharCode=fname.charCodeAt(i-1); if ((strCharCode >= 65) && (strCharCode <= 90)) { strFileName+= fname.substr(i-1,1); bContinue=1; } else { bContinue=0; } i=i+1; } strRet=strFileName; return strRet; } //This function will pull the content into new window without template by referring the id of the table function Print_Page() { var fileLocation; var filePath; var tfilename; var tfilename1; var tfilename2; var path; var suffixString = new String(""); var prefixString = new String(""); // This block will remove the dynamic isbn script from the Content part of table. //New Block Start var contentPage=document.getElementById("mcontent"); strInnerHTML=contentPage.innerHTML; strInnerHTML=contentPage.innerHTML; var lngi; var lngj; var lnglen; var lngstartpos; var lngendpos; var findstring1; var findstring2; var strreplacedstring; var strfirstpart; var strsecondpart; var seclength; var totlength; var lngstrlen1; var lngstrlen2; var stemp=new String(""); strfindstring1="'); } else { newWindow.document.writeln(''); newWindow.document.writeln(''); } newWindow.document.writeln(''); newWindow.document.writeln(""); newWindow.document.writeln(""); newWindow.document.writeln("
"); newWindow.document.writeln("Click the print button from your browser."); newWindow.document.writeln("
"); newWindow.document.writeln(''); newWindow.document.writeln(''); newWindow.document.writeln(''); newWindow.document.writeln('
'); // newWindow.document.writeln(strInnerHTML); newWindow.document.writeln(contentPage.innerHTML); newWindow.document.writeln('
'); newWindow.document.write(""); } //This function is used to go to the page number given in Goto text box function Goto_Page() { var gotoValue; var fileLocation; var filePath; var path; var tfilename; var tfilename1; if(document.itextmyform.txtgoto.value.length == 0) { return; } gotoValue = document.itextmyform.txtgoto.value; gotoValue = gotoValue.toLowerCase(); gotoValue = lefttrim(gotoValue); gotoValue = righttrim(gotoValue); gotoValue = strformat(gotoValue); fileLocation = window.location.href; filePath = fileLocation.substring(0,fileLocation.lastIndexOf("/")+1); tfilename=fileLocation.substring(fileLocation.lastIndexOf("/")+1); tfilename1=tfilename.substring(0,tfilename.length-5); fileLocation=""; if (tfilename1.charCodeAt(0) >=48 && tfilename1.charCodeAt(0) <=57 ) { NewPath=filePath.substring(0,filePath.lastIndexOf("/")); NewPath=filePath.substring(NewPath.lastIndexOf("/")); if (NewPath.charCodeAt(0)==47 && NewPath.charCodeAt(1)==99 && NewPath.charCodeAt(2)==104) { path=filePath.substring(0,filePath.lastIndexOf("/")-10); } else { path=filePath; } } else if ((tfilename1=="index") || (tfilename1=="em1") || (tfilename1=="em2") || (tfilename1=="em3") || (tfilename1=="em4") || (tfilename1=="em5") || (tfilename1=="em6") || (tfilename1=="em7") || (tfilename1=="em8") || (tfilename1=="em9") || (tfilename1=="em10") || (tfilename1=="em11") || (tfilename1=="em12") || (tfilename1=="em13") || (tfilename1=="em14") || (tfilename1=="em15") || (tfilename1=="em16") || (tfilename1=="em17") || (tfilename1=="em18") || (tfilename1=="em19") || (tfilename1=="em20") || (tfilename1=="em21") || (tfilename1=="em22") || (tfilename1=="em23") || (tfilename1=="em24") || (tfilename1=="em25") || (tfilename1=="em26") || (tfilename1=="em27") || (tfilename1=="em28") || (tfilename1=="em29") || (tfilename1=="em30") || (tfilename1=="em31") || (tfilename1=="em32") || (tfilename1=="i") || (tfilename1=="ii") || (tfilename1=="iii") || (tfilename1=="iv")|| (tfilename1=="v") || (tfilename1=="vi") || (tfilename1=="vi1") || (tfilename1=="vi2") || (tfilename1=="vii") || (tfilename1=="viii") || (tfilename1=="viii4") || (tfilename1=="viii5") || (tfilename1=="ix") || (tfilename1=="x") || (tfilename1=="xi")|| (tfilename1=="xii") || (tfilename1=="xiii") || (tfilename1=="xiv") || (tfilename1=="xiv11") || (tfilename1=="xiv12") || (tfilename1=="xv") || (tfilename1=="xvi") || (tfilename1=="xvii") || (tfilename1=="xviii") || (tfilename1=="xviii16") || (tfilename1=="xviii17") || (tfilename1=="xix") || (tfilename1=="xx") || (tfilename1=="xxi") || (tfilename1=="xxii") || (tfilename1=="xxiii") || (tfilename1=="xxiv") || (tfilename1=="xxv") || (tfilename1=="xxvi") || (tfilename1=="xxvii") || (tfilename1=="xxviii") || (tfilename1=="xxix")|| (tfilename1=="xxx") || (tfilename1=="xxxi") || (tfilename1=="xxxii")) { path=filePath; } else { tfilename2=tfilename1.indexOf("."); tfilename3=tfilename1.substring(0,tfilename2); if(tfilename3=="a1" || tfilename3=="a2" || tfilename3=="a3" || tfilename3=="a4" || tfilename3=="afcat1" || tfilename3=="afcat2" || tfilename3=="afcat3" || tfilename3=="afcat4" || tfilename3=="b1" || tfilename3=="b2" || tfilename3=="b3" || tfilename3=="b4" || tfilename3=="bfcat1" || tfilename3=="bfcat2" || tfilename3=="bfcat3" || tfilename3=="bfcat4" || tfilename3=="c1" || tfilename3=="c2" || tfilename3=="c3" || tfilename3=="c4" || tfilename3=="cfcat1" || tfilename3=="cfcat2" || tfilename3=="cfcat3" || tfilename3=="cfcat4" || tfilename3=="d1" || tfilename3=="d2" || tfilename3=="d3" || tfilename3=="d4" || tfilename3=="dfcat1" || tfilename3=="dfcat2" || tfilename3=="dfcat3" || tfilename3=="dfcat4" || tfilename1=="a1" || tfilename1=="a2" || tfilename1=="a3" || tfilename1=="a4" || tfilename1=="afcat1" || tfilename1=="afcat2" || tfilename1=="afcat3" || tfilename1=="afcat4" || tfilename1=="b1" || tfilename1=="b2" || tfilename1=="b3" || tfilename1=="b4" || tfilename1=="bfcat1" || tfilename1=="bfcat2" || tfilename1=="bfcat3" || tfilename1=="bfcat4" || tfilename1=="c1" || tfilename1=="c2" || tfilename1=="c3" || tfilename1=="c4" || tfilename1=="cfcat1" || tfilename1=="cfcat2" || tfilename1=="cfcat3" || tfilename1=="cfcat4" || tfilename1=="d1" || tfilename1=="d2" || tfilename1=="d3" || tfilename1=="d4" || tfilename1=="dfcat1" || tfilename1=="dfcat2" || tfilename1=="dfcat3" || tfilename1=="dfcat4") { path=filePath.substring(0,filePath.lastIndexOf("/")-10); } else { path=filePath; } } if ((gotoValue >=1 && gotoValue <=608) || (gotoValue == "em1" || gotoValue == "em2" || gotoValue == "em3" || gotoValue == "em4" || gotoValue == "em5" || gotoValue=="em6" || gotoValue=="em7" || gotoValue=="em8" || gotoValue=="em9" || gotoValue=="em10" || gotoValue=="em11" || gotoValue=="em12" || gotoValue=="em13" || gotoValue=="em14" || gotoValue=="em15" || gotoValue=="em16" || gotoValue=="em17" || gotoValue=="em18" || gotoValue=="em19" || gotoValue=="em20" || gotoValue=="em21" || gotoValue=="em22" || gotoValue=="em23" || gotoValue=="em24" || gotoValue=="em25" || gotoValue=="em26" || gotoValue=="em27" || gotoValue=="em28" || gotoValue=="em29" ||gotoValue=="em30" || gotoValue=="em31" || gotoValue=="em32" || gotoValue=="i" || gotoValue=="ii" || gotoValue=="iii" || gotoValue=="iv"|| gotoValue=="v" || gotoValue=="vi" || gotoValue=="vi1" || gotoValue=="vi2" || gotoValue=="vii" || gotoValue=="viii" || gotoValue=="viii4" || gotoValue=="viii5" || gotoValue=="ix" || gotoValue=="x" || gotoValue=="xi"|| gotoValue=="xii" || gotoValue=="xiii" || gotoValue=="xiv" || gotoValue=="xiv11" || gotoValue=="xiv12" || gotoValue=="xv" || gotoValue=="xvi" || gotoValue=="xvii" || gotoValue=="xviii" || gotoValue=="xviii16" || gotoValue=="xviii17" || gotoValue=="xix" || gotoValue=="xx" || gotoValue=="xxi" || gotoValue=="xxii" || gotoValue=="xxiii" || gotoValue=="xxiv" || gotoValue=="xxv" || gotoValue=="xxvi" || gotoValue=="xxvii" || gotoValue=="xxviii" || gotoValue=="xxix"|| gotoValue=="xxx" || gotoValue=="xxxi" || gotoValue=="xxxii" || gotoValue=="a1" || gotoValue=="a2" || gotoValue=="a3" || gotoValue=="a4"|| gotoValue=="b1" || gotoValue=="b2" || gotoValue=="b3" || gotoValue=="b4" || gotoValue=="c1" || gotoValue=="c2" || gotoValue=="c3" || gotoValue=="c4"|| gotoValue=="d1" || gotoValue=="d2" || gotoValue=="d3" || gotoValue=="d4" || gotoValue=="afcat1" || gotoValue=="afcat2" || gotoValue=="afcat3" || gotoValue=="afcat4" || gotoValue=="bfcat1" || gotoValue=="bfcat2" || gotoValue=="bfcat3" || gotoValue=="bfcat4" || gotoValue=="cfcat1" || gotoValue=="cfcat2" || gotoValue=="cfcat3" || gotoValue=="cfcat4" || gotoValue=="dfcat1" || gotoValue=="dfcat2" || gotoValue=="dfcat3" || gotoValue=="dfcat4")) { /****chapter001 */ if ((gotoValue >= 1 && gotoValue <=32) || (gotoValue=="a1" || gotoValue=="a2" || gotoValue=="a3" || gotoValue=="a4")) { if(gotoValue ==2 || gotoValue == 3) { fileLocation=path + "unita/ch01" + "/" + "002_003" + ".html"; } else if(gotoValue ==16 || gotoValue == 17) { fileLocation=path + "unita/ch01" + "/" + "016_017" + ".html"; } else if(gotoValue ==26 || gotoValue == 27) { fileLocation=path + "unita/ch01" + "/" + "026_027" + ".html"; } else if(gotoValue ==28 || gotoValue == 29) { fileLocation=path + "unita/ch01" + "/" + "028_029" + ".html"; } else if(gotoValue =="a1") { fileLocation=path + "unita/ch01" + "/" + "a1" + ".html"; } else if(gotoValue =="a2") { fileLocation=path + "unita/ch01" + "/" + "a2" + ".html"; } else if(gotoValue =="a3") { fileLocation=path + "unita/ch01" + "/" + "a3" + ".html"; } else if(gotoValue =="a4") { fileLocation=path + "unita/ch01" + "/" + "a4" + ".html"; } else { fileLocation=path + "unita/ch01" + "/" + gotoValue + ".html"; } } /****chapter002 */ if (gotoValue >= 33 && gotoValue <= 56 ) { if(gotoValue ==34 || gotoValue == 35) { fileLocation=path + "unita/ch02" + "/" + "034_035" + ".html"; } else if(gotoValue ==48 || gotoValue == 49) { fileLocation=path + "unita/ch02" + "/" + "048_049" + ".html"; } else if(gotoValue ==50 || gotoValue == 51) { fileLocation=path + "unita/ch02" + "/" + "050_051" + ".html"; } else if(gotoValue ==52 || gotoValue == 53) { fileLocation=path + "unita/ch02" + "/" + "052_053" + ".html"; } else { fileLocation=path + "unita/ch02" + "/" + gotoValue + ".html"; } } /****chapter003 */ if (gotoValue >= 57 && gotoValue <=88 ) { if(gotoValue ==58 || gotoValue == 59) { fileLocation=path + "unita/ch03" + "/" + "058_059" + ".html"; } else if(gotoValue ==68 || gotoValue == 69) { fileLocation=path + "unita/ch03" + "/" + "068_069" + ".html"; } else if(gotoValue ==72 || gotoValue == 73) { fileLocation=path + "unita/ch03" + "/" + "072_073" + ".html"; } else if(gotoValue ==74 || gotoValue == 75) { fileLocation=path + "unita/ch03" + "/" + "074_075" + ".html"; } else if(gotoValue ==76 || gotoValue == 77) { fileLocation=path + "unita/ch03" + "/" + "076_077" + ".html"; } else if(gotoValue ==78 || gotoValue == 79) { fileLocation=path + "unita/ch03" + "/" + "078_079" + ".html"; } else if(gotoValue ==80 || gotoValue == 81) { fileLocation=path + "unita/ch03" + "/" + "080_081" + ".html"; } else if(gotoValue ==82 || gotoValue == 83) { fileLocation=path + "unita/ch03" + "/" + "082_083" + ".html"; } else { fileLocation=path + "unita/ch03" + "/" + gotoValue + ".html"; } } /****chapter004 */ if (gotoValue >= 89 && gotoValue <=120 ) { if(gotoValue ==90 || gotoValue == 91) { fileLocation=path + "unita/ch04" + "/" + "090_091" + ".html"; } else if(gotoValue ==114 || gotoValue == 115) { fileLocation=path + "unita/ch04" + "/" + "114_115" + ".html"; } else if(gotoValue ==116 || gotoValue == 117) { fileLocation=path + "unita/ch04" + "/" + "116_117" + ".html"; } else { fileLocation=path + "unita/ch04" + "/" + gotoValue + ".html"; } } /****chapter005 */ if (gotoValue >= 121 && gotoValue <=160 ) { if(gotoValue ==122 || gotoValue == 123) { fileLocation=path + "unita/ch05" + "/" + "122_123" + ".html"; } else if(gotoValue ==144 || gotoValue == 145) { fileLocation=path + "unita/ch05" + "/" + "144_145" + ".html"; } else if(gotoValue ==146 || gotoValue == 147) { fileLocation=path + "unita/ch05" + "/" + "146_147" + ".html"; } else if(gotoValue ==150 || gotoValue == 151) { fileLocation=path + "unita/ch05" + "/" + "150_151" + ".html"; } else if(gotoValue ==152 || gotoValue == 153) { fileLocation=path + "unita/ch05" + "/" + "152_153" + ".html"; } else if(gotoValue ==154 || gotoValue == 155) { fileLocation=path + "unita/ch05" + "/" + "154_155" + ".html"; } else if(gotoValue ==156 || gotoValue == 157) { fileLocation=path + "unita/ch05" + "/" + "156_157" + ".html"; } else { fileLocation=path + "unita/ch05" + "/" + gotoValue + ".html"; } } /****chapter006 */ if ((gotoValue >= 161 && gotoValue <=192 ) || (gotoValue=="afcat1" || gotoValue=="afcat2" || gotoValue=="afcat3" || gotoValue=="afcat4")) { if(gotoValue ==162 || gotoValue == 163) { fileLocation=path + "unita/ch06" + "/" + "162_163" + ".html"; } else if(gotoValue ==178 || gotoValue == 179) { fileLocation=path + "unita/ch06" + "/" + "178_179" + ".html"; } else if(gotoValue ==180 || gotoValue == 181) { fileLocation=path + "unita/ch06" + "/" + "180_181" + ".html"; } else if(gotoValue ==188 || gotoValue == 189) { fileLocation=path + "unita/ch06" + "/" + "188_189" + ".html"; } else if(gotoValue ==190 || gotoValue == 191) { fileLocation=path + "unita/ch06" + "/" + "190_191" + ".html"; } else if(gotoValue =="afcat1") { fileLocation=path + "unita/ch06" + "/" + "afcat1" + ".html"; } else if(gotoValue =="afcat2") { fileLocation=path + "unita/ch06" + "/" + "afcat2" + ".html"; } else if(gotoValue =="afcat3") { fileLocation=path + "unita/ch06" + "/" + "afcat3" + ".html"; } else if(gotoValue =="afcat4") { fileLocation=path + "unita/ch06" + "/" + "afcat4" + ".html"; } else { fileLocation=path + "unita/ch06" + "/" + gotoValue + ".html"; } } /****chapter007 */ if ((gotoValue >= 193 && gotoValue <=224) || (gotoValue=="b1" || gotoValue=="b2" || gotoValue=="b3" || gotoValue=="b4")) { if(gotoValue ==194 || gotoValue == 195) { fileLocation=path + "unitb/ch07" + "/" + "194_195" + ".html"; } else if(gotoValue ==206 || gotoValue == 207) { fileLocation=path + "unitb/ch07" + "/" + "206_207" + ".html"; } else if(gotoValue ==210 || gotoValue == 211) { fileLocation=path + "unitb/ch07" + "/" + "210_211" + ".html"; } else if(gotoValue ==216 || gotoValue == 217) { fileLocation=path + "unitb/ch07" + "/" + "216_217" + ".html"; } else if(gotoValue ==218 || gotoValue == 219) { fileLocation=path + "unitb/ch07" + "/" + "218_219" + ".html"; } else if(gotoValue =="b1") { fileLocation=path + "unitb/ch07" + "/" + "b1" + ".html"; } else if(gotoValue =="b2") { fileLocation=path + "unitb/ch07" + "/" + "b2" + ".html"; } else if(gotoValue =="b3") { fileLocation=path + "unitb/ch07" + "/" + "b3" + ".html"; } else if(gotoValue =="b4") { fileLocation=path + "unitb/ch07" + "/" + "b4" + ".html"; } else { fileLocation=path + "unitb/ch07" + "/" + gotoValue + ".html"; } } /****chapter008 */ if (gotoValue >= 225 && gotoValue <=256 ) { if(gotoValue ==226 || gotoValue == 227) { fileLocation=path + "unitb/ch08" + "/" + "226_227" + ".html"; } else if(gotoValue ==238 || gotoValue == 239) { fileLocation=path + "unitb/ch08" + "/" + "238_239" + ".html"; } else if(gotoValue ==250 || gotoValue == 251) { fileLocation=path + "unitb/ch08" + "/" + "250_251" + ".html"; } else if(gotoValue ==252 || gotoValue == 253) { fileLocation=path + "unitb/ch08" + "/" + "252_253" + ".html"; } else { fileLocation=path + "unitb/ch08" + "/" + gotoValue + ".html"; } } /****chapter009 */ if (gotoValue >= 257 && gotoValue <=296 ) { if(gotoValue ==258 || gotoValue == 259) { fileLocation=path + "unitb/ch09" + "/" + "258_259" + ".html"; } else if(gotoValue ==266 || gotoValue == 267) { fileLocation=path + "unitb/ch09" + "/" + "266_267" + ".html"; } else if(gotoValue ==270 || gotoValue == 271) { fileLocation=path + "unitb/ch09" + "/" + "270_271" + ".html"; } else if(gotoValue ==274 || gotoValue == 275) { fileLocation=path + "unitb/ch09" + "/" + "274_275" + ".html"; } else if(gotoValue ==278 || gotoValue == 279) { fileLocation=path + "unitb/ch09" + "/" + "278_279" + ".html"; } else if(gotoValue ==286 || gotoValue == 287) { fileLocation=path + "unitb/ch09" + "/" + "286_287" + ".html"; } else if(gotoValue ==290 || gotoValue == 291) { fileLocation=path + "unitb/ch09" + "/" + "290_291" + ".html"; } else if(gotoValue ==292 || gotoValue == 293) { fileLocation=path + "unitb/ch09" + "/" + "292_293" + ".html"; } else { fileLocation=path + "unitb/ch09" + "/" + gotoValue + ".html"; } } /****chapter010 */ if ((gotoValue >= 297 && gotoValue <=336) || (gotoValue=="bfcat1" || gotoValue=="bfcat2" || gotoValue=="bfcat3" || gotoValue=="bfcat4")) { if(gotoValue ==298 || gotoValue == 299) { fileLocation=path + "unitb/ch10" + "/" + "298_299" + ".html"; } else if(gotoValue ==304 || gotoValue == 305) { fileLocation=path + "unitb/ch10" + "/" + "304_305" + ".html"; } else if(gotoValue ==306 || gotoValue == 307) { fileLocation=path + "unitb/ch10" + "/" + "306_307" + ".html"; } else if(gotoValue ==310 || gotoValue == 311) { fileLocation=path + "unitb/ch10" + "/" + "310_311" + ".html"; } else if(gotoValue ==322 || gotoValue == 323) { fileLocation=path + "unitb/ch10" + "/" + "322_323" + ".html"; } else if(gotoValue ==324 || gotoValue == 325) { fileLocation=path + "unitb/ch10" + "/" + "324_325" + ".html"; } else if(gotoValue ==332 || gotoValue == 333) { fileLocation=path + "unitb/ch10" + "/" + "332_333" + ".html"; } else if(gotoValue ==334 || gotoValue == 335) { fileLocation=path + "unitb/ch10" + "/" + "334_335" + ".html"; } else if(gotoValue =="bfcat1") { fileLocation=path + "unitb/ch10" + "/" + "bfcat1" + ".html"; } else if(gotoValue =="bfcat2") { fileLocation=path + "unitb/ch10" + "/" + "bfcat2" + ".html"; } else if(gotoValue =="bfcat3") { fileLocation=path + "unitb/ch10" + "/" + "bfcat3" + ".html"; } else if(gotoValue =="bfcat4") { fileLocation=path + "unitb/ch10" + "/" + "bfcat4" + ".html"; } else { fileLocation=path + "unitb/ch10" + "/" + gotoValue + ".html"; } } /****chapter011 */ if ((gotoValue >= 337 && gotoValue <=368) || (gotoValue=="c1" || gotoValue=="c2" || gotoValue=="c3" || gotoValue=="c4")) { if(gotoValue ==338 || gotoValue == 339) { fileLocation=path + "unitc/ch11" + "/" + "338_339" + ".html"; } else if(gotoValue ==348 || gotoValue == 349) { fileLocation=path + "unitc/ch11" + "/" + "348_349" + ".html"; } else if(gotoValue ==358 || gotoValue == 359) { fileLocation=path + "unitc/ch11" + "/" + "358_359" + ".html"; } else if(gotoValue ==362 || gotoValue == 363) { fileLocation=path + "unitc/ch11" + "/" + "362_363" + ".html"; } else if(gotoValue ==364 || gotoValue == 365) { fileLocation=path + "unitc/ch11" + "/" + "364_365" + ".html"; } else if(gotoValue =="c1") { fileLocation=path + "unitc/ch11" + "/" + "c1" + ".html"; } else if(gotoValue =="c2") { fileLocation=path + "unitc/ch11" + "/" + "c2" + ".html"; } else if(gotoValue =="c3") { fileLocation=path + "unitc/ch11" + "/" + "c3" + ".html"; } else if(gotoValue =="c4") { fileLocation=path + "unitc/ch11" + "/" + "c4" + ".html"; } else { fileLocation=path + "unitc/ch11" + "/" + gotoValue + ".html"; } } /****chapter012 */ if (gotoValue >= 369 && gotoValue <=400 ) { if(gotoValue ==370 || gotoValue == 371) { fileLocation=path + "unitc/ch12" + "/" + "370_371" + ".html"; } else if(gotoValue ==376 || gotoValue == 377) { fileLocation=path + "unitc/ch12" + "/" + "376_377" + ".html"; } else if(gotoValue ==384 || gotoValue == 385) { fileLocation=path + "unitc/ch12" + "/" + "384_385" + ".html"; } else if(gotoValue ==392 || gotoValue == 393) { fileLocation=path + "unitc/ch12" + "/" + "392_393" + ".html"; } else if(gotoValue ==394 || gotoValue == 395) { fileLocation=path + "unitc/ch12" + "/" + "394_395" + ".html"; } else if(gotoValue ==396 || gotoValue == 397) { fileLocation=path + "unitc/ch12" + "/" + "396_397" + ".html"; } else { fileLocation=path + "unitc/ch12" + "/" + gotoValue + ".html"; } } /****chapter013 */ if (gotoValue >= 401 && gotoValue <=440 ) { if(gotoValue ==402 || gotoValue == 403) { fileLocation=path + "unitc/ch13" + "/" + "402_403" + ".html"; } else if(gotoValue ==420 || gotoValue == 421) { fileLocation=path + "unitc/ch13" + "/" + "420_421" + ".html"; } else if(gotoValue ==428 || gotoValue == 429) { fileLocation=path + "unitc/ch13" + "/" + "428_429" + ".html"; } else if(gotoValue ==430 || gotoValue == 431) { fileLocation=path + "unitc/ch13" + "/" + "430_431" + ".html"; } else if(gotoValue ==432 || gotoValue == 433) { fileLocation=path + "unitc/ch13" + "/" + "432_433" + ".html"; } else if(gotoValue ==434 || gotoValue == 435) { fileLocation=path + "unitc/ch13" + "/" + "434_435" + ".html"; } else { fileLocation=path + "unitc/ch13" + "/" + gotoValue + ".html"; } } /****chapter014 */ if (gotoValue >= 441 && gotoValue <=472 ) { if(gotoValue ==442 || gotoValue == 443) { fileLocation=path + "unitc/ch14" + "/" + "442_443" + ".html"; } else if(gotoValue ==466 || gotoValue == 467) { fileLocation=path + "unitc/ch14" + "/" + "466_467" + ".html"; } else if(gotoValue ==468 || gotoValue == 469) { fileLocation=path + "unitc/ch14" + "/" + "468_469" + ".html"; } else { fileLocation=path + "unitc/ch14" + "/" + gotoValue + ".html"; } } /****chapter015 */ if ((gotoValue >= 473 && gotoValue <=504 ) || (gotoValue=="cfcat1" || gotoValue=="cfcat2" || gotoValue=="cfcat3" || gotoValue=="cfcat4")) { if(gotoValue ==474 || gotoValue == 475) { fileLocation=path + "unitc/ch15" + "/" + "474_475" + ".html"; } else if(gotoValue ==482 || gotoValue == 483) { fileLocation=path + "unitc/ch15" + "/" + "482_483" + ".html"; } else if(gotoValue ==486 || gotoValue == 487) { fileLocation=path + "unitc/ch15" + "/" + "486_487" + ".html"; } else if(gotoValue ==490 || gotoValue == 491) { fileLocation=path + "unitc/ch15" + "/" + "490_491" + ".html"; } else if(gotoValue ==492 || gotoValue == 493) { fileLocation=path + "unitc/ch15" + "/" + "492_493" + ".html"; } else if(gotoValue ==500 || gotoValue == 501) { fileLocation=path + "unitc/ch15" + "/" + "500_501" + ".html"; } else if(gotoValue ==502 || gotoValue == 503) { fileLocation=path + "unitc/ch15" + "/" + "502_503" + ".html"; } else if(gotoValue =="cfcat1") { fileLocation=path + "unitc/ch15" + "/" + "cfcat1" + ".html"; } else if(gotoValue =="cfcat2") { fileLocation=path + "unitc/ch15" + "/" + "cfcat2" + ".html"; } else if(gotoValue =="cfcat3") { fileLocation=path + "unitc/ch15" + "/" + "cfcat3" + ".html"; } else if(gotoValue =="cfcat4") { fileLocation=path + "unitc/ch15" + "/" + "cfcat4" + ".html"; } else { fileLocation=path + "unitc/ch15" + "/" + gotoValue + ".html"; } } /****chapter016 */ if ((gotoValue >= 505 && gotoValue <=536) || (gotoValue=="d1" || gotoValue=="d2" || gotoValue=="d3" || gotoValue=="d4")) { if(gotoValue ==506 || gotoValue == 507) { fileLocation=path + "unitd/ch16" + "/" + "506_507" + ".html"; } else if(gotoValue ==520 || gotoValue == 521) { fileLocation=path + "unitd/ch16" + "/" + "520_521" + ".html"; } else if(gotoValue ==530 || gotoValue == 531) { fileLocation=path + "unitd/ch16" + "/" + "530_531" + ".html"; } else if(gotoValue ==532 || gotoValue == 533) { fileLocation=path + "unitd/ch16" + "/" + "532_533" + ".html"; } else if(gotoValue =="d1") { fileLocation=path + "unitd/ch16" + "/" + "d1" + ".html"; } else if(gotoValue =="d2") { fileLocation=path + "unitd/ch16" + "/" + "d2" + ".html"; } else if(gotoValue =="d3") { fileLocation=path + "unitd/ch16" + "/" + "d3" + ".html"; } else if(gotoValue =="d4") { fileLocation=path + "unitd/ch16" + "/" + "d4" + ".html"; } else { fileLocation=path + "unitd/ch16" + "/" + gotoValue + ".html"; } } /****chapter017 */ if (gotoValue >= 537 && gotoValue <=568 ) { if(gotoValue ==538 || gotoValue == 539) { fileLocation=path + "unitd/ch17" + "/" + "538_539" + ".html"; } else if(gotoValue ==548 || gotoValue == 549) { fileLocation=path + "unitd/ch17" + "/" + "548_549" + ".html"; } else if(gotoValue ==552 || gotoValue == 553) { fileLocation=path + "unitd/ch17" + "/" + "552_553" + ".html"; } else if(gotoValue ==562 || gotoValue == 563) { fileLocation=path + "unitd/ch17" + "/" + "562_563" + ".html"; } else if(gotoValue ==564 || gotoValue == 565) { fileLocation=path + "unitd/ch17" + "/" + "564_565" + ".html"; } else { fileLocation=path + "unitd/ch17" + "/" + gotoValue + ".html"; } } /****chapter018 */ if ((gotoValue >= 569 && gotoValue <=608 ) || (gotoValue=="dfcat1" || gotoValue=="dfcat2" || gotoValue=="dfcat3" || gotoValue=="dfcat4")) { if(gotoValue ==570 || gotoValue == 571) { fileLocation=path + "unitd/ch18" + "/" + "570_571" + ".html"; } else if(gotoValue ==582 || gotoValue == 583) { fileLocation=path + "unitd/ch18" + "/" + "582_583" + ".html"; } else if(gotoValue ==588 || gotoValue == 589) { fileLocation=path + "unitd/ch18" + "/" + "588_589" + ".html"; } else if(gotoValue ==590 || gotoValue == 591) { fileLocation=path + "unitd/ch18" + "/" + "590_591" + ".html"; } else if(gotoValue ==592 || gotoValue == 593) { fileLocation=path + "unitd/ch18" + "/" + "592_593" + ".html"; } else if(gotoValue ==594 || gotoValue == 595) { fileLocation=path + "unitd/ch18" + "/" + "594_595" + ".html"; } else if(gotoValue ==604 || gotoValue == 605) { fileLocation=path + "unitd/ch18" + "/" + "604_605" + ".html"; } else if(gotoValue ==606 || gotoValue == 607) { fileLocation=path + "unitd/ch18" + "/" + "606_607" + ".html"; } else if(gotoValue == "dfcat1") { fileLocation=path + "unitd/ch18" + "/" + "dfcat1" + ".html"; } else if(gotoValue == "dfcat2") { fileLocation=path + "unitd/ch18" + "/" + "dfcat2" + ".html"; } else if(gotoValue == "dfcat3") { fileLocation=path + "unitd/ch18" + "/" + "dfcat3" + ".html"; } else if(gotoValue == "dfcat4") { fileLocation=path + "unitd/ch18" + "/" + "dfcat4" + ".html"; } else { fileLocation=path + "unitd/ch18" + "/" + gotoValue + ".html"; } } /* Index pages */ else if ((gotoValue == "em1" || gotoValue == "em2" || gotoValue == "em3" || gotoValue == "em4" || gotoValue == "em5" || gotoValue=="em6" || gotoValue=="em7" || gotoValue=="em8" || gotoValue=="em9" || gotoValue=="em10" || gotoValue=="em11" || gotoValue=="em12" || gotoValue=="em13" || gotoValue=="em14" || gotoValue=="em15" || gotoValue=="em16" || gotoValue=="em17" || gotoValue=="em18" || gotoValue=="em19" || gotoValue=="em20" || gotoValue=="em21" || gotoValue=="em22" || gotoValue=="em23" || gotoValue=="em24" || gotoValue=="em25" || gotoValue=="em26" || gotoValue=="em27" || gotoValue=="em28" || gotoValue=="em29" ||gotoValue=="em30" || gotoValue=="em31" || gotoValue=="em32" || gotoValue=="i" || gotoValue=="ii" || gotoValue=="iii" || gotoValue=="iv"|| gotoValue=="v" || gotoValue=="vi" || gotoValue=="vi1" || gotoValue=="vi2" || gotoValue=="vii" || gotoValue=="viii" || gotoValue=="viii4" || gotoValue=="viii5" || gotoValue=="ix" || gotoValue=="x" || gotoValue=="xi"|| gotoValue=="xii" || gotoValue=="xiii" || gotoValue=="xiv" || gotoValue=="xiv11" || gotoValue=="xiv12" || gotoValue=="xv" || gotoValue=="xvi" || gotoValue=="xvii" || gotoValue=="xviii" || gotoValue=="xviii16" || gotoValue=="xviii17" || gotoValue=="xix" || gotoValue=="xx" || gotoValue=="xxi" || gotoValue=="xxii" || gotoValue=="xxiii" || gotoValue=="xxiv" || gotoValue=="xxv" || gotoValue=="xxvi" || gotoValue=="xxvii" || gotoValue=="xxviii" || gotoValue=="xxix"|| gotoValue=="xxx" || gotoValue=="xxxi" || gotoValue=="xxxii")) { if(gotoValue == "cf1" || gotoValue == "cf2" || gotoValue == "cf3" || gotoValue == "cf4") { if (gotoValue == "cf1") { fileLocation=path + "001.html"; } else if (gotoValue == "cf2") { fileLocation=path + "002.html"; } else if (gotoValue == "cf3") { fileLocation=path + "003.html"; } else if (gotoValue == "cf4") { fileLocation=path + "004.html"; } } else if ((gotoValue == "em1" || gotoValue == "em2" || gotoValue == "em3" || gotoValue == "em4" || gotoValue == "em5" || gotoValue=="em6" || gotoValue=="em7" || gotoValue=="em8" || gotoValue=="em9" || gotoValue=="em10" || gotoValue=="em11" || gotoValue=="em12" || gotoValue=="em13" || gotoValue=="em14" || gotoValue=="em15" || gotoValue=="em16" || gotoValue=="em17" || gotoValue=="em18" || gotoValue=="em19" || gotoValue=="em20" || gotoValue=="em21" || gotoValue=="em22" || gotoValue=="em23" || gotoValue=="em24" || gotoValue=="em25" || gotoValue=="em26" || gotoValue=="em27" || gotoValue=="em28" || gotoValue=="em29" ||gotoValue=="em30" || gotoValue=="em31" || gotoValue=="em32" || gotoValue=="i" || gotoValue=="ii" || gotoValue=="iii" || gotoValue=="iv"|| gotoValue=="v" || gotoValue=="vi" || gotoValue=="vi1" || gotoValue=="vi2" || gotoValue=="vii" || gotoValue=="viii" || gotoValue=="viii4" || gotoValue=="viii5" || gotoValue=="ix" || gotoValue=="x" || gotoValue=="xi"|| gotoValue=="xii" || gotoValue=="xiii" || gotoValue=="xiv" || gotoValue=="xiv11" || gotoValue=="xiv12" || gotoValue=="xv" || gotoValue=="xvi" || gotoValue=="xvii" || gotoValue=="xviii" || gotoValue=="xviii16" || gotoValue=="xviii17" || gotoValue=="xix" || gotoValue=="xx" || gotoValue=="xxi" || gotoValue=="xxii" || gotoValue=="xxiii" || gotoValue=="xxiv" || gotoValue=="xxv" || gotoValue=="xxvi" || gotoValue=="xxvii" || gotoValue=="xxviii" || gotoValue=="xxix"|| gotoValue=="xxx" || gotoValue=="xxxi" || gotoValue=="xxxii")) { if(gotoValue =="em1") { fileLocation= path + "em1.html"; } else if(gotoValue =="em2") { fileLocation=path + "em2.html"; } else if(gotoValue =="em3") { fileLocation=path + "em3.html"; } else if(gotoValue =="em4") { fileLocation=path + "em4.html"; } else if(gotoValue =="em5") { fileLocation=path + "em5.html"; } else if(gotoValue =="em6") { fileLocation=path + "em6.html"; } else if(gotoValue =="em7") { fileLocation=path + "em7.html"; } else if(gotoValue =="em8") { fileLocation=path + "em8.html"; } else if(gotoValue =="em9") { fileLocation=path + "em9.html"; } else if(gotoValue =="em10") { fileLocation=path + "em10.html"; } else if(gotoValue =="em11") { fileLocation=path + "em11.html"; } else if(gotoValue =="em12") { fileLocation=path + "em12.html"; } else if(gotoValue =="em13") { fileLocation=path + "em13.html"; } else if(gotoValue =="em14") { fileLocation=path + "em14.html"; } else if(gotoValue =="em15") { fileLocation=path + "em15.html"; } else if(gotoValue =="em16") { fileLocation=path + "em16.html"; } else if(gotoValue =="em17") { fileLocation=path + "em17.html"; } else if(gotoValue =="em18") { fileLocation=path + "em18.html"; } else if(gotoValue =="em19") { fileLocation=path + "em19.html"; } else if(gotoValue =="em20") { fileLocation=path + "em20.html"; } else if(gotoValue =="em21") { fileLocation=path + "em21.html"; } else if(gotoValue =="em22") { fileLocation=path + "em22.html"; } else if(gotoValue =="em23") { fileLocation=path + "em23.html"; } else if(gotoValue =="em24") { fileLocation=path + "em24.html"; } else if(gotoValue =="em25") { fileLocation=path + "em25.html"; } else if(gotoValue =="em26") { fileLocation=path + "em26.html"; } else if(gotoValue =="em27") { fileLocation=path + "em27.html"; } else if(gotoValue =="em28") { fileLocation=path + "em28.html"; } else if(gotoValue =="em29") { fileLocation=path + "em29.html"; } else if(gotoValue =="em30") { fileLocation=path + "em30.html"; } else if(gotoValue =="em31") { fileLocation=path + "em31.html"; } else if(gotoValue =="em32") { fileLocation=path + "em32.html"; } else if(gotoValue =="i") { fileLocation=path + "i.html"; } else if(gotoValue =="ii") { fileLocation=path + "ii.html"; } else if(gotoValue =="iii") { fileLocation=path + "iii.html"; } else if(gotoValue =="iv") { fileLocation=path + "iv.html"; } else if(gotoValue =="v") { fileLocation=path + "v.html"; } else if(gotoValue =="vi") { fileLocation=path + "vi1.html"; } else if(gotoValue =="vi1") { fileLocation=path + "vi1.html"; } else if(gotoValue =="vi2") { fileLocation=path + "vi2.html"; } else if(gotoValue =="vii") { fileLocation=path + "vii.html"; } else if(gotoValue =="viii") { fileLocation=path + "viii4.html"; } else if(gotoValue =="viii4") { fileLocation=path + "viii4.html"; } else if(gotoValue =="viii5") { fileLocation=path + "viii5.html"; } else if(gotoValue =="ix") { fileLocation=path + "ix.html"; } else if(gotoValue =="x") { fileLocation=path + "x.html"; } else if(gotoValue =="xi") { fileLocation=path + "xi.html"; } else if(gotoValue =="xii") { fileLocation=path + "xii.html"; } else if(gotoValue =="xiii") { fileLocation=path + "xiii.html"; } else if(gotoValue =="xiv") { fileLocation=path + "xiv11.html"; } else if(gotoValue =="xiv11") { fileLocation=path + "xiv11.html"; } else if(gotoValue =="xiv12") { fileLocation=path + "xiv12.html"; } else if(gotoValue =="xv") { fileLocation=path + "xv.html"; } else if(gotoValue =="xvi") { fileLocation=path + "xvi.html"; } else if(gotoValue =="xvii") { fileLocation=path + "xvii.html"; } else if(gotoValue =="xviii") { fileLocation=path + "xviii16.html"; } else if(gotoValue =="xviii16") { fileLocation=path + "xviii16.html"; } else if(gotoValue =="xviii17") { fileLocation=path + "xviii17.html"; } else if(gotoValue =="xix") { fileLocation=path + "xix.html"; } else if(gotoValue =="xx") { fileLocation=path + "xx.html"; } else if(gotoValue =="xxi") { fileLocation=path + "xxi.html"; } else if(gotoValue =="xxii") { fileLocation=path + "xxii.html"; } else if(gotoValue =="xxiii") { fileLocation=path + "xxiii.html"; } else if(gotoValue =="xxiv") { fileLocation=path + "xxiv.html"; } else if(gotoValue =="xxv") { fileLocation=path + "xxv.html"; } else if(gotoValue =="xxvi") { fileLocation=path + "xxvi.html"; } else if(gotoValue =="xxvii") { fileLocation=path + "xxvii.html"; } else if(gotoValue =="xxviii") { fileLocation=path + "xxviii.html"; } else if(gotoValue =="xxix") { fileLocation=path + "xxix.html"; } else if(gotoValue =="xxx") { fileLocation=path + "xxx.html"; } else if(gotoValue =="xxxi") { fileLocation=path + "xxxi.html"; } else if(gotoValue =="xxxii") { fileLocation=path + "xxxii.html"; } } } } else { alert("We can't find that page number. Please type in a new one."); } if( fileLocation != "" ) {var App=navigator.userAgent; if (navigator.appName == "Microsoft Internet Explorer") { document.itextmyform.action = fileLocation; document.itextmyform.target = "_self"; // Open in a new window document.itextmyform.submit(); } //MAC Safari 10.4 ------------------------------- if( App.indexOf("Safari") ==100) { var SafPath; var Saf; Saf=path.length; SafPath=fileLocation.substr(Saf) document.itextmyform.action = SafPath; document.itextmyform.submit(); } if( App.indexOf("Safari") >0) { fileLocation=fileLocation.replace(";","%3B"); document.itextmyform.action = fileLocation; document.itextmyform.method = "post"; window.document.location.href=fileLocation; document.itextmyform.target = "_self"; document.itextmyform.submit(); } //----------------End- if( navigator.appName == "Netscape") { window.document.location.href=fileLocation; document.itextmyform.action = fileLocation; document.itextmyform.target = "_self"; // Open in a new window document.itextmyform.submit(); } } } /********************function end ********************/ function MM_reloadPage(init) { //reloads the window if Nav4 resized if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) { document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }} else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload(); } MM_reloadPage(true); function MM_reloadPage(init) { //reloads the window if Nav4 resized if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) { document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }} else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload(); } MM_reloadPage(true); function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i= 97 && strtemp.charCodeAt(0) <= 122) { return inti; } } return 0; } /*** adding preceeding zeros ***/ function strformat(str1) { if(IsNumeric(str1)) { if (str1.length ==1) { return "00" + str1; } else if (str1.length == 2) { return "0" + str1; } else if (str1.length == 3) { return str1; } else if(str1.length ==4) { return str1; } } else { return str1; } } /*** To check the String is Fully Numeric or Not ***/ function IsNumeric(sText) { var ValidChars = "0123456789"; var IsNumber=true; var Char; for (i = 0; i < sText.length && IsNumber == true; i++) { Char = sText.charAt(i); if (ValidChars.indexOf(Char) == -1) { IsNumber = false; } } return IsNumber; } function lefttrim(sText) { var isContinue; var Char; var i; var result; isContinue=true; result=""; for (i = 0; i < sText.length && isContinue== true; i++) { Char = sText.charAt(i); if (Char == " ") { isContinue = true; } else { result=sText.substring(i, sText.length); isContinue = false; } } return result; } function righttrim(sText) { var isContinue; var Char; var i; var result; isContinue=true; result=""; for (i = sText.length-1; i >= 0 && isContinue== true; i--) { Char = sText.charAt(i); if (Char == " ") { isContinue = true; } else { result=sText.substring(0,i+1); isContinue = false; } } return result; } function Key_Prs() {Global=navigator.appName; if (navigator.appName == "Netscape") { document.captureEvents(Event.KEYPRESS); document.onkeypress=blockA; } else { document.onkeypress = handler; } }