function myvoid(){;}

function prevSearch()
{
 /* action="/axufiles/list_index.asp" target="top" */
 if(RecTotal>0){
 document.PrevSearch.action= "/axufiles/list_index.asp";
 document.PrevSearch.submit() }
}

function if_linksclose()
{
 if(lng=='en' && RecTotal > 0)
   linksclose()
}

function toggleDiv(divid, status)
{
 if(status=="show")
   document.getElementById(divid).style.display = 'block';
 else
   document.getElementById(divid).style.display = 'none';
}

function linksclose()
{
 toggleDiv('ctrboxdiv', 'show')
 toggleDiv('sort_slvr_div', 'show')

 /* action="/axufiles/sidelinks2.asp" target="sidetable" */
 document.Selpics.action= site_root + "/axufiles/sidelinks2.asp?lng=" + lng;
 document.Selpics.target="sidetable";
 document.Selpics.submit() 

 id= "L4"
 sidelnks= '<a href="javascript:showLnks()"><b>Links<\/b><\/a>';
 document.getElementById(id).innerHTML=sidelnks;

 id= "L5"
 sidelnks= '<font color="#FF0000"><b>Film Strip<\/b><\/font>';
 document.getElementById(id).innerHTML=sidelnks;
}

function showLnks()
{
 toggleDiv('ctrboxdiv', 'noshow')
 toggleDiv('sort_slvr_div', 'noshow')

 linksnow()

 id= "L4"
 sidelnks= '<font color="#FF0000"><b>Links<\/b><\/font>';
 document.getElementById(id).innerHTML=sidelnks;

 id= "L5"
 sidelnks= '<a href="javascript:linksclose()"><b>Film Strip<\/b><\/a><\/font>';
 document.getElementById(id).innerHTML=sidelnks;
}

function linksnow()
{
  frames['sidetable'].location.href= site_root + "/axufiles/sidelinks.asp?src=slk";
}

function resetSlid()
{
 id= "L4"
 sidelnks= '<a href="javascript:showLnks()"><b>Links<\/b><\/a>';
 document.getElementById(id).innerHTML=sidelnks;

 id= "L5"
 sidelnks= '<font color="#FF0000"><b>Film Strip<\/b><\/font>';
 document.getElementById(id).innerHTML=sidelnks;

 linksclose()
}

/* function for sidelinks2.asp */
function TopSortbar(sortIdx)
{
 var j, W1, W2, R1, R2;
 var sortStr= '<table border="0" cellspacing="0" cellpading="0"><tr><td nowrap>';

 var Arr= new Array(6)

 Arr[0]= "Year";
 Arr[1]= "Title";
 Arr[2]= "Length";
 Arr[3]= "Price";
 Arr[4]= "Location";
 Arr[5]= "Id";

 W1= "<font style=" + '"' +  "text-decoration: underline" + '"' +  " color=" + '"' + "#ffffff" + '"' + ">";
 W2= "<\/font>";
 R1= "<font style=" + '"' +  "text-decoration: underline" + '"' +  " color=" + '"' + "#ff0000" + '"' + ">";
 R2= "<\/font>";
 var hit= false;

 for(j = 0; j<6; j++)
 {
    if( Arr[j]+"desc" == sortIdx )                               
    {
     sortStr= sortStr + " <a href=" + '"' + "javascript:frames['sidetable'].swap_Pg('" + Arr[j] + "')" + '"' + ">" + R1 + Arr[j] + R2 + "<\/a>&nbsp;&nbsp;"; 
     hit= true;
    }
    if( Arr[j] == sortIdx )
    {                
     sortStr= sortStr + " <a href=" + '"' + "javascript:frames['sidetable'].swap_Pg('" + Arr[j]+ "desc" + "')" + '"' + ">" + R1 + Arr[j]+ R2 + "<\/a>&nbsp;&nbsp;"; 
     hit= true; 
    }
    if( !hit ) 
        sortStr= sortStr +  " <a href=" + '"' + "javascript:frames['sidetable'].swap_Pg('" + Arr[j] + "')" + '"' + ">" + W1 + Arr[j] + W2 + "<\/a>&nbsp;&nbsp;";
    hit= false;
 }

  sortStr= sortStr + "<\/td><\/tr><\/table>";    

 id="sortBar";  
 document.getElementById(id).innerHTML=sortStr;
}

function pagelinks(itemXo, itemXn, RecTotal, CurrentPage, no_butns, pageLink)
{
 var pageLnkStr="";

 pageLnkStr= pageLnkStr + ' <table border="0" cellpadding="1"';
 pageLnkStr= pageLnkStr + '  cellspacing="0" width="100%"';
 pageLnkStr= pageLnkStr + '  background="/graphics/slvbarfill.jpg">';
 pageLnkStr= pageLnkStr + '  <tr>';
 pageLnkStr= pageLnkStr + '   <td class="S" align= "left" nowrap>&nbsp; Items:&nbsp;' + itemXo + ' - ' + itemXn + ' of ' + RecTotal + '&nbsp;&nbsp;&nbsp;</td>';
 pageLnkStr= pageLnkStr + '   <td class="S" align= "right" nowrap>&nbsp;</td>';
 pageLnkStr= pageLnkStr + '   <td class="S" valign= "center" align= "right" nowrap>';
 pageLnkStr= pageLnkStr + '   Page&nbsp;' + CurrentPage + ' of ' + no_butns + '&nbsp;' + pageLink + '</td>';
 pageLnkStr= pageLnkStr + '   </td>';
 pageLnkStr= pageLnkStr + '   <td class="S" nowrap>&nbsp;&nbsp;&nbsp;&nbsp;</td>';
 pageLnkStr= pageLnkStr + '   </td>';
 pageLnkStr= pageLnkStr + '  </tr> ';
 pageLnkStr= pageLnkStr + ' </table>';

 id="pageBar";  
 document.getElementById(id).innerHTML= pageLnkStr;
}

