
scrollStep=1

timerLeft=""
timerRight=""

function toLeft(id){

  document.getElementById(id).scrollLeft=0
 return false;

}

function scrollDivLeft(id){

 /* clearTimeout(timerRight) 
  document.getElementById(id).scrollLeft+=scrollStep
  timerRight=setTimeout("scrollDivLeft('"+id+"')",3)*/
  document.getElementById(id).scrollLeft+=90;
  return false;
 
}

function scrollDivRight(id){

  /*clearTimeout(timerLeft)
  document.getElementById(id).scrollLeft-=scrollStep
  timerLeft=setTimeout("scrollDivRight('"+id+"')",3)*/
  
  document.getElementById(id).scrollLeft-=90;
 return false;
}

function toRight(id){

  document.getElementById(id).scrollLeft=document.getElementById(id).scrollWidth
 return false;
}

function stopMe(){
  clearTimeout(timerRight) 
  clearTimeout(timerLeft)
  document.getElementById('rghtArrow').className = 'linkingTab';
  document.getElementById('leftArrow').className = 'linkingTab';
}

function chngbg(id){
    if(id == 1){
         document.getElementById('rghtArrow').className = 'linkingTab1';
    }
    else if(id == 0){
         document.getElementById('leftArrow').className = 'linkingTab1';
    }
    
}
function tabNP(val,tabcount){

	     if(document.getElementById('productdownloadcurrenttab')!=null)
	    document.getElementById('productdownloadcurrenttab').value=val;
            if(val<=3)
            {
            document.getElementById('container').scrollLeft-=90;
            }
            else{
            document.getElementById('container').scrollLeft+=120;
            }
            showhide('tab'+val+'Content',1);
            document.getElementById('tab'+val).className = 'current';
            for(i=0;i<=tabcount-1;i++)
            {
		
            if(i!=val)
            {
            document.getElementById('tab'+i).className = null;
            showhide('tab'+i+'Content',0);
		
            }
            }
           
	   /*tabBefore =  val;
           tabAfter  =  parseInt(val) + parseInt(3);
           for(i=0;i<=tabcount;i++)
           {
           for(j=tabBefore; j<=val+4; j++)
           {
           showhide(j,1);
                        
                       
           showhide(i,1);
           
           }
           }*/

}

function GetTabIndex()
{


   var tabCount=document.getElementById("productdownloadtabcount").value;
         
      
     var tabIndex=document.getElementById("productdownloadtabindex").value;
        
     tabNP(tabIndex,tabCount);

  
}

function RLchkHdnFieldTab()
{ 



if(document.getElementById("ProductDownLoadTabCount")!=null)
{ 
 
document.getElementById("halink").style.display="";

}
else
{
document.getElementById("halink").style.display="none";
}
  
        
}

function RLNewwindow()
{
     var pageUrl=document.getElementById("RLUrl").value;
      var  newwindow = window.open(pageUrl);
         
}

function RLHideTab(selectedStr)
{
   



if(document.getElementById('ddlModule').value == selectedStr)
        {
 document.getElementById("ddlModuleName").style.display="none";
            document.getElementById("lblNewWindow").style.display="";
 document.getElementById("chkNewWindow").style.display="";
 document.getElementById("lblEnterUrl").style.display="";
 document.getElementById("tbRelatedURL").style.display="";
document.getElementById("lblEnterModuleName").style.display="none";


       }
     else
         {
          document.getElementById("ddlModuleName").style.display="";
           document.getElementById("lblNewWindow").style.display="none";
          document.getElementById("chkNewWindow").style.display="none";
 document.getElementById("lblEnterUrl").style.display="none";
 document.getElementById("tbRelatedURL").style.display="none";
document.getElementById("lblEnterModuleName").style.display="";


         }


}





function NewWindow(id)
{
         

window.open(id);


}



