var puplicStartFrom


function finalCheck(frm)
{
frm.ChapterIndex.value =  frm.Chapter.selectedIndex
frm.locationIndex.value = frm.location.selectedIndex
frm.RukuhIndex.value = frm.RukuhNumber.selectedIndex
if (frm.AyatId.selectedIndex == -1)
{	alert ('Please select an Ayat')
	return false
}
else
	document.ChapterFrm.submit()
return false
}


function ChangeList(location, Chapter, index){

    var locationValue, TotOptions, myList, i, List,  TempIndex ;

    locationValue    = location.options[location.selectedIndex].value;
    TotOptions = Chapter.length 
    TempIndex  = index
 
    if (index==0) {  
	   for (i = TotOptions; i >= 0; i--) 
             { Chapter.options[i] = null; }
    } else {  
           for (i = TotOptions; i >= 1; i--) 
             { Chapter.options[i] = null; }    
    }
     	

   switch (locationValue) {
   case "Makki":
   List = new Array() 	;

List[index++] = new Option ("Surah 1 - Al-Fatiha ( The Opening )", value= "1, 1, 7")
List[index++] = new Option ("Surah 6 - Al-An'am ( The Cattle )", value= "6, 20, 165")
List[index++] = new Option ("Surah 7 - Al-A'raf ( The Heights )", value= "7, 24, 206")
List[index++] = new Option ("Surah 10 - Yunus ( Jonah )", value= "10, 11, 109")
List[index++] = new Option ("Surah 11 - Hud", value= "11, 10, 123")
List[index++] = new Option ("Surah 12 - Yusuf ( Joseph )", value= "12, 11, 111")
List[index++] = new Option ("Surah 14 - Ibrahim ( Abraham )", value= "14, 7, 52")
List[index++] = new Option ("Surah 15 - Al-Hijr ( The Rocky Tract )", value= "15, 6, 99")
List[index++] = new Option ("Surah 16 - An-Nahl ( The Honey-Bee )", value= "16, 16, 128")
List[index++] = new Option ("Surah 17 - Al-Isra ( The Journey ,Bani Israiel )", value= "17, 12, 111")
List[index++] = new Option ("Surah 18 - Al-Kahf ( The Cave )", value= "18, 12, 110")
List[index++] = new Option ("Surah 19 - Maryam ( Mary )", value= "19, 6, 98")
List[index++] = new Option ("Surah 20 - Ta. Ha.", value= "20, 8, 135")
List[index++] = new Option ("Surah 21 - Al-Ambiya ( The Prophets )", value= "21, 7, 112")
List[index++] = new Option ("Surah 23 - Al-Mu'minun ( The Believers )", value= "23, 6, 118")
List[index++] = new Option ("Surah 25 - Al-Furqan ( The Criterion )", value= "25, 6, 77")
List[index++] = new Option ("Surah 26 - Ash-Shu'ara ( The Poets )", value= "26, 11, 227")
List[index++] = new Option ("Surah 27 - An-Naml ( The Ant )", value= "27, 7, 93")
List[index++] = new Option ("Surah 28 - Al-Qasas ( The Narration )", value= "28, 9, 88")
List[index++] = new Option ("Surah 29 - Al-Ankabut ( The Spider )", value= "29, 7, 69")
List[index++] = new Option ("Surah 30 - Ar-Rum ( Rome )", value= "30, 6, 60")
List[index++] = new Option ("Surah 31 - Luqman ", value= "31, 4, 34")
List[index++] = new Option ("Surah 32 - As-Sajdah ( The Prostration )", value= "32, 3, 30")
List[index++] = new Option ("Surah 34 - Saba ( Sheba )", value= "34, 6, 54")
List[index++] = new Option ("Surah 35 - Fatir ( Originator )", value= "35, 5, 45")
List[index++] = new Option ("Surah 36 - Ya Sin", value= "36, 5, 83")
List[index++] = new Option ("Surah 37 - As-Saffat ( Those who stand in rows )", value= "37, 5, 182")
List[index++] = new Option ("Surah 38 - Sad", value= "38, 5, 88")
List[index++] = new Option ("Surah 39 - Az-Zumar ( The Groups )", value= "39, 8, 75")
List[index++] = new Option ("Surah 40 - Ghafir (Forgiver), Al-Mu'min ( The Believer )", value= "40, 9, 85")
List[index++] = new Option ("Surah 41 - H. M., As-Sajdah, Fussilat ( Fully detailed )", value= "41, 6, 54")
List[index++] = new Option ("Surah 42 - Ash-Shura ( The Mutual Consultation )", value= "42, 5, 53")
List[index++] = new Option ("Surah 43 - Az-Zukhruf ( The gold ornaments )", value= "43, 7, 89")
List[index++] = new Option ("Surah 44 - Ad-Dukhan ( The Smoke )", value= "44, 3, 59")
List[index++] = new Option ("Surah 45 - Al-Jathiya ( The Kneeling )", value= "45, 4, 37")
List[index++] = new Option ("Surah 46 - Al-Ahqaf ( The curved winding Sand-Hills )", value= "46, 4, 35")
List[index++] = new Option ("Surah 50 - Qaf (   )", value= "50, 3, 45")
List[index++] = new Option ("Surah 51 - Az-Zariyat", value= "51, 3, 60")
List[index++] = new Option ("Surah 52 - At-Tur ( The Mount )", value= "52, 2, 49")
List[index++] = new Option ("Surah 53 - An-Najm ( The Star )", value= "53, 3, 62")
List[index++] = new Option ("Surah 54 - Al-Qamar ( The Moon )", value= "54, 3, 55")
List[index++] = new Option ("Surah 56 - Al-Waqi'a ( The Inevitable Event )", value= "56, 3, 96")
List[index++] = new Option ("Surah 67 - Al-Mulk ( The Dominion )", value= "67, 2, 30")
List[index++] = new Option ("Surah 68 - Al-Qalam ( The Pen )", value= "68, 2, 52")
List[index++] = new Option ("Surah 69 - Al-Haqqah ( The Reality )", value= "69, 2, 52")
List[index++] = new Option ("Surah 70 - Al-Ma'arij ( The Ascents )", value= "70, 2, 44")
List[index++] = new Option ("Surah 71 - Nuh ( Noah )", value= "71, 2, 28")
List[index++] = new Option ("Surah 72 - Al-Jinn ", value= "72, 2, 28")
List[index++] = new Option ("Surah 73 - Al-Muzzammil", value= "73, 2, 20")
List[index++] = new Option ("Surah 74 - Al-Muddassir", value= "74, 2, 56")
List[index++] = new Option ("Surah 75 - Al-Qiyamah", value= "75, 2, 40")
List[index++] = new Option ("Surah 77 - Al-Mursalat ( The Personalities sentforth )", value= "77, 2, 50")
List[index++] = new Option ("Surah 78 - An-Naba' ( The News )", value= "78, 2, 40")
List[index++] = new Option ("Surah 79 - An-Nazi'at ", value= "79, 2, 46")
List[index++] = new Option ("Surah 80 - 'Abasa ( he frowned )", value= "80, 1, 42")
List[index++] = new Option ("Surah 81 - At-Takwir ( winding round )", value= "81, 1, 29")
List[index++] = new Option ("Surah 82 - Al-Infitar ( Developing the cracks )", value= "82, 1, 19")
List[index++] = new Option ("Surah 83 - Al-Mutaffifin", value= "83, 1, 36")
List[index++] = new Option ("Surah 84 - Al-Inshiqaq ", value= "84, 1, 25")
List[index++] = new Option ("Surah 85 - Al-Buruj ", value= "85, 1, 22")
List[index++] = new Option ("Surah 86 - At-Tariq", value= "86, 1, 17")
List[index++] = new Option ("Surah 87 - Al-A'la ( The Higher )", value= "87, 1, 19")
List[index++] = new Option ("Surah 88 - Al-Ghashiyah ", value= "88, 1, 26")
List[index++] = new Option ("Surah 89 - Al-Fajr ( The break of dawn )", value= "89, 1, 30")
List[index++] = new Option ("Surah 90 - Al-Balad ( The City )", value= "90, 1, 20")
List[index++] = new Option ("Surah 91 - Ash-Shams ( The Sun )", value= "91, 1, 15")
List[index++] = new Option ("Surah 92 - Al-Lail ( The night )", value= "92, 1, 21")
List[index++] = new Option ("Surah 93 - Ad-Duha ( Early forenoon )", value= "93, 1, 11")
List[index++] = new Option ("Surah 94 - Ash-Sharh ( The Widening )", value= "94, 1, 8")
List[index++] = new Option ("Surah 95 - At-Tin ( The Fig )", value= "95, 1, 8")
List[index++] = new Option ("Surah 96 - Al-'Alaq ", value= "96, 1, 19")
List[index++] = new Option ("Surah 97 - Al-Qadr ", value= "97, 1, 5")
List[index++] = new Option ("Surah 100 - Al-'Adiyat", value= "100, 1, 11")
List[index++] = new Option ("Surah 101 - Al-Qari'ah", value= "101, 1, 11")
List[index++] = new Option ("Surah 102 - At-Takathur ", value= "102, 1, 8")
List[index++] = new Option ("Surah 103 - Al-'Asr", value= "103, 1, 3")
List[index++] = new Option ("Surah 104 - Al-Humazah ( The Slanderer )", value= "104, 1, 9")
List[index++] = new Option ("Surah 105 - Al-Fil ( The elephant )", value= "105, 1, 5")
List[index++] = new Option ("Surah 106 - Quraish ", value= "106, 1, 4")
List[index++] = new Option ("Surah 107 - Al-Ma'un", value= "107, 1, 7")
List[index++] = new Option ("Surah 108 - Al-Kauthar", value= "108, 1, 3")
List[index++] = new Option ("Surah 109 - Al-Kafirun ( The disbelievers )", value= "109, 1, 6")
List[index++] = new Option ("Surah 111 - Al-Lahab ( The flame ) ( , Al-masad )", value= "111, 1, 5")
List[index++] = new Option ("Surah 112 - Al-Ikhlas ( The Purity ), ( At-Tauhid )", value= "112, 1, 4")
List[index++] = new Option ("Surah 113 - Al-Falaq ( The day break )", value= "113, 1, 5")
List[index++] = new Option ("Surah 114 - An-Naas ( The Mankind )", value= "114, 1, 6")

myList = List;
break;

case "Madni":
List    = new Array()
List[index++] = new Option ("Surah 2 - Al-Baqarah ( The Cow )", value= "2, 40, 286")
List[index++] = new Option ("Surah 3 - Aal-'Imran ( The Family of Imran )", value= "3, 20, 200")
List[index++] = new Option ("Surah 4 - An-Nisa ( The Women )", value= "4, 24, 176")
List[index++] = new Option ("Surah 5 - Al-Maidah ( The Table set with foods )", value= "5, 16, 120")
List[index++] = new Option ("Surah 8 - Al-Anfal ( The Spoils of War )", value= "8, 10, 75")
List[index++] = new Option ("Surah 9 - At-Tauba ( The Repentance )", value= "9, 16, 129")
List[index++] = new Option ("Surah 13 - Ar-Râ'd ( The Thunder )", value= "13, 6, 43")
List[index++] = new Option ("Surah 22 - Al-Hajj ( World Muslim Congregation )", value= "22, 10, 78")
List[index++] = new Option ("Surah 24 - An-Nur ( The Light )", value= "24, 9, 64")
List[index++] = new Option ("Surah 33 - Al-Ahzab ( The Allied Forces )", value= "33, 9, 73")
List[index++] = new Option ("Surah 47 - Muhammad ( Praised one )", value= "47, 4, 38")
List[index++] = new Option ("Surah 48 - Al-Fath ( The Success )", value= "48, 4, 29")
List[index++] = new Option ("Surah 49 - Al-Hujurat ( The Cubicles )", value= "49, 2, 18")
List[index++] = new Option ("Surah 55 - Ar-Rahman", value= "55, 3, 78")
List[index++] = new Option ("Surah 57 - Al-Hadid ( The Iron )", value= "57, 4, 29")
List[index++] = new Option ("Surah 58 - Al-Mujadilah ( The Disputation )", value= "58, 3, 22")
List[index++] = new Option ("Surah 59 - Al-Hashr ( The Mass Exodus )", value= "59, 3, 24")
List[index++] = new Option ("Surah 60 - Al-Mumtahinah ( The woman under questioning )", value= "60, 2, 13")
List[index++] = new Option ("Surah 61 - As-Saff ( The columns )", value= "61, 2, 14")
List[index++] = new Option ("Surah 62 - Al-Jumu'ah ( The Congregation )", value= "62, 2, 11")
List[index++] = new Option ("Surah 63 - Al-Munafiqun ( The Hypocrites )", value= "63, 2, 11")
List[index++] = new Option ("Surah 64 - At-Taghabun ( The Loss coming to view )", value= "64, 2, 18")
List[index++] = new Option ("Surah 65 - At-Talaq ( The Divorce )", value= "65, 2, 12")
List[index++] = new Option ("Surah 66 - At-Tahrim ( The prohibition )", value= "66, 2, 12")
List[index++] = new Option ("Surah 76 - Ad-dahr ( The Passing Time ), ( Al-Insan )", value= "76, 2, 31")
List[index++] = new Option ("Surah 98 - Al-Bayyinah ", value= "98, 1, 8")
List[index++] = new Option ("Surah 99 - Az-Zalzalah ( The earthquake )", value= "99, 1, 8")
List[index++] = new Option ("Surah 110 - An-Nasr ( The Aid and Assistance )", value= "110, 1, 3")
myList = List;
break;
 	 
          
case "null":
  	List    = new Array()
 	List[index++] = new Option ("-- Select --", value= "112")
        myList = List;
	break; 
        
}
 	

 	 for (i = TempIndex; i <myList.length; i++) {
 		Chapter.options[i] = myList[i]
 		
 	  }
	Chapter.onchange()

}