function scroll_dir(dir, no)
{
 if(frames['sidetable'].lfLnk_Loaded== true)
 frames['sidetable'].verScroll(dir,no,'true'); 
}

function stop_Scroll()
{
 if(frames['sidetable'].lfLnk_Loaded== true)
  frames['sidetable'].stopScroll();
}

function toggle_scroll()
{
 frames['sidetable'].toggle_scroll()
}

var YyPlus=false;
function YyPos()                           
{
 if(YyPlus)setTimeout("YyPos()",250)
 if(YyPlus && document.Selpics.Yy.value < no_butns)document.Selpics.Yy.value++;
}                           

var YyMinus=false;
function YyNeg()                           
{
 if(YyMinus)setTimeout("YyNeg()",250)
 if(YyMinus && document.Selpics.Yy.value >= 2)document.Selpics.Yy.value--;
}    

var XxPlus=false;
function XxPos()                           
{
 if(XxPlus)setTimeout("XxPos()",250)
 if(XxPlus && document.Selpics.Xx.value < RecTotal)document.Selpics.Xx.value++;
}                           

var XxMinus=false;
function XxNeg()                           
{
 if(XxMinus)setTimeout("XxNeg()",250)
 if(XxMinus && document.Selpics.Xx.value >= 2)document.Selpics.Xx.value--;
}    

/* location and togle slide show switches */

function link_It(url_lnk)
{
// top.location.replace("http://localhost"+url_lnk)
 top.location.href=  url_lnk;

}

function transulate(par1)
{
 if(par1!= "en_en")
 {
  var xlng= par1.split('_');
  var Xolng=xlng[0];
  var Xnlng=xlng[1];
  var queryStr= '%3Flng%3D'+Xnlng;
  //var queryStr= '';
  top.location.href= 'http://translate.google.com/translate_c?hl=' +Xolng+ '&langpair=' +Xolng+ '%7C' +Xnlng+ '&u=http://vybsales.com/' +queryStr+ '&usg=ALkJrhgWdL8v3P20ohY6Z4dgj1UDI5RudQ';
 }
 else
 {
 // if(lng!="en")
  top.location.href="http://vybsales.com/?lng=en";
 }
}  

function crrncyConvrt(par1)
{
 var Y_lng= document.crncycnvrn.Currency.value;
 var X_lng= par1;
 var Z­_amt= document.crncycnvrn.elements[1].value;
 top.location.href='http://www.ratesfx.com/rates/rate-converter.html?cc='+X_lng+'&amp;bc='+Y_lng+'&amp;amount='+Z­_amt;
}

/* highlight funtions */
function highlight(cell,parm)
{
 if (document.all) {
 docObj = eval("document.all." + cell + ".style");
 } else {
 docObj = eval("document." + cell);
 }
 if(parm=="ovr")
   docObj.background= "url(/graphics/slvbarfillovr.jpg)";
else
   docObj.background= "url(/graphics/slvbarfill.jpg)";
}

/* functions for the divides */
function closecals()
{
 cal(-1);
}

var Crr= new Array('Length', 'Mass', 'Volume', 'Velocity', 'Power')
function cal(x)
{
 var y
 id="caldiv";  
 if(x!=-1)
 {
  y='<iframe id="calculator" src="\/axufiles\/calculator6.asp?Choice='+ Crr[x]  +'" width="100%" height="59" marginwidth=2 marginheight=2 hspace=0 vspace=0 frameborder=2 scrolling=no>#ff0000</iframe></span>';
  calclrgif()
 }
 else
 {
  y='';
  close_calclrgif()
 }
 document.getElementById(id).innerHTML= y;

 for(i = 0; i<Crr.length; i++)
 {
  if(i==x)
   y= '<font color="#FF0000"><b>'+ Crr[i]  +'<\/b><\/font>,';
  else
   y= '<a href="javascript:cal('+i+')"><b>'+ Crr[i]  +',<\/b><\/a>';
  document.getElementById( "C"+i+"" ).innerHTML=y;
 }
}

function calclrgif()
{
 ID="clrcal";  
 var calx='<a href="javascript:closecals()"><img src="\/graphics\/clearcal.gif" border="0"><\/a>';
 document.getElementById(ID).innerHTML=calx;
}

function close_calclrgif()
{
 ID="clrcal";  
 var calx='';
 document.getElementById(ID).innerHTML=calx;
}

function imgFlip(imgFldname,newImage)
{
 if(document.images && page_Loaded)
 {
  document[imgFldname].src= (eval(newImage+".src"))
 }
}
