	
	function DisRtclickopt()
		{
			try{
					document.getElementById('EmailAdv').disabled=true;
					document.getElementById('EmailAdv').style.cursor="none";
					document.getElementById('readOut').disabled=true;
					document.getElementById('readOut').style.cursor="none";
					document.getElementById('clip').disabled=true;
					document.getElementById('clip').style.cursor="none";
					document.getElementById('VUrl').disabled=true;
					document.getElementById('VUrl').style.cursor="none";
			   }catch(e){}			
		}

		function HidBlurb(){
		  try{
				document.getElementById("Blurb2").style.visibility="hidden";
				document.getElementById("Blurb").style.visibility="hidden";
			 }catch(e){}	
		}
		 function fadeoutclose()
		 {		
		     try{
		          if (!curGlideLyr) {
		  			  if(Ex1.isHalted){
					    	Ex1.fader.fadeOut();
						    Ex1.isHalted = false;
					 }
				  }
				  if(Ex2.isHalted){
					  Ex2.fader.fadeOut();
					  Ex2.isHalted = false;
				 }
				 if(Ex3.isHalted){
					  Ex3.fader.fadeOut();
				 	  Ex3.isHalted = false;
				}
				if(Ex4.isHalted){
					  Ex4.fader.fadeOut();
					  Ex4.isHalted = false;
				}	
				}catch(e){}	
	     }	
		 function VisitURL(){
			  try{
						if(currentURL!=='')
						{
								if (chck == "False") {
										if (confirm('You need to Register/Login to access this feature')) window.location.href=LoginPageURL;
										return false;
								}
								if(ZoomStatus!=1)
								{
									window.open(currentURL,"VisitUrl","left=200,top=200,width=650,height=500,toolbar=no,menubar=no,address=no,scrollbars=yes,resizable=yes");
								}
						}
				}catch(e){}	
			}
			function showpodcast() {
	document.getElementById('divPgSrc').style.cursor='pointer';
				setDblclick=0;
				DisRtclickopt();			
				setCropsState();				
				fadeoutclose();
		url = "podcast.aspx?dayName=" + sCurrentPage;	
		displayLoading();
	    jsRemoteCall(url);
	}
	var DispPodcast;
	function ShowPodcastLinks(url)
	{  
			document.getElementById('divPgSrc').style.cursor='pointer';
				setDblclick=0;
				DisRtclickopt();			
				setCropsState();				
				fadeoutclose();
		DispPodcast= //window.open(url,"artwindow","left='100',top='100',width='1500',height='2000',toolbar=no,menubar=no,status=no,address=no,scrollbars=yes,resizable=yes,titlebar=no")
		window.open(url,"art","left=220,top=120,width=550,height=550,toolbar=no,menubar=no,status=no,address=no,scrollbars=yes,resizable=yes,titlebar=no")
		DispPodcast.focus();
	}

		function EmailAdvertiser(){
		   try{	
						var typ=1;
						var EAdvertiser;
						var advUrl; 
						if(CurrentAdvertiser!='')
						{
							if (chck == "False") {
								if (confirm('You need to Register/Login to access this feature')) window.location.href="Login.aspx";
								return false;
							}
							if(ZoomStatus!=1)
							{
							advUrl = "MailTo.aspx?toadd=" + CurrentAdvertiser + "&typ=" + typ;
							window.open(advUrl,"AdvMail","width=580,height=350,toolbar=no,menubar=no,address=no,scrollbars=yes,resizable=yes");
							}
						}
				}catch(e){}	    	
		}



		function MM_preloadImages() { //v3.0
			try{
					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; i<a.length; i++)
					if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
					
			}catch(e){}		
			}

			function MM_findObj(n, d) { //v4.01
				try{
					var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&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<d.forms.length;i++) x=d.forms[i][n];
					for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
					if(!x && d.getElementById) x=d.getElementById(n); return x;
				}catch(e){}	
			}

			function MM_swapImgRestore() { //v3.0
			   try{
					var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
			   }catch(e){}	
			}

			function MM_swapImage() {
			  //v3.0
			  try{
					var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
					if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
				 }catch(e){}	
			}



			//for Disabling the  next and previous Links
			function DisableLink(typ) {
			   try{
						if (typ == 1) {
							var obj=document.getElementById("aPrev");
							var obj1=document.getElementById("aPrev1");
						} else {
							var obj=document.getElementById("aNext");
							var obj1=document.getElementById("aNext1");
							blNextpg =0;
						}
						obj.style.cursor = "default";
						obj1.style.cursor = "default";
				  }catch(e){}		
		   }
			//for Enabling the  next and previous Links
			function EnableLink(did,page1,page2,skin,typ) {
			   try{
						if (typ == 1) {
							var obj=document.getElementById("aPrev");
							var obj1=document.getElementById("aPrev1");
						} else {
							var obj=document.getElementById("aNext");
							var obj1=document.getElementById("aNext1");
						}
						if (window.XMLHttpRequest) {
							obj.style.cursor = "pointer";
							obj1.style.cursor = "pointer";
						} else {
							obj.style.cursor = "hand";
							obj1.style.cursor = "hand";
						}
				  }catch(e){}		
			}



			//For First Page Moving 
			function funcFirst() {
			   try{
					if (aPrevPg) {
						//for Zoom Ravi 14 th april
						setCropsState();
						func2(gDid,sCurrentPage,gS);
					}
				 }catch(e){}	
			}
		
			//for Previous Page Moving
			function funcPrev() {
					   //for Zoom Ravi 14 th April
					 
				try{
						if(aPrevPg) {
							setCropsState();
							 func2(gDid,aPrevPg,gS);
						}
						else
							{
									if(strPrevpg){
									document.getElementById("aPrev").style.cursor="hand";
									setCropsState();
									func2(gDid,strPrevpg,gS);
									}
							}
				}catch(e){}			
			}
			//for Last Page Moving 
			function funcLast() {
			   try{
					setCropsState();
					func2(gDid,lPg,gS);
				  }catch(e){}	
			}


		//CODE FOR ARTICLE RATING ****
			function ArticleRating(remotePage) {
			 //for Firefox assigning the cursor  hand  by ravi 
			 
			   try{
						document.getElementById('divPgSrc').style.cursor='pointer';
						if(setDblclick==1)
							setDblclick=0;
						    DisRtclickopt();
						//for Zoom Ravi
						if (chck == "False") {
							window.location.href = "Login.aspx";
							return false;
						}
						if (document.getElementById("divZoom").style.display == "block"){
							document.getElementById("divZoom").style.display= "none";	
							
							ZoomStatus=0;
						}
					/*	if (BrwsrName != "Ne"){
							document.getElementById("divPgSrc").style.cursor = "pointer"; 
						}*/
						if (chck == "False") {
											if (confirm('You need to Register/Login to access this feature')) window.location.href="Login.aspx";
												return false;
											}
						displayLoading();
						jsRemoteCall(remotePage);
				  }catch(e){}		
			}




			//for Advance Gallery Search 
	function AdGallerySearch(type,page,cur) {
	   try{
			setDblclick=0;
			document.getElementById("divPgSrc").style.cursor = "none";
			DisRtclickopt(); 
			if(isLoginRequired)
			{
			    if (chck == "False") {
						    window.location.href = "Login.aspx";
						    return false;
			    }
			}
			Ex4.handleClick();
	 		setCropsState();
	 	  }catch(e){}	
	}
    //for Ad Gallery 
	function adGallery(type,page,cur) {
	   //for Firefox assigning the cursor  hand  by ravi  may 16 th 
	   try{
	       document.getElementById('divPgSrc').style.cursor='auto';
	       DisRtclickopt();
	    // alert(page);
		   jsSearch(type,page,cur); 
				//ravi on 20 april
				//topMenuInit();
				//moveTopMenu(1);
			fadeoutclose();
		//for Zoom Ravi
			if (document.getElementById("divZoom").style.display == "block"){
					document.getElementById("divZoom").style.display= "none";	
				ZoomStatus=0;
			}
			return false;
		}catch(e){}
	}
	//for Advance Search 
	function advncSearch() {
	      //for Firefox assigning the cursor  hand  by ravi  may 16th 
		    document.getElementById('divPgSrc').style.cursor='auto';
		   //for Zoom Ravi
		    setDblclick=0;
		    fadeoutclose();
					//ravi on 20 april
			if (document.getElementById("divZoom").style.display == "block"){
				document.getElementById("divZoom").style.display= "none";	
				ZoomStatus=0;
			}
			jsASSearch('article');
			return false;
	}
	//for Archives Display 
	function DisplayArchives() {
	  try{
			if (chck == "False") {
				window.location.href = "Login.aspx";
				return false;
			}
			var preUrl;
			preUrl = "DispSearchArchives.aspx";
			displayLoading();
			jsRemoteCall(preUrl);	
		}catch(e){}	
	}
	//for Shwoin the Saved Clippings 
	function showMyClippings() {
	    //for Firefox assigning the cursor  hand  by ravi 
	    try{
				document.getElementById('divPgSrc').style.cursor='pointer';
				setDblclick=0;
				DisRtclickopt();
			//for Zoom Ravi
				setCropsState();
				//code for MAc
					//ravi on 20 april
				fadeoutclose();
    			if (BrwsrName.substring(0,2) == "Ne")
				{ 
    				if (document.getElementById("e_content").style.overflow=="auto")
					{
						if(navigator.userAgent.indexOf("Safari") == -1)
						{
							document.getElementById("e_content").style.overflow="hidden";
						}
					}
    			}
    			var i;
				i=0;
				while (i <= document.getElementsByName('x_imp').length-1)
				{
					document.getElementsByName('x_imp').item(i).style.overflow= "hidden";
					i = i + 1;
				}
    			//code for 
				if (chck == "False") {
					window.location.href = "Login.aspx";
					return false;
				}
				//for Zoom Ravi
				if (document.getElementById("divZoom").style.display == "block"){
					document.getElementById("divZoom").style.display= "none";	
					ZoomStatus=0;
				}
				var preUrl;
				preUrl = "ShowMyClippings.aspx?mode=1&t=" + Math.random();
				//alert(preUrl);
				displayLoading();
				jsRemoteCall(preUrl);	
				onOffIcons(2);
		 }catch(e){}		
	}
	//for Deletin the  selected Clippings 
	function DeleteMyClippings(mode){
	   try{
	     	document.getElementById('divPgSrc').style.cursor='pointer';
			var intClipCount=document.getElementById("hClipCount").value;
			var IsChecked;
			IsChecked = false;
			for (var i = 1; i<=intClipCount; i++)
				if (document.getElementById("chk"+i).checked)							
					IsChecked = true;
				if (IsChecked){						
						if (confirm("Are you sure want to delete the selected Clippings?")){	
									var strDelList ;
									strDelList='';
									for (var i = 1; i<=intClipCount; i++){
										if (document.getElementById("chk"+i).checked){
											if (strDelList=='')
												strDelList = strDelList + document.getElementById("chk"+i).value;
											else							
												strDelList = strDelList + '__' + document.getElementById("chk"+i).value;
										}
									}
									var preUrl;
									preUrl = "ShowMyClippings.aspx?strDelList=" + strDelList + "&mode=1";
									displayLoading();
									jsRemoteCall(preUrl);	
						}		
				} else alert("Please select atleast one item.");
		}catch(e){}	
	}
	function ShowHideLeftLinks(obj,imgObj,skin) {
	   try{
				var lftDivObj = document.getElementById(obj);
				var moreDivOjb = document.getElementById(imgObj);
				if(lftDivObj.style.display == "none") {
						lftDivObj.style.display="block"
				} else {
						lftDivObj.style.display="none"
					}
		 }catch(e){}			
	}
	function HideLeftLinks(obj,imgObj,skin) {
	  try{
			var lftDivObj = document.getElementById(obj);
			var moreDivOjb = document.getElementById(imgObj);
			if(lftDivObj.style.display == "block") {
				lftDivObj.style.display="none"
			}
		}catch(e){}	
	}
	function ShowLeftLinks(obj,imgObj,skin) {
	  try{
			var lftDivObj = document.getElementById(obj);
			var moreDivOjb = document.getElementById(imgObj);
			if(lftDivObj.style.display == "none") {
					lftDivObj.style.display="block"
			}
		}catch(e){}	
	}
	function ShowHideLeftLinks1(obj,imgObj,skin) {
	   try{
			var lftDivObj = document.getElementsByName(obj);
			var moreDivOjb = document.getElementById(imgObj);
			for (var i = 0 ;i<lftDivObj.length;i++) {
				if(lftDivObj[i].style.display == "none") {
						lftDivObj[i].style.display="block"
				} else {
						lftDivObj[i].style.display="none"
					}
			}
		}catch(e){}	
	}
	function onOffIcons(val) {	}
	//For Show Preferences
	function showPref() {
	   try{
	   isOther=true;
	         HidBlurb();			
				 var response14 = AjaxUtilsMethods.CheckUserLoginStatus();
                var strLogin = response14.value;                     
               if(strLogin=="Valid")
               {
               	    var preUrl;
				    preUrl = VirtualPath + "/Profile.html";
				    DisplayProfile(preUrl);				  
               }
               else
               {
                document.getElementById('Profile').style.display ="none";  
                 if(confirm('You need to Register/Login to access this feature'))
	                    window.location.href  = LoginSPageURL;
	                    return false;               
               }			
		  }catch(e){}		
	}
	function DisplayRSS() {
			try{ 
		    document.getElementById('divPgSrc').style.cursor='auto';
	    	setDblclick=0;
			DisRtclickopt();
			url = "ShowRSSLinks.aspx?dayName=" + sCurrentPage;
			displayLoading();
			jsRemoteCall(url);
		}catch(e){}	
	}
	function register(str) {
	  try{
			if (chck == "False") {
				if (confirm(str)) window.location.href="Login.aspx";
			}
		 }catch(e){}	
	}
	function oPgAftLog(str,selPg,page,pId,artHigh) {
		if (chck == "False") {
			if (confirm(str)) window.location.href="Login.aspx?selPg=" + selPg + "&page=" + page + "&ed=" + pId + "&artHigh=" + artHigh;
		}
	}
	function mulOnLoad() {
	  try{	
			if(document.getElementById("pgFlash")) {
				var flsPath = document.getElementById("pgFlash").innerHTML;
				openFlash(flsPath);
			}
			if (chck != "False") {
				if(document.getElementById("pgAudio")) {
					var audPath = document.getElementById("pgAudio").innerHTML;
					playAudio(audPath);
				}
			}
		}catch(e){}	
	}
	//for Configurating Zoom
	function enablezoom()
		{ 
		   try{
				if(BrwsrName.substring(0,2) == "Ne") 
				{ 
				        if(zoomenable=="true")
			     				document.getElementById('divPgSrc').setAttribute("style","Z-INDEX: 1; LEFT: 0px; OVERFLOW: hidden; WIDTH: 596px; CURSOR: url(images/zoomin_icon.ico),auto; POSITION: relative; TOP: 0px; HEIGHT: 996px");		     
						else
								document.getElementById('divPgSrc').setAttribute("style","Z-INDEX: 1; LEFT: 0px; OVERFLOW: hidden; WIDTH: 596px; CURSOR:pointer; POSITION: relative; TOP: 0px; HEIGHT: 996px");		     			        
				}
  				else{
						if(zoomenable=="true")
							document.getElementById("divPgSrc").style.cursor = "images/zoomin_icon.ico";
						else
							document.getElementById("divPgSrc").style.cursor = "pointer";
				}
			}catch(e)
			{}
		}	
		      function setimgsrc(itcount){
		         try{
		                var BrwsrName=navigator.appName; 
		                var i;
                        if(document.getElementById("pgWThmb"+itcount)){
							for (i=1;i<=parseFloat(document.getElementById("pgWThmb"+(itcount)).getAttribute("pgcount"));i++){
								if(document.getElementById("pgWThmb"+itcount+i)){
										if (BrwsrName.substring(0,2) != "Ne"){   
											var tmp=document.getElementById('pgWThmb'+itcount+i);
											tmp.src=document.getElementById('pgWThmb'+itcount+i).actimgsrc;
										}
										else
										{
											document.getElementById("pgWThmb"+itcount+i).setAttribute("src",document.getElementById('pgWThmb'+itcount+i).getAttribute('actimgsrc'));
										}
								}
						    }
                       }
                   }catch(e){ }    
               }  

			   function setCropsState(){
		     try{
         		if (BrwsrName.substring(0,2) != "Ne"){
					document.getElementById("divPgSrc").style.cursor = "hand"; 
				}
		  	    if(ZoomStatus!=0){
					ZoomStatus=0;
					document.getElementById('divPgSrc').style.width=596;
					document.getElementById('myScrollContainer').style.display='block';
					document.getElementById("divZoom").style.display ="none";
					document.getElementById("divPgSrc").style.cursor ="hand" 
				}
			}catch(e){}	
	     }

		 //Display Search 
	function DisplaySearch() {
	    try
	    { 
		       /*   var response17 = AjaxUtilsMethods.CheckUserLoginStatus();
              var strLogin = response17.value;          
              if(strLogin =="InValid")
		      {
		         fired=true;
			    if(confirm('You need to Register/Login to access this feature'))
			    {
				   window.location.href=VirtualPath+"/login.htm";
				   return false;
			    }
                else
			    { 
			       return false;
			    }
		      }  */  
		      
		     if(isLoginRequired)
              {
                  var response17 = AjaxUtilsMethods.CheckUserLoginStatus();
                  var strLogin = response17.value;        
                   if(strLogin =="InValid")
		            { 
		                 fired=true;
			            if(confirm('You need to Register/Login to access this feature'))
			            {
				            window.location.href=LoginPageURL;
				               return false;
			            }
			            else
			            {
			             return false;
			            }
		            }  
		        }
		     else
		        {
		             fired=true;
		        }
		      
			  /*  if (chck == "False") 
			    {
					window.location.href = "Login.aspx";
					return false;
			    }	*/
			        selType.style.display="block";
					topMenuInit();
					moveTopMenu(1);
					Ex3.handleClick();
					Ex2.handleClick();
					setCropsState();
					
		}catch(e){}			
	}

	//for showing the selected Pages
	function selPagesShow(obj) {
	  try{
			if (obj.value == 1) {
			
				document.getElementById("trSel").style.display="block";
				
			} else {
				document.getElementById("trSel").style.display="none";
				
			}
		}catch(e){}	
}
   //ravishankar march 09 th 2007 for crops view
 function cropsview(WebPath,res)
 {    try{
	        var preUrl;
	        preUrl="zoomhandler.ashx?p1= " + WebPath + "&p2=" + res+"&t="+Math.random();
	        jsRemoteCall2(preUrl);
	     }catch(e){}   
 }

 function checkSession() {
		if (document.getElementById('sVal').value == '1') {
			window.location.href="Login.aspx";
		}
	}


	//Ravi 16 th for Context Menu Disabling and enabling
      function setstylecontext()
      {
         try{
		    if(setDblclick==1){
					 document.getElementById('EmailAdv').disabled=true;
					document.getElementById('EmailAdv').style.cursor="none";
					document.getElementById('readOut').disabled=true;
					document.getElementById('readOut').style.cursor="none";
					document.getElementById('clip').disabled=true;
					document.getElementById('clip').style.cursor="none";
					document.getElementById('VUrl').disabled=true;
					document.getElementById('VUrl').style.cursor="none";}
			 else{
						document.getElementById('EmailAdv').disabled=false;
						document.getElementById('EmailAdv').style.cursor="hand";
						document.getElementById('readOut').disabled=false;
						document.getElementById('readOut').style.cursor="hand";
						document.getElementById('clip').disabled=false;
						document.getElementById('clip').style.cursor="hand";
						document.getElementById('VUrl').disabled=false;
						document.getElementById('VUrl').style.cursor="hand";
		       }
		   }catch(e){}    
     }
	function getcor(){
	   try{
			window.captureEvents(Event.CLICK);
			window.onclick = getMouseXY;
		    releaseWindowCapture();
		  }catch(e){}  
	}
	function getMouseXY(e){
	   try{
	        if(e.pageY<100)
	        gEveX=e.pageX;
			gEveY=e.pageY;
		  }catch(e){}	 
	}  
	function LoadImages() {
	   try{
			var WebPath=document.frm1.WPath1.value;  
			var v=new Array();
			var res;
			res = document.frm1.IHid.value;
			v = res.split("_");
			cropsview(WebPath,res)
		}catch(e){}	
	}  
		// for Displaying the loading icon 
		function displayLoading() {
		    try{
					var objLoad = document.getElementById("loading");
					objLoad.style.display="block";
					objLoad.style.visibility="visible";
					var x = (document.body.offsetWidth)/2 + document.body.scrollLeft;
					var y = (document.body.offsetHeight)/2 + document.body.scrollTop;
					objLoad.style.left=x-30;
					objLoad.style.top=y;
			  }catch(e){}
		}
		
	//for Checking the Article Height
	function checkArtHigh() {
	   try{
			if (g_artHigh != '') {
				if (window.ActiveXObject) glowArticle("article"+g_artHigh,'ie');
				else glowArticle("article"+g_artHigh,'ns');
				g_artHigh = '';
			}
		 }catch(e){}	
	}
	//For PageNavigation 
	function pgNavArtHigh(did,page,skin,article) {
	   try{
				g_artHigh = article;
				func2(did,page,skin);
		  }catch(e){}		
	}


	//for Updating the Selected Preferences
	function prefSelected(cnt,mnPg,supPg) {
	   try{
				var strPref="";
				var mnPgList="";
				var supPgList="";
				var preUrl;
				var i;
				i=0;
				for (i=0;i< cnt;i++) {
					if (eval("document.getElementById('frm1').radio"+i+"[0].checked")) {
						if (strPref == "") strPref = eval("document.getElementById('frm1').radio" + i + "[0].value");
						else strPref = strPref + "," + eval("document.getElementById('frm1').radio" + i + "[0].value");
					} 
    				else if (eval("document.getElementById('frm1').radio"+i+"[1].checked")) { 
							if (strPref == "") strPref = eval("document.getElementById('frm1').radio" + i + "[1].value");
							else strPref = strPref + "," + eval("document.getElementById('frm1').radio" + i + "[1].value");
					}
					else if (eval("document.getElementById('frm1').radio"+i+"[2].checked")) { 
							if (strPref == "") strPref = eval("document.getElementById('frm1').radio" + i + "[2].value");
							else strPref = strPref + "," + eval("document.getElementById('frm1').radio" + i + "[2].value");
					}
					else if (eval("document.getElementById('frm1').radio"+i+"[3].checked")) { 
							if (strPref == "") strPref = eval("document.getElementById('frm1').radio" + i + "[3].value");
							else strPref = strPref + "," + eval("document.getElementById('frm1').radio" + i + "[3].value");
					}
					else {
							if (strPref == "") strPref = eval("document.getElementById('frm1').radio" + i + "[4].value");
							else strPref = strPref + "," + eval("document.getElementById('frm1').radio" + i + "[4].value");
					}
				}
				for(i=0;i<mnPg;i++) {
						if(eval("document.getElementById('frm1').radio1[1].checked")) 
						{
								if(eval("document.getElementById('frm1').chckMain"+parseInt(i+1)+".checked")) {
										if (mnPgList == "") mnPgList = eval("document.getElementById('frm1').chckMain"+parseInt(i+1)+".value");
										else mnPgList = mnPgList + "," + eval("document.getElementById('frm1').chckMain"+parseInt(i+1)+".value");
				    			}
						}
				}
				//code to give an alert if no category is selected
				if(eval("document.getElementById('frm1').radio1[1].checked")) {
					if(mnPgList==""){alert('Please select a category');return;}
				}
				for(i=0;i<supPg;i++) {
	   				if(eval("document.getElementById('frm1').radio1[1].checked")) 
					{
							if(eval("document.getElementById('frm1').chckSupp"+parseInt(i+1)+".checked")) {
									if (supPgList == "") supPgList = eval("document.getElementById('frm1').chckSupp"+parseInt(i+1)+".value");
									else supPgList = supPgList + "," + eval("document.getElementById('frm1').chckSupp"+parseInt(i+1)+".value");
						}
					}
				}
				preUrl = "Preferences.aspx?prf=" + strPref + "&main=" + mnPgList + "&t=" + Math.random();
				displayLoading();
				jsRemoteCall(preUrl);
				onOffIcons(3);
		}catch(e){}		
	}
	//for Archives
	function cmgsoonalert()
	{
		alert("coming soon.");
	}
		//for Changing the Publication 
	function ChangePub() {
	   try{
				if (document.frm1.selPub.selectedIndex != 0) {
					document.frm1.method = "post";
					document.frm1.action = "ChangePub.aspx"
					document.frm1.submit();
				}
		  }catch(e){}	
	}

	function more_click()
	{
	   try{
	         moveTopMenu(0);
			if (BrwsrName.substring(0,2) == "Ne")
			{ 
		           myowndiv.innerHTML=divMenu0.innerHTML ;
                   if(myowndiv.style.visibility=="visible")
					{
		                myowndiv.style.visibility="hidden";
				        //code FOR MAC OS
						  document.getElementById("More_Div").style.overflow="hidden";
		                //CODE FOR MAC OS
					       document.getElementById("iLatMore").src = "images/more_btn.gif";
					
					}
					else
					{
			             myowndiv.style.visibility="visible";
					  //code FOR MAC OS
					
			             document.getElementById("More_Div").style.overflow="auto"; 
						  //code FOR MAC OS
			            document.getElementById("iLatMore").src = "images/close_btn.gif";
					} 
		   }
           else if (BrwsrName.substring(0,2) == "Mi"){
			       moveTopMenu(0);
		   } 
		}catch(e){}      
    }
	
	function AddClippings(){
	   try{

	    var response15 = AjaxUtilsMethods.CheckUserLoginStatus();
        var strLogin = response15.value;  
		if(strLogin =="Valid")
        {
        strPublicationID=strmyEdition_Id();
  
         var ArticleName =document.getElementById(currentArticle).getAttribute("ArticleName");
      var indDTArr_URL=document.getElementById("pageSourceImage").src.split("/");
	    var directAd1;
	    
	    directAd1=indDTArr_URL[9] +"_" + indDTArr_URL[8] +"_" + indDTArr_URL[7] + "_"+ArticleName
	                var GetResponse = AjaxUtilsMethods.ArticleClippingInsertD(strPublicationID,gMode,gTtitle,directAd1);
                var  Result = GetResponse.value; 
               
                if(Result == "50001")
                {
		            alert("Inserted Successfully");
		            window.open(VirtualPath+"/ViewClippings.htm","Clippings","width=470,height=325,toolbar=no,menubar=no,address=no,scrollbars=yes,resizable=yes");
                }
                else
                {
                    if(Result == "50005")
                    {
		                alert("This article is already clipped.");
		                window.open(VirtualPath+"/ViewClippings.htm","Clippings","width=470,height=325,toolbar=no,menubar=no,address=no,scrollbars=yes,resizable=yes");
                    }
                    else
                    {
		                alert("Problem occurred. Please try after some time.")
                    }
                }
         
         

        } 
		else if(strLogin =="InValid")
		{
			if(confirm('You need to Register/Login to access this feature'))
			{
				window.location.href=LoginPageURL;
				 return false;
			}
			else
			{
		 
			 return false;
			}
		} 
       
		}catch(e){}			
	}

	function chgpswd()
	{
		window.open(VirtualPath+"/manageprofile.shtml","myRSSWin","left=0,top=0,width=580,height=640,toolbar=no,menubar=no,status=no,address=no,scrollbars=no,resizable=no,titlebar=no")
	}
	
	function UpdateAricleView()
    {

 
      var strDAV='0',strDPV='0',strDTS='0';
         if(document.getElementById('DAVradio0').checked==true)
         {
            strDAV="0";
         }
         else
         {
            strDAV="1";
         }      
//         if(document.getElementById('DPVradio0').checked==true)
//         {
//            strDPV="0";
//         }
//         else
//         {
//            strDPV="1";
//               
//         }
//        for(var i=0;i<=4;i++)
//        {
//            if(document.getElementById('DTSradio'+i).checked)
//            {
//                strDTS=i;
//                break;
//            }
//        }
//        
//        var cat='';
//        if(strDPV=="1")
//        {
//          for(var j=1;j<=4;j++)
//            {
//                if(document.getElementById('chckMain'+j).checked)
//                {
//                    cat =j+"|"+cat;
//                }
//            }
//         }     
        
         var ResponseData = AjaxUtilsMethods.UpdateUserPreferences( strDAV ,0 ,0 ,0 )//,strDPV ,strDTS,cat );
        if(ResponseData.value=="success")
        {
            alert("updated successfully");  
            DAV=strDAV;   
            LoadMe(0,ImageArray[0]);     
        }
}