function getAyaRukuh(cId, rNumber)
{

ChapterId =parseInt(cId)
rukuhNumber = parseInt(rNumber)
startFrom = 0
totalAyat = 0
switch (ChapterId ) {
case 1: switch (rukuhNumber){case 1:  totalAyat = 7;startFrom=1;break;}break;
case 2: switch (rukuhNumber){case 1:  totalAyat = 7;startFrom=1;break;case 2:  totalAyat = 13;startFrom=8;break;case 3:  totalAyat = 9;startFrom=21;break;case 4:  totalAyat = 10;startFrom=30;break;case 5:  totalAyat = 7;startFrom=40;break;case 6:  totalAyat = 11;startFrom=47;break;case 7:  totalAyat = 4;startFrom=54;break;case 8:  totalAyat = 10;startFrom=62;break;case 9:  totalAyat = 11;startFrom=72;break;case 10:  totalAyat = 4;startFrom=83;break;case 11:  totalAyat = 10;startFrom=87;break;case 12:  totalAyat = 7;startFrom=97;break;case 13:  totalAyat = 9;startFrom=104;break;case 14:  totalAyat = 9;startFrom=113;break;case 15:  totalAyat = 8;startFrom=122;break;case 16:  totalAyat = 12;startFrom=130;break;case 17:  totalAyat = 6;startFrom=142;break;case 18:  totalAyat = 5;startFrom=148;break;case 19:  totalAyat = 11;startFrom=153;break;case 20:  totalAyat = 4;startFrom=164;break;case 21:  totalAyat = 9;startFrom=168;break;case 22:  totalAyat = 6;startFrom=177;break;case 23:  totalAyat = 6;startFrom=183;break;case 24:  totalAyat = 8;startFrom=189;break;case 25:  totalAyat = 14;startFrom=197;break;case 26:  totalAyat = 6;startFrom=211;break;case 27:  totalAyat = 5;startFrom=217;break;case 28:  totalAyat = 7;startFrom=222;break;case 29:  totalAyat = 3;startFrom=229;break;case 30:  totalAyat = 4;startFrom=232;break;case 31:  totalAyat = 7;startFrom=236;break;case 32:  totalAyat = 6;startFrom=243;break;case 33:  totalAyat = 5;startFrom=249;break;case 34:  totalAyat = 4;startFrom=254;break;case 35:  totalAyat = 3;startFrom=258;break;case 36:  totalAyat = 6;startFrom=261;break;case 37:  totalAyat = 7;startFrom=267;break;case 38:  totalAyat = 8;startFrom=274;break;case 39:  totalAyat = 2;startFrom=282;break;case 40:  totalAyat = 3;startFrom=284;break;}break;
case 3: switch (rukuhNumber){case 1:  totalAyat = 9;startFrom=1;break;case 2:  totalAyat = 11;startFrom=10;break;case 3:  totalAyat = 10;startFrom=21;break;case 4:  totalAyat = 11;startFrom=31;break;case 5:  totalAyat = 13;startFrom=42;break;case 6:  totalAyat = 9;startFrom=55;break;case 7:  totalAyat = 8;startFrom=64;break;case 8:  totalAyat = 9;startFrom=72;break;case 9:  totalAyat = 11;startFrom=81;break;case 10:  totalAyat = 10;startFrom=92;break;case 11:  totalAyat = 8;startFrom=102;break;case 12:  totalAyat = 11;startFrom=110;break;case 13:  totalAyat = 9;startFrom=121;break;case 14:  totalAyat = 14;startFrom=130;break;case 15:  totalAyat = 5;startFrom=144;break;case 16:  totalAyat = 7;startFrom=149;break;case 17:  totalAyat = 16;startFrom=156;break;case 18:  totalAyat = 9;startFrom=172;break;case 19:  totalAyat = 9;startFrom=181;break;case 20:  totalAyat = 11;startFrom=190;break;}break;
case 4: switch (rukuhNumber){case 1:  totalAyat = 4;startFrom=8;break;case 1:  totalAyat = 7;startFrom=1;break;case 2:  totalAyat = 4;startFrom=11;break;case 3:  totalAyat = 8;startFrom=15;break;case 4:  totalAyat = 3;startFrom=23;break;case 5:  totalAyat = 8;startFrom=26;break;case 6:  totalAyat = 9;startFrom=34;break;case 7:  totalAyat = 8;startFrom=43;break;case 8:  totalAyat = 9;startFrom=51;break;case 9:  totalAyat = 11;startFrom=60;break;case 10:  totalAyat = 6;startFrom=71;break;case 11:  totalAyat = 11;startFrom=77;break;case 12:  totalAyat = 4;startFrom=88;break;case 13:  totalAyat = 5;startFrom=92;break;case 14:  totalAyat = 4;startFrom=97;break;case 15:  totalAyat = 4;startFrom=101;break;case 16:  totalAyat = 8;startFrom=105;break;case 17:  totalAyat = 3;startFrom=113;break;case 18:  totalAyat = 10;startFrom=117;break;case 19:  totalAyat = 8;startFrom=127;break;case 20:  totalAyat = 7;startFrom=135;break;case 21:  totalAyat = 11;startFrom=142;break;case 22:  totalAyat = 10;startFrom=153;break;case 23:  totalAyat = 9;startFrom=163;break;case 24:  totalAyat = 5;startFrom=172;break;}break;
case 5: switch (rukuhNumber){case 1:  totalAyat = 5;startFrom=1;break;case 2:  totalAyat = 6;startFrom=6;break;case 3:  totalAyat = 8;startFrom=12;break;case 4:  totalAyat = 7;startFrom=20;break;case 5:  totalAyat = 8;startFrom=27;break;case 6:  totalAyat = 9;startFrom=35;break;case 7:  totalAyat = 7;startFrom=44;break;case 8:  totalAyat = 6;startFrom=51;break;case 9:  totalAyat = 10;startFrom=57;break;case 10:  totalAyat = 11;startFrom=67;break;case 11:  totalAyat = 9;startFrom=78;break;case 12:  totalAyat = 7;startFrom=87;break;case 13:  totalAyat = 7;startFrom=94;break;case 14:  totalAyat = 8;startFrom=101;break;case 15:  totalAyat = 7;startFrom=109;break;case 16:  totalAyat = 5;startFrom=116;break;}break;
case 6: switch (rukuhNumber){case 1:  totalAyat = 10;startFrom=1;break;case 2:  totalAyat = 10;startFrom=11;break;case 3:  totalAyat = 10;startFrom=21;break;case 4:  totalAyat = 11;startFrom=31;break;case 5:  totalAyat = 9;startFrom=42;break;case 6:  totalAyat = 5;startFrom=51;break;case 7:  totalAyat = 5;startFrom=56;break;case 8:  totalAyat = 10;startFrom=61;break;case 9:  totalAyat = 12;startFrom=71;break;case 10:  totalAyat = 8;startFrom=83;break;case 11:  totalAyat = 4;startFrom=91;break;case 12:  totalAyat = 6;startFrom=95;break;case 13:  totalAyat = 10;startFrom=101;break;case 14:  totalAyat = 11;startFrom=111;break;case 15:  totalAyat = 8;startFrom=122;break;case 16:  totalAyat = 11;startFrom=130;break;case 17:  totalAyat = 4;startFrom=141;break;case 18:  totalAyat = 6;startFrom=145;break;case 19:  totalAyat = 4;startFrom=151;break;case 20:  totalAyat = 11;startFrom=155;break;}break;
case 7: switch (rukuhNumber){case 1:  totalAyat = 10;startFrom=1;break;case 2:  totalAyat = 15;startFrom=11;break;case 3:  totalAyat = 6;startFrom=26;break;case 4:  totalAyat = 8;startFrom=32;break;case 5:  totalAyat = 8;startFrom=40;break;case 6:  totalAyat = 6;startFrom=48;break;case 7:  totalAyat = 5;startFrom=54;break;case 8:  totalAyat = 6;startFrom=59;break;case 9:  totalAyat = 8;startFrom=65;break;case 10:  totalAyat = 12;startFrom=73;break;case 11:  totalAyat = 9;startFrom=85;break;case 12:  totalAyat = 6;startFrom=94;break;case 13:  totalAyat = 9;startFrom=100;break;case 14:  totalAyat = 18;startFrom=109;break;case 15:  totalAyat = 3;startFrom=127;break;case 16:  totalAyat = 12;startFrom=130;break;case 17:  totalAyat = 6;startFrom=142;break;case 18:  totalAyat = 4;startFrom=148;break;case 19:  totalAyat = 6;startFrom=152;break;case 20:  totalAyat = 5;startFrom=158;break;case 21:  totalAyat = 9;startFrom=163;break;case 22:  totalAyat = 10;startFrom=172;break;case 23:  totalAyat = 7;startFrom=182;break;case 24:  totalAyat = 18;startFrom=189;break;}break;
case 8: switch (rukuhNumber){case 1:  totalAyat = 10;startFrom=1;break;case 2:  totalAyat = 9;startFrom=11;break;case 3:  totalAyat = 9;startFrom=20;break;case 4:  totalAyat = 9;startFrom=29;break;case 5:  totalAyat = 7;startFrom=38;break;case 6:  totalAyat = 4;startFrom=45;break;case 7:  totalAyat = 10;startFrom=49;break;case 8:  totalAyat = 6;startFrom=59;break;case 9:  totalAyat = 5;startFrom=65;break;case 10:  totalAyat = 6;startFrom=70;break;}break;
case 9: switch (rukuhNumber){case 1:  totalAyat = 6;startFrom=1;break;case 2:  totalAyat = 10;startFrom=7;break;case 3:  totalAyat = 8;startFrom=17;break;case 4:  totalAyat = 5;startFrom=25;break;case 5:  totalAyat = 8;startFrom=30;break;case 6:  totalAyat = 5;startFrom=38;break;case 7:  totalAyat = 17;startFrom=43;break;case 8:  totalAyat = 7;startFrom=60;break;case 9:  totalAyat = 6;startFrom=67;break;case 10:  totalAyat = 8;startFrom=73;break;case 11:  totalAyat = 9;startFrom=81;break;case 12:  totalAyat = 10;startFrom=90;break;case 13:  totalAyat = 11;startFrom=100;break;case 14:  totalAyat = 8;startFrom=111;break;case 15:  totalAyat = 4;startFrom=119;break;case 16:  totalAyat = 7;startFrom=123;break;}break;
case 10: switch (rukuhNumber){case 1:  totalAyat = 10;startFrom=1;break;case 2:  totalAyat = 10;startFrom=11;break;case 3:  totalAyat = 10;startFrom=21;break;case 4:  totalAyat = 10;startFrom=31;break;case 5:  totalAyat = 13;startFrom=41;break;case 6:  totalAyat = 7;startFrom=54;break;case 7:  totalAyat = 10;startFrom=61;break;case 8:  totalAyat = 12;startFrom=71;break;case 9:  totalAyat = 10;startFrom=83;break;case 10:  totalAyat = 11;startFrom=93;break;case 11:  totalAyat = 6;startFrom=104;break;}break;
case 11: switch (rukuhNumber){case 1:  totalAyat = 8;startFrom=1;break;case 2:  totalAyat = 16;startFrom=9;break;case 3:  totalAyat = 11;startFrom=25;break;case 4:  totalAyat = 14;startFrom=36;break;case 5:  totalAyat = 11;startFrom=50;break;case 6:  totalAyat = 8;startFrom=61;break;case 7:  totalAyat = 15;startFrom=69;break;case 8:  totalAyat = 12;startFrom=84;break;case 9:  totalAyat = 14;startFrom=96;break;case 10:  totalAyat = 14;startFrom=110;break;}break;
case 12: switch (rukuhNumber){case 1:  totalAyat = 6;startFrom=1;break;case 2:  totalAyat = 14;startFrom=7;break;case 3:  totalAyat = 9;startFrom=21;break;case 4:  totalAyat = 6;startFrom=30;break;case 5:  totalAyat = 14;startFrom=36;break;case 7:  totalAyat = 8;startFrom=50;break;case 8:  totalAyat = 11;startFrom=58;break;case 9:  totalAyat = 11;startFrom=69;break;case 10:  totalAyat = 14;startFrom=80;break;case 11:  totalAyat = 11;startFrom=94;break;case 12:  totalAyat = 7;startFrom=105;break;}break;
case 13: switch (rukuhNumber){case 1:  totalAyat = 7;startFrom=1;break;case 2:  totalAyat = 11;startFrom=8;break;case 3:  totalAyat = 8;startFrom=19;break;case 4:  totalAyat = 5;startFrom=27;break;case 5:  totalAyat = 6;startFrom=32;break;case 6:  totalAyat = 6;startFrom=38;break;}break;
case 14: switch (rukuhNumber){case 1:  totalAyat = 6;startFrom=1;break;case 2:  totalAyat = 6;startFrom=7;break;case 3:  totalAyat = 9;startFrom=13;break;case 4:  totalAyat = 6;startFrom=22;break;case 5:  totalAyat = 7;startFrom=28;break;case 6:  totalAyat = 7;startFrom=35;break;case 7:  totalAyat = 11;startFrom=42;break;}break;
case 15: switch (rukuhNumber){case 1:  totalAyat = 15;startFrom=1;break;case 2:  totalAyat = 10;startFrom=16;break;case 3:  totalAyat = 19;startFrom=26;break;case 4:  totalAyat = 16;startFrom=45;break;case 5:  totalAyat = 19;startFrom=61;break;case 6:  totalAyat = 20;startFrom=80;break;}break;
case 16: switch (rukuhNumber){case 1:  totalAyat = 9;startFrom=1;break;case 2:  totalAyat = 12;startFrom=10;break;case 3:  totalAyat = 4;startFrom=22;break;case 4:  totalAyat = 9;startFrom=26;break;case 5:  totalAyat = 6;startFrom=35;break;case 6:  totalAyat = 10;startFrom=41;break;case 7:  totalAyat = 10;startFrom=51;break;case 8:  totalAyat = 5;startFrom=61;break;case 9:  totalAyat = 5;startFrom=66;break;case 10:  totalAyat = 6;startFrom=71;break;case 11:  totalAyat = 7;startFrom=77;break;case 12:  totalAyat = 6;startFrom=84;break;case 13:  totalAyat = 11;startFrom=90;break;case 14:  totalAyat = 10;startFrom=101;break;case 15:  totalAyat = 9;startFrom=111;break;case 16:  totalAyat = 9;startFrom=120;break;}break;
case 17: switch (rukuhNumber){case 1:  totalAyat = 10;startFrom=1;break;case 2:  totalAyat = 12;startFrom=11;break;case 3:  totalAyat = 8;startFrom=23;break;case 4:  totalAyat = 10;startFrom=31;break;case 5:  totalAyat = 12;startFrom=41;break;case 6:  totalAyat = 8;startFrom=53;break;case 7:  totalAyat = 10;startFrom=61;break;case 8:  totalAyat = 7;startFrom=71;break;case 9:  totalAyat = 7;startFrom=78;break;case 10:  totalAyat = 9;startFrom=85;break;case 11:  totalAyat = 7;startFrom=94;break;case 12:  totalAyat = 11;startFrom=101;break;}break;
case 18: switch (rukuhNumber){case 1:  totalAyat = 12;startFrom=1;break;case 2:  totalAyat = 5;startFrom=13;break;case 3:  totalAyat = 5;startFrom=18;break;case 4:  totalAyat = 9;startFrom=23;break;case 5:  totalAyat = 13;startFrom=32;break;case 6:  totalAyat = 5;startFrom=45;break;case 7:  totalAyat = 4;startFrom=50;break;case 8:  totalAyat = 6;startFrom=54;break;case 9:  totalAyat = 11;startFrom=60;break;case 10:  totalAyat = 12;startFrom=71;break;case 11:  totalAyat = 19;startFrom=83;break;case 12:  totalAyat = 9;startFrom=102;break;}break;
case 19: switch (rukuhNumber){case 1:  totalAyat = 15;startFrom=1;break;case 2:  totalAyat = 25;startFrom=16;break;case 3:  totalAyat = 10;startFrom=41;break;case 4:  totalAyat = 15;startFrom=51;break;case 5:  totalAyat = 17;startFrom=66;break;case 6:  totalAyat = 16;startFrom=83;break;}break;
case 20: switch (rukuhNumber){case 1:  totalAyat = 24;startFrom=1;break;case 2:  totalAyat = 30;startFrom=25;break;case 3:  totalAyat = 22;startFrom=55;break;case 4:  totalAyat = 13;startFrom=77;break;case 5:  totalAyat = 15;startFrom=90;break;case 6:  totalAyat = 11;startFrom=105;break;case 7:  totalAyat = 13;startFrom=116;break;case 8:  totalAyat = 7;startFrom=129;break;}break;
case 21: switch (rukuhNumber){case 1:  totalAyat = 10;startFrom=1;break;case 2:  totalAyat = 19;startFrom=11;break;case 3:  totalAyat = 12;startFrom=30;break;case 4:  totalAyat = 9;startFrom=42;break;case 5:  totalAyat = 25;startFrom=51;break;case 6:  totalAyat = 18;startFrom=76;break;case 7:  totalAyat = 19;startFrom=94;break;}break;
case 22: switch (rukuhNumber){case 1:  totalAyat = 10;startFrom=1;break;case 2:  totalAyat = 12;startFrom=11;break;case 3:  totalAyat = 3;startFrom=23;break;case 4:  totalAyat = 8;startFrom=26;break;case 5:  totalAyat = 5;startFrom=34;break;case 6:  totalAyat = 10;startFrom=39;break;case 7:  totalAyat = 9;startFrom=49;break;case 8:  totalAyat = 7;startFrom=58;break;case 9:  totalAyat = 8;startFrom=65;break;case 10:  totalAyat = 6;startFrom=73;break;}break;
case 23: switch (rukuhNumber){case 1:  totalAyat = 22;startFrom=1;break;case 2:  totalAyat = 10;startFrom=23;break;case 3:  totalAyat = 18;startFrom=33;break;case 4:  totalAyat = 27;startFrom=51;break;case 5:  totalAyat = 15;startFrom=78;break;case 6:  totalAyat = 26;startFrom=93;break;}break;
case 24: switch (rukuhNumber){case 1:  totalAyat = 10;startFrom=1;break;case 2:  totalAyat = 10;startFrom=11;break;case 3:  totalAyat = 6;startFrom=21;break;case 4:  totalAyat = 8;startFrom=27;break;case 5:  totalAyat = 6;startFrom=35;break;case 6:  totalAyat = 10;startFrom=41;break;case 7:  totalAyat = 7;startFrom=51;break;case 8:  totalAyat = 4;startFrom=58;break;case 9:  totalAyat = 3;startFrom=62;break;}break;
case 25: switch (rukuhNumber){case 1:  totalAyat = 9;startFrom=1;break;case 2:  totalAyat = 11;startFrom=10;break;case 3:  totalAyat = 14;startFrom=21;break;case 4:  totalAyat = 10;startFrom=35;break;case 5:  totalAyat = 16;startFrom=45;break;case 6:  totalAyat = 17;startFrom=61;break;}break;
case 26: switch (rukuhNumber){case 1:  totalAyat = 9;startFrom=1;break;case 2:  totalAyat = 24;startFrom=10;break;case 3:  totalAyat = 18;startFrom=34;break;case 4:  totalAyat = 17;startFrom=52;break;case 5:  totalAyat = 36;startFrom=69;break;case 6:  totalAyat = 18;startFrom=105;break;case 7:  totalAyat = 18;startFrom=123;break;case 8:  totalAyat = 19;startFrom=141;break;case 9:  totalAyat = 16;startFrom=160;break;case 10:  totalAyat = 16;startFrom=176;break;case 11:  totalAyat = 36;startFrom=192;break;}break;
case 27: switch (rukuhNumber){case 1:  totalAyat = 14;startFrom=1;break;case 2:  totalAyat = 17;startFrom=15;break;case 3:  totalAyat = 13;startFrom=32;break;case 4:  totalAyat = 14;startFrom=45;break;case 5:  totalAyat = 8;startFrom=59;break;case 6:  totalAyat = 16;startFrom=67;break;case 7:  totalAyat = 11;startFrom=83;break;}break;
case 28: switch (rukuhNumber){case 1:  totalAyat = 13;startFrom=1;break;case 2:  totalAyat = 8;startFrom=14;break;case 3:  totalAyat = 7;startFrom=22;break;case 4:  totalAyat = 14;startFrom=29;break;case 5:  totalAyat = 8;startFrom=43;break;case 6:  totalAyat = 10;startFrom=51;break;case 7:  totalAyat = 15;startFrom=61;break;case 8:  totalAyat = 7;startFrom=76;break;case 9:  totalAyat = 6;startFrom=83;break;}break;
case 29: switch (rukuhNumber){case 1:  totalAyat = 13;startFrom=1;break;case 2:  totalAyat = 9;startFrom=14;break;case 3:  totalAyat = 8;startFrom=23;break;case 4:  totalAyat = 14;startFrom=31;break;case 5:  totalAyat = 7;startFrom=45;break;case 6:  totalAyat = 12;startFrom=52;break;case 7:  totalAyat = 6;startFrom=64;break;}break;
case 30: switch (rukuhNumber){case 1:  totalAyat = 10;startFrom=1;break;case 2:  totalAyat = 9;startFrom=11;break;case 3:  totalAyat = 8;startFrom=20;break;case 4:  totalAyat = 13;startFrom=28;break;case 5:  totalAyat = 13;startFrom=41;break;case 6:  totalAyat = 7;startFrom=54;break;}break;
case 31: switch (rukuhNumber){case 1:  totalAyat = 11;startFrom=1;break;case 2:  totalAyat = 8;startFrom=12;break;case 3:  totalAyat = 11;startFrom=20;break;case 4:  totalAyat = 4;startFrom=31;break;}break;
case 32: switch (rukuhNumber){case 1:  totalAyat = 11;startFrom=1;break;case 2:  totalAyat = 11;startFrom=12;break;case 3:  totalAyat = 8;startFrom=23;break;}break;
case 33: switch (rukuhNumber){case 1:  totalAyat = 8;startFrom=1;break;case 2:  totalAyat = 12;startFrom=9;break;case 3:  totalAyat = 7;startFrom=21;break;case 4:  totalAyat = 7;startFrom=28;break;case 5:  totalAyat = 6;startFrom=35;break;case 6:  totalAyat = 12;startFrom=41;break;case 7:  totalAyat = 6;startFrom=53;break;case 8:  totalAyat = 10;startFrom=59;break;case 9:  totalAyat = 5;startFrom=69;break;}break;
case 34: switch (rukuhNumber){case 1:  totalAyat = 9;startFrom=1;break;case 2:  totalAyat = 12;startFrom=10;break;case 3:  totalAyat = 9;startFrom=22;break;case 4:  totalAyat = 6;startFrom=31;break;case 5:  totalAyat = 9;startFrom=37;break;case 6:  totalAyat = 9;startFrom=46;break;}break;
case 35: switch (rukuhNumber){case 1:  totalAyat = 7;startFrom=1;break;case 2:  totalAyat = 7;startFrom=8;break;case 3:  totalAyat = 12;startFrom=15;break;case 4:  totalAyat = 11;startFrom=27;break;case 5:  totalAyat = 8;startFrom=38;break;}break;
case 36: switch (rukuhNumber){case 1:  totalAyat = 12;startFrom=1;break;case 2:  totalAyat = 20;startFrom=13;break;case 3:  totalAyat = 18;startFrom=33;break;case 4:  totalAyat = 17;startFrom=51;break;case 5:  totalAyat = 16;startFrom=68;break;}break;
case 37: switch (rukuhNumber){case 1:  totalAyat = 21;startFrom=1;break;case 2:  totalAyat = 53;startFrom=22;break;case 3:  totalAyat = 39;startFrom=75;break;case 4:  totalAyat = 25;startFrom=114;break;case 5:  totalAyat = 44;startFrom=139;break;}break;
case 38: switch (rukuhNumber){case 1:  totalAyat = 14;startFrom=1;break;case 2:  totalAyat = 12;startFrom=15;break;case 3:  totalAyat = 14;startFrom=27;break;case 4:  totalAyat = 24;startFrom=41;break;case 5:  totalAyat = 24;startFrom=65;break;}break;
case 39: switch (rukuhNumber){case 1:  totalAyat = 9;startFrom=1;break;case 2:  totalAyat = 12;startFrom=10;break;case 3:  totalAyat = 10;startFrom=22;break;case 4:  totalAyat = 10;startFrom=32;break;case 5:  totalAyat = 11;startFrom=42;break;case 6:  totalAyat = 11;startFrom=53;break;case 7:  totalAyat = 7;startFrom=64;break;case 8:  totalAyat = 5;startFrom=71;break;}break;
case 40: switch (rukuhNumber){case 1:  totalAyat = 9;startFrom=1;break;case 2:  totalAyat = 11;startFrom=10;break;case 3:  totalAyat = 7;startFrom=21;break;case 4:  totalAyat = 10;startFrom=28;break;case 5:  totalAyat = 13;startFrom=38;break;case 6:  totalAyat = 10;startFrom=51;break;case 7:  totalAyat = 8;startFrom=61;break;case 8:  totalAyat = 10;startFrom=69;break;case 9:  totalAyat = 7;startFrom=79;break;}break;
case 41: switch (rukuhNumber){case 1:  totalAyat = 8;startFrom=1;break;case 2:  totalAyat = 10;startFrom=9;break;case 3:  totalAyat = 7;startFrom=19;break;case 4:  totalAyat = 7;startFrom=26;break;case 5:  totalAyat = 12;startFrom=33;break;case 6:  totalAyat = 10;startFrom=45;break;}break;
case 42: switch (rukuhNumber){case 1:  totalAyat = 9;startFrom=1;break;case 2:  totalAyat = 10;startFrom=10;break;case 3:  totalAyat = 10;startFrom=20;break;case 4:  totalAyat = 14;startFrom=30;break;case 5:  totalAyat = 10;startFrom=44;break;}break;
case 43: switch (rukuhNumber){case 1:  totalAyat = 15;startFrom=1;break;case 2:  totalAyat = 10;startFrom=16;break;case 3:  totalAyat = 10;startFrom=26;break;case 4:  totalAyat = 10;startFrom=36;break;case 5:  totalAyat = 11;startFrom=46;break;case 6:  totalAyat = 11;startFrom=57;break;case 7:  totalAyat = 22;startFrom=68;break;}break;
case 44: switch (rukuhNumber){case 1:  totalAyat = 29;startFrom=1;break;case 2:  totalAyat = 13;startFrom=30;break;case 3:  totalAyat = 17;startFrom=43;break;}break;
case 45: switch (rukuhNumber){case 1:  totalAyat = 11;startFrom=1;break;case 2:  totalAyat = 10;startFrom=12;break;case 3:  totalAyat = 5;startFrom=22;break;case 4:  totalAyat = 11;startFrom=27;break;}break;
case 46: switch (rukuhNumber){case 1:  totalAyat = 10;startFrom=1;break;case 2:  totalAyat = 10;startFrom=11;break;case 3:  totalAyat = 6;startFrom=21;break;case 4:  totalAyat = 9;startFrom=27;break;}break;
case 47: switch (rukuhNumber){case 1:  totalAyat = 11;startFrom=1;break;case 2:  totalAyat = 8;startFrom=12;break;case 3:  totalAyat = 9;startFrom=20;break;case 4:  totalAyat = 10;startFrom=29;break;}break;
case 48: switch (rukuhNumber){case 1:  totalAyat = 10;startFrom=1;break;case 2:  totalAyat = 7;startFrom=11;break;case 3:  totalAyat = 9;startFrom=18;break;case 4:  totalAyat = 3;startFrom=27;break;}break;
case 49: switch (rukuhNumber){case 1:  totalAyat = 10;startFrom=1;break;case 2:  totalAyat = 8;startFrom=11;break;}break;
case 50: switch (rukuhNumber){case 1:  totalAyat = 15;startFrom=1;break;case 2:  totalAyat = 14;startFrom=16;break;case 3:  totalAyat = 16;startFrom=30;break;}break;
case 51: switch (rukuhNumber){case 1:  totalAyat = 23;startFrom=1;break;case 2:  totalAyat = 23;startFrom=24;break;case 3:  totalAyat = 14;startFrom=47;break;}break;
case 52: switch (rukuhNumber){case 1:  totalAyat = 28;startFrom=1;break;case 2:  totalAyat = 21;startFrom=29;break;}break;
case 53: switch (rukuhNumber){case 1:  totalAyat = 25;startFrom=1;break;case 2:  totalAyat = 8;startFrom=26;break;case 3:  totalAyat = 29;startFrom=34;break;}break;
case 54: switch (rukuhNumber){case 1:  totalAyat = 22;startFrom=1;break;case 2:  totalAyat = 18;startFrom=23;break;case 3:  totalAyat = 15;startFrom=41;break;}break;
case 55: switch (rukuhNumber){case 1:  totalAyat = 25;startFrom=1;break;case 2:  totalAyat = 20;startFrom=26;break;case 3:  totalAyat = 33;startFrom=46;break;}break;
case 56: switch (rukuhNumber){case 1:  totalAyat = 38;startFrom=1;break;case 2:  totalAyat = 36;startFrom=39;break;case 3:  totalAyat = 22;startFrom=75;break;}break;
case 57: switch (rukuhNumber){case 1:  totalAyat = 10;startFrom=1;break;case 2:  totalAyat = 9;startFrom=11;break;case 3:  totalAyat = 6;startFrom=20;break;case 4:  totalAyat = 4;startFrom=26;break;}break;
case 58: switch (rukuhNumber){case 1:  totalAyat = 6;startFrom=1;break;case 2:  totalAyat = 7;startFrom=7;break;case 3:  totalAyat = 9;startFrom=14;break;}break;
case 59: switch (rukuhNumber){case 1:  totalAyat = 10;startFrom=1;break;case 2:  totalAyat = 7;startFrom=11;break;case 3:  totalAyat = 7;startFrom=18;break;}break;
case 60: switch (rukuhNumber){case 1:  totalAyat = 6;startFrom=1;break;case 2:  totalAyat = 7;startFrom=7;break;}break;
case 61: switch (rukuhNumber){case 1:  totalAyat = 9;startFrom=1;break;case 2:  totalAyat = 5;startFrom=10;break;}break;
case 62: switch (rukuhNumber){case 1:  totalAyat = 8;startFrom=1;break;case 2:  totalAyat = 3;startFrom=9;break;}break;
case 63: switch (rukuhNumber){case 1:  totalAyat = 8;startFrom=1;break;case 2:  totalAyat = 3;startFrom=9;break;}break;
case 64: switch (rukuhNumber){case 1:  totalAyat = 10;startFrom=1;break;case 2:  totalAyat = 8;startFrom=11;break;}break;
case 65: switch (rukuhNumber){case 1:  totalAyat = 7;startFrom=1;break;case 2:  totalAyat = 5;startFrom=8;break;}break;
case 66: switch (rukuhNumber){case 1:  totalAyat = 7;startFrom=1;break;case 2:  totalAyat = 5;startFrom=8;break;}break;
case 67: switch (rukuhNumber){case 1:  totalAyat = 14;startFrom=1;break;case 2:  totalAyat = 16;startFrom=15;break;}break;
case 68: switch (rukuhNumber){case 1:  totalAyat = 33;startFrom=1;break;case 2:  totalAyat = 19;startFrom=34;break;}break;
case 69: switch (rukuhNumber){case 1:  totalAyat = 37;startFrom=1;break;case 2:  totalAyat = 15;startFrom=38;break;}break;
case 70: switch (rukuhNumber){case 1:  totalAyat = 35;startFrom=1;break;case 2:  totalAyat = 9;startFrom=36;break;}break;
case 71: switch (rukuhNumber){case 1:  totalAyat = 20;startFrom=1;break;case 2:  totalAyat = 8;startFrom=21;break;}break;
case 72: switch (rukuhNumber){case 1:  totalAyat = 19;startFrom=1;break;case 2:  totalAyat = 9;startFrom=20;break;}break;
case 73: switch (rukuhNumber){case 1:  totalAyat = 19;startFrom=1;break;case 2:  totalAyat = 1;startFrom=20;break;}break;
case 74: switch (rukuhNumber){case 1:  totalAyat = 31;startFrom=1;break;case 2:  totalAyat = 25;startFrom=32;break;}break;
case 75: switch (rukuhNumber){case 1:  totalAyat = 30;startFrom=1;break;case 2:  totalAyat = 10;startFrom=31;break;}break;
case 76: switch (rukuhNumber){case 1:  totalAyat = 22;startFrom=1;break;case 2:  totalAyat = 9;startFrom=23;break;}break;
case 77: switch (rukuhNumber){case 1:  totalAyat = 40;startFrom=1;break;case 2:  totalAyat = 10;startFrom=41;break;}break;
case 78: switch (rukuhNumber){case 1:  totalAyat = 30;startFrom=1;break;case 2:  totalAyat = 10;startFrom=31;break;}break;
case 79: switch (rukuhNumber){case 1:  totalAyat = 26;startFrom=1;break;case 2:  totalAyat = 20;startFrom=27;break;}break;
case 80: switch (rukuhNumber){case 1:  totalAyat = 42;startFrom=1;break;}break;
case 81: switch (rukuhNumber){case 1:  totalAyat = 29;startFrom=1;break;}break;
case 82: switch (rukuhNumber){case 1:  totalAyat = 19;startFrom=1;break;}break;
case 83: switch (rukuhNumber){case 1:  totalAyat = 36;startFrom=1;break;}break;
case 84: switch (rukuhNumber){case 1:  totalAyat = 25;startFrom=1;break;}break;
case 85: switch (rukuhNumber){case 1:  totalAyat = 22;startFrom=1;break;}break;
case 86: switch (rukuhNumber){case 1:  totalAyat = 17;startFrom=1;break;}break;
case 87: switch (rukuhNumber){case 1:  totalAyat = 19;startFrom=1;break;}break;
case 88: switch (rukuhNumber){case 1:  totalAyat = 26;startFrom=1;break;}break;
case 89: switch (rukuhNumber){case 1:  totalAyat = 30;startFrom=1;break;}break;
case 90: switch (rukuhNumber){case 1:  totalAyat = 20;startFrom=1;break;}break;
case 91: switch (rukuhNumber){case 1:  totalAyat = 15;startFrom=1;break;}break;
case 92: switch (rukuhNumber){case 1:  totalAyat = 21;startFrom=1;break;}break;
case 93: switch (rukuhNumber){case 1:  totalAyat = 11;startFrom=1;break;}break;
case 94: switch (rukuhNumber){case 1:  totalAyat = 8;startFrom=1;break;}break;
case 95: switch (rukuhNumber){case 1:  totalAyat = 8;startFrom=1;break;}break;
case 96: switch (rukuhNumber){case 1:  totalAyat = 19;startFrom=1;break;}break;
case 97: switch (rukuhNumber){case 1:  totalAyat = 5;startFrom=1;break;}break;
case 98: switch (rukuhNumber){case 1:  totalAyat = 8;startFrom=1;break;}break;
case 99: switch (rukuhNumber){case 1:  totalAyat = 8;startFrom=1;break;}break;
case 100: switch (rukuhNumber){case 1:  totalAyat = 11;startFrom=1;break;}break;
case 101: switch (rukuhNumber){case 1:  totalAyat = 11;startFrom=1;break;}break;
case 102: switch (rukuhNumber){case 1:  totalAyat = 8;startFrom=1;break;}break;
case 103: switch (rukuhNumber){case 1:  totalAyat = 3;startFrom=1;break;}break;
case 104: switch (rukuhNumber){case 1:  totalAyat = 9;startFrom=1;break;}break;
case 105: switch (rukuhNumber){case 1:  totalAyat = 5;startFrom=1;break;}break;
case 106: switch (rukuhNumber){case 1:  totalAyat = 4;startFrom=1;break;}break;
case 107: switch (rukuhNumber){case 1:  totalAyat = 7;startFrom=1;break;}break;
case 108: switch (rukuhNumber){case 1:  totalAyat = 3;startFrom=1;break;}break;
case 109: switch (rukuhNumber){case 1:  totalAyat = 6;startFrom=1;break;}break;
case 110: switch (rukuhNumber){case 1:  totalAyat = 3;startFrom=1;break;}break;
case 111: switch (rukuhNumber){case 1:  totalAyat = 5;startFrom=1;break;}break;
case 112: switch (rukuhNumber){case 1:  totalAyat = 4;startFrom=1;break;}break;
case 113: switch (rukuhNumber){case 1:  totalAyat = 5;startFrom=1;break;}break;
case 114: switch (rukuhNumber){case 1:  totalAyat = 6;startFrom=1;break;}break;
}
puplicStartFrom = startFrom
return (totalAyat)
}


