  

  
  
        
        
            
        function BacGround(pos)
            {
            /*
			try{
				if(TVer!=ob5.selectedIndex)
				    return;
				
                PosTakeFromHL = pos;
                BookMarkBGVer = pos;
				//alert(pos);
				//alert(PosTakeFromHL);
				if(ob6.selectedIndex>0)
				parent.frmTran1.BackGroundCol(frm1.CmbFverse,frm1.CmbTverse,pos,ob2.selectedIndex+1,frm1.lblstatus.value,BGColor,ob10.options[ob10.selectedIndex].value);
				if(ob10.selectedIndex>0)
				parent.frmTran2.BackGroundCol(frm1.CmbFverse,frm1.CmbTverse,pos,ob2.selectedIndex+1,frm1.lblstatus.value,BGColor,ob10.options[ob10.selectedIndex].value);

				if(pos==0)
				return;

				var cu=new Date();
				var year=cu.getYear()+1;
				PosVe=pos;
				document.cookie = 'Sura='+parseInt(ob2.selectedIndex+1)+'; expires=Thu, 2 Aug '+year+' 20:47:11 UTC; path=/'
				document.cookie = 'FromVerse='+pos+'; expires=Thu, 2 Aug '+year+' 20:47:11 UTC; path=/'
				document.cookie = 'ToVerse='+parseInt(ob5.selectedIndex+1)+'; expires=Thu, 2 Aug '+year+' 20:47:11 UTC; path=/'  
				document.cookie = 'Reciter='+ob8.options[ob8.selectedIndex].value+'; expires=Thu, 2 Aug '+year+' 20:47:11 UTC; path=/'  
				document.cookie = 'Script='+ob10.options[ob10.selectedIndex].value+'; expires=Thu, 2 Aug '+year+' 20:47:11 UTC; path=/'  
				document.cookie = 'Translation='+ob6.options[ob6.selectedIndex].value+'; expires=Thu, 2 Aug '+year+' 20:47:11 UTC; path=/'  
				document.cookie = 'Zoom='+USize+'; expires=Thu, 2 Aug '+year+' 20:47:11 UTC; path=/'  
				document.cookie = 'TajweedRules='+ACCT+'; expires=Thu, 2 Aug '+year+' 20:47:11 UTC; path=/'  
				}
            catch(e){
                e="";
				//alert("Hello this is an error...");
                }
                */
			}
	    
		function ClrBacGround()
            {
            if(ob6.selectedIndex>0)
                parent.frmTran1.ClrBackGroundCol(frm1.CmbFverse,frm1.CmbTverse,ob2.selectedIndex+1,frm1.lblstatus.value,BGColor);
            if(ob10.selectedIndex>0)
                parent.frmTran2.ClrBackGroundCol(frm1.CmbFverse,frm1.CmbTverse,ob2.selectedIndex+1,frm1.lblstatus.value,BGColor);
            }

		function BookMark()
			{
			var cu=new Date();
			var year=cu.getYear()+1;
			
			LastVer=parseInt(TVer)+1;
			if (BookMarkBGVer <= 0)
			    BookMarkBGVer = 1;

            document.cookie = 'Sura='+parseInt(ob2.selectedIndex+1)+'; expires=Thu, 2 Aug '+year+' 20:47:11 UTC; path=/'
            if(Audio==1)
                {
                    document.cookie = 'FromVerse=' + BookMarkBGVer + '; expires=Thu, 2 Aug ' + year + ' 20:47:11 UTC; path=/'
                }
            else
                {
                document.cookie = 'FromVerse='+parseInt(ob4.selectedIndex+1)+'; expires=Thu, 2 Aug '+year+' 20:47:11 UTC; path=/'
                }
                
            document.cookie = 'ToVerse='+LastVer+'; expires=Thu, 2 Aug '+year+' 20:47:11 UTC; path=/'  
            document.cookie = 'Reciter='+ob8.options[ob8.selectedIndex].value+'; expires=Thu, 2 Aug '+year+' 20:47:11 UTC; path=/'  
            document.cookie = 'Script='+ob10.options[ob10.selectedIndex].value+'; expires=Thu, 2 Aug '+year+' 20:47:11 UTC; path=/'  
            document.cookie = 'Translation='+ob6.options[ob6.selectedIndex].value+'; expires=Thu, 2 Aug '+year+' 20:47:11 UTC; path=/'  
            document.cookie = 'Zoom='+USize+'; expires=Thu, 2 Aug '+year+' 20:47:11 UTC; path=/' 
            document.cookie = 'TajweedRules='+ACCT+'; expires=Thu, 2 Aug '+year+' 20:47:11 UTC; path=/'  
			//if(navigator.appVersion.indexOf("Win")!=-1 && navigator.appVersion.indexOf("MSIE")!=-1)
			//	{
			var cu1;
			var mo;
			cu1=new Date();
			mo=cu1.getMonth();
			if(parseInt(cu1.getMonth())==0)
				mo="Jan";
			if(parseInt(cu1.getMonth())==1)
				mo="Feb";
			if(parseInt(cu1.getMonth())==2)
				mo="Mar";
			if(parseInt(cu1.getMonth())==3)
				mo="Apr";
			if(parseInt(cu1.getMonth())==4)
				mo="May";
			if(parseInt(cu1.getMonth())==5)
				mo="Jun";
			if(parseInt(cu1.getMonth())==6)
				mo="Jul";
			if(parseInt(cu1.getMonth())==7)
				mo="Aug";
			if(parseInt(cu1.getMonth())==8)
				mo="Sep";
			if(parseInt(cu1.getMonth())==9)
				mo="Oct";
			if(parseInt(cu1.getMonth())==10)
				mo="Nov";
			if(parseInt(cu1.getMonth())==11)
				mo="Dec";
				//				www.QuranExplorer.comlocalhost	
			//alert(TVer);
//http://www.QuranExplorer.com

			if(Audio==1)
			    {
			        if (document.all) {
			            window.external.AddFavorite('http://www.QuranExplorer.com/Quran/?Sura=' + parseInt(ob2.selectedIndex + 1) + '&FromVerse=' + BookMarkBGVer + "&ToVerse=" + LastVer + '&Reciter=' + ob8.options[ob8.selectedIndex].value + '&Translation=' + ob6.options[ob6.selectedIndex].value + '&Zoom=' + USize + '&TajweedRules=' + ACCT, "Quran Bookmark | " + mo + " " + cu1.getDate() + " | Sura " + parseInt(ob2.selectedIndex + 1) + " - Verse " + BookMarkBGVer);
			           //window.external.AddFavorite("http://www.QuranExplorer.com/Quran", "Quran Bookmark");', 5);
                    }
                else if (window.sidebar)
                    window.sidebar.addPanel("Quran Bookmark | " + mo + " " + cu1.getDate() + " | Sura " + parseInt(ob2.selectedIndex + 1) + " - Verse " + BookMarkBGVer, 'http://www.QuranExplorer.com/Quran/?Sura=' + parseInt(ob2.selectedIndex + 1) + '&FromVerse=' + BookMarkBGVer + "&ToVerse=" + LastVer + '&Reciter=' + ob8.options[ob8.selectedIndex].value + '&Translation=' + ob6.options[ob6.selectedIndex].value + '&Zoom=' + USize + '&TajweedRules=' + ACCT, "")  
                }
            else {
                if (document.all) {
                    window.external.AddFavorite("http://www.QuranExplorer.com/Quran/?Sura=" + parseInt(ob2.selectedIndex + 1) + "&FromVerse=" + parseInt(ob4.selectedIndex + 1) + "&ToVerse=" + LastVer + "&Reciter=" + ob8.options[ob8.selectedIndex].value + "&Translation=" + ob6.options[ob6.selectedIndex].value + "&Zoom=" + USize + "&TajweedRules=" + ACCT, "Quran Bookmark | " + mo + " " + cu1.getDate() + " | Sura " + parseInt(ob2.selectedIndex + 1) + " - Verse " + parseInt(ob4.selectedIndex + 1));
                }
                else if (window.sidebar){
                    window.sidebar.addPanel("Quran Bookmark | "+mo+" "+cu1.getDate()+" | Sura "+parseInt(ob2.selectedIndex+1)+" - Verse "+parseInt(ob4.selectedIndex+1), 'http://www.QuranExplorer.com/Quran/?Sura='+parseInt(ob2.selectedIndex+1)+'&FromVerse='+parseInt(ob4.selectedIndex+1)+"&ToVerse="+LastVer+'&Reciter='+ob8.options[ob8.selectedIndex].value+'&Translation='+ob6.options[ob6.selectedIndex].value+'&Zoom='+USize+'&TajweedRules='+ACCT, "");
                    }                         
                }
			
			return;
			//	}
			//else
			//    {
			//    alert("D7778eeeeeD")
			//    }
			}
			
        function increase()
            {
           // if(frm1.lblstatus.value=="Loading...")
            //    return;
			if(TVer!=ob5.selectedIndex)
                return;
            var Lang=RName.substring(0,3);
			var touch=0;
            if(ob6.options[ob6.selectedIndex].value!="Hide")
                {
                if(USize<7)
                    {
                    parent.frmTran1.increaseFontSize(frm1.CmbFverse,frm1.CmbTverse,Lang,ob2.selectedIndex,ob10.options[ob10.selectedIndex].value);
					UpForm=1;
                    GFontSize(1);
					touch=1;
                    }
                }
            Lang="Urd";
            if(ob10.options[ob10.selectedIndex].value!="Hide")
                {
				if(touch==1)
					USize--;
                if(USize<7)
                    {
                    parent.frmTran2.increaseFontSize(frm1.CmbFverse,frm1.CmbTverse,Lang,ob2.selectedIndex,ob10.options[ob10.selectedIndex].value);
					UpForm=1;
                    GFontSize(1);
                    }
                }
            var SuraNo;
            SuraNo=parseInt(ob2.selectedIndex)+1;
            hrfPrint.href="/Quran/Print/default.aspx?Sura="+SuraNo+"&FromVerse="+ob4.options[ob4.selectedIndex].value+"&ToVerse="+ob5.options[ob5.selectedIndex].value+"&Script="+ob10.options[ob10.selectedIndex].value+"&Translation="+ob6.options[ob6.selectedIndex].value+"&TajweedRules="+ACCT+"&Zoom="+USize;
            }
	        
        function decrease()
            {
            //if(frm1.lblstatus.value=="Loading...")
              //  return;
            if(TVer!=ob5.selectedIndex)
                return;
            var Lang=RName.substring(0,3);
			var touch=0;
            if(ob6.options[ob6.selectedIndex].value!="Hide")
                {
                if(USize>3.2)
                    {
                    parent.frmTran1.decreaseFontSize(frm1.CmbFverse,frm1.CmbTverse,Lang,ob2.selectedIndex,ob10.options[ob10.selectedIndex].value);	
					UpForm=1;
                    GFontSize(1);
					touch=1;
                    }
                }
                
            Lang="Urd";	
            if(ob10.options[ob10.selectedIndex].value!="Hide")
                {
				if(touch==1)
					USize++;
                if(USize>3.2)
                    {
                    parent.frmTran2.decreaseFontSize(frm1.CmbFverse,frm1.CmbTverse,Lang,ob2.selectedIndex,ob10.options[ob10.selectedIndex].value);
					UpForm=1;
                    GFontSize(1);
                    }
                }
            var SuraNo;
            SuraNo=parseInt(ob2.selectedIndex)+1;
            hrfPrint.href="/Quran/Print/default.aspx?Sura="+SuraNo+"&FromVerse="+ob4.options[ob4.selectedIndex].value+"&ToVerse="+ob5.options[ob5.selectedIndex].value+"&Script="+ob10.options[ob10.selectedIndex].value+"&Translation="+ob6.options[ob6.selectedIndex].value+"&TajweedRules="+ACCT+"&Zoom="+USize;
            }