function AddArticleView()
{

     var PreferenceData = AjaxUtilsMethods.GetUserPreferences();
     if(PreferenceData.value!="Fail")
     {
        var pref= PreferenceData.value;    
         var strpref=pref.split(",");
        

	 if(TextVer=="0")
         {
            strpref[0]="1";
             document.getElementById('DAVradio0').disabled="disabled";
         }
         if(strpref[0]=="0")//for articles
         {
            document.getElementById('DAVradio0').checked=true; 
         }
         else
         {
            document.getElementById('DAVradio1').checked=true; 
         }
         
     }

	 if(TextVer=="0")
         {
             
             document.getElementById('DAVradio0').disabled="disabled";
 document.getElementById('DAVradio1').checked=true; 
         }
}


//start of video displaying

function displayLoading1(a,b) {
		    try{
					var objLoad = document.getElementById("loading1");
					objLoad.innerHTML=objLoad.innerHTML;
					objLoad.style.display="block";
					objLoad.style.visibility="visible";
					var x = a;
					var y = b;
					objLoad.style.left=x-350;
					objLoad.style.top=y-250;
					
					// document.getElementById("vedioLink").href="www.google.com";
					
			  }catch(e){}
		}
function displayLoading2(a,b) {
		    try{
					var objLoad = document.getElementById("loading1");
					objLoad.style.display="none";
					objLoad.style.visibility="hidden";
					var x = a;
					var y = b;
					objLoad.style.left=x-350;
					objLoad.style.top=y-250;
			  }catch(e){}
		}