function Generator(Obj, AyatId, source) {
  Data = Obj.options[Obj.selectedIndex].value
  CommaPosition = Data.lastIndexOf(",")

  TotalAyat = Data.substring(CommaPosition+1)
  DataWithoutAyat = Data.substring(0, CommaPosition)

  CommaPosition = DataWithoutAyat.lastIndexOf(",")
  Rukuh = DataWithoutAyat.substring(CommaPosition+1)
	
  ChapterId = DataWithoutAyat.substring(0, CommaPosition)
  Ayat = new Array();
  inDex = 0
  AyaRukuhCounter = 0
	if (source=='Rukuh') 
	{   Text = "Ayat No: "


  		if (document.ChapterFrm.RukuhNumber.options[document.ChapterFrm.RukuhNumber.selectedIndex].value != 'null'){
			TotCount = getAyaRukuh(ChapterId, document.ChapterFrm.RukuhNumber.selectedIndex)
			AyaRukuhCounter	= (puplicStartFrom-1)
		}
		else
	    	TotCount = TotalAyat 

	}
	else
	{
        Ayat[0]=new Option('All', value=null)
		inDex = 1
		Text = "Rukuh No: "
		TotCount = Rukuh
		TotCount++


	}


  for (i=inDex; i<TotCount; i++) {
       Ayat[i]=new Option(Text + (AyaRukuhCounter+1), value=(AyaRukuhCounter+1))
	   AyaRukuhCounter++
		
       }

  for (i=AyatId.length; i>=0; i--)
       AyatId.options[i]=null     
 
 
   for (i=0; i <Ayat.length; i++) 
      AyatId.options[i] = Ayat[i] 
  
  if (source =='Chapter'){
	document.ChapterFrm.RukuhNumber.selectedIndex=0
 	document.ChapterFrm.RukuhNumber.onchange()

}
  document.ChapterFrm.ChapterId.value= ChapterId      
}


