///:::::::::::::::::: Aņadir ::::::::::::::::::::::::::::::::::::::::::::::::::::
function comboaddmodelo(data)
{
for (var i = document.addCust.modelo.length ; i > 0 ; i--)
document.addCust.modelo.options[0] = null;
for(var i = 0; i < data.length ; i+=2)
{
var optionName = new Option(data[i+1], data[i], false, false);
var length = document.addCust.modelo.length;
document.addCust.modelo.options[length] = optionName;
}
/// set it to -1, except when the OS is MAC, because IE on the MAC can't handle this.
if(navigator.userAgent.indexOf('Mac') == -1) 
document.addCust.modelo.selectedIndex = -1;
else 
document.addCust.modelo.options[0].selected = true;
}
///::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
function comboaddserie(data)
{
for (var i = document.addCust.serie.length ; i > 0 ; i--)
document.addCust.serie.options[0] = null;
for(var i = 0; i < data.length ; i+=2)
{
var optionName = new Option(data[i+1], data[i], false, false);
var length = document.addCust.serie.length;
document.addCust.serie.options[length] = optionName;
}
/// set it to -1, except when the OS is MAC, because IE on the MAC can't handle this.
if(navigator.userAgent.indexOf('Mac') == -1) 
document.addCust.serie.selectedIndex = -1;
else 
document.addCust.serie.options[0].selected = true;
}

///:::::::::::::::::: Modificar ::::::::::::::::::::::::::::::::::::::::::::::::::::
function combomodmodelo(data)
{
for (var i = document.modCust.modelo.length ; i > 0 ; i--)
document.modCust.modelo.options[0] = null;
for(var i = 0; i < data.length ; i+=2)
{
var optionName = new Option(data[i+1], data[i], false, false);
var length = document.modCust.modelo.length;
document.modCust.modelo.options[length] = optionName;
}
/// set it to -1, except when the OS is MAC, because IE on the MAC can't handle this.
if(navigator.userAgent.indexOf('Mac') == -1) 
document.modCust.modelo.selectedIndex = -1;
else 
document.modCust.modelo.options[0].selected = true;
}
///::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
function combomodserie(data)
{
for (var i = document.modCust.serie.length ; i > 0 ; i--)
document.modCust.serie.options[0] = null;
for(var i = 0; i < data.length ; i+=2)
{
var optionName = new Option(data[i+1], data[i], false, false);
var length = document.modCust.serie.length;
document.modCust.serie.options[length] = optionName;
}
/// set it to -1, except when the OS is MAC, because IE on the MAC can't handle this.
if(navigator.userAgent.indexOf('Mac') == -1) 
document.modCust.serie.selectedIndex = -1;
else 
document.modCust.serie.options[0].selected = true;
}

///:::::::::::::::::: Buscar ::::::::::::::::::::::::::::::::::::::::::::::::::::
function comboshmodelo(data)
{
for (var i = document.search.modelo.length ; i > 0 ; i--)
document.search.modelo.options[0] = null;
for(var i = 0; i < data.length ; i+=2)
{
var optionName = new Option(data[i+1], data[i], false, false);
var length = document.search.modelo.length;
document.search.modelo.options[length] = optionName;
}
/// set it to -1, except when the OS is MAC, because IE on the MAC can't handle this.
if(navigator.userAgent.indexOf('Mac') == -1) 
document.search.modelo.selectedIndex = -1;
else 
document.search.modelo.options[0].selected = true;
}
///::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
function comboshserie(data)
{
for (var i = document.search.serie.length ; i > 0 ; i--)
document.search.serie.options[0] = null;
for(var i = 0; i < data.length ; i+=2)
{
var optionName = new Option(data[i+1], data[i], false, false);
var length = document.search.serie.length;
document.search.serie.options[length] = optionName;
}
/// set it to -1, except when the OS is MAC, because IE on the MAC can't handle this.
if(navigator.userAgent.indexOf('Mac') == -1) 
document.search.serie.selectedIndex = -1;
else 
document.search.serie.options[0].selected = true;
}