
var url;
function changetabIdxFull (id, tab_act_right, tab_act_left, tab_reg_right, tab_reg_left)
{
	switch(id){
				case 1:
						document.getElementById("Tab1_Active_RightIdx").src = tab_act_right;
						document.getElementById("Tab1_Active_LeftIdx").src = tab_act_left;
						document.getElementById("Tab1_Active_TextIdx").style.backgroundImage= 'url(/TASE/Images/Tab_Active_BG.gif)';
						
						document.getElementById("Tab3_Active_RightIdx").src = tab_reg_right;
						document.getElementById("Tab3_Active_LeftIdx").src = tab_reg_left;
						document.getElementById("Tab3_Active_TextIdx").style.backgroundImage = 'url(/TASE/Images/Tab_Reg_BG.gif)';												
						
						tabIndexesIL.style.display="inline";
						tabTurnover.style.display="none";
						tblPlace.style.display="none";
						
						break;
				case 3:
						document.getElementById("Tab3_Active_RightIdx").src = tab_act_right;
						document.getElementById("Tab3_Active_LeftIdx").src = tab_act_left;
						document.getElementById("Tab3_Active_TextIdx").style.backgroundImage= 'url(/TASE/Images/Tab_Active_BG.gif)';
						
						
						document.getElementById("Tab1_Active_RightIdx").src = tab_reg_right;
						document.getElementById("Tab1_Active_LeftIdx").src = tab_reg_left;
						document.getElementById("Tab1_Active_TextIdx").style.backgroundImage = 'url(/TASE/Images/Tab_Reg_BG.gif)';												
						
						tabIndexesIL.style.display="none";
						tabTurnover.style.display="inline";
						tblPlace.style.display="inline";
						
						break;						
	} 
}

function reloadGraphIconFull(imgObj,iIndexNumber,sIndexName, sIconId, iType, graph_icon, graph_icon_active){
	
	var coll = document.images;
	
	if (coll!=null)
	{
		for (i=0; i<coll.length; i++) {
					curid = coll[i].id;										
					if(curid.substr((curid.length-sIconId.length),curid.length) == sIconId){						
							coll[i].src=graph_icon ;							
					} 					              
		}		
	}
	
    imgObj.src=graph_icon_active;
    currIndexId=iIndexNumber;
   
   

    showGraph(iIndexNumber, sIndexName, iType);   
  
}

function changeGrafhPeriodFull(iPeriod, tdId, iType,gifending, nowticks,lang, doXMLHTTP)
{        
    var ifr;
	
   var strTemp="";
   if(iType==1) 
     strTemp=2;
    
   document.getElementById("tdDay"+strTemp).className= "GrafhNonActiveBack";
   document.getElementById("tdMonth"+strTemp).className = "GrafhNonActiveBack";
   document.getElementById("td3Month"+strTemp).className = "GrafhNonActiveBack";
   document.getElementById("tdYear"+strTemp).className = "GrafhNonActiveBack";
   
//   eval("document.all.tdDay"+strTemp).className= "GrafhNonActiveBack";
//   eval("document.all.tdMonth"+strTemp).className = "GrafhNonActiveBack";
//   eval("document.all.td3Month"+strTemp).className = "GrafhNonActiveBack";
//   eval("document.all.tdYear"+strTemp).className = "GrafhNonActiveBack";
   
   try
   {
     // eval("document.all.td3Year"+strTemp).className = "GrafhNonActiveBack";
      document.getElementById("td3Year"+strTemp).className = "GrafhNonActiveBack";
   }
   catch(e)
   {
   }
   
   document.getElementById(tdId+strTemp).className = "GrafhActiveBack";
   //eval("document.getElementById('"+tdId+strTemp+"')").className = "GrafhActiveBack";
   
   if(tdId=="tdDay")
   {
     //eval("document.all.tdCorner"+strTemp).src = gifending+"Graph_Active_Right.gif"
      document.getElementById("tdCorner"+strTemp).src = gifending+"Graph_Active_Right.gif";
     
     try
		{
		  //eval("document.all.tdCornerLeft"+strTemp).src=gifending+"Graph_NonActive_Left.gif"
		  document.getElementById("tdCornerLeft"+strTemp).src=gifending+"Graph_NonActive_Left.gif";
		}
		catch(e)
		{
		   
		}
   }
   else
   {
     //eval("document.all.tdCorner"+strTemp).src = gifending+"Graph_NonActive_Right.gif"
      document.getElementById("tdCorner"+strTemp).src = gifending+"Graph_NonActive_Right.gif";
     if(tdId=="td3Year")
     {
		try
		{
		  //eval("document.all.tdCornerLeft"+strTemp).src=gifending+"Graph_Active_Left.gif"
		  document.getElementById("tdCornerLeft"+strTemp).src=gifending+"Graph_Active_Left.gif";
		}
		catch(e)
		{
		   
		}
     }
     else
     {
		try
		{
		  //eval("document.all.tdCornerLeft"+strTemp).src=gifending+"Graph_NonActive_Left.gif"
		  document.getElementById("tdCornerLeft"+strTemp).src=gifending+"Graph_NonActive_Left.gif";
		}
		catch(e)
		{
		   
		}
     }
     
   }
   
		if(lang == 0)
		{
			document.getElementById("imgChart").src = "/TASE/ChartFX/Chart_"+currIndexId+"_"+iPeriod+".png?"+Math.random();
		}
		else
		{
			document.getElementById("imgChart").src = "/TASE/ChartFX/ChartE_"+currIndexId+"_"+iPeriod+".png?"+Math.random();
		}
   
  
 }
 
 function showGraphFull(iIndexNumber, sIndexName, iType,iFirstIndexId,sFirstIndexName, graphlink,nowticks,lang)
 {
		changeGrafhPeriod(0, "tdDay", iType, false);	
		if(lang == 0)
		{
			document.getElementById("imgChart").src = "/TASE/ChartFX/Chart_"+currIndexId+"_0.png?"+Math.random();
		}
		else
		{
			document.getElementById("imgChart").src = "/TASE/ChartFX/ChartE_"+currIndexId+"_0.png?"+Math.random();
		}
	

